Modem Configuration
Configuration of various types of dialup modems
Configuring the modem may or may not be a part of the installation procedure. Determining what sort of modem you have should be a part of the Pre-installation process. You’ll want to know up front if the modem in your computer is going to work in Linux.
Determine Modem type
First you have to determine what type of modem you have.
- If your modem is a hardware modem and is not plug and play, then you probably are not checking here, because you already are online.
PCI Modem - setserial
You may have a hardware modem that is plug and play - PCI or ISA - most likely nowadays a PCI modem. The new modem that I got is a US Robotics Performance Pro (5610B). It was a little expensive ($70), but I was very happy to see Linux on the box and in the instructions. I was prepared to do the PCI Modem routine described below, but had no problem at all with it. So the first thing you should try is to make the link from the actual device to ‘/dev/modem’. This is a good idea, because most dialup programs use /dev/modem as the default device. On the command line do:
cd /dev
ln -s ttyS4 modem
If you have a PCI Modem you may need to run setserial.
- less /proc/pci (You will then see a list of all you PCI devices.)
- Example of output:
Bus 0, device 17, function 0: Serial controller: Unknown vendor
Unknown device (rev 1). Vendor id=12b9. Device id=1008. Medium devsel.
IRQ 11. I/O at 0xcc00 [0xcc01].
- Note that the first I/O port is 0xcc00 and the IRQ is 11
- As root you need to run setserial. You may first need to create a link to one of the unused serial devices. Using the above example it would be:
cd /dev
ln -s ttyS3 modem
setserial /dev/modem uart 16550A port 0xcc00 irq 11
- Naturally, you must use the port and irq that you found when you looked at /proc/pci and not those in this example!
- Then try to connect using /dev/modem where your connection program asks for the location of your modem. If this works, then you will want to place that setserial line into the init script (rc.local or similar) for your distro so that you don’t have to run this command every time you reboot Linux.
Modem is not Plug and Play
If your modem is not plug and play, then you just have to find out if it is on COM1(/dev/ttyS0) or COM2(/dev/ttyS1). You may even have a jumper on the modem that you can set for the port of your choice.
- Make the link to /dev/modem:
cd /dev
ln -s ttyS0 modem
- Run your configuration program for connecting and give it /dev/modem for the modem location. If you prefer not to make the link, you can simply give the connection program the actual device - like /dev/ttyS0.
Winmodem
- You may have one of a variety of winmodems which may or may not have a driver that works with Linux. There is a good chance that you can get a driver for it. I got a driver from Intel for my Intel 536ep which came on my latest computer. I decided to get a hardware modem anyway, because I could see that I’d have to replace the driver every time I upgraded the kernel. If you don’t want to get a hardware modem just now, check http://linmodems.org/ or http://start.at/modem. or even your modem manufacturer to see if you can get a Linux driver for it.
- Other links for winmodem drivers:
- To find out what modem you have try this:
lspci | grep -i modem
(Note: the vertical bar, referred to as a pipe symbol, is usually located above the Enter key.)
On my notebook computer, this returns the following:
0000:00:09.1 Serial controller: Lucent Microelectronics LT WinModem
- You may want to use the ScanModem utility which is a bash script that runs in Linux to get information about your modem. You can find that at http://linmodems.technion.ac.il/#scanmodem. Download it and put it into a separate directory. Then:
gunzip scanModem.gz
bash scanModem
- A series of files will be produced that has a lot of information about your computer including your modem. If you are running Windows on your computer, you can hav a look at the Device Manager to see what the name of your modem is. You can do a search on the Internet to find out more information about it once you have the name.
Plug and Play ISA modem
External Modems Always Good for Linux?
Getting Online
See Getting Online for information about how to get online once you have your modem working.
Links about Modems
Copyright (c) by the authors.
Prior to editing, authors agreed to license their contributions by the terms of the GPL.
See our licensing page for details.
Linux® is a registered trademark of Linus Torvalds.
Welcome to LinuxBasics.org - The online community that helps people to get Linux installed and running.
During this tour, we will guide you through our website, which has many facets which wait to be explored
The biggest project we are running is our Linux course, based on the LBook.
The book is stored in wiki-format, which enables us to update and correct it as we go.
Discussion for the course is on our Forum
Our Forum is used for discussion of Linux and for questions and answers.
Search the mailing-list that was used prior to the Forum.
The questions and answers from the list are stored in the list's archives in order to help others with the same problems.
Every weekend, we meet to chat in IRC. These meetings are NOT mandatory, but are a nice chance to get to know each other better.
IRC is also a great tool to solve many problems, since it is very quick and easy to ask for more details if you need them.
The tutorials are one of the oldest sections on the LBo-website.
Here you find explanations on how to do specific tasks in Linux. Many of the tutorials were created after a certain problem
has been discussed (and usually solved :) on the mailing-list.
The tutorials are categorized in
In the links section, you find outbound links to other valuable resources.
One of our later additions to the site. We maintain a mirror of the Linux Documentation Project. This is our contribution to the "home of the HOWTOs"
Another later addition is the LBlog which focuses on how to do stuff on the Linux Desktop. It begins with the basics on installing Ubuntu.
Using the integrated site-search, you can search the tutorials, the LBook and all other wiki-pages
Simply type the search term into the box in the upper-right corner of our webpages
As a community, we depend on your feedback and collaboration. So, if you have something to share with others, please contact us. If you have a suggestion for a topic you would like to see covered here, please add it on the Wishlist.
There are many ways to contribute: You can answer questions on the Forum, you can write a complete tutorial or just a step-by-step documentation on how you completed a specific task using linux. Ask questions if the information on this site is not clear, tell us if we got something wrong, spell-check our writings, whatever.
We are looking forward to meeting you at LinuxBasics.org
Anita, Jisao, Sam and Stefan