LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cmd for connecting to internet? (https://www.linuxquestions.org/questions/slackware-14/cmd-for-connecting-to-internet-72597/)

BearClaw 07-14-2003 09:54 AM

Cmd for connecting to internet?
 
Would someone, please, tell me what the cmd is for connecting to the internet? I use an external-modem (ppp0). Slack-9.

I'm trying out blackbox and need to know the cmd to start ppp0.

Thanks alot, BC

fancypiper 07-14-2003 10:11 AM

Are you using wvdial? If so and if everything is configured correctly:

/sbin/ifup ppp0
/sbin/ifdown ppp0

These commands should connect and disconnect the modem.

To configure wvdial, command:

wvdialconf /etc/wvdial.conf

Edit the resulting /etc/wvdial.conf file with the proper dialup info and check your /etc/resolv.conf for the nameservers:

domain yourisp.com
nameserver 555.55.55.5555
nameserver 555.5.555.5

BearClaw 07-14-2003 10:17 AM

I'm using kppp. That's where I configured the connection. Would those cmd's work by modifying to kppp?

Thanks, BC

fancypiper 07-14-2003 10:25 AM

I have never had much luck with kppp.

# Modem and connection troubleshooting
Modem NHFs
Modem HOWTO
The kppp Handbook
Dial-up Networking Configuration Using KDE's Kppp
Troubleshooting ISP Connection Problems

BearClaw 07-14-2003 10:28 AM

Could I setup wvdial and it not messup my kppp setup?

TIA, BC

reclusivemonkey 07-14-2003 10:29 AM

Re: Cmd for connecting to internet?
 
Quote:

Originally posted by BearClaw
Would someone, please, tell me what the cmd is for connecting to the internet? I use an external-modem (ppp0). Slack-9.

I'm trying out blackbox and need to know the cmd to start ppp0.

Thanks alot, BC

Hello BearClaw,

I don't know whether this will work for you as I am in england, but what the heck. I used pppsetup to configure ppp dialing. There is an ncurses screen very similar to the pkgconfig one which will ask a few questions about your setup and ISP (most importantly the number to ring, DNS and username/password). Don't be tempted to change the default modem init string. I did this initially and it wouldn't work for me (I had had to use minicom to get the dial string for kppp to work), so just accept the values it gives you. You can then start ppp with 'ppp-go' at the terminal, or map it to a button somewhere (I have mine on GKrellM) and then close the connection with 'ppp-stop'. I've not yet got it to work as a user (I hate permissions :-/), so I log in as root, start 'ppp-go -d', then gdm to my user. 'ppp-go -d' will start ppp on a "demand dial" which will automatically connect and disconnect as needed. Not a very technical explanation I know, I am sat in front of a winbloze box at work :-( I thought I would reply as I know wvdial isn't on a standard Slackware 9.0 install and ppp dialing is great once you have got it working. Good luck!

munkeh

BearClaw 07-14-2003 10:48 AM

Thanks, fp & rm.

I went through the pppsetup in about 30 seconds, then #ppp-go" did the trick(grin).

Thanks again, guys, BC

iantri 07-14-2003 10:49 AM

Hello -- if you are using KPPP you have to use KPPP to dial from blackbox too. You can launch it from blackbox, but it will be slow without the KDE libraries already loaded (as if you were running KDE).

Try wvdial, which happens to be very easy to use, or as the previous reply says (and this works in North America, I am Canadian and have no trouble with it) run pppsetup to configure things and then use ppp-go to dial and ppp-off to disconnect. All as root of course, unless you change the permissons to allow other accounts to access the modem device (not the symlink, the actual device, ie /dev/ttyS1), and possibly these scripts.

Wvdial and KPPP do not interfere with each other. They are both basically front-ends to ppp (the program) and are responsible for dialling up and passing the correct parameters to ppp. the ppp-go and ppp-off scripts are the same too, but much more crude. :p


All times are GMT -5. The time now is 08:54 PM.