linuxnewbie.org.gif
Tuesday, 12-Dec-2000 10:39:58 EST
Newbized Help Files articles discussion board bookshelf sensei's log advertising info

Internet Connection - Debian NHF v1.1
==================================================


Introduction

Ok, we've all been there. At least I for one will admit i have. You get your first Linux installation the way you want it, and then you want to get access to the internet, get your e-mails etc, yet you're not really sure to go about it. The purpose of this document is to give you the information you will need to setup a PPP connection to your ISP in Debian. I based this article on version 2.1 and as much, some earlier releases may not conform to that which is mentioned.

If anyone has any feedback on this document, then please mail me

Authors Note: At this time, the procedures outlined here do not cover the following related, and in many cases essential, topics. However, these are mentioned, and directions to information have been given where possbile.

- Kernel Configuration for PPP support
- Modem configuration


1. Preparation


Believe it or not, this part is often the hardest, but also the most rewarding


1.1 Information

If you have read the pre-installation NHF, you will have noted down the information specific to your account with your ISP. If not, the information you will need is listed below.

  • ISP account username:
  • ISP Account password:
  • Phone number:
  • authentication type: eg PAP, CHAP, none Contact your ISP if unsure
  • DNS Servers:
  • POP server:
  • SMTP server:
  • news server:
  • ISP proxy server: if applicable


1.2 Commands and Environment

You may also want to read a little about how linux works.. what commands perform what functions etc. For this, I can suggest the basic commands NHF, and the Filesystems, Directories and Devices NHF, amongst other things. For a more complete references list, see the bottom of this document.


1.3 Your kernel

You hopefully compiled PPP support (PPP is a connection oriented service which you will use to conncet to your ISP) into your kernel when installing. To check, you can type

# dmesg | less

to obtain your bootup messages. Scrolling through this list, if you see lines beginning with PPP then you have support compiled into your kernel.
If not, you need to recompile your kernel for PPP support. This is not covered here, but links to information that will help you have been included at the end of the document.


1.4 Your Modem

You need to establish the type of modem you have in relation to how/where Linux will use it. If your modem is an external one, the chances are it will be located on a Serial (ttySX) port, where X is a number. ttyS0 = COM1 in dos, ttyS1 = COM2. This document does not cover setting up your modem. There are many obstacles in this field, and many varied ways to achieve this.

You need to make sure you do not have a winmodem (a device that can only be used as a modem by Microsoft OS's, and is not technically a modem at all), as this will stop you from connecting to the world until you get a new modem. You can establish as to whether the modem is a winmodem by consulting the manufacturers, or reading the doumentation mentioned at the end of the documentation. Although this is not strictly true, people in the past have advocated the rule "If its an external modem, its not a winmodem". In reality, if your modem is an external one, your chances are slim of it being a winmodem.

Internal Modems can also provide different obstacles depending on whether they are ISA or PCI.


2. Configuration

There are a number of ways to configure your system, but I am hopefully going to take you throught the quickest way of getting to the outside world. Other methods of configuration are left to you to find out... learning is fun!


2.1 Security

whole books have been written on this, but a straightforward method of security for the purpose of testing your PPP conenction can be achieved through editing the following files.


2.1.1 /etc/hosts.deny

Open this file with your favorite text editor (Vi is the authors prefered choce)and ensure this line is contained in that file

ALL: ALL


2.1.2 /etc/hosts.allow

Again, open this file as you did /etc/hosts.deny, and add the following

ALL: LOCAL


2.2 pppconfig

This is where it all starts happening. Get the documentation you collected together earlier for this. The following is given as one step for each screen in the pppconfig utility. This utility will setup everything else you need for your PPP conection

Make sure you are logged in as root

  • Issue the command
    # pppconfig
  • Select to create a connection
  • Choose a name for your configuration. The default is "provider". If you use this, it simpliefies your connection command when everything is set up.
  • Choose your type of connection. PAP is the norm for most dial up accounts w it h ISP's but be sure to check with your ISP on this. If you use CHAP, as k your ISP for the correct hand-shaking script you need.
  • Delete what text is in this field and replace it with your account's password
  • Insert your username. This is different depending on what format your ISP uses. Its usually in the format of name.domain.com/net
  • Choose the port your modem is on
  • Choose to enamble the default route
  • ONLY enter a value other to the default if you have been given a static IP by your ISP.
  • It is safe to leave modem port speed at the default value
  • Again, the default initialisation string "ATZ" should be used unless your modem documentation tells you otherwise.
  • Enter the phone number of your ISP connection
  • If you dont have touch-tone phones, change this setting, otherwise leave it as the default, ATDT tone.
  • Now you need to write the changes, and you can exit the utility.

You're all done!

2.3 The moment of truth!

I spent so long trying to get my modem working first time, I feel i could almost imitate the noises and sequences myself i know it so well! To test as to whether you have been successful, issue the following command as root

# pon

Note: If you changed the connection name in the pppconfig utility to something other than "provider" then you will need to type the following instead.

# pon your_connection_name

Your modem should dial, and all should be well. After your modem has finished making noises, try firing up a web browser such as Lynx, or mozilla if you have X already setup.

To disconnect, issue the following command as root

# poff

Or.. if you changed the connection name from the default..

# poff your_connection_name


Summary
--------

The advantages to being on-line with debian extend beyond that of your e-mail, and web access. Powerful utilities such as 'apt-get' can be fully utilised to provide the user with great optionality in configuring Linux just how you want it.  You can only use the pon and poff commands as root, but there are utilities available to get around this if you do not like having to su to root evrytime you want to dial up.  Your options on e-mail are also quite substantial.  Sendmail, Qmail, mutt, and pine are some you may want to find out more about.  But first you can relax a little and surf the web for a while :)


Other Information
----------------

The section numbers here relate to the main document for reasons of clarity

1.3

http://www.metalab.unc.edu/mdw/HOWTO/Kernel-HOWTO.html
The perfect guide to compiling your kernel

1.4

http://metalab.unc.edu/mdw/HOWTO/mini/Cable-Modem.html
Good for Cable modem configuration

http://www.metalab.unc.edu/mdw/HOWTO/Modem-HOWTO.html
If you have a problem setting up your modem, this should be your first port of call

http://www.linuxnewbie.org/nhf/intel/modems/index.html
A good place to go if your modem is an ISA PNP
General information

http://www.debian.org
This will point you to debian specific information, should you need it

debian-user@lists.debian.org
Subscription to this list is free and open to all. The archives of this can be extremely helpful. If you have a problem, the chances someone else has had itbefore you...

http://www.linuxnewbie.org
The discussion board is extremely helpful, and you do not have to worry about getting offensive or hostile responces to questions you post there.

7DS

 

We would like to hear your feedback.
[-NHF Control Panel-]
The Linux Channel at internet.com
Linux Planet
Linux Today
Linux Central
Linuxnewbie.org
PHPBuilder
Just Linux
Linux Programming
Linux Start
BSD Today
Apache Today
Enterprise Linux Today
BSD Central
All Linux Devices
SITE DESCRIPTIONS
[-What's New-]
Order a Linuxnewbie T-Shirt
Easy Webcam NHF
Directory Navigation NHF
Installing Snort 1.6.3 on SuSE 6.x-7.x
Customizing vim
The SysVinit NHF
Installing ALSA for the VT82C686 integrated sound
USB Creative Video Blaster II for Linux
Configuring the Intellimouse Explorer in XFree86 V4+
The beginnings of a distro NHF
Getting Past Carnivore?
Getting and Installing PGP
Getting your ATI Rage 128 Working
How to create a multiple partition system
Using Fdisk
Introduction to Programming in C/C++ with Vim
Adding a Hard drive in Linux -- In five steps
Installing ALSA for the Yamaha DS-XG Sound Card
Getting your Diamond Rio Mp3 Player to work with Linux
Bash Programming Cheat Sheet
Installing NVIDIA Drivers for Mandrake
Setting up Portsentry
Hard Drive Speed Tweak for Linux
Sensei's Log
Chat room
Join: Linuxnewbie.org SETI Black Belts!
Send in your news
Click the image to add Linuxnewbie.org to your MyNetscape Page
[-LNO Newsletter-]

[-Archive-]
The beginnings of a distro NHF
Connecting to the Internet using KPPP
Getting your SBLive to work
Unreal Tournament NHF
LWE Day 2 Pictures
LWE Day 1 Pictures
The LNO FAQ!
WoW (Words of Wisdom)
Other sites news
What is Linux?
What is Linux? part deux (ups & downs)
Search newsgroups
The List
ALS Report
Feedback Form
jobs.linuxtoday.com.gif
Match: Format: Sort by:
Search:
[-Quick Links-]

Copyright 2000 internet.com Corp. All Rights Reserved. Legal Notices Privacy Policy

internet.com.gif