Detecting the Modem
First, I installed gnome-ppp because it provides better control of thedial-up connection:
sudo apt-get install gnome-pppfrom a terminal window or through Synaptic Package Manager. This installsautomatically wvdial as the underlying program.
Connect the modem and detect the modem using:
sudo cp -vp /etc/wvdial.conf /etc/wvdial.conf.1 (to save the original version)
if the modem is detected save this configuration:
sudo cp -vp /etc/wvdial.conf /etc/wvdial.conf.1
Otherwise make sure the modem driver as identified by scanModem is loaded:
sudo modprobe cdc_acm
ls -l /dev/tty*
The modem should appear as /dev/ttyACM0
Connecting to the Internet
So far so good. Test the connection.
Click on the the red phone ( the gnome-ppp dialer). Enter user name, password and telephone number as defined with the Internet Service Provider. Check also the Setup tab and make sure the settings agree with those in wvdial.conf: overwrite /dev/modem with /dev/ttyACM0 to identify the modem. Click on the Connect tab.
Alternatively, you can dial directly with wvdial. Edit the settings using:
sudo gedit /etc/wvdial.conf
Enter user name, password and telephone number as defined with the Internet Service Provider. Connect:
Unfortunately, all attempts to connect fail because of access authorizations. Clearly, Ubuntu 9 does not behave the same way as Ubuntu 8. Here is a partial sample from syslog:
Nov 30 13:59:09 xxxx pppd: pppd 2.4.5 started by xxxx, uid 0
Nov 30 13:59:09 xxxx pppd: Using interface ppp0
Nov 30 13:59:09 xxxx pppd: Connect: ppp0 <--> /dev/pts/1
Nov 30 13:59:09 xxxx pppd: Warning - secret file/etc/ppp/pap-secrets has world and/or group access
Nov 30 13:59:39 xxxx pppd: LCP: timeout sending Config-Requests
Nov 30 13:59:53 xxxx pppd: Can't open options file /etc/ppp/peers/wvdial: Permission denied
Nov 30 14:00:01 xxxx /USR/SBIN/CRON: (root) CMD ([ -x/usr/sbin/update-motd ] && /usr/sbin/update-motd2>/dev/null)
Nov 30 14:00:01 xxxx /USR/SBIN/CRON: (root) CMD ([ -x/usr/sbin/update-motd ] && /usr/sbin/update-motd hourly2>/dev/null)
Nov 30 14:02:02 xxxx pppd: Modem hangup
Nov 30 14:02:02 xxxx pppd: Connection terminated.
Nov 30 14:02:02 xxxx pppd: Exit.
In order to establish the connection successfully, it is necessary to start the dialer as superuser from a terminal window:
For a more convenient startup icon, add the gnome-ppp icon from the menu to the desktop. Then edit this icon as follows from a terminal
change only the following line:
Click on this icon. It will open a terminal window and you will be prompted for your password. Then the gnome-ppp screen will open and you should be able to connect.
The following is a /etc/wvdial.conf file that works with the US Robotics USB modem. It is better to use a lower speed and let the modem negotiate a higher speed with the service provider.
New PPPD = yes
Stupid Mode = yes
Modem Type = Analog Modem
ISDN = 0
Auto DNS = 1
Auto Reconnect = 0
Modem = /dev/ttyACM0
;Baud = 460800
Baud = 230400
Init1 = ATZ4
; Phone = <Target PhoneNumber>
Phone = 1234567890
; Username = <Your Login
Username = guesswho
; Password = <Your Password>
Password = guessit