LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   56k dialup in console mode (https://www.linuxquestions.org/questions/linux-newbie-8/56k-dialup-in-console-mode-357431/)

GenesisX 08-27-2005 01:26 AM

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.

rtg 08-27-2005 02:29 AM

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.

GenesisX 08-27-2005 01:48 PM

I tried that and it says there's an error in the first lines of both the script files :(

foo_bar_foo 08-27-2005 11:51 PM

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

rtg 08-28-2005 03:44 AM

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?


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