This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Handbuch:PPC/Installation/Medium

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:PPC/Installation/Media and the translation is 100% complete.
PPC Handbook
Installation
About the installation
Choosing the media
Configuring the network
Preparing the disks
Installing stage3
Installing base system
Configuring the kernel
Configuring the system
Installing tools
Configuring the bootloader
Finalizing
Working with Gentoo
Portage introduction
USE flags
Portage features
Initscript system
Environment variables
Working with Portage
Files and directories
Variables
Mixing software branches
Additional tools
Custom package repository
Advanced features
Network configuration
Getting started
Advanced configuration
Modular networking
Wireless
Adding functionality
Dynamic management


Hardwareanforderungen

Before we start, we first list what hardware requirements are needed to successfully install Gentoo on a ppc box.


Systemübersicht
Apple NewWorld Maschinen Power/PowerPC Mikroprozessoren (G3, G4, G5) so wie iMac, eMac, iBook PowerBook, Xserver, PowerMac
Apple OldWorld Maschinen Apple Maschinen mit Open Firmware Revision niedriger als 3, so wie Beige G3s, PCI PowerMacs und PCI PowerBooks. PCI-basierte Apple Klone sollten ebenfalls unterstützt werden.
Genesi Pegasos I/II, Open Desktop Workstation, Efika
IBM RS/6000, iSerie, pSerie
Anforderungen
Arbeitsspeicher Mindestens 64 MB
Festplatte 1.5 GB (ohne Swap Speicher)
Swap Speicher Mindestens 256 MB

Stellen Sie sicher die Gentoo PPC FAQ wegen einiger gewöhnlicher Installations-bezogener Fragen zu Rate zu ziehen, oder einfach zu wissen was sich in dieser PowerPC Maschine befindet.


Gentoo Linux installation media

Minimal Installations-CD

Notiz
As of August 23, 2018 the official Minimal CDs are capable of booting in UEFI mode. Previous versions boot in BIOS (MBR) mode only. Readers looking to make their system UEFI bootable must download the latest ISO.

The Gentoo minimal installation CD is a bootable image which contains a self-sustained Gentoo environment. It allows the user to boot Linux from the CD or other installation media. During the boot process the hardware is detected and the appropriate drivers are loaded. The image is maintained by Gentoo developers and allows anyone to install Gentoo if an active Internet connection is available.

The Minimal Installation CD is called install-ppc-minimal-<release>.iso.

Die gelegentlich erscheinende Gentoo LiveDVD

Gelegentlich stellt das Gentoo Ten Projekt eine spezielle DVD zusammen, die auch zur Installation von Gentoo benutzt werden kann. Die weiteren Anweisungen in diesem Kapitel beziehen sich auf die Minimal-Installations-CD und könnten deshalb etwas abweichen. Auf der LiveDVD (oder jeder anderen bootbaren Linux-Umgebung) können Sie einen Root-Prompt durch Ausführen von sudo su - oder sudo -i in einem Terminal erhalten.

Was sind bitte Stages?

A stage3 tarball is an archive containing a minimal Gentoo environment, suitable to continue the Gentoo installation using the instructions in this manual. Previously, the Gentoo Handbook described the installation using one of three stage tarballs. While Gentoo still offers stage1 and stage2 tarballs, the official installation method uses the stage3 tarball. If you are interested in performing a Gentoo installation using a stage1 or stage2 tarball, please read the Gentoo FAQ on How do I install Gentoo using a stage1 or stage2 tarball?

Stage3 tarballs can be downloaded from releases/ppc/autobuilds/ on any of the official Gentoo mirrors. Stage files update frequently and are not included on the installation images.

Downloading

Obtain the media

The default installation media that Gentoo Linux uses are the minimal installation CDs, which host a bootable, very small Gentoo Linux environment. This environment contains all the right tools to install Gentoo. The CD images themselves can be downloaded from the downloads page (recommended) or by manually browsing to the ISO location on one of the many available mirrors.

If downloading from a mirror, the minimal installation CDs can be found as follows:

  1. Go to the releases/ directory.
  2. Select the directory for the relevant target architecture (such as ppc/).
  3. Select the autobuilds/ directory.
  4. For amd64 and x86 architectures select either the current-install-amd64-minimal/ or current-install-x86-minimal/ directory (respectively). For all other architectures navigate to the current-iso/ directory.
Notiz
Some target architectures such as arm, mips, and s390 will not have minimal install CDs. At this time the Gentoo Release Engineering project does not support building .iso files for these targets.

Inside this location, the installation media file is the file with the .iso suffix. For instance, take a look at the following listing:

CODE Example list of downloadable files at releases/ppc/autobuilds/current-iso/
[DIR] hardened/                                          05-Dec-2014 01:42    -   
[   ] install-ppc-minimal-20141204.iso                 04-Dec-2014 21:04  208M  
[   ] install-ppc-minimal-20141204.iso.CONTENTS        04-Dec-2014 21:04  3.0K  
[   ] install-ppc-minimal-20141204.iso.DIGESTS         04-Dec-2014 21:04  740   
[TXT] install-ppc-minimal-20141204.iso.DIGESTS.asc     05-Dec-2014 01:42  1.6K  
[   ] stage3-ppc-20141204.tar.bz2                      04-Dec-2014 21:04  198M  
[   ] stage3-ppc-20141204.tar.bz2.CONTENTS             04-Dec-2014 21:04  4.6M  
[   ] stage3-ppc-20141204.tar.bz2.DIGESTS              04-Dec-2014 21:04  720   
[TXT] stage3-ppc-20141204.tar.bz2.DIGESTS.asc          05-Dec-2014 01:42  1.5K

In the above example, the install-ppc-minimal-20141204.iso file is the minimal installation CD itself. But as can be seen, other related files exist as well:

  • A .CONTENTS file which is a text file listing all files available on the installation media. This file can be useful to verify if particular firmware or drivers are available on the installation media before downloading it.
  • A .DIGESTS file which contains the hash of the ISO file itself, in various hashing formats/algorithms. This file can be used to verify if the downloaded ISO file is corrupt or not.
  • A .DIGESTS.asc file which not only contains the hash of the ISO file (like the .DIGESTS file), but also a cryptographic signature of that file. This can be used to both verify if the downloaded ISO file is corrupt or not, as well as verify that the download is indeed provided by the Gentoo Release Engineering team and has not been tampered with.

Ignore the other files available at this location for now - those will come back when the installation has proceeded further. Download the .iso file and, if verification of the download is wanted, download the .DIGESTS.asc file for the .iso file as well. The .CONTENTS file does not need to be downloaded as the installation instructions will not refer to this file anymore, and the .DIGESTS file should contain the same information as the .DIGESTS.asc file, except that the latter also contains a signature on top of it.

Verifikation der heruntergeladenen Dateien

Hinweis
Dies ist ein optionaler Schritt, der für die Installation von Gentoo Linux nicht notwendig ist. Er ist aber empfohlen, um sicherzustellen, dass die heruntergeladene Datei nicht korrupt ist und tatsächlich vom Gentoo Infrastruktur-Team stammt.

Mit den .DIGESTS- und .DIGESTS.asc-Dateien können Sie die Validität der ISO-Datei mit den richtigen Tools prüfen. Diese Überprüfung geschieht üblicherweise in zwei Schritten:

  1. Zunächst wird die kryptografische Signatur validiert, um sicherzustellen, dass die Installationsdatei vom Gentoo-Release-Engineering-Team bereitgestellt wurde.
  2. Falls dem so ist, wird dann die Prüfsumme verifiziert, um sicherzustellen, dass die heruntergeladene Datei selbst nicht korrupt ist.

Microsoft Windows basierte Verifikation

Auf einem Microsoft Windows-System liegen die richtigen Tools zur Verifikation von Prüfsummen und kryptografischen Signaturen sehr wahrscheinlich noch nicht vor.

Um die kryptografische Signatur zu verifizieren, können Sie Tools wie GPG4Win verwenden. Nach dessen Installation müssen Sie die öffentlichen Schlüssel des Gentoo Release-Engineering-Teams importieren. Die Liste der Schlüssel finden Sie auf der Signaturen-Seite. Sind diese importiert, können Sie die Signatur der Datei .DIGESTS.asc verifizieren.

Wichtig
Dies verifiziert nicht, dass die Datei .DIGESTS korrekt ist, sondern nur dass die Datei .DIGESTS.asc korrekt ist. Das bedeutet auch, dass die Prüfsumme gegen die Werte aus der Datei .DIGESTS.asc verifiziert werden sollte; aus diesem Grund wurde oben auch nur die Datei .DIGESTS.asc heruntergeladen.

Die Prüfsumme selbst kann dann mit der Anwendung Hashcalc verifiziert werden, aber es gibt auch viele weitere Tools dafür. Die meisten dieser Tools zeigen einfach die berechnete Prüfsumme an und der Anwender wird dann aufgefordert, diese mit dem Wert aus der Datei .DIGESTS.asc zu vergleichen.

Linux basierte Verifikation

Auf einem Linux-System ist die verbreiteteste Methode zur Verifikation von kryptografischen Signaturen die Verwendung der Software app-crypt/gnupg. Wenn dieses Paket installiert ist, können Sie die folgenden Befehle verwenden, um die kryptografische Signatur der Datei .DIGESTS.asc zu prüfen.

Laden Sie zunächst die richtigen Schlüssel von der Signaturen-Seite herunter:

user $gpg --keyserver hkp://keys.gnupg.net --recv-keys 0xBB572E0E2D182910
gpg: requesting key 0xBB572E0E2D182910 from hkp server pool.sks-keyservers.net
gpg: key 0xBB572E0E2D182910: "Gentoo Linux Release Engineering (Automated Weekly Release Key) <releng@gentoo.org>" 1 new signature
gpg: 3 marginal(s) needed, 1 complete(s) needed, classic trust model
gpg: depth: 0  valid:   3  signed:  20  trust: 0-, 0q, 0n, 0m, 0f, 3u
gpg: depth: 1  valid:  20  signed:  12  trust: 9-, 0q, 0n, 9m, 2f, 0u
gpg: next trustdb check due at 2018-09-15
gpg: Total number processed: 1
gpg:         new signatures: 1

Verifizieren Sie dann die kryptografische Signatur der Datei .DIGESTS.asc:

user $gpg --verify install-ppc-minimal-20141204.iso.DIGESTS.asc
gpg: Signature made Fri 05 Dec 2014 02:42:44 AM CET
gpg:                using RSA key 0xBB572E0E2D182910
gpg: Good signature from "Gentoo Linux Release Engineering (Automated Weekly Release Key) <releng@gentoo.org>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 13EB BDBE DE7A 1277 5DFD  B1BA BB57 2E0E 2D18 2910

Um absolut sicher zu sein, dass alles richtig ist, verifizieren Sie den angezeigten Fingerabdruck gegen den Fingerabdruck auf der Gentoo-Signaturen-Seite.

Nun da die kryptografische Signatur validiert wurde, verifizieren Sie die Prüfsumme, um sicherzustellen, dass die heruntergeladene ISO-Datei nicht korrupt ist. Die Datei .DIGESTS.asc enthält mehrere Hash-Algorithmen; betrachten Sie zunächst die Prüfsumme die in der Datei .DIGESTS.asc aufgezeichnet wurde. Um beispielsweise die SHA512-Prüfsumme zu erhalten:

user $grep -A 1 -i sha512 install-ppc-minimal-20141204.iso.DIGESTS.asc
# SHA512 HASH
364d32c4f8420605f8a9fa3a0fc55864d5b0d1af11aa62b7a4d4699a427e5144b2d918225dfb7c5dec8d3f0fe2cddb7cc306da6f0cef4f01abec33eec74f3024  install-ppc-minimal-20141204.iso
--
# SHA512 HASH
0719a8954dc7432750de2e3076c8b843a2c79f5e60defe43fcca8c32ab26681dfb9898b102e211174a895ff4c8c41ddd9e9a00ad6434d36c68d74bd02f19b57f  install-ppc-minimal-20141204.iso.CONTENTS

In the above output, two SHA512 checksums are shown - one for the install-ppc-minimal-20141204.iso file and one for its accompanying .CONTENTS file. Only the first checksum is of interest, as it needs to be compared with the calculated SHA512 checksum which can be generated as follows:

user $sha512sum install-ppc-minimal-20141204.iso
364d32c4f8420605f8a9fa3a0fc55864d5b0d1af11aa62b7a4d4699a427e5144b2d918225dfb7c5dec8d3f0fe2cddb7cc306da6f0cef4f01abec33eec74f3024  install-ppc-minimal-20141204.iso

Da beide Prüfsummen übereinstimmen, ist die Datei nicht korrupt und wir können mit der Installation weitermachen.

Burning a disk

Da die ISO-Datei bisher nur heruntergeladen wurde, können wir damit die Gentoo Linux-Installation noch nicht beginnen. Die ISO-Datei muss noch auf eine CD gebrannt werden, von der dann gestartet wird. Dabei muss der Inhalt der ISO auf die CD gebrannt werden, nicht die Datei selbst. Im Folgenden werden einige verbreitete Methoden beschrieben, ausführlichere Anweisungen finden Sie in unserer FAQ zum Brennen einer ISO-Datei.

Brennen mit Microsoft Windows

Unter Microsoft Windows gibt es eine Reihe von Tools, die das Brennen von ISOs auf CDs unterstützen.

  • In EasyCD Creator wählen Sie Datei, CD von CD-Abbild erstellen. Ändern Sie dann die Dateitypen auf ISO-Image-Datei. Suchen Sie dann die ISO-Datei und klicken Sie Öffnen. Wenn Sie auf Brennen starten klicken, wird die ISO-Datei korrekt auf die CD-R gebrannt.
  • In Nero Burning ROM, beenden Sie zunächst den Wizard, der automatisch gestartet wird, und wählen Sie dann Image brennen im Datei-Menü. Wählen Sie das Image aus und klicken Sie Öffnen. Klicken Sie nun auf den Brennen-Button und schauen Sie zu, wie die neue CD gebrannt wird.

Brennen mit Linux

Unter Linux kann die ISO-Datei auf eine CD gebrannt werden mit dem Befehl cdrecord, welches Teil des Pakets app-cdr/cdrtools ist.

Um bspw. die ISO-Datei auf die CD, die sich im Laufwerk /dev/sr0 (dies ist das erste CD-Laufwerk im System - ersetzen Sie dieses mit dem richtigen Gerät bei Ihnen) befindet, zu brennen:

user $cdrecord dev=/dev/sr0 install-ppc-minimal-20141204.iso

Users that prefer a graphical user interface can use K3B, part of the kde-apps/k3b package. In K3B, go to Tools and use Burn CD Image. Then follow the instructions provided by K3B.

Booting

Standard: Booten der Installations-CD mit yaboot

Legen Sie die Installations-CD bei NewWorld Maschinen in das CD-ROM Laufwerk und starten Sie das System neu. Wenn der System-Start-Klang ertönt halten Sie einfach C gedrückt, bis die CD lädt.

Nachdem die Installations-CD geladen ist erscheint am Ende des Bildschirms eine Boot-Eingabeaufforderung.

Wir stellen einen allgemeinen Kernel zur Verfügung, ppc32. Dieser Kernel ist mit Unterstützung für mehrere CPUs gebaut, er wird aber auch auf Single-Prozessor Systemen booten.

Bei dieser Eingabeaufforderung ist es möglich, einige Kernel-Optionen zu optimieren. Die folgende Tabelle zeigt einige der verfügbaren Boot-Optionen, die sie hinzufügen können:

Boot-Option Beschreibung
video Diese Option nimmt eine der folgenden Herstellerspezifischen Markierungen: nvidiafb, radeonfb, rivafb, atyfb, aty128 oder ofonly. Hängen Sie dieser Markierung die zu nutzende Auflösung, Wiederholrate und Farbtiefe an. video=radeonfb:1280x1024@75-32 wird Beispielsweise die ATI Radeon Grafikkarte mit einer Auflösung von 1280x1024, einer Wiederholrate von 75 Hz und einer Farbtiefe von 32 Bit auswählen. Wenn Sie unsicher sind, was Sie auswählen sollen und der Standard nicht funktioniert, wird video=ofonly am wahrscheinlichsten funktionieren.
nol3 Deaktiviert den Level 3 Cache auf einigen PowerBooks. (Dies wird zumindest beim 17" benötigt.)
dofirewire Aktiviert die Unterstützung für IEEE1394 (FireWire) Geräte wie externe Festplatten.
dopcmcia Um PCMCIA Geräte (wie PCMCIA Netzwerkkarten) während der Installation verwenden zu können muss diese Option aktiviert werden.
dosshd Startet sshd. Nützlich für unbeaufsichtigte Installationen.
passwd=foo Setzt was immer nach dem = steht als das Root-Passwort. Verwenden Sie dies zusammen mit dosshd für Remote-Installationen.

Um die oben stehenden Optionen am Boot-Prompt zu nutzen geben sie ppc32 gefolgt von der gewünschten Option ein. Im Beispiel unterhalb werden wir den Kernel dazu zwingen, den Open Firmware Framebuffer anstelle des Gerätespezifischen Treibers zu verwenden.

boot:ppc32 video=ofonly

Wenn keine Optionen benötigt werden geben Sie bei dieser Eingabeaufforderung nur ppc32 ein und eine vollständige Gentoo Linux Umgebung wird von der CD geladen.

Alternative: Die Installations-CD auf einem Pegasos System booten

Auf dem Pegasos legen Sie einfach die CD ein und beim SmartFirmware Boot-Prompt geben Sie cd /boot/menu ein.

bootcd /boot/menu

Dies wird ein kleines Bootmenü öffnen, das den Benutzern die Wahl zwischen einigen vorkonfigurierten Video-Konfigurationen gestattet. Alle besonderen Boot-Optionen können bei der Kommandozeile angehängt werden, wie bei Yaboot oben. Zum Beispiel:

bootcd /boot/pegasos video=radeonfb:1280x1024@75 mem=256M

Die Standard-Kernel Optionen (falls etwas schief läuft) sind vorkonfiguriert mit console=ttyS0,115200 console=tty0 init=/linuxrc looptype=squashfs loop=/image.squashfs cdroot root=/dev/ram0.

Alternative: Booten der Installations-CD mit BootX

Mit einem OldWorld Mac kann der bootfähige Anteil der Live-CD nicht verwendet werden. Die einfachste Lösung ist MacOS 9 oder älter zu verwenden, um in die Linux-Umgebung mit dem Tool BootX zu bootstrapen.

Als erstes laden Sie BootX herunter und entpacken das Archiv. Kopieren Sie die BootX Erweiterung aus dem ausgepackten Archiv in den Extensions Ordner und das BootX App Control Panel in den Control Panels Ordner. Beide befinden sich im MacOS Systemverzeichnis. Als nächstes erzeugen Sie ein Verzeichnis mit dem Namen "Linux Kernels" im Systemverzeichnis und kopieren den Kernel ppc32 von der CD in diesen Ordner. Schliesslich kopieren Sie ppc32.igz aus dem Installations-CD Bootverzeichnis in das MacOS Systemverzeichnis.

Um BootX vorzubereiten, starten Sie das BootX App Control Panel. Wählen Sie als erstes den Optionsdialog und selektieren Sie Use Specified RAM Disk und wählen Sie ppc32.igz aus dem Systemverzeichnis. Fahren Sie fort zum Einstiegsbildschirm und stellen Sie sicher, dass die RAM Disk Grösse mindestens 32000 beträgt. Schliesslich stellen Sie die Kernel-Argumente wie unten gezeigt ein:

CodeBootX Kernel Argumente

'"`UNIQ--pre-00000005-QINU`"'

This is a deprecated template. Help us update this template!

Notiz
Die Kernel Parameter im yaboot Abschnitt oberhalb sind hier ebenfalls anwendbar. Sie können jeden dieser Optionen an die Kernel Argumente oben anhängen.

Prüfen Sie nochmals um sicherzustellen dass die Einstellungen korrekt sind und speichern Sie dann die Konfiguration. Dies spart Tipparbeit, nur für den Fall dass es nicht bootet oder etwas fehlt. Drücken Sie den Linux Knopf am Anfang des Fensters. Wenn alles richtig läuft sollte es in die Installations-CD booten.

Einstellung der Tastaturbelegung

Nach dem Booten erscheint ein Roor-Prompt ("#") auf der aktuellen Konsole. Es ist möglich zu anderen Konsolen durch drücken von Alt + F2, Alt + F3 und Alt + F4 zu wechseln. Sie kommen zur ersten Konsole durch Drücken von Alt + F1 zurück. Wegen des Tastaturlayouts kann es auf Apple Maschinen nötig sein Alt + fn + F# zu drücken.

Wenn Sie Gentoo auf einem System mit einer nicht-US-Tastatur installieren, verwenden Sie loadkeys um die Tastaturbelegung für die Tastatur zu laden. Um die verfügbaren Tastaturbelegungen aufzulisten führen Sie ls /usr/share/keymaps/i386 aus.

root #ls /usr/share/keymaps/i386

Laden Sie jetzt die Tastaturbelegung Ihrer Wahl:

root #loadkeys be-latin1


Erweiterte Hardwarekonfiguration

When the Installation medium boots, it tries to detect all the hardware devices and loads the appropriate kernel modules to support the hardware. In the vast majority of cases, it does a very good job. However, in some cases it may not auto-load the kernel modules needed by the system. If the PCI auto-detection missed some of the system's hardware, the appropriate kernel modules have to be loaded manually.

Im nächsten Beispiel versuchen wir das 8139too-Modul zu laden (Unterstützung für verschiedene Arten von Netzwerkkarten):

root #modprobe 8139too

Optional: Benutzerkonten

If other people need access to the installation environment, or there is need to run commands as a non-root user on the installation medium (such as to chat using irssi without root privileges for security reasons), then an additional user account needs to be created and the root password set to a strong password.

Um das root-Passwort zu ändern benutzen Sie das passwd-Tool:

root #passwd
New password: (Geben Sie das neue Passwort ein)
Re-enter password: (Geben Sie das Passwort erneut ein)

Um ein Benutzerkonto zu erstellen, geben wir zunächst die Details zur Person ein, gefolgt vom zugehörigen Passwort. Wir benutzen useradd und passwd für diese Aufgaben.

Im nächsten Beispiel erstellen wir einen Benutzer namens john:

root #useradd -m -G users john
root #passwd john
New password: (Geben Sie das Passwort von john ein)
Re-enter password: (Geben Sie erneut das Passwort von john ein)

Sie können vom (aktuellen) Benutzer root zum neu erstellten Benutzer mit su wechseln:

root #su - john

Optional: Lesen der Dokumentation während der Installation

TTYs

Wenn Sie das Gentoo Handbuch während der Installation lesen wollen, stellen Sie sicher, dass Sie einen Benutzeraccount angelegt haben (siehe Optional: Benutzerkonten). Drücken Sie dann Alt+F2, um auf ein neues Terminal zu wechseln.

Sie können das Gentoo-Handbuch während der Installation mit links anschauen - natürlich erst, sobald Ihre Internetverbindung aufgesetzt ist.

user $links https://wiki.gentoo.org/wiki/Handbook:PPC

Sie können auf Ihr Ausgangsterminal mittels Alt+F1 zurückwechseln.

GNU Screen

The GNU Screen utility is installed by default on official Gentoo installation media. It may be more efficient for the seasoned Linux enthusiast to use screen to view installation instructions via split panes rather than the multiple TTY method mentioned above.

Optional: Starten des SSH-Daemons

Wenn Sie anderen Benutzern während der Installation von Gentoo Zugriff auf Ihren Rechner geben wollen (vielleicht weil diese Sie bei der Installation von Gentoo unterstützen oder diese für Sie durchführen), müssen Sie ein Benutzerkonto für diese Person erstellen (wie zuvor beschrieben) und den SSH-Daemon starten.

Um den SSH-Daemon zu starten führen Sie folgenden Befehl aus:

root #rc-service sshd start
Notiz
If users log on to the system, they will see a message that the host key for this system needs to be confirmed (through what is called a fingerprint). This behavior is typical and can be expected for initial connections to an SSH server. However, later when the system is set up and someone logs on to the newly created system, the SSH client will warn that the host key has been changed. This is because the user now logs on to - for SSH - a different server (namely the freshly installed Gentoo system rather than the live environment that the installation is currently using). Follow the instructions given on the screen then to replace the host key on the client system.

Um sshd nutzen zu können, müssen Sie zunächst das Netzwerk einrichten. Setzen Sie die Installation mit der Konfiguration des Netzwerks fort.