|
|
(8 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| {{inuse|[[Benutzer:Tuxnix|Tuxnix]] ([[Benutzer Diskussion:Tuxnix|Diskussion]])}}{{SEITENTITEL:sway}}{{righttoc}}
| | {{SEITENTITEL:sway}}{{righttoc}} |
|
| |
|
| <b>Entwurf Artikel: 2. Partitionierung BIOS-Rechner - (Versuch einer weiteren Gliederung der Artikelserie)</b> | | <u>Erzeugen einer Schlüsseldatei zur Vermeidung einer zweiten Eingabe des Verschlüsselungspassworts:</u><br> |
| | <code style=font-size:12px>dd bs=512 count=4 if=/dev/urandom of=/keyfile.bin</code><br> |
| | <code style=font-size:12px>cryptsetup luksAddKey /dev/disk/by-label/ROOT /keyfile.bin</code><br> |
| | <code style=font-size:12px>chmod 000 /keyfile.bin</code><br><br> |
|
| |
|
| siehe weitere [[spicker | Arch Linux Installations Spickzettel]]<br>
| | <code style=font-size:12px>nano /etc/mkinitcpio.conf</code><br> |
| vorheriges Kapitel [[1._Vorbereitung|1. Vorbereitung]]<br>
| | <u>'/keyfile.bin' zu Files hinzufuegen:</u><br> |
| | | <code style=font-size:12px>FILES=(/keyfile.bin)</code><br> |
| <b>2. Partitionieren, Formatieren und Mounten bei einem BIOS-Rechner</b><br>
| |
| * A) ROOT
| |
| * B) ROOT + SWAP
| |
| * c) Crypted ROOT
| |
| Für das Partitionieren auf einem BIOS-Rechner wird bis zu einer Volumengröße von 2TBit fdisk eingesetzt.<br><br>
| |
| ------
| |
| <b> A) ROOT</b><br>
| |
| (Die optionale Einrichtung von SWAP-Speicher ist nachträglich mittels einer [[Swap#Swapdatei | Swap-Datei]]) moeglich<br><br>
| |
| | |
| <code style=font-size:12px>fdisk -l</code> - '''x''' ermitteln<br>
| |
| <code style=font-size:12px>fdisk /dev/'''x'''</code> - fdisk starten<br>
| |
| <code style=font-size:12px>{{taste|o}}</code> - neue Partitionstabelle im cache<br>
| |
| <code style=font-size:12px>{{taste|n}}</code> - neue Partition erstellen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Primaerpatition bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Partitionsnummer bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Ersten Sektor bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Letzten Sektor bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|a}}</code> - Bootsektor aktivieren<br>
| |
| <code style=font-size:12px>{{taste|p}}</code> - zur eigenen Kontrolle vor dem Speichern<br>
| |
| <code style=font-size:12px>{{taste|w}}</code> - schreiben der Partitionstabelle<br><br>
| |
| | |
| <u>Formatieren:</u><br>
| |
| <code style=font-size:12px>mkfs.ext4 -L ROOT /dev/'''x'''1</code><br><br>
| |
| | |
| <u>Mounten:</u><br>
| |
| <code style=font-size:12px>mount /dev/'''x'''1 /mnt</code><br><br>
| |
| | |
| Weiter siehe Kapitel [[3._Basispakete+Konfiguration|3. Basispakete+Konfiguration]]<br><br>
| |
| ----------
| |
| <b>B) ROOT + SWAP</b>
| |
| | |
| <code style=font-size:12px>fdisk -l</code> - '''x''' ermitteln<br>
| |
| <code style=font-size:12px>fdisk /dev/'''x'''</code> - fdisk starten<br>
| |
| <code style=font-size:12px>{{taste|o}}</code> - neue Partitionstabelle im cache<br> | |
| <code style=font-size:12px>{{taste|n}}</code> - neue Partition erstellen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Primaerpatition bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Partitionsnummer bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Ersten Sektor bestaetigen<br>
| |
| <code style=font-size:12px>-4G</code> - Letzten Sektor -4GiB<br>
| |
| <code style=font-size:12px>{{taste|a}}</code> - Bootsektor aktivieren<br>
| |
| <code style=font-size:12px>{{taste|n}}</code> - neue Partition erstellen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Primaerpatition bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Partitionsnummer bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Ersten Sektor bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Letzten Sektor bestaetigen<br>
| |
| <code style=font-size:12px>{{taste|t}}</code> – Partitionstyp waehlen<br>
| |
| <code style=font-size:12px>{{taste|Enter}}</code> - Partitionsnummer 2 bestaetigen<br>
| |
| <code style=font-size:12px>82</code> – Partitionstyp auf 'Linux swap' setzen<br>
| |
| <code style=font-size:12px>{{taste|p}}</code> - zur eigenen Kontrolle vor dem Speichern<br>
| |
| <code style=font-size:12px>{{taste|w}}</code> - schreiben der Partitionstabelle<br><br>
| |
| | |
| <u>Formatieren:</u><br>
| |
| <code style=font-size:12px>mkfs.ext4 -L ROOT /dev/'''x'''1</code><br>
| |
| <code style=font-size:12px>mkswap -L SWAP /dev/'''x'''2</code><br><br>
| |
| | |
| <u>Mounten:</u><br>
| |
| <code style=font-size:12px>mount /dev/'''x'''1 /mnt</code><br>
| |
| <code style=font-size:12px>swapon /dev/'''x'''2</code><br><br>
| |
| | |
| Weiter siehe Kapitel [[3._Basispakete+Konfiguration|3. Basispakete+Konfiguration]]<br><br>
| |
| ----------
| |
| <b>B) Crypted Root</b>
| |
| | |
| Weiter siehe Kapitel [[3._Basispakete+Konfiguration|3. Basispakete+Konfiguration]]<br><br>
| |
| ----------
| |
| <b>Entwurf Artikel: 3. Basispakete+Konfiguration</b>
| |
| | |
| Vorheriges Kapitel 2. siehe [[spicker | Arch Linux Installations Spickzettel]]<br>
| |
| | |
| <b>Installation der Basispakete und Konfiguration:</b><br>
| |
| <code style=font-size:12px>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br><br>
| |
| | |
| <u>Installation von Microcode:</u><br>
| |
| <code style=font-size:12px>pacstrap /mnt intel-ucode</code> oder <code style=font-size:12px>pacstrap /mnt amd-ucode</code><br><br>
| |
| | |
| <u>fstab erzeugen:</u><br>
| |
| <code style=font-size:12px>genfstab -U /mnt > /mnt/etc/fstab</code><br><br>
| |
| | |
| <u>Chrooten:</u><br>
| |
| <code style=font-size:12px>arch-chroot /mnt</code><br><br>
| |
| | |
| <u>Konfiguration:</u><br>
| |
| <code style=font-size:12px>echo '''mein-rechner''' > /etc/hostname</code><br>
| |
| <code style=font-size:12px>echo LANG=de_DE.UTF-8 > /etc/locale.conf</code><br>
| |
| <code style=font-size:12px>echo KEYMAP=de-latin1 > /etc/vconsole.conf</code><br>
| |
| <code style=font-size:12px>echo FONT=lat9w-16 >> /etc/vconsole.conf</code><br>
| |
| <code style=font-size:12px>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</code><br><br>
| |
| | |
| <code style=font-size:12px>nano /etc/locale.gen</code><br>
| |
| <u>Und das # am Anfang folgender Zeilen entfernen:</u><br> | |
| <code style=font-size:12px>#de_DE.UTF-8 UTF-8</code><br>
| |
| <code style=font-size:12px>#de_DE ISO-8859-1</code><br>
| |
| <code style=font-size:12px>#de_DE@euro ISO-8859-15</code><br>
| |
| <code style=font-size:12px>#en_US.UTF-8 UTF-8</code><br>
| |
| | |
| <code style=font-size:12px>locale-gen</code><br><br>
| |
| | |
| <u>Das Root Password erstellen:</u><br>
| |
| <code style=font-size:12px>passwd</code><br><br>
| |
| | |
| <u>Den Benutzer 'duda' anlegen und ihn ggf. zu den Gruppen hinzufuegen:</u><br>
| |
| <code style=font-size:12px>useradd -m -g users -s /bin/bash '''duda'''</code><br> | |
| <code style=font-size:12px>passwd '''duda'''</code><br>
| |
| <code style=font-size:12px>usermod -aG wheel,audio,video,power '''duda'''</code><br><br>
| |
| | |
| <u>Gruppenmitgliedern von wheel Rootrechte per 'sudo' verleihen:</u><br>
| |
| <code style=font-size:12px>EDITOR=nano visudo</code><br>
| |
| <u>Kommentarzeichen und Leerzeichen von dieser Zeile entfernen:</u><br>
| |
| <code style=font-size:12px># %wheel ALL=(ALL) ALL</code><br><br>
| |
| | |
| <u>Weitere Dienste installieren:</u><br>
| |
| <code style=font-size:12px>pacman -S acpid avahi iwd</code><br><br>
| |
| | |
| <u>Dienste aktivieren:</u><br>
| |
| <code style=font-size:12px>systemctl enable acpid</code> - Energieverwaltung<br>
| |
| <code style=font-size:12px>systemctl enable avahi-daemon</code> - Netzwerk Zuweisung<br>
| |
| <code style=font-size:12px>systemctl enable NetworkManager</code> - Netzwerkmanager<br>
| |
| <code style=font-size:12px>systemctl enable iwd</code> - WLAN Daemon</u><br>
| |
| <code style=font-size:12px>systemctl enable systemd-timesyncd</code> - Zeit Synchronisation<br><br>
| |
| | |
| ----------
| |
| <b>Entwurf Artikel: 4. Bootloader für BIOS-Rechner</b>
| |
| | |
| Vorheriges Kapitel [[3._Basispakete+Konfiguration|3. Basispakete+Konfiguration]]<br><br>
| |
| | |
| | |
| <b>4. Bootloader für BIOS-Rechner</b><br>
| |
| * A) Grub
| |
| * B) syslinux<br><br>
| |
| --------
| |
| <b>A) Grub</b>
| |
| | |
| <u>Grub installieren:</u><br>
| |
| <code style=font-size:12px>pacman -S grub</code><br>
| |
| <code style=font-size:12px>grub-install /dev/'''x'''</code><br>
| |
| <code style=font-size:12px>grub-mkconfig -o /boot/grub/grub.cfg</code><br><br>
| |
| | |
| <u>Chrootumgebung verlassen und Partitionen loesen:</u><br>
| |
| <code style=font-size:12px>exit</code><br>
| |
| <code style=font-size:12px>umount /mnt</code><br><br>
| |
| | |
| <code style=font-size:12px>poweroff</code><br>
| |
| <u>ISO-Stick entfernen, Neustarten und auf der Konsole Einloggen </u><br><br>
| |
| | |
| Weiter siehe Kapitel [[5._Grafische_Benutzeroberfl%C3%A4che|5. Grafische Benutzeroberfläche ]]
| |
| | |
| -----------
| |
| Anmerkung: Bisher in die Artikel eingearbeitet BIOS-Rechner Grub (r+rs)
| |