LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-27-2005, 01:26 AM   #1
GenesisX
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Rep: Reputation: 0
56k dialup in console mode


Hello. I'm relatively new to connecting to the Internet over Linux, as this is the first day I've ever connected to the Internet from Linux. I recently bought a 56k serial modem so that I could connect the Internet from Linux. It works perfectly to get me there. I made my connecting with KPPP. Now I would like to know how I can connect to the internet from console mode over the 56k dialup connection to my ISP. Thanks.
 
Old 08-27-2005, 02:29 AM   #2
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
You should use pppd and chat scripts to connect. Here's my modified setup:

File: /etc/ppp/peers/isp
Code:
defaultroute usepeerdns
modem /dev/ttyS0 115200 crtscts
connect '/usr/sbin/chat -v -s -f /etc/ppp/peers/isp.chat' noauth asyncmap 0
File: /etc/ppp/peers/isp.chat
Code:
TIMEOUT 60
ABORT ERROR
ABORT BUSY
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
"" "AT%C0L2"
OK "AT%T21,13,1 %T21,2f,d"
OK "ATDW053"
TIMEOUT 75
CONNECT ""
ogin: <your login>
ssword: "\q<very secret password>"
If you know you need to tweak some modem init strings, this is done in the 6 and 7 lines and the actual number is sent to the modem is in 8'th line (AT - attention D - dial W - wait for the dialtone 053 - the number).

Try to dial your ISP using minicom or something like that, if you can log in using your login and password and then the terminal starts to be filled by symbols, this setup will suffice.
To dial, use
Code:
/usr/sbin/pppd call isp
isp - the name of the file in /etc/ppp/peers/

man pppd and man chat would be of great help.
 
Old 08-27-2005, 01:48 PM   #3
GenesisX
LQ Newbie
 
Registered: Aug 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I tried that and it says there's an error in the first lines of both the script files
 
Old 08-27-2005, 11:51 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
use wvdial
set it up with
touch /etc/wvdial.conf &&
wvdialconf /etc/wvdial.conf

then just add phone number username and passwd to /etc/wvdial.conf
to dialup type
wvdial
you might have to dialout as root or use sudo
 
Old 08-28-2005, 03:44 AM   #5
rtg
Member
 
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Blog Entries: 3

Rep: Reputation: 19
Actually the 'isp' file is something like set of options that are parsed by ppp daemon on startup and the chat script (isp.chat) is a dialogue which is performed with your modem (/dev/ttyS0 in that case, if you hve your modem hooked up to anither port, you should change it (/dev/modem is usually set up as a link to the port depending on your distribution). None of them should be processed by shell and they are really working examples taken from my own /etc/ppp dir.
The /etc/ppp/peers directory should have no world rwx permissions .

What errors do you get?
 
  


Reply



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
what is the best dialup tool for a 56k modem in mandrake 9.2 lurch Linux - Newbie 1 07-01-2004 05:34 PM
Mandrake 9.2's boot process entirely done in console mode before loading in X mode... mishmash Mandriva 6 02-17-2004 09:19 PM
dialup+isdn+56k altus Linux - Networking 0 08-14-2003 07:10 AM
How would I dialup using pcmcia 56k? (Includes side question about X configing) GuPH Slackware 12 07-28-2003 12:53 PM
console ppp for dialup connection drand Linux - Software 3 06-29-2003 04:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:24 PM.

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
Open Source Consulting | Domain Registration