Detecting the Modem
First, I installed gnome-ppp because it provides better control of thedial-up connection:
sudo apt-get install gnome-ppp from 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)
sudo wvdialconf 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 Check using
ls -l /dev/tty*
The modem should appear as /dev/ttyACM0
See also:
https://help.ubuntu.com/community/DialupModemHowto/ScanModem 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:
wvdial The Problem
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[3388]: pppd 2.4.5 started by xxxx, uid 0
Nov 30 13:59:09 xxxx pppd[3388]: Using interface ppp0
Nov 30 13:59:09 xxxx pppd[3388]: Connect: ppp0 <--> /dev/pts/1
Nov 30 13:59:09 xxxx pppd[3388]: Warning - secret file/etc/ppp/pap-secrets has world and/or group access
Nov 30 13:59:39 xxxx pppd[3388]: LCP: timeout sending Config-Requests
Nov 30 13:59:53 xxxx pppd[3397]: Can't open options file /etc/ppp/peers/wvdial: Permission denied
Nov 30 14:00:01 xxxx /USR/SBIN/CRON[3412]: (root) CMD ([ -x/usr/sbin/update-motd ] && /usr/sbin/update-motd2>/dev/null)
Nov 30 14:00:01 xxxx /USR/SBIN/CRON[3417]: (root) CMD ([ -x/usr/sbin/update-motd ] && /usr/sbin/update-motd hourly2>/dev/null)
Nov 30 14:02:02 xxxx pppd[3388]: Modem hangup
Nov 30 14:02:02 xxxx pppd[3388]: Connection terminated.
Nov 30 14:02:02 xxxx pppd[3388]: Exit. The Workaround
In order to establish the connection successfully, it is necessary to start the dialer as superuser from a terminal window:
sudo wvdia or sudo gnome-ppp
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 window:gedit Desktop/gnome-ppp.desktop and change only the following line:
Exec=gnome-ppp
to Exec=gnome-terminal -x sudo gnome-ppp 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.
[Dialer Defaults]
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 Name>
Username = guesswho
; Password = <Your Password>
Password = guessit
Source:
http://ubuntuforums.org/showthread.php?t=873268
|