Can't get connected! HELP!!!
Ronald Maggio
r.v.maggio at worldnet.att.net
Thu Aug 23 10:49:41 EDT 2001
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C12BC1.5006F400
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi guys.
I need your help. I installed Mandrake 8.0 and gave it the info it =
needed to get on line, but the following links say I have to add the =
following info for a logon script. Please tell me its not so. I thought =
Mandrake was a gas-N-go (OS) now I'm stuck!
Worldnet uses CHAP for authentication and states that the following has =
to be added to a login script argument in order to logon.
If someone could look at the links below and tell me in newbie terms =
just what do I need to do and where to type it in.=20
I think I know where to type it in but I want to do it right the first =
time so it will work!=20
Oh by the way Bob I changed the video card and cd-rom so it installed. =
No problem! I did have to use a serial mouse though.
1.. Add the following line to the file /etc/ppp/chap-secrets:
999999999 at worldnet.att.net * "password" *
where 9999999999 has been replaced by number on the "Name" or =
"LoginName" line of your account information file, and password is =
replaced the value on the "Password" line. The quotation marks around =
the password are important to protect any special characters that might =
appear in the password.
2.. Create, the following script, substituting the proper values for =
$NAME and $PHONE. I have given my script the name /usr/sbin/ppp-on.
#!/usr/bin/perl
#
# Script to establish connection from a Linux system to
# worldnet via PPP.
#
$DOMAIN=3D"worldnet.att.net"; =20
$SEARCH=3D$DOMAIN;
$NAMESERVER1=3D"204.127.160.1"; =20
$NAMESERVER2=3D"204.127.129.1"; =20
$NAMESERVER3=3D"204.127.129.2"; =20
$NAME=3D"999999999\@worldnet.att.net";
$PHONE=3D"6213400"; # Cambridge, MA =20
$MODEM=3D"/dev/modem";
$resolv =3D '>/etc/resolv.conf';
open(CONF,$resolv)|| die "Cannot open file: $resolv.\n $! \n";
print CONF "\#resolv.conf - created by ".$ARGV."\n";
print CONF "domain ".$DOMAIN."\n";
print CONF "search ".$SEARCH."\n";
print CONF "nameserver ".$NAMESERVER1."\n";
print CONF "nameserver ".$NAMESERVER2."\n";
print CONF "nameserver ".$NAMESERVER3."\n";
$command=3D"/usr/sbin/pppd name \"".$NAME."\"".
" -d connect \'/usr/sbin/chat -t 45 -v ABORT BUSY \"\" ATDT".
$PHONE." CONNECT \"\"\' ".$MODEM.
" 57600 noipdefault modem defaultroute crtscts";
$ENV{'PATH'} =3D ''; # Make $ENV{'PATH'} untainted
system($command);=20
Executing this script should then startup up a connection to AT&T =
WorldNet Service. Give the script a permission of 4755 (chmod 4755 =
/usr/sbin/ppp-on) if you want to be able to startup the internet =
connection from accounts other than root.
This script is a bit fancy in that it writes to the file =
/etc/resolv.conf the domain name and the nameserver numbers. This can be =
handy if you have several similar scripts for different ISP's, each of =
which has its own domain name and nameservers. If perl is not available, =
or you want a simpler script, edit /etc/resolv.conf to contain
domain worldnet.att.net
nameserver 204.127.160.1
nameserver 204.127.129.1
nameserver 204.127.129.2=20
and use the following the following script startup PPP (replacing the =
login name and phone number with appropriate values.)
/usr/sbin/pppd name "999999999 at worldnet.att.net" -d connect \
'/usr/sbin/chat -t 45 -v ABORT BUSY "" ATDT1111111 CONNECT ""' \
/dev/modem 57600 noipdefault modem defaultroute crtscts=20
3.. Optionally, one may optionally add a script to disconnect ppp. The =
following is an example of /usr/sbin/ppp-off
#!/bin/sh
# ppp-down - simply kills the ppp-daemon
kill `ps -a | grep pppd | grep -v grep | cut -b 1-6`=20
http://www.wurd.com/eng/setup/dialers/linux_kppp.htm
http://www.wurd.com/eng/setup/dialers/linux.html
Thanks
Ron Maggio
------=_NextPart_000_0007_01C12BC1.5006F400
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#fffbf0>
<DIV><FONT face=3DArial size=3D2>Hi guys.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I need your help. I installed Mandrake =
8.0 and gave=20
it the info it needed to get on line, but the following links say I have =
to add=20
the following info for a logon script. Please tell me its not so. I =
thought=20
Mandrake was a gas-N-go (OS) now I'm stuck!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Worldnet uses CHAP for authentication =
and states=20
that the following has to be added to a login script argument in order =
to=20
logon.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If someone could look at the links =
below and tell=20
me in newbie terms just what do I need to do and where to type it in.=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I think I know where to type it in but =
I want to do=20
it right the first time so it will work! </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Oh by the way Bob I changed the video =
card and=20
cd-rom so it installed. No problem! I did have to use a serial =
mouse=20
though.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<OL>
<LI>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif size=3D2>Add =
the following=20
line to the file </FONT><FONT face=3Darial,helvetica,san-serif=20
size=3D3><CODE>/etc/ppp/chap-secrets</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2>:</FONT></P>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif=20
size=3D3><CODE>999999999 at worldnet.att.net * "password" =
*</CODE></FONT></P>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif size=3D2>where =
</FONT><FONT=20
face=3Darial,helvetica,san-serif =
size=3D3><CODE>9999999999</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2> has been replaced by number =
on the=20
"Name" or "LoginName" line of your account information file, and =
</FONT><FONT=20
face=3Darial,helvetica,san-serif =
size=3D3><CODE>password</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2> is replaced the value on =
the "Password"=20
line. The quotation marks around the password are important to protect =
any=20
special characters that might appear in the password.</FONT></P>
<LI>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif =
size=3D2>Create, the=20
following script, substituting the proper values for </FONT><FONT=20
face=3Darial,helvetica,san-serif =
size=3D3><CODE>$NAME</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2> and </FONT><FONT=20
face=3Darial,helvetica,san-serif =
size=3D3><CODE>$PHONE</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2>. I have given my script the =
name=20
</FONT><FONT face=3Darial,helvetica,san-serif=20
size=3D3><CODE>/usr/sbin/ppp-on</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2>.</FONT></P>
<DIV align=3Dleft><PRE><FONT face=3Darial,helvetica,san-serif =
size=3D3><CODE>#!/usr/bin/perl
#
# Script to establish connection from a Linux system to
# worldnet via PPP.
#
$DOMAIN=3D"worldnet.att.net"; =20
$SEARCH=3D$DOMAIN;
$NAMESERVER1=3D"204.127.160.1"; =20
$NAMESERVER2=3D"204.127.129.1"; =20
$NAMESERVER3=3D"204.127.129.2"; =20
$NAME=3D"999999999\@worldnet.att.net";
$PHONE=3D"6213400"; # Cambridge, MA =20
$MODEM=3D"/dev/modem";
$resolv =3D '>/etc/resolv.conf';
open(CONF,$resolv)|| die "Cannot open file: $resolv.\n $! \n";
print CONF "\#resolv.conf - created by ".$ARGV."\n";
print CONF "domain ".$DOMAIN."\n";
print CONF "search ".$SEARCH."\n";
print CONF "nameserver ".$NAMESERVER1."\n";
print CONF "nameserver ".$NAMESERVER2."\n";
print CONF "nameserver ".$NAMESERVER3."\n";
$command=3D"/usr/sbin/pppd name \"".$NAME."\"".
" -d connect \'/usr/sbin/chat -t 45 -v ABORT BUSY \"\" ATDT".
$PHONE." CONNECT \"\"\' ".$MODEM.
" 57600 noipdefault modem defaultroute crtscts";
$ENV{'PATH'} =3D ''; # Make $ENV{'PATH'} untainted
system($command);</CODE> </FONT></PRE></DIV>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif =
size=3D2>Executing this=20
script should then startup up a connection to AT&T WorldNet =
Service. Give=20
the script a permission of 4755 (chmod 4755 /usr/sbin/ppp-on) if you =
want to=20
be able to startup the internet connection from accounts other than=20
root.</FONT></P>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif size=3D2>This =
script is a bit=20
fancy in that it writes to the file </FONT><FONT=20
face=3Darial,helvetica,san-serif=20
size=3D3><CODE>/etc/resolv.conf</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2> the domain name and the =
nameserver=20
numbers. This can be handy if you have several similar scripts for =
different=20
ISP's, each of which has its own domain name and nameservers. If perl =
is not=20
available, or you want a simpler script, edit </FONT><FONT=20
face=3Darial,helvetica,san-serif=20
size=3D3><CODE>/etc/resolv.conf</CODE></FONT><FONT=20
face=3Darial,helvetica,san-serif size=3D2> to contain</FONT></P>
<DIV align=3Dleft><PRE><FONT face=3Darial,helvetica,san-serif =
size=3D3><CODE>domain worldnet.att.net
nameserver 204.127.160.1
nameserver 204.127.129.1
nameserver 204.127.129.2</CODE> </FONT></PRE></DIV>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif size=3D2>and =
use the=20
following the following script startup PPP (replacing the login name =
and phone=20
number with appropriate values.)</FONT></P>
<DIV align=3Dleft><PRE><FONT face=3Darial,helvetica,san-serif =
size=3D3><CODE>/usr/sbin/pppd name "999999999 at worldnet.att.net" -d =
connect \
'/usr/sbin/chat -t 45 -v ABORT BUSY "" ATDT1111111 CONNECT ""' \
/dev/modem 57600 noipdefault modem defaultroute crtscts=20
</CODE></FONT></PRE></DIV>
<LI>
<P align=3Dleft><FONT face=3Darial,helvetica,san-serif =
size=3D2>Optionally, one may=20
optionally add a script to disconnect ppp. The following is an example =
of=20
</FONT><FONT face=3Darial,helvetica,san-serif=20
size=3D3><CODE>/usr/sbin/ppp-off</CODE></FONT></P>
<DIV align=3Dleft><PRE><FONT face=3Darial,helvetica,san-serif =
size=3D3><CODE>#!/bin/sh
# ppp-down - simply kills the ppp-daemon
kill `ps -a | grep pppd | grep -v grep | cut -b 1-6`=20
</CODE></FONT></PRE></DIV></LI></OL>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://www.wurd.com/eng/setup/dialers/linux_kppp.htm">http://www.=
wurd.com/eng/setup/dialers/linux_kppp.htm</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://www.wurd.com/eng/setup/dialers/linux.html">http://www.wurd=
.com/eng/setup/dialers/linux.html</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Ron Maggio</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0007_01C12BC1.5006F400--
More information about the nflug
mailing list