pkg://pppsetup-1.66.tar.gz:13959/
pppsetup-1.66/pppsetup-1.66.README
downloads
==============================================================================
PPPsetup.v.1.66 by Kent Robotti <robotti@pop.erols.com> (12/8/97)
==============================================================================
PPPsetup is a bash shell script to help you in creating a chat script, for
establising a PPP connection to a internet service provider.
There's support in pppsetup for creating pap, chap, ms-chap, and callback
scripts, as well as the standard chat scripts, i have no experience with
callback or ms-chap, so that part of pppsetup is likely to be incorrect
or less than correct, you should get a recent version off chat and pppd
for callback and or ms-chap support, ppp-2.3.2 or later.
MS-CHAP is commonly used by windows NT RAS servers...
To establish a PPP connection, you need to have networking and
ppp support compiled in your kernel or as a module.
~# dmesg | grep -i ppp <-To see if you have ppp compiled in the kernel.)
PPP: version 2.?.? <-You should see this.)
Or if you have ppp compiled as a module, you should have this.
/lib/modules/kernel-version/net/ppp.o
/lib/modules/kernel-version/net/slhc.o
~# depmod -a
# modprobe ppp
You also need the programs 'pppd' & 'chat' on your system.
These will be part of any linux distribution in the ppp-2.?.? package.
~# man pppd
# man chat
You also need the 'dialog' program, this is usually in /bin/dialog if
it's installed.
You can get a compiled elf version of 'dialog' from:
ftp://wauug.erols.com/pub/people/kent-robotti/doslinux/index.html
ftp://wauug.erols.com/pub/people/kent-robotti
dialog-0.9a.ELF.tar.gz
You need these programs on your system.
# hostname
# ifconfig
# cut
# cat
# tail
# kill
# killall
# grep
# pppd
# chat
# dialog
# bash
# syslogd
These are standard programs, you should have them on your system.
You can put pppsetup in /usr/sbin usr/bin etc.
There's a script called ppp-off that comes with this package, put it
in /usr/sbin etc.
There's also a ppp-compile.txt included with pppsetup,
it gives you guidance in compiling ppp-2.?.?.
If you have 'tail' & 'syslogd' installed and running, you'll be able to
hear and see the ppp connection as it's being made.
Also if you have syslogd installed and running, you should have a
/etc/syslog.conf file.
The first time you run pppsetup, it will add this to your /etc/syslog.conf
file, if the file doesn't exist it will be created, /etc/syslog.conf will
be useless unless you have syslogd installed and running.
daemon,local2.info /var/log/pppd.chat.log
daemon,local2.debug /var/log/pppd.debug.log
~# pppsetup
Just answer the questions and take a look at /etc/ppp/pppsetup.txt when
you're done.
~# ppp-go
PPP-2.3.0 and later has a demand dialing option, you can use it this way,
the options file for demand dialing will be /etc/ppp/options.demand.
Start ppp-go -d, pppd will just stay in the background until you try
to connect to some site, then pppd will dial your service provider and
make the ppp connection.
~# ppp-go -d <-Start pppd this way for demand dialing.)
# <-It should drop you back to #.)
~# ftp ftp.funet.fi <-Pppd will start dialing.)
# lynx http://www.foo.com etc. <-Pppd will start dialing.)
# fetchmail <-Pppd will start dialing etc.)
# ppp-off -d <-To end the ppp0 demand connection.)
# ppp-off ppp1 -d <-If it were on ppp1 etc.)
~# ppp-go <-Start pppd this way for no demand dialing.)
# ppp-off <-To end the ppp0 connection.)
# ppp-off ppp1 <-If it were on ppp1 etc.)
Use 'ppp-off' to terminate pppd, use 'ppp-off -d' to terminate and
restart pppd in demand dialing mode.
There's also a script called 'if-ppp' included with pppsetup, it will
tell you if you're connected and the speed at which you connected.
~# if-ppp
YES! you're connected.
chat: Oct 17 CARRIER 28800 etc.
If you want to remove the contents of /var/log/pppd.chat.log and
pppd.debug.log, because they're getting to big.
~# ppp-go -c
If you want to remove the contents of the /var/log/messages,
& debug files.
~# ppp-go -cc
If you don't have or want syslogd installed and running, you won't be able
to see the ppp connection as it's being made, so you'll just have to start
ppp-go this way.
~# ppp-go -s 50 <-No output to terminal, exit in 50 seconds etc.)
Now see if you're connected.
~# ftp lynx etc.
# ping foo.boo.com <-Ping your internet service provider.)
# whois or fwhois foo.boo.com
Or from X windows in a xterm...
# startx
# ppp-go
# netscape etc.
If you don't want the connection output printed to the terminal, or your
sure you have a working connection and don't want the connection printed
to the terminal anymore, you can start ppp-go this way.
~# ppp-go -s Nseconds
# ppp-go -s 50 <-Don't output to terminal, exit in 50 seconds etc.)
# ppp-go -h <-For help.)
There's a option in the pppsetup script for speeds higher than
115200 for the modem, but usually pppd only supports speeds as
high as 115200, but ppp-2.3.2.patched below is patched to allow
these higher speeds.
=============================================================================
You can get the latest version of ppp from the home site of ppp.
ftp://cs.anu.edu.au/pub/software/ppp <-Home site, check here first,)
ppp-2.3.2.tar.gz etc. if there's a ppp-2.3.3 etc.,
get it instead of ppp-2.3.2.
patched below.)
This is the complete source of ppp-2.3.2 with a patch applied to
support modem speeds higher than 115200 i.e. 230400 and 460800.
Chap_ms.c from ppp-2.3.2 is also fixed in ppp-2.3.2.patched.
ftp://wauug.erols.com/pub/people/kent-robotti
ppp-2.3.2.patched.tar.gz
=============================================================================
You don't really need the latest version of ppp, the one you have on your
system should be fine, but if you do get and compile the latest version
of ppp, you'll have to compile your kernel source in /usr/src/linux also,
or at least the ppp module part.
See the ppp-compile.txt for guidance in compiling ppp as a module.
You may also want to get and read these docs.
ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO "PPP-HOWTO"
ftp://sunsite.unc.edu/pub/Linux/docs/faqs/PPP-FAQ "PPP-FAQ"
End... (12-8-97)
==============================================================================