Click to See Complete Forum and Search --> : Connecting to internet using command line


r3b007
07-06-2003, 01:41 PM
Im having a few problems connecting to the internet via command line.

Ive typed the following command ./pppd call ppp0 but get the following messages in /var/log/messages pppd 2.4.1 started by root, uid 0
WvDial: Internet dialer version 1.41
Initialising modem
Sending: ATZ
Modem not responding
Connect script failed
Exit

Heres the contents of /etc/wvdial.conf [Modem0]
Modem=/dev/ttyS0
Baud=115200
SetVolume=1
DialCommand=ATDT
Init1=ATZ
FlowControl=CRTSCTS
[Dialer Freeserve]
Phone=***
Password=***
UserName=***
Stupid Mode=1
Inherits=Modem0

Ive just installed fluxbox but had no problems connecting previously using the graphical connection in Gnome.
Im online now using the same modem on my other OS, so the modem is fine.

Ive tried searching for help but have found nothing yet...
Any ideas anyone?

viperlin
07-06-2003, 01:52 PM
can't u just run the graphical client in fluxbox?

r3b007
07-06-2003, 02:06 PM
Dont have one!

viperlin
07-06-2003, 02:10 PM
but u said: "but had no problems connecting previously using the graphical connection in Gnome."

rid3r
07-06-2003, 02:12 PM
Not sure "./pppd call ppp0 " is the right command. With wvdial use:
$ su
# wvdial
To reconfigure wvdial:
# wvdialconf > /etc/wvdial.conf (then edit wvdial.conf again).
From the command line it would be something like:
$ su
# /usr/sbin/pppd connect '/usr/sbin/chat -v -f /etc/ppp/chatscript' -detach \
crtscts modem defaultroute user rid3r /dev/modem 115200
(/dev/modem has to be linked to /dev/ttyS0:
# ls -l /dev/modem
# ln -s /dev/ttyS0 /dev/modem)
(See here (http://www.justlinux.com/forum/showthread.php?s=&threadid=88875&highlight=pppdeamons) ).

kevinalm
07-06-2003, 02:26 PM
Actually, once you have wvdial.conf correct, you should be able to su to root and:

wvdial Freeserve

You do need to have /dev/modem symlinked to the right dev though.

r3b007
07-06-2003, 03:13 PM
Cheers kevinalm, that sorted it :D