Re: [S.u.S.E. Linux] chat file to connect with ATT Worldnet?
<PRE> On 31 Mar, William G. Madsen wrote:
On Tue, 31 Mar 98 06:37:00 +0000, you wrote:
I am using worldnet. When I joined, there was an entry on the wurd site (don't remember the link right now) that provided a perl script written by an ATT employee.
<SNIP>--------
Yes, I would appreciate it very much if you would Email the perl script to me. I think it is exactly what I need. Thanks.
billmadsen@worldnet.att.net Bill, etal Here is a copy of my ppp script (/usr/sbin/ppp-on - it has also been called ppp-worldnet!!). I have also attached the html page that all of this came from - courtesy of ATT. - some good notes. Special thanks to Stephen A. Wood - I tried to contact him at ATT a while ago, but no such luck!! As far as I'm concerned, he deserves a big thank you.
#!/usr/bin/perl # # Script to establish connection from a Linux system to worldnet via PPP. # # Look at WORLDNET\PROGRAM\REG.INI(WORLDNET\DIALER\REG.INI and ATT.SR # under Worldnet version 1) to get the following settings # $DOMAIN="worldnet.att.net"; $SEARCH=$DOMAIN; $NAMESERVER1="204.127.129.1"; $NAMESERVER2="204.127.160.1"; $NAMESERVER3="204.127.129.2"; $NAME="<userid>\@worldnet.att.net"; $PHONE="1,3025711000"; # Philadelphia, PA $MODEM="/dev/modem"; $resolv = '>/etc/resolv.conf'; open(CONF,$resolv)|| die "Cannot open file: $resolv.\n $! \n"; print CONF "\#resolv.conf - created automatically by ".$ARGV[0]."\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="/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'} = ''; # Make $ENV{'PATH'} untainted system($command); The lines 8-12, and 17-26 are commented out on my SuSE machine and the necesary data put in resolv.conf permanently - documentation recommended against frequent updates because of the way SuSE sets things up. If its not clear what I've done here, email me and I'll try to explain. The html doc has a good explanation though. Have a good day, everyone. -- Dave E. -Linux 2.0.30 -SuSE 5.0-- Linux - the choice of a GNU Generation--- No more Blue screen of Death - and no regrets - Goodbye Microsoft! ----------------------Cyrix 586/100-32meg-2g----------------------- SHAMELESS Plug:-- dedwards@technologist.com 23yr of MF exp. avail. for home-based outsourcing contracts. ------------------------------------------------------------------- </PRE> <ADDRESS>Title: <STRONG>Linux Configuration</STRONG></ADDRESS> <div align="left"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="center" valign="top" rowspan="2"><div align="left"> <table border="0" cellpadding="0" cellspacing="3" width="84"> <tr> <td align="center" valign="top"><a href="http://204.127.237.208/wurd/"><img src="../contest/WURDLOGO3.gif" align="middle" border="0" width="84" height="50"></a></td> </tr> <tr> <td> </td> </tr> <tr> <td><a href="../labroom/magazines.htm"><img src="../working/img_f4dec60.jpg" alt="Magazines" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../labroom/newsgroups.htm"><img src="../working/img_f4df704.jpg" alt="News Groups" border="0" width="88" height="31"></a></td> </tr> <tr> <td> </td> </tr> <tr> <td><a href="../emailclients/emailclients.htm"><img src="../working/img_f4df021.jpg" alt="Mail Clients" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../newsreaders/newsreaders.htm"><img src="../working/img_f4dfa25.jpg" alt="News Clients" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../browsers/webbrowsers.htm"><img src="../working/img_f4dfde7.jpg" alt="Web Clients" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../chatclients/chatclients.htm"><img src="../working/img_f4e0649.jpg" alt="Chat Clients" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../onlineservices/onlineservices.htm"><img src="../working/img_f4e096a.jpg" alt="Online Srvcs" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="connectivity.htm"><img src="../working/img_f4e096b.jpg" alt="Connectivity" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../misc/telnetclients.htm"><img src="../working/img_f4e0d2c.jpg" alt="Telnet Clients" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../misc/ftpclients.htm"><img src="../working/img_f4e104d.jpg" alt="FTP Clients" border="0" width="88" height="31"></a></td> </tr> <tr> <td> </td> </tr> <tr> <td><a href="../labroom/support.htm"><img src="../working/img_f4df342.jpg" alt="Site Support" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../labroom/chat.htm"><img src="../working/img_f4dfde6.jpg" alt="WURD Chat" border="0" width="88" height="31"></a></td> </tr> <tr> <td><a href="../misc/faq.htm"><img src="../working/img_f4e0288.jpg" alt="FAQ" border="0" width="88" height="31"></a></td> </tr> <tr> <td> </td> </tr> <tr> <td> <p align="center"><font size="2"><strong>This web site<br> designed by a<br> member of the </strong></font></p> <p align="center"><a href="http://www.hwg.org"><img src="../images/lo-025.gif" border="0" width="64" height="90"></a></p> </td> </tr> </table> </div></td> <td align="center" valign="top"> <blockquote> <div align="left"> <table border="0" cellpadding="5" cellspacing="0" width="90%" bgcolor="#4D9D9D" bordercolor="#000000"> <tr> <td align="center"><font color="#000000" size="5" face="Arial"><strong>WorldNet User's Reference Desk</strong></font></td> </tr> </table> </div> </blockquote> </td> </tr> <tr> <td align="center" valign="top"> <blockquote> <h2 align="left"><font color="#0000A0">Connecting</font> <a href="http://www.linux.org">Linux</a> <font color="#0000A0">and</font> <a href="http://www.att.com/worldnet/">AT&T Worldnet Services</a></h2> <p align="left">AT&T's Worldnet Service uses standard PPP (Point-to-Point Protocol) with CHAP (Challange Handshake Authentication Protocol). While Windows 3.1x or Windows 95 is required to register a new account, other operating systems that support PPP with CHAP can be used once an account is registered. </p> <p align="left">Unless you have already configured your Linux system to use PPP to another Internet Service Provider, connecting to Worldnet from Linux will take a little bit of work (recompilling the Linux kernel). Here are a few <a href="whylinux.html">here a few reasons why one might want to do this bit of work</a>. </p> <p align="left">If you have used PPP to connect to other ISP's from Linux, and pretty much know what you are doing try reading the <a href="linux.html#expert">Expert Notes</a> below. </p> <h2 align="left"><font size="4">The Instructions</font></h2> <ol> <li> <p align="left"><font size="3">If you have not already done so, activate your Worldnet account using the installation disks. </font></p> </li> <li> <p align="left"><font size="3">If you have already succesfully installed and used PPP with other ISP's, skip to step 5. </font></p> </li> <li> <p align="left"><font size="3">Get a copy of </font><a href="ftp://ftp.cc.gatech.edu/pub/linux/system/Network/serial/ppp/ppp-2.1.2d.tar.gz"><font size="3">ppp-2.1.2d.tar</font></a><font size="3"> if your kernel is version 1.2.x, or </font><a href="ftp://ftp.cc.gatech.edu/pub/linux/system/Network/serial/ppp/ppp-2.2.0f.tar.gz"><font size="3">ppp-2.2.0f.tar</font></a><font size="3"> for kernels >= 1.3.x. </font></p> </li> <li> <p align="left"><font size="3">Follow the directions contained within the ppp package for rebuilding your kernel with PPP support and for installing pppd and chat. </font></p> </li> <li> <p align="left"><font size="3">Get a copy of the file <code>WORLDNET\PROGRAM\REG.INI</code> (<code>WORLDNET\DIALER\REG.INI</code> for Worldnet version 1) and use the settings in the scripts below. </font></p> </li> <li> <p align="left"><font size="3">Add the following line to the file <tt>/etc/ppp/chap-secrets</tt> </font></p> <p align="left"><font size="3"><code>999999999@worldnet.att.net * "password" * </code></font></p> <p align="left"><font size="3">where <code>9999999999</code> has been replace by number on the "Name" line of REG.INI and <code>password</code> 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. </font></p> </li> <li> <p align="left"><font size="3">Create, the following script, substituting the proper values for <tt>$NAME</tt> and <tt>$PHONE</tt>. I have given my script the name <code>/usr/sbin/ppp-on</code>. </font></p> <div align="left"> <pre><font size="2"><code>#!/usr/bin/perl # # Script to establish connection from a Linux system to worldnet via PPP. # # Look at WORLDNET\PROGRAM\REG.INI(WORLDNET\DIALER\REG.INI and ATT.SR # under Worldnet version 1)to get the following settings # $DOMAIN="worldnet.att.net"; $SEARCH=$DOMAIN; $NAMESERVER1="204.127.160.1"; $NAMESERVER2="204.127.129.1"; $NAMESERVER3="204.127.129.2"; $NAME="999999999\@worldnet.att.net"; $PHONE="6213400"; # Cambridge, MA $MODEM="/dev/modem"; $resolv = '>/etc/resolv.conf'; open(CONF,$resolv)|| die "Cannot open file: $resolv.\n $! \n"; print CONF "\#resolv.conf - created automatically by ".$ARGV[0]."\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="/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'} = ''; # Make $ENV{'PATH'} untainted system($command);</code> </font></pre> </div> <p align="left"><font size="3">Executing this script should then startup up a connection to worldnet. 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. </font></p> <p align="left"><font size="3">This script is a bit fancy in that it writes to the file <code>/etc/resolv.conf</code> 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 <code>/etc/resolv.conf</code> to contain </font></p> <div align="left"> <pre><font size="3"><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="left"><font size="2">and use the following the following script startup PPP (replacing the login name and phone number with appropriate values.) </font></p> <div align="left"> <pre><font size="3"><code>/usr/sbin/pppd name "999999999@worldnet.att.net" -d connect \ '/usr/sbin/chat -t 45 -v ABORT BUSY "" ATDT1111111 CONNECT ""' \ /dev/modem 57600 noipdefault modem defaultroute crtscts </code></font></pre> </div></li> <li> <p align="left"><font size="3">Optionally, one may optionally add a script to disconect ppp. The following is an example of <tt>/usr/sbin/ppp-off</tt> </font></p> <div align="left"> <pre><font size="3"><code>#!/bin/sh # ppp-down - simply kills the ppp-daemon kill `ps -a | grep pppd | grep -v grep | cut -b 1-6` </code></font></pre> </div></li> </ol> <h2 align="left"><font size="4">Mail and News</font></h2> <p align="left"><font size="3">The values of NNTP_HOST, SMTP_HOST, POP_SERVER, POP_PASSWORD, and EMAIL_ADDR can be extracted from <code>WORLDNET\PROGRAM\REG.INI</code> and used in whatever pop-mail and news software you choose. The Linux version Netscape 2.0 or Netscape 3.0 handle both mail and news fine. </font></p> <p align="left"><font size="3">Ed Kelley's </font><a href="../browsers/netscape.htm"><font size="3">A Visual Guide to configuring Netscape 3.0</font></a><font size="3"> under Windows 95 may provide some guidance towards setting up Netscape 3.0 under Linux. </font></p> <h2 align="left"><font size="4">PPP utilities and References</font></h2> <p align="left"><font size="3">A number of </font><a href="ftp://ftp.cc.gatech.edu/pub/linux/system/Network/serial/ppp/INDEX.html"><font size="3">PPP utilities</font></a><font size="3"> are available to enhance the use of PPP on Linux. For example, I use </font><a href="ftp://ftp.cc.gatech.edu/pub/linux/system/Network/serial/ppp/tkppp-1.4-alpha.tar.gz"><font size="3">tkppp</font></a><font size="3"> to give a convenient GUI to start and stop my Worldnet connection as well as to keep track of hours of usage. </font></p> <p align="left"><font size="3">Additional information on networking and PPP under Linux can be found in </font><a href="http://www.uni-tuebingen.de/zdv/projekte/linux/books/nag/nag.html"><font size="3">The Linux Network Administrators' Guide</font></a><font size="3"> and the </font><a href="http://sunsite.unc.edu/mdw/HOWTO/PPP-HOWTO.html"><font size="3">Linux PPP HOWTO</font></a><font size="3">. </font></p> <p align="left"><font size="3">The newsgroups </font><a href="news:linux.dev.ppp"><font size="3">linux.dev.ppp</font></a><font size="3"> and </font><a href="news:comp.os.linux.networking"><font size="3">comp.os.linux.networking</font></a><font size="3"> can also be useful. </font></p> <h2 align="left"><a name="expert"><font size="4">Expert notes</font></a></h2> <p align="left"><font size="3">If you are already using PPP to other ISP's there are essentially just two possibly new things that need to be done. First, since Worldnet uses CHAP, you must put your username and password (as found in REG.INI) into the file <tt>/etc/ppp/chap-secrets</tt> like so: <code>999999999@worldnet.att.net * "password" * </code></font></p> <p align="left"><font size="3">Secondly, the chat script should only go as far as getting the phone dialed in. CHAP will take care of passing username and password. For example: </font></p> <div align="left"> <pre><font size="4"><code>usr/sbin/pppd name "999999999@worldnet.att.net" -d connect '/usr/sbin/chat -t 45 -v ABORT BUSY "" ATDTthephonenumber CONNECT ""' \ /dev/modem 57600 noipdefault debug modem defaultroute crtscts </code></font></pre> </div> <h2 align="left"><font size="4">Additional Notes</font></h2> <p align="left"><font size="3">Some people connecting to Worldnet with Linux report that it is necessary to add the flag <code>+chap</code> to the pppd command line. However, in most cases, things will not work at all if this flag is used</font></p> <div align="left"> <address> <font size="3">Last Update 22 September 1996 </font> </address> </div> <p align="left"><font size="3">If you try these instructions, successfully or unsuccessfully, please send me a note at saw@worldnet.att.net.<br> © 1996, Stephen A. Wood </font></p> <p> </p> <div align="left"> <table border="0" cellpadding="10" width="90%"> <tr> <td valign="top"><font size="2"><strong>Questions or comments regarding this web site should be directed to the </strong></font><a href="mailto:wurd@worldnet.att.net"><font size="2"><strong>WURD Master</strong></font></a><font size="2"><strong>. Please do not write to us asking for technical support. If you need technical assistance and are a WorldNet member, post a message in our </strong></font><a href="news:worldnet.users.wurd"><font size="2"><strong>newsgroup</strong></font></a><font size="2"><strong>. If you have anything you would like to submit to the WURD for publication, please use the same email address.</strong></font> <p><font size="2">This website is provided by AT&T WorldNet Service as a User's Solutions Website. AT&T does not approve, support, warrant, guarantee or otherwise endorse any information contained in this website nor any of the information linked to from this site. This website is maintained by the user's of AT&T WorldNet Service. Use at your own risk.</font></p> <p><font size="2">© Copyright 1996. AT&T Corp. All rights reserved. AT&T, AT&T and Globe Design, and AT&T WorldNet are service marks of AT&T. The other marks which appear on this Web Site may be marks of third parties that are not affiliated with AT&T. AT&T and its affiliates do not control or endorse the content of third party Web Sites.</font></p> </td> </tr> </table> </div> </blockquote> </td> </tr> </table> </div>
On Wed, 1 Apr 1998 00:23:34 -0500 (EST), you wrote:
Bill, etal Here is a copy of my ppp script (/usr/sbin/ppp-on - it has also been called ppp-worldnet!!). I have also attached the html page that all of this came from - courtesy of ATT. - some good notes. Special thanks to Stephen A. Wood - I tried to contact him at ATT a while ago, but no such luck!! As far as I'm concerned, he deserves a big thank you.
A big thank you to dedwards also. Worked like a charm. Bill Madsen in St. Louis -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (2)
-
billmadsen@worldnet.att.net
-
dedwards@technologist.com