Setting Dial_Up

kinuthiA muchanE muchanek at gmail.com
Tue Aug 5 13:55:29 BST 2008


Habari,

I am assuming you want to use your cellphone's modem to dial-up.
First of all, make sure wvdial (wvdial is a smart dialer, type man
wvdial in the terminal for more details) is installed. You can ascertain
that by entering wvdial on the terminal.
The next thing you need to do is configure the /etc/wvdial.conf file.
But before you can edit that you need to know three things from your
ISP,

1- the target phone number
2- your login name and
3- your password.

The phone number is different from the one you use for normal dialing!
If your mobile phone company is your ISP, normally the login name and
the password fields are left blank, but just confirm with them. To give
you an idea of how a /etc/wvdial.conf looks like here is what mine looks
like:


[Dialer Defaults]
1-Init1 = ATZ
2-Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
3-Init3 = AT+CGDCONT=1,"IP","safaricom"
4-Phone = *99***1#
5-Password =''

6-Stupid mode = yes
7-Baud = 460800
8-New PPPD = yes
9-Modem = /dev/ttyACM0
10-ISDN = 0
11-Username = ''
12-Carrier check = no

That looks intimidating but it is not. To modify your /etc/wvdial.conf
file type 'gedit /etc/wvdial.conf' in the terminal. You will get a file
similar to mine but with most  of the details missing. Leave lines 1, 2,
6, 7, 8, 10, 12 as they are, note that they do not have to be in that
order. The Phone, Username and the password, you will get from your ISP
as I mentioned above. 
The other thing you will need to know is the at which USB port your
phone is connected. Connect your phone to your computer, and at the
terminal type 'dmesg |fgrep acm', you should get something like this
back:

[12966.484000] cdc_acm 1-2:1.0: ttyACM0: USB ACM device
[13011.904000] cdc_acm 1-2:1.0: ttyACM0: USB ACM device

The 'ttyACM0' part is what you need, add it to the line with "Modem =",
as in line 9 above. Note, yours might be different. 
Assuming all went well, you are now ready to connect to the Internet,
just enter 'wvdial' in terminal and if you get an output like this you
are done!

WvDial<*1>: WvDial: Internet dialer version 1.56
WvDial<Err>: Cannot open /dev/ttyACM0: Input/output error
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Sending: AT+CGDCONT=1,"IP","safaricom"
WvDial Modem<*1>: AT+CGDCONT=1,"IP","safaricom"
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT*99***1#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT*99***1#
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected.  Starting PPP immediately.
WvDial<Notice>: Starting pppd at Tue Aug  5 15:38:58 2008
WvDial<Err>: Warning: Could not modify /etc/ppp/pap-secrets: Permission
denied
WvDial<Err>: --> PAP (Password Authentication Protocol) may be flaky.
WvDial<Err>: Warning: Could not modify /etc/ppp/chap-secrets: Permission
denied
WvDial<Err>: --> CHAP (Challenge Handshake) may be flaky.
WvDial<Notice>: Pid of pppd: 8900
WvDial<*1>: Using interface ppp0
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: local  IP address 172.27.229.253
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: remote IP address 192.168.100.101
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: primary   DNS address 196.201.208.2
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]
WvDial<*1>: secondary DNS address 209.244.0.3
WvDial<*1>: pppd: X�[06][08]0�[06][08][18]�[06][08]

>From all that mess, wait until you see the secondary DNS address line! 
Tell us how it goes.
By the way, you can test whether your phone is being detected by Ubuntu
by entering 'lsusb' in the terminal, you should get back a response
like:


> Bus 002 Device 001: ID 0000:0000  
> Bus 001 Device 006: ID 22b8:4902 Motorola PCS E398 GSM Phone
> Bus 001 Device 001: ID 0000:0000  
 ... when you are doing this it is best to disconnect everything else from your USB ports.

Good luck! ;-)

Kinuthia... 

psst... I modified your subject line, it wasnt very informative !;)


On Tue, 2008-08-05 at 12:37 +0200, Mugumo Creations wrote:
> This email is from a ubuntu-ke subscriber to other subscribers inluding you:)
> Hello there can anyone please assist me on how to get my dial-up work. I am
> using GnomePPP which doesn't seem to find the modem. Peace
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: https://lists.ubuntu.com/archives/ubuntu-ke/attachments/20080805/4ad35a29/attachment.htm 




More information about the Ubuntu-ke mailing list