Internet connection
roach
robert_spencer at mighty.co.za
Sat Jan 14 23:18:11 UTC 2006
On Friday 13 January 2006 15:48, vilaweb casamance wrote:
> Thanks Roach!
> ok, I edit /etc/wvdial.conf:
> *
> [Dialer Defaults]
> Modem = /dev/ttyACM0
> Baud = 460800
> Init1 = ATZ
> Init2 = ATQ0 V1 E1 S0=0 &C1
> ISDN = 0
> Modem Type = USB Modem
> ; Phone = *********
> ; Username = **********
> ; Password = ***********
You need to remove the ";" from in front of Phone, Username & Password.
> and I run wvdialconf manpage the result is:
Sorry, but that was a quote from the "wvdialconf" manpage. Not an instruction
to run in a terminal. From now on I'll add the prompt in front of an
instruction you need to type into a terminal, e.g.:
To see the manpage for "wvdialconf", type:
~$ man wvdialconf
Press the q key when your reading to leave the manpage.
<...>
> *If I run wvdial in terminal it's telling me this:*
>
> root at kernic:~ # wvdial
> --> WvDial: Internet dialer version 1.54.0
> --> Cannot get information for serial port.
> --> Initializing modem.
> --> Sending: ATZ
> ATZ
> OK
> --> Sending: ATQ0 V1 E1 S0=0 &C1
> ATQ0 V1 E1 S0=0 &C1
> OK
> --> Modem initialized.
> --> Configuration does not specify a valid phone number.
> --> Configuration does not specify a valid login name.
> --> Configuration does not specify a valid password.
This is why you need to remove the ";".
> *Also I give you the follow file contents:
>
> /etc/host.conf
> *order hosts,bind
> multi on
Why are there an * all over the place, if there isn't one in /etc/host.conf
then it's okay.
<...>
> */etc/ppp/options
> *
> # Originally created by Jim Knoble <jmknoble at mercury.interpath.net>
> # Modified for Debian by alvar Bray <alvar at meiko.co.uk>
> # Modified for PPP Server setup by Christoph Lameter <clameter at debian.org>
> #
> # To quickly see what options are active in this file, use this command:
> # egrep -v '#|^ *$' /etc/ppp/options
<...>
I don't need to see the whole file, just the active bits. So lets go and
remove the comments.
~# cd /etc/ppp/
/etc/ppp# egrep -v '#|^ *$' /etc/ppp/options
asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
noipx
Your need to edit this file, but first lets make a backup copy and a new
leaner options file:
/etc/ppp# mv options options.txt
/etc/ppp# egrep -v '#|^ *$' options.txt > options
/etc/ppp# gedit /etc/ppp/options
We need to edit /etc/ppp/options so that it looks like this:
crtscts
lock
modem
defaultroute
> *And the* */etc/ppp/resolv.conf is empty
This is wrong, so remove /etc/ppp/resolv.conf and link in /etc/resolv.conf:
/etc/ppp# rm /etc/ppp/resolv.conf
/etc/ppp# ln -s ../resolv.conf resolv.conf
And now we need to edit /etc/wvdial.conf. Edit it so that it looks like my
example, but with your own Phone, Username & Password.
/etc/ppp# cd ..
/etc# gedit /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1
ISDN = 0
Modem Type = USB Modem
Phone = 8450011
Username = roach
Password = roachy-password
Ask Password = 0
New PPPD = yes
Dial Command = ATDT
Now, lets try again:
/etc# wvdial
--
Robert "roach" Spencer
Pietermaritzburg
South Africa
More information about the ubuntu-users
mailing list