LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2007, 05:54 PM   #1
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 168

Rep: Reputation: 15
Setting up Dial Up using PPP Script


Hi,

I'm trying to test a dial up connection which uses PPP script to log in. I have it setup in Windows but I am unable to get it to work under Linux. I have openSuSe 10.2 running. The original script appears as following:

proc main
delay 5 transmit "^M"
waitfor "Username:"
transmit $USERID, raw
transmit "^M"
waitfor "Password:"
transmit $PASSWORD, raw
transmit "^M"
waitfor ">"
transmit "ppp^M"
endproc

I've used KPPP to manually setup a new account with the specified phone number to dial, the authentication is set to Script-based and the login appears as follows:

Pause 5
Send "^M"
Expect "Username:"
Send $USERID, raw
Send "^M"
Expect "Password:"
Send $PASSWORD, raw
Send "^M"
Expect">"
Send "ppp^M"

As far as I know the proc is not necessary here.

Then I go under the Modems tab and try to set a new modem. In YaST I see the Modem configuration which displays the device as: Mitac 82801 DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller

The modem device is listed as: /dev/ttySL0, but in KPPP, when I set the modem device to that, then try to query modem, I get "Unable to create modem lock file." If I do try to connect with that setting I get an error message:

"kppp can not find:
/dev/ttySL0

Please make sure you have setup your modem device properly and/or adjust the location of the modem device on the modem tab of the setup dialog."

Is there something I am missing? Any help would be appreciated. Thank you!
 
Old 07-01-2007, 07:33 PM   #2
raider_jo
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 3

Rep: Reputation: 0
Thumbs up Thanks

thx that's really kinda FAQ
 
Old 07-03-2007, 02:59 PM   #3
niteshadw
Member
 
Registered: Sep 2002
Distribution: CentOS
Posts: 168

Original Poster
Rep: Reputation: 15
Here is what I have managed to get done thus far. It might be helpful to some.

I made a symbolic link from ttySL0 to modem as I found that YaST has the modem identified and setup.

ln -s /dev/ttySL0 /dev/modem

Then in kppp I used the modem device as /dev/modem.

Next, I changed the group of kppp and changed the permissions.

su
cd /opt/kde3/bin
chgrp -v dialout kppp | ls -l kppp
chmod u+rws
chmod g+rx
chmod o=-
ls -l kppp

It should now read as:
-rwsr-x--- root dialout ............ kppp

Now, the "Unable to create modem lock file." is no longer applicable, but this time I get "The Modem Is Busy". I am not sure what is the cause of this since I believe YaST has assigned the appropriate port to the modem, but I'm not sure what could be causing this. Would anyone have any suggestions?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up DialUp PPP with Script Connection niteshadw Linux - Networking 0 05-20-2007 07:52 PM
Dial-In PPP dial-in server/ Cable-modem & LAN / Setting up "dannyboyOnline" dannyboy259 Linux - Networking 2 01-12-2007 01:40 AM
Kppp how to set in Dial up Script for PPP Keynote Red Hat 7 03-16-2004 05:02 PM
Setting-up dial-in & dial-up server in same machine sebastianjustin Linux - Networking 1 09-20-2003 03:35 PM
setting up a dial-in ppp server bobthebat Linux - Networking 1 04-09-2001 03:17 AM


All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration