1
<!-- retain these comments for translator revision tracking -->
2
<!-- original version: 23660 untranslated -->
4
<sect2 arch="not-s390" id="PPP">
5
<title>Setting Up PPP</title>
9
If no network was configured during the first stage of the installation,
10
you will next be asked whether you wish to install the rest of the system
11
using PPP. PPP is a protocol used to establish dialup connections with modems.
12
If you configure the modem at this point, the installation system will be able
13
to download additional packages or security updates from the Internet during
14
the next steps of the installation.
15
If you don't have a modem in your computer or if you prefer to configure
16
your modem after the installation, you can skip this step.
20
In order to configure your PPP connection, you will need some information
21
from your Internet Service Provider (ISP), including phone number, username,
22
password and DNS servers (optional). Some ISPs provide installation guidelines
23
for Linux distributions. You can use that information even if they don't
24
specifically target Debian since most of the configuration parameters
25
(and software) is similar amongst Linux distributions.
29
If you do choose to configure PPP at this point, a program named
30
<command>pppconfig</command> will be run. This program helps you
31
configure your PPP connection. <emphasis>Make sure, when it asks you
32
for the name of your dialup connection, that you name it
33
<userinput>provider</userinput>.</emphasis>
37
Hopefully, the <command>pppconfig</command> program will walk you
38
through a trouble-free PPP connection setup. However, if it does not
39
work for you, see below for detailed instructions.
43
In order to setup PPP, you'll need to know the basics of file viewing
44
and editing in GNU/Linux. To view files, you should use
45
<command>more</command>, and <command>zmore</command> for compressed
46
files with a <userinput>.gz</userinput> extension. For example, to
47
view <filename>README.debian.gz</filename>, type <userinput>zmore
48
README.debian.gz</userinput>. The base system comes with an editor
49
named <command>nano</command>, which is very simple to use, but does
50
not have a lot of features. You will probably want to install more
51
full-featured editors and viewers later, such as
52
<command>jed</command>, <command>nvi</command>,
53
<command>less</command>, and <command>emacs</command>.
57
Edit <filename>/etc/ppp/peers/provider</filename> and replace
58
<userinput>/dev/modem</userinput> with
59
<userinput>/dev/ttyS<replaceable>#</replaceable></userinput> where
60
<replaceable>#</replaceable> stands for the number of your serial
61
port. In Linux, serial ports are counted from 0; your first serial
62
port <phrase arch="i386">(i.e., <userinput>COM1</userinput>)</phrase>
63
is <filename>/dev/ttyS0</filename> under Linux.
65
<phrase arch="powerpc;m68k">On Macintoshes with serial ports, the
66
modem port is <filename>/dev/ttyS0</filename> and the printer port is
67
<filename>/dev/ttyS1</filename>.</phrase>
69
The next step is to edit
70
<filename>/etc/chatscripts/provider</filename> and insert your
71
provider's phone number, your user-name and password. Please do not
72
delete the <quote>\q</quote> that precedes the password. It hides the
73
password from appearing in your log files.
77
Many providers use PAP or CHAP for login sequence instead of text mode
78
authentication. Others use both. If your provider requires PAP or
79
CHAP, you'll need to follow a different procedure. Comment out
80
everything below the dialing string (the one that starts with
81
<quote>ATDT</quote>) in
82
<filename>/etc/chatscripts/provider</filename>, modify
83
<filename>/etc/ppp/peers/provider</filename> as described above, and
84
add <userinput>user <replaceable>name</replaceable></userinput> where
85
<replaceable>name</replaceable> stands for your user-name for the
86
provider you are trying to connect to. Next, edit
87
<filename>/etc/ppp/pap-secrets</filename> or
88
<filename>/etc/ppp/chap-secrets</filename> and enter your password
93
You will also need to edit <filename>/etc/resolv.conf</filename> and
94
add your provider's name server (DNS) IP addresses. The lines in
95
<filename>/etc/resolv.conf</filename> are in the following format:
97
<replaceable>xxx.xxx.xxx.xxx</replaceable></userinput> where the
98
<replaceable>x</replaceable>s stand for numbers in your IP
99
address. Optionally, you could add the
100
<userinput>usepeerdns</userinput> option to the
101
<filename>/etc/ppp/peers/provider</filename> file, which will enable
102
automatic choosing of appropriate DNS servers, using settings the
103
remote host usually provides.
107
Unless your provider has a login sequence different from the majority
108
of ISPs, you are done! Start the PPP connection by typing
109
<command>pon</command> as root, and monitor the process using
110
<command>plog</command> command. To disconnect, use
111
<command>poff</command>, again, as root.
115
Read <filename>/usr/share/doc/ppp/README.Debian.gz</filename> file for
116
more information on using PPP on Debian.
120
For static SLIP connections, you will need to add the
121
<userinput>slattach</userinput> command (from the
122
<classname>net-tools</classname> package) into
123
<filename>/etc/init.d/network</filename>. Dynamic SLIP will require
124
the <classname>gnudip</classname> package.
129
<title>Setting Up PPP over Ethernet (PPPOE)</title>
133
PPPOE is a protocol related to PPP used for some broadband connections.
134
There is currently no support in base configuration to help you set
135
this up. However, the necessary software has been installed, which means
136
you can configure PPPOE manually at this stage of the installation by
137
switching to VT2 and running <command>pppoeconf</command>.