D.4. Installation af Debian GNU/Linux over Parallel Line IP (PLIP)

Dette afsnit forklarer hvordan Debian GNU/Linux installeres på en computer uden et Ethernetkort, men kun via en ekstern adgangspunktcomputer tilkoblet via et Null-Modem-kabel (også kaldt for Null-Printer-kabel). Adgangspunktcomputeren skal være forbundet til et netværk, som har et Debian-spejl (f.eks. til internettet).

In the example in this appendix we will set up a PLIP connection using a gateway connected to the Internet over a dial-up connection (ppp0). We will use IP addresses 192.168.0.1 and 192.168.0.2 for the PLIP interfaces on the target system and the source system respectively (these addresses should be unused within your network address space).

The PLIP connection set up during the installation will also be available after the reboot into the installed system (see Kapitel 7, Start op i dit nye Debian-system).

Before you start, you will need to check the BIOS configuration (IO base address and IRQ) for the parallel ports of both the source and target systems. The most common values are io=0x378, irq=7.

D.4.1. Krav

  • En målcomputer, kaldet mål, hvor Debian vil blive installeret.

  • systeminstallationsmedie; se Afsnit 2.4, “Installationsmedie”.

  • En anden computer forbundet til internettet, kaldt kilde, som vil fungere som adgangspunkt.

  • A DB-25 Null-Modem cable. See the PLIP-Install-HOWTO for more information on this cable and instructions how to make your own.

D.4.2. Opsætning af kilde

Det følgende skalskript er et simpelt eksempel på hvordan kildecomputeren kan konfigureres som et adgangspunkt til internettet via ppp0.

#!/bin/sh

# Vi fjerner kørende moduler fra kernen for at undgå konflikter og for at 
# konfigurere dem om manuelt.
modprobe -r lp parport_pc
modprobe parport_pc io=0x378 irq=7
modprobe plip

# Konfigurer plip-grænsefladen (plip0 for mig, se dmesg | grep plip)
ifconfig plip0 192.168.0.2 pointopoint 192.168.0.1 netmask 255.255.255.255 up

# Konfigurer adgangspunkt
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 
> /proc/sys/net/ipv4/ip_forward

D.4.3. Installation af mål

Boot the installation media. The installation needs to be run in expert mode; enter expert at the boot prompt. If you need to set parameters for kernel modules, you also need to do this at the boot prompt. For example, to boot the installer and set values for the io and irq options for the parport_pc module, enter the following at the boot prompt:

expert parport_pc.io=0x378 parport_pc.irq=7

Below are the answers that should be given during various stages of the installation.

  1. Indlæs installationskomponenter fra cd

    Vælg indstillingen plip-modules fra listen; dette vil gøre PLIP-drivere tilgængelige for installationssystemet.

  2. Detekt netværksudstyr

    • If target does have a network card, a list of driver modules for detected cards will be shown. If you want to force debian-installer to use plip instead, you have to deselect all listed driver modules. Obviously, if target doesn't have a network card, the installer will not show this list.

    • Da intet netværkskort blev detekteret/valgt tidligere, vil installationsprogrammet anmode dig om at vælge et modul for netværksdriveren fra en liste. Vælg modulet plip.

  3. KOnfigurer netværket

    • Automatisk konfiguration af netværk med HDCP: Nej

    • IP-adresse: 192.168.0.1

    • Point-to-point address: 192.168.0.2

    • Navneserveradresser: Du kan indtaste de samme adresser brugt på kilde (se /etc/resolv.conf)