Skip to main content

Connecting to the Internet with Kppp

by Marcel Gagné
Note : This article is an excerpt from chapter 9 of my book, "Moving to the Linux Business Desktop".

Most ISPs provide dial-up access through the Point-to-Point Protocol, or PPP. The KDE program that gets you connected to the Internet with a modem is called kppp. On a standard KDE setup, you'll find it under Kicker's big K by choosing the Internet menu, then clicking Internet Dialer. On Mandrake, look under Networking, then Remote Access; and Red Hat has it under Extras and Internet. You can always just start the application with the command kppp & from an X window terminal session or by using your old friend, the <Alt+F2> combo—once again, just type kppp.

Tip : You may have noticed in the paragraph above that I added an ampersand ( &) to the end of the kppp command. When you start a command from a shell prompt, it normally runs in the foreground. What this means is that you can't start another process at the shell until the current one finishes (you could, of course, open up another shell). The ampersand tells the shell to put the process in the background so that you can run other things.

When KDE’s Internet connection tool comes up for the first time (Figure 9–1), there isn’t much to see because nothing has been configured. You’ll see a blank Connect to list, as well as blank user name and password fields.


Figure 9-1: First time with KPPP.

To get started, click the Setup button. This will take you to the KPPP Configuration screen.

I realize that the Accounts tab is the first, but I want to talk about the Device tab for a moment. I covered devices back in Chapter 9, specifically the issue of modems, and it is particularly relevant here. If you click on that tab, you'll notice that the modem device is set to /dev/modem, which is a symbolic link to the actual port for the modem. That might be /dev/ttyS0, but it could be many other things, as well.

If you find yourself having problems here when you dial out, it may be that the link wasn't set properly. Never fear, click on the drop-down list, and you will see a number of potential devices. After choosing a device, click on the Modem tab and choose Query Modem. If kppp successfully sees your modem, you should see something similar to Figure 9–2.


Figure 9-2: Modem query results.

Let's get back to the Accounts tab now. As you can probably infer from this screen, it is possible to configure and maintain several dial-up accounts from here. Most people will probably use just one, but you can also use it to set up multiple profiles of the same account. If you happen to be a road warrior or globe trotter with a notebook, you can create profiles for the various cities you visit.

From the Account setup window, click New to create a new account. Skip by the Wizard option (which tends to be for European sites) and choose the Dialog Setup instead. You’ll be asked for a connection name, a phone number for your ISP, and the authentication type (see Figure 9–3). This defaults to PAP authentication (which most ISPs today use). If your ISP still has you go through some kind of authentication script (known as an expect/send dialog), choose Script-based from the list.


Figure 9-3: New account setup.

Notice that you have some additional tabs on the menu. The IP tab enables you manually to enter the IP address provided by your ISP. Because most dial-up accounts use dynamic addresses, that is the default selection, and you probably don’t have to change anything there. The same goes for the next tab, the Gateway tab. This is usually set for you as you connect. Once again, you can override this setting by providing a static gateway address if your ISP provides it.

The last tab is one you will probably need to worry about—the DNS tab. In all likelihood, you will want to configure an address here as indicated by your ISP. Click the Manual button. Enter the DNS address you were given into the DNS IP Address field, then click Add. If you have a second address, enter it in the same way.

Of course, the most work you may have to do comes under the Login Script tab, where you may have to provide your dial-up configuration with the appropriate dialog for a connection. This is also something your ISP should have supplied you with.

When you click OK, you’ll find yourself back at the configuration screen. Click OK one final time and you return to the initial Kppp window, with one difference. In the Connect to connection list, your new connection should be visible (see Figure 9–4). Enter your login name and password, click Connect, and you are on your way.

Before I move on, notice the Show Log Window check box. If you find that you are having problems connecting, checking this box will show you a login script window as the connection takes place. This can help you debug any problems you might have with the connection.

End of excerpt
Moving to the Linux Business Desktop" is published by Addison Wesley, ISBN 0131421921, and copyright 2004. Click here to buy a copy.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Doesn't See My Modem:(

It just say modem is busy<???????????????????????

Re: Doesn't See My Modem:(

Hello slipperybrushes,

> It just say modem is busy

Could you provide us with additional information. It's very hard to be able to suggest anything at this point since there is so little information. What kind of modem are you using (make and model)? What version of Linux (vendor and release) are you running? Internal or external modem? I'm assuming that you are using Kppp since you replied to this article, but could you confirm that you are actually running KDE?

-- Marcel

modem is busy

Good Day Mr.Marcel Gagne
Since my last posting knoppix 3.4 now see my modem and says it is busy.About looking for my modem make model not sure where to look lol. I think it is Smart Link 56k Voice Modem. I have your book Moveing To Linux Second Edition(Kiss The Blue Screen Of Death Goodbye!)and the Knoppix cd in back of book:) I have succussfully booted knoppix from my cd/dvd drive with no problem:)
Just how do I get kppp to see my modem? I use dailup connection through my home phone line?
I am so new at this, so willing to learn and move away from windows all to gether:)
When using ascript do I fill in the information for each command, for example>ID slippbrushes and so on?
Well that is alot for now *THANK YOU FOR YOUR TIME AND ENERGY HAVE AGOOD DAY:)

Also when I click on certain things in knoppix my mouse jumps all over the placelol:)

what kind of modem

yes I am using internal modem smart link modem 56kps, I connect to the internet through my phone line, in other words dailup:). kppp just doesn't see my modem gee whiz:(! Is there software that would help me with this problem or maybe because I am trying to connect using the boot cd and not installing on my harddrive. I am very green when it comes to linux and I am very excited to learn as much as I can and starting us it on adaily basic, if only that was possible o my goodness! Maybe someone could direct me to some good knoppix links for to try solve this. Ps I do I find what kind of modem I have using windows xp?

modem busy-as like happens our slipperybrushes

Excuse me Mr.wftl,i m using compaq presario M2000 model note book PC and using SuSe 10,as u said above i had configured the settings in Kppp,but as like happns for our friend for me also its saying modem busy!!!!!!!!its inbuilt modem...i had used it several times in windows..plz help me to recover from that problem and to use internet in open source environment... plz...plz...

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.