Ohne das Internet wäre die schnelle Weiterentwicklung des Linux-Kernels oder auch von Debian GNU/Linux völlig undenkbar. Die Kommunikation zwischen den Entwicklern untereinander und auch zu den Benutzern wäre ohne den Internetdienst E-Mail undenkbar. Die Softwareverteilung über andere Medien als das Internet (beispielsweise per Post auf CD-ROMs) würde die Entwicklungszeiten in die Höhe treiben. Debian GNU/Linux bietet mit apt ein mächtiges Werkzeug, um auch über das Internet oder aus dem lokalen Netzwerk Pakete zu installieren. Im folgenden finden Sie zunächst die nötigen Informationen, um per Modem oder ISDN ins Netz zu kommen. Weiterhin zeigen wir Ihnen die interessantesten Anwendungen, die Sie für die verschiedenen Dienste im Netz benötigen. In einem späteren Abschnitt wird die Konfiguration von Netzwerkkarten beschrieben.
Um mit einem an der seriellen Schnittstelle angeschlossenem Modem ins Internet zu kommen, steht Ihnen unter Debian GNU/Linux das Werkzeug pppconfig zu Verfügung. Sie müssen pppconfig als Superuser aufrufen, da alle Einstellungen, die das Modem betreffen, systemweit gültig sind.
Vorab ist es sinnvoll, wenn Sie von Ihrem ISP (Internet Service Provider, z.B. AOL, T-Online...) alle benötigten Daten besorgen. Wichtig sind insbesondere folgende Daten:
Ihr Login- oder Benutzernamen
Ihr Paßwort
Telefonnummer zur Einwahl beim Provider
+-------------------------------- Main Menu ---------------------------------+ | This is the PPP configuration utility. It does not connect to your isp: it| | just configures ppp so that you can do so with a utility such as pon. It | | will ask for the username, password, and phone number that your ISP gave | | you. If your ISP uses PAP or CHAP, that is all you need. If you must use | | a chat script, you will need to know how your ISP prompts for your username | and password. If you do not know what your ISP uses, try PAP. Use the up | | and down arrow keys to move around the menus. Hit ENTER to select an item. | Use the TAB key to move from the menu to <OK> to <CANCEL> and back. When | | you are ready to move on to the next menu go to <OK> and hit ENTER. To go | | back to the main menu go to <CANCEL> and hit enter. | | +------------------------------------------------------------------------+ | | | Create Create a connection | | | | Change Change a connection | | | | Delete Delete a connection | | | | Quit Exit this utility | | | | | | | +------------------------------------------------------------------------+ | | | | | +----------------------------------------------------------------------------+ | < OK > <Cancel> | +----------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +-------------------------------- Provider Name -------------------------------+ | | | Enter the name you wish to use to refer to this isp. You will probably | | want to give the default name of 'provider' to your primary isp. That way, | | you can dial it by just giving the command 'pon'. Give each additional isp | | a unique name. For example, you might call your employer 'theoffice' and | | your university 'theschool'. Then you can connect to your isp with 'pon', | | your office with 'pon theoffice', and your university with 'pon theschool'. | | | | MeinProvider________________________________________________________________ | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +-----------------------| Configure Nameservers (DNS) |------------------------+ | | | Choose a method. 'Static' means that the same nameservers will be used | | every time this provider is used. You will be asked for the nameserver | | numbers in the next screen. 'Dynamic' means that pppd will automatically | | get the nameserver numbers each time you connect to this provider. 'None' | | means that DNS will be handled by other means, such as BIND (named) or | | manual editing of /etc/resolv.conf. Use the up and down arrow keys to move | | among the selections, and press the spacebar to select one. When you are | | finished, use TAB to select <OK> and ENTER to move on to the next item. | | | | (*) Static Use static DNS | | ( ) Dynamic Use dynamic DNS | | ( ) None DNS will be handled by other means | | | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +--------------------------------| IP number |---------------------------------+ | | | Enter the IP number for your primary nameserver. | | | | 194.25.2.129________________________________________________________________ | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +-----------------| Authentication Method for MeinProvider |------------------+ | | | Please select the authentication method for this connection. PAP is the | | method most often used in Windows 95, so if your ISP supports the NT or | | Win95 dial up client, try PAP. The method is now set to CHAT. | | | | PAP Peer Authentication Protocol | | Chat Use chat for login:/password: authentication | | CHAP Crypto Handshake Auth Protocol | | | | Previous Return to previous menu | | Quit Exit this utility | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +--------------------------------| User Name |---------------------------------+ | | | Enter the username given to you by your ISP. | | | | hoshi_______________________________________________________________________ | | | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +---------------------------------| Password |---------------------------------+ | | | Enter the password your ISP gave you. | | | | sagichnich__________________________________________________________________ | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +----------------------------------| Speed |-----------------------------------+ | | | Enter your modem port speed (e.g. 9600, 19200, 38400, 57600, 115200). | | I suggest that you leave it at 115200. | | | | 115200______________________________________________________________________ | | | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +------------------------------| Pulse or Tone |-------------------------------+ | | | Select method of dialing. Since almost everyone has touch-tone, you should | | leave the dialing method set to tone unless you are sure you need | | pulse. Use the up and down arrow keys to move among the selections, and | | press the spacebar to select one. When you are finished, use TAB to | | select <OK> and ENTER to move on to the next item. | | | | (*) Tone | | ( ) Pulse | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +-------------------------------| Phone Number |-------------------------------+ | | | Enter the number to dial. Don't include any dashes. See your modem manual | | if you need to do anything unusual like dialing through a PBX. | | | | 191011______________________________________________________________________ | | | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +------------------------| Choose Modem Config Method |------------------------+ | | | | | Answer 'yes' to have the port your modem is on identified automatically. | | It will take several seconds to test each serial port. Answer 'no' if | | you would rather enter the serial port yourself | | | | | | | | | | | | <Yes> <No> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +----------------------------| Select Modem Port |-----------------------------+ | | | Below is a list of all the serial ports that appear to have hardware | | that can be used for ppp. One that seems to have a modem on it has | | been preselected. If no modem was found 'Manual' was preselected. To | | accept the preselection just hit TAB and then ENTER. Use the up and | | down arrow keys to move among the selections, and press the spacebar | | to select one. When you are finished, use TAB to select <OK> and ENTER | | to move on to the next item. | | | | (*) /dev/ttyS0 | | ( ) /dev/ttyS1 | | ( ) Manual Enter the port by hand. | | | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Debian GNU/Linux PPP Configuration Utility +-----------------------| Properties of MeinProvider |-------------------------+ | | | | | Number 191011 Telephone number | | User hoshi ISP user name | | Password sagichnich ISP password | | Speed 115200 Port speed | | Com /dev/ttyS0 Modem com port | | Method PAP Authentication method | | | | Advanced Advanced Options | | | | Finished Write files and return to main menu. | | Previous Return to previous menu | | Quit Exit this utility | | | | | | | | | | <Ok> <Cancel> | | | +------------------------------------------------------------------------------+ |
Wenn Sie das Programm verlassen, können Sie nun mit pon "Providername" die Verbindung aufbauen. In der Datei /var/log/messages wird der Verbindungsaufbau protokolliert, Sie können dies mit dem Kommando tail -f /var/log/messages verfolgen. Sollten Probleme auftreten, wie zum Beispiel ein falsches Paßwort, so können Sie dies hier verfolgen.
Die Option -f bewirkt, daß ständig aus der Datei gelesen wird und alle neuen Einträge angezeigt werden. Sie können diesen Befehl mit CTRL+C abbrechen.
Wenn Ihnen diese Informationen nicht ausreichen, finden Sie in der Datei /var/log/ppp.log detailliertere Informationen. Auch diese können Sie sich mit dem Kommando tail -f ansehen.
Um zu prüfen, ob die Verbindung aufgebaut wurde, können Sie den Befehl ifconfig benutzen. Dieser sollte das Device ppp0 anzeigen.
Mit dem Kommando ping www.linux-magazin.de können Sie testen, ob Datenpakete über das Netz geschickt werden.
Das Kommando poff beendet die Verbindung.
Es ist sinnvoll, für häufig verwendete Gerätedateien im Verzeichniss /dev/ einen Link mit einem geläufigeren Namen anzulegen. Wenn Sie herausgefunden haben, welches Device von Ihrem Modem benutzt wird, legen Sie einen entsprechenden Link „modem“ an. Beispielsweise mit ln -s /dev/ttyS1 /dev/modem. Sie können nun aus jeder Anwendung heraus einfach auf /dev/modem zugreifen, ohne sich die genaue Bezeichnung der Gerätedatei merken zu müssen.
Wenn Sie Probleme haben, unter Linux die passende Gerätedatei zur seriellen Schnittstelle Ihres Rechners zu finden, können Sie folgende Tabelle zur Hilfe nehmen. Aus dieser können Sie die Bezeichnung der Schnittstelle unter DOS und Linux entnehmen, weiterhin finden Sie den passenden Linux-Befehl, um den Link anzulegen.
DOS Linux Befehl COM1 /dev/ttyS0 "ln -s /dev/ttyS0 /dev/modem" COM2 /dev/ttyS1 "ln -s /dev/ttyS1 /dev/modem" COM3 /dev/ttyS2 "ln -s /dev/ttyS2 /dev/modem" COM4 /dev/ttyS3 "ln -s /dev/ttyS3 /dev/modem" |