Dial-up in Linux, how do I adapt a script to run?

wjsulliv

Senior member
May 29, 2001
970
0
0
Ok I'm a newbie, so please explain your answer...

Problem-
My college has a dial-up ISP. For windows it requires that I use the dial-up networking setup, and that I specify a script that I can download from the website. DPO_PPP.scp. They do not support Linux dial-up at all. I can successfully dial-up using a terminal procedure and manually enter the username/login and password, but can't use an internet browser when I do that. Is there a way to make this work so I can browse the net??

The contents of the script are printed below (as can be viewed in notepad):

proc main

waitfor "sername:"
transmit $USERID
transmit "^M"

waitfor "assword:"
transmit $PASSWORD
transmit "^M"

waitfor ">"
transmit "ppp"
transmit "^M"

endproc

edit:
I am running Mandrake 8.1. With a USR Pro Performance Hardware modem
 

freebsddude

Senior member
Jan 31, 2002
298
0
0
Not sure, try this link.

Please provide more details regarding your Linux, there are tens of distros.
You will get quicker answers if you provide your OS version, etc. etc.
 

wjsulliv

Senior member
May 29, 2001
970
0
0
I am running Mandrake 8.1 with a USR CP5610 Pro Performance Hardware Modem.

What I really need to know is how I would transfer a windows login script to a linux login script? Or how I could configure the dialing program to run something similar to the above so that I can get web access.
 

freebsddude

Senior member
Jan 31, 2002
298
0
0
AFAIK, there is no such thing as a Linux dialup. The file that you are indicating tells me that they support PPP, you possibly need to follow the instructions for it, which should work.

 

stirling

Member
Oct 29, 2001
127
0
0
Just give wvdial a try. It will probably take care of everything for you. (except resolv.conf) At least the username/password parts. Not sure about the third part ('wait for > transmit ppp'). Either that or kppp in kde or whatever-it-is in gnome. In kppp you can add that 'wait for >' line in one of the dialog boxes if you need to. Or you can tell it to run your script as is.
 

wjsulliv

Senior member
May 29, 2001
970
0
0
Update:

Using terminal style login, I can login fine. Then I entered ppp (just guessed, since I thought that is what the script would do). At that point I can enter the 'shell' and ping the host IP address, but I can't access anything else. I.e. telnet to my school email, or internet access.

Any ideas?

 

stirling

Member
Oct 29, 2001
127
0
0
Does 'ifconfig' tell you the ppp0 is configured with an IP?
Do you have a 'nameserver xxx.xxx.xxx.xxx' line in /etc/resolv.conf?
 

wjsulliv

Senior member
May 29, 2001
970
0
0
In the /etc/resolv.conf I have two entries nameserver xxx.xxx.x.xx

I can find the other file but can't read anything in it (its compiled code).
 

stirling

Member
Oct 29, 2001
127
0
0
1. 'ifconfig' is a program. I meant that you run it. :)

2. And xxx.xxx.xxx.xxx isn't literally 'xxx.xxx.xxx.xxx' but the IP of your nameserver, right? And isn't commented out?

3. Since you're using kppp, it should handle the nameserver stuff for you. I don't know how it works its magic, though.

4. I'm all command line, so I can't help you find where to tell it to run the script. From what I remember it's in one of the top right tabs. Click around enough in the dialog boxes and you'll find it.

5. FWIW I think it's a name resolution problem. After you connect via terminal, try to ping a known good IP address and then ping the matching hostname. And run ifconfig.