Quote:> Hey I would really appreciate some help debugging my ppp connection...
Minicom is not what you use to establish a ppp connection. It is a
simple modem program suitable for calling bulletin boards.
Here is a set of shell scripts I use to automate making a ppp connection
to a dial up account with an internet service provider. Create the
following four files using your editor of choice:
In the above file, replace the two lines "xxx.xxx.xxx.xxx" with the
domain name server addresses which you can obtain from your internet
service provider. Also, if you already are able to dial up your internet
service provider from windows 95/98, this information is buried
somewhere in one of the menus/submenus under "dial-up networking".
/usr/sbin/pppd connect \
'usr/sbin/chat -t 45 -v ABORT BUSY "" ATDTzzzzzzz CONNECT "" Username:
xxxxxxxx Password: yyyyyyyy' \
/dev/ttyS1 115200 noipdefault modem defaultroute crtscts
In the above file, replace zzzzzzzz with the phone number you use to
call your internet service provider. Replace xxxxxxxx with your
username. Replace yyyyyyyy with your password. Also, you may need to
replace the words "Username:" and "Password:" with whatever your
internet service provider prompts you with when you call in using
minicom. The chat program looks for a prompt from the internet service
provider and when it sees it, it sends the appropriate text in response.
So you also need to make sure to enter a colon if that is part of the
prompt, and a space after the colon if that is also part of the prompt.
Usually "Password:" is always "Password:", but "Username:" could be
something like "User:", "Accountid:", etc. So call up your provider
using minicom and carefully note what it prompts you for, and
substitute the appropriate wording into the above file, as needed.Also,
where it says ttyS1, you may need to change the 1 to 0, 2, or 3
depending on which serial port your modem uses. ttyS1 is the same port
as COM2 in windows.
kill `ps -A | grep pppd | grep -v grep | cut -b 1-6`
Make sure your current directory is /bin/, and make files 2, 3, and 4
executable as follows:
chmod u+x pppon
chmod u+x pppof
chmod u+x www
To connect to your service provider, open a terminal window from
whatever desktop environment you are using, and run www by typing in
"www". This will start pppd, generate the call to your service provider,
log in after you connect, and start Netscape. When you exit Netscape,
you will be automatically disconnected.
If you are using Gnome or KDE, you can make a new launcher on your
desktop, assign the Netscape logo for an icon, and use www for the
command. This way, all you need to do is click the icon to connect and
The pppon script will not work as written if your service provider is
ATT Worldnet, since they use CHAP.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.