I have a nice script that I found (redhat-ppp mailing list I think)
Worked for me the first time.
If you don't know what your script should look like then change the
settings for your modem in win95 to "Show terminal screen after dial" and
watch what goes on, Mine I saw:
login:
typed username and saw
Password:
Note that there was NOT a space after login: and there WAS after Password:
It would be a good idea to make sure that is how yours is or isn't.
----- pppsetup ----
#!/bin/sh
echo
echo "PPPSETUP "
echo
echo
echo
echo
echo " press [enter]"
read x
clear
if [ ! `whoami` = "root" ]; then
echo "You must be root to run this script."
exit 1
fi
while [ -z "$PHONENUM" ]
do
echo
echo "To begin setting up your PPP connection, I need to know a "
echo "few things. For starters, what is the phone number of your"
echo "Internet service provider?"
echo
echo "(Note: in the USA, use *70, [comma required!] to turn off call"
echo " waiting.)"
echo
echo -n "Phone number : "
read PHONENUM
if [ -z "$PHONENUM" ]; then
echo "You must enter a phone number! :)"
sleep 1
fi
done
if [ -e "/dev/modem" ]; then
echo
echo -n "Found your modem...("
echo -n `ls -l /dev/modem | cut -b56-80`
echo ")"
echo
DEVICE="/dev/modem"
else
while [ -z "$DEVICE" ]
do
echo
echo "Secondly, what is the name of your modem device?"
echo
echo " 1) /dev/cua0 (COM1: under DOS)"
echo " 2) /dev/cua1 (COM2: under DOS)"
echo " 3) /dev/cua2 (COM3: under DOS)"
echo " 4) /dev/cua3 (COM4: under DOS)"
echo
echo -n "Select device : "
read devnum
case $devnum in
1)
DEVICE="/dev/cua0"
;;
2)
DEVICE="/dev/cua1"
;;
3)
DEVICE="/dev/cua2"
;;
4)
DEVICE="/dev/cua3"
;;
*)
echo "Sorry, $devnum isn't a legal selection."
;;
esac
done
fi
while [ -z $BAUDRATE ]
do
echo
echo "What baud rate is your modem?"
echo
echo " 0)115200 (Lucky Sap )"
echo " 1) 57600 (Not bad )"
echo " 2) 38400 (Okay )"
echo " 3) 19200 (Better known as 14.4 )"
echo " 4) 9600 (Get a new modem )"
echo " 5) 2400 (Kill yourself )"
echo
echo -n "Baud rate : "
read baudnum
case $baudnum in
0)
BAUDRATE="115200"
;;
1)
BAUDRATE="57600"
;;
2)
BAUDRATE="38400"
;;
3)
BAUDRATE="19200"
;;
4)
BAUDRATE="9600"
;;
5)
BAUDRATE="2400"
;;
*)
echo "Sorry, $baudnum isn't a legal selection."
sleep 1
;;
esac
done
echo
echo "What is the IP address of your Internet provider's nameserver?"
echo
echo "Note: Your service provider's technical support can provide you"
echo "with this information."
echo
echo -n "Nameserver IP : "
read DNSIP
echo >> /etc/resolv.conf
echo "nameserver $DNSIP" >> /etc/resolv.conf
OLDDIR=`pwd`
cd $HOME
echo
echo "Now comes the tough part. :) I need to know what your"
echo "dialup system prints to your screen, and I need to know what"
echo "you respond with."
echo
echo "When you have no more prompts to define, enter *** on a line by itself"
echo "( End with '***')"
echo
echo "ABORT BUSY ABORT 'NO CARRIER' '' ATDT$PHONENUM" > .pppscript
while [ ! "$MESSAGE" = "***" -a ! "$YOUSAY" = "***" ]
do
echo -n "Dialup server says : "
read MESSAGE
if [ "$MESSAGE" = "***" ]; then
continue
fi
echo -n " ...and you say : "
read YOUSAY
if [ "$YOUSAY" = "***" ]; then
continue
fi
echo "$MESSAGE $YOUSAY" >> .pppscript
done
rm -f ppp-go
echo "#!/bin/sh" > ppp-go
echo "/usr/sbin/pppd connect '/usr/sbin/chat -f $HOME/.pppscript' defaultroute
$BAUDRATE $DEVICE &" >> ppp-go
chmod 755 ppp-go
cd $OLDDIR
echo
echo "To connect to your remote system, cd to your home directory ($HOME), and type:"
echo "./ppp-go"
echo
echo "Then wait 2 minutes or so. You should be able to use your Internet applications"
echo "without a problem. (Hopefully. ;)"
echo
echo "You should only have to run this procedure ounce unless something changes"
echo "with your provider or personal setup. To start PPP from here on out just"
echo "type from your home dir ppp-go"
--- End pppsetup ---
On Tue, 12 May 1998, William boulineau wrote:
>I want to thank everyone that responded to my delima, not getting connected.
>I have downloaded several help files, as recommended, and it seems I have
>everything setup correctly, but no connect. I have put in about 10 hours
>the last two days trying to get connected. I can't understand how easy it
>is to get the dial-up running in Win95, and apparentely not as easy with
>Linux. I envy you that have yours connected, this is my second bout with
>Linux, thought maybe it had gotten simple enough for me, but guess not.
>Thanks again, and I still hope that someone will come up with a setup that
>will allow us dummies get away from Win95 and use a real OS. See you in a
>year or so.-Bill
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.