Skip to main content
Home
The Baheyeldin Dynasty
The journey for wisdom starts with knowledge
  • Home
  • About
  • Site Map
  • Contact

How to setup a modem with Linux

  1. Home

By Khalid on 2004/09/13 - 21:11, last updated 2004/09/14 - 10:02

Recently, broadband internet has become so common that the use of modems has dropped dramatically. It has been many years since I had to configure a modem on a computer, let alone do so on Linux. However, modems do still have their uses. I bought a used 3COM 5610 PCI modem in order to be able to fax from Linux, and had to relearn how to configure a modem on Linux again. So, here is what I did.

Introduction

There are two types of modems, true modems, and Winmodems. Winmodems do not have the hardware circuitry that true modems have, and hence rely on the computer's CPU doing all the work for them.

If you have a Winmodem, then it will most probably not work with Linux at all. There is no easy way to know which modems are Winmodems and which are not.

As a rule of thumb, all external serial modems should work with Linux. Internal modems can be either type.

The steps below detail what you need to do to get the modem configured with Linux. Once configured, you can use the modem to dial out, receive calls (dial-in), or as a fax.

Configuring the Modem

Getting the IRQ, I/O Port, and UART

There are several ways to determine these settings for the modem.

If your modem is an external serial modem, then you probably connected it to a serial port on the back of your computer. Just do a dmesg command and watch for something like this:

ttyS01 at 0x02f8 (irq = 3) is a 16550A

If your modem is a PCI internal modem, you can either use the lspci -v command or view the contents of the /proc/pci file to determine the settings of the modem. Note down the IRQ and I/O port settings, since you will need them in a later setup.

Determining the device name

If the modem is not connecting to one of the serial ports on the back of your computer, then it is best to assign it a device name beyond the first four names. I prefer using ttyS4 for a PCI modem. Check the /dev directory to see if the devices are already there or not. If not, then you can create it using the command:

cd /dev./MAKEDEV ttyS4

Also, create a symbolic link to the /dev/modem device, using the following command:

ln -sf /dev/ttyS4 /dev/modem

Using setserial

Now you need to tie the Linux device name to the settings you found in a previous step. This can be done using the setserial command:

setserial /dev/ttyS4 irq 11 port 0xc800 uart 16550

If you do not know the UART type, you can use the autoconfig parameter to setserial instead, for example:

setserial /dev/ttyS4 port 0xc800 skip_test auto_irq autoconfig

Testing the Modem

The easiest way to test the modem, is to use the minicom command. Run minicom, then enter the setup (Ctrl-A then Z then O) and use either /dev/modem or the correct /dev/ttyS? device. Save the configuration, then exit minicom and run it again. You should see some response from the modem (e.g. ATZ then OK).

Conclusion

Now the modem is configured correctly. You can now proceed to use it for dialing to the internet, or as a dial-in device, or as a fax server.

Resources

You can read more on this topic here:

  • The Modem HOWTO document.
  • A Good document on configuring modems.
  • Winmodems and Linux HOWTO.
Contents: 
Linux
  • Add comment

Comments

Anonymous (not verified)

modem in linux

Fri, 2009/07/24 - 05:26

the information given is very useful and is written very simply
thank you

  • reply

Minhaj (not verified)

Thanks a lot

Sat, 2010/11/06 - 12:49

very nice explanation and clear to understand. and also very useful, got my modem configured to use as dial-in & for fax...

Thanks a lot ....

Minhaj ...

  • reply

Current

Pandemic

  • COVID-19
  • Coronavirus

Search

Site map

Contents

  • Family
    • Khalid
    • Ancestry
    • Extended
  • Friends
  • Nokat نكت
  • Writings
    • Cooking
    • Culture
    • Science
    • History
    • Linguistics
    • Media
    • Literature
    • Politics
    • Humor
    • Terrorism
    • Business
    • Philosophy
    • Religion
    • Children
  • Technology
    • Linux
    • Arabization
    • Drupal
      • Association
    • Software
    • Internet
    • Technology in Society
    • Digital Archeology
    • NCR History
    • MidEast Internet
    • Programming
    • Saudi ISPs
    • Miscellaneous
  • Places
    • Canada
      • Weather
    • Egypt
      • Cuisine
      • Alexandria
      • E.G.C.
    • USA
    • Saudi Arabia
  • Interests
    • Astronomy
    • Fishing
    • Photography
    • Snorkeling
    • Nature
    • Photomicroscopy
  • Miscellany

In Depth

  • al-Hakim bi Amr Allah: Fatimid Caliph of Egypt الحاكم بأمر الله
  • Alexandria, Egypt
  • Arabic on the Internet
  • Articles on the history of Muslims and Arabs in the Iberian Peninsula تاريخ المسلمين و العرب في الأند
  • DIY GOTO Telescope Controller With Autoguiding and Periodic Error Correction
  • E.G.C. English Girls College in Alexandria, Egypt
  • Egyptian Cuisine, Food and Recipes مأكولات مصرية
  • George Saliba: Seeking the Origins of Modern Science?
  • Internet Scams and Fraud
  • Mistaken for an Arab or Muslim: Absurdities of being a victim in the War on Terror
  • Mistaken Identity: How some people confuse my site for others
  • One People's Terrorist Is Another People's Freedom Fighter
  • Overview of Google's Technologies
  • Photomicroscopy
  • Pseudoscience: Lots of it around ...
  • Resources for using Google Adsense with Drupal
  • Rockwood Conservation Area, Southern Ontario
  • Selected Symbolic Novels And Movies
  • Snorkeling the Red Sea near Jeddah
  • Updates and Thoughts on the Egyptian Revolution of 2011

Recent Content

Most recent articles on the site.

  • Origin Of COVID-19: Natural Spillover, Lab Leak Or Biological Weapon?
  • Kamal Salibi and the "Israel from Yemen" theory
  • How To Upgrade HomeAssistant Core In A Python Venv Using uv
  • Ancestry - Paternal Side
  • Review of Wait Water Saver For Whole House Humidifiers
more

Most Comments

Most commented on articles ...

  • Another scam via Craigslist: offering more than asking price
  • Warning to female tourists thinking of marrying Egyptians
  • Craigslist classified for used car: Cheque fraud scam
  • Winning the lottery scam email: World Cup South African lottery
  • Email Scam: BMW 5 Series car and lottery winning
more

About Khalid

Various little bits of information ...

  • Khalid Baheyeldin: brief biography
  • Presentations and Talks
  • Youtube Videos
  • GitHub Projects
  • Drupal.org Profile
  • Astrophotography @ Flickr

Sponsored Links

Your Link Ad Here

Tags

Android Mobile Ubuntu Sony OnStep OpenWRT Router Ericsson COVID-19 Rogers Coronavirus Arabic Kubuntu Home Assistant GSM Telescope tablet Spectrum Scam Python 419 Laptop Firefox DIY CPU Conspiracy Comet Balkanization backup App
More

© Copyright 1999-2025 The Baheyeldin Dynasty. All rights reserved.
You can use our content under the Terms of Use.
Please read our privacy policy before you post any information on this site.
All posted articles and comments are copyright by their owner, and reflect their own views and opinions, which may not necessarily be consistent with the views and opinions of the owners of The Baheyeldin Dynasty.

Web site developed by 2bits.com Inc.