Dial your ISP with Linux
All files should only be edited and saved in Linux or UNIX, do NOT use notepad or any windows or dos editor because the format is different. if you need to do this is win, edit it in *nix, if you have 'mc' load it in there, if you see CTL-M's you know your in winweenie format :) you need a lil utility called dos2unix to correct its format if your an experienced nix user you wont, but if your experienced you wont be needing this guide either :)
You should also be logged in as root for all of the following.
Firstly you will need the latest ppp package obtainable here if your OS doesnt have it installed.
On RedHat type rpm -q ppp if you get a response you have it already
and can proceed to next step (Most distros do include the ppp package so you wont have to worry).
Now download these two scripts, they should both be placed in /usr/sbin
Now cd /usr/sbin and verify both the above files are there
once we have verified they are both there, we need to change the permission on them
so that only root can run it, we do this by running chmod 700 dialisp* chown root dialisp*
Now we need to edit dialisp and put your dialup login username in place
of "username", remembering to keep it within the inverted commas and then
edit dialisp-script and insert your ISP's dialup phone number,in place of ours (ATDT0198308007)
It's very important to remember that on many networks including ours because we provide services to many many many ISP's we have to differentiate who you are when you login, so we require you to use firstname.lastname@example.org, so if your name is noel, and you were a member of our retail arm VTI, your login username is not noel, it's email@example.com, it's important to remember this for the pap-secrets file as well in the next steps.
Note if the modem init fails replace the second modem init string with ATZ (the second string is
what starts as ATH0 and ends as S95=45
Now change to directory /etc/ppp
We need to create a file called pap-secrets
In this file we put 4 items each separated by a TAB not spaces. It is also advisable to keep the username and password within inverted commas.
The format is this:
"username" * "password" *
Once you save this file, we need to make sure prying eyes can't see your password so we type chmod 600 pap-secrets
It is now a good idea to write down your DNS server IP's, ppp in most cases will get and replace the nameserver=ip.number in /etc/resolv.conf with what it gets, however should this fail you will need to enter it in yourself or you'll have troubles.
To ensure your system knows that everything is there and in place, if using
bash or sh shell, simply gout and back in (again as root), or, if using tcsh
shell, type " rehash " , now your set, time to test your connection, as root
type dialisp at the prompt, your modem should start dialing and connect
you to the ISP.