nixCraft Poll

Topics

Linux configure modem to connect to the Internet using a PPP dialup account

Posted by Vivek Gite [Last updated: March 6, 2008]

Q. I want to configure modem to dial out and connect to the Internet. Since I don't have good display card, I am not using the X window system. How do I configure (external) modem to connect to the Internet using a PPP dialup account under Debian Linux?

A. It is true that dialup modems have become almost obsolete due to broadband Internet connections, there are still situations where dialup access can prove useful :)

Under Linux you can dial out using program called wvdial. It is a PPP dialer with built-in intelligence. It dials a modem and starts PPP in order to connect to the Internet. The connection started with wvdial can be dropped by switching back to the terminal from where it was started and pressing ctrl-C.

The default configuration file is: /etc/wvdial.conf.

Installation

Since you are using Debian Linux, use apt-get (assuming that CDROM is your source):
# apt-get install wvdial
Other Linux distribution users can download wvdial from Internet or install from your distribution CD/DVD-ROM disk.

Configuration

First, make sure modem is installed and type the following command to configure the modem:
# wvdialconf /etc/wvdial.conf
Once modem is detected you need to edit /etc/wvdial.conf configuration file to specify the PPP username, password and dial out phone number.
For example:
[Dialer Defaults]
Modem = /dev/ttyS1
Baud = 115200
Init1 = ATZ
Phone = 172226
Username = Your-USERNAME
Password = Your-PASSWORD

Save and close the file.
To connect to internet type command:
# wvdial
To disconnect, switch back to the terminal from where it was started and pressing CTRL+C.

See also:

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. George Perez Says:

    I have a linux machine with an internal modem. The linux I’m using is Ubuntu and would like to know how to connect this machine to the internet. I am not on a network, just a single linux machine.
    I appreciate your reply.
    Thank you.

  2. nixcraft Says:

    George,
    An internal modem requires a Linux driver. The FIRST step towards finding a Linux driver is identifying the modem’s CHIPSET. I recommend visiting following url and download the scanModem tool which will help you to identifying the modem’s CHIPSET.
    http://132.68.73.235/linmodems/index.html#scanmodem

    More information is at http://linmodems.org/

    Another option is use lspci command to identify the modem’s chipset. Once you know the chipset, you can download & install the driver. Next, just follow the instruction mentioned here to configure PPP dial out.

  3. chadrick Says:

    http://linmodems.org/

  4. Linda Says:

    Hi,

    I am able to dial out to my ISP, but I always have to type in the root password. I am on Ubuntu.

    Is there anyway to disable this?

  5. nixcraft Says:

    You can disable it via sudo command itself. Add something as follows, first type sudo:
    sudo visudo

    Next Append text:
    username localhost= NOPASSWD: wvdial

    To use type command:
    sudo wvdial

    It will not prompt for your password.

    Hope this helps!

  6. paul Says:

    have a device call the MAGIC BEAMER i want configure it to access the net via dsl dialout user my laptop as a server.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.