Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(Entwurf)
(Erzeugen einer Schlüsseldatei)
 
(51 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
Arch Spickzettel - BIOS
{{inuse|[[Benutzer:Tuxnix|Tuxnix]] ([[Benutzer Diskussion:Tuxnix|Diskussion]])}}{{SEITENTITEL:sway}}{{righttoc}}


{|border="0" style="font-size:14px; line-height: 16px; wide: 100%"
<u>Erzeugen einer Schlüsseldatei zur Vermeidung einer zweiten Eingabe des Verschlüsselungspassworts:</u><br>
  |Arch Installation auf einen BIOS-Rechner: */ (unverschlüsselt)&nbsp;&nbsp;&nbsp;*Lan&nbsp;&nbsp;&nbsp;*Grub
<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>
|(Zum Ausdrucken geeignet)
<code style=font-size:12px>chmod 000 /keyfile.bin</code><br><br>
|}


 
<code style=font-size:12px>nano /etc/mkinitcpio.conf</code><br>
&nbsp;<u>ISO-Abbild prüfen:</u><br>
<u>'/keyfile.bin' zu Files hinzufuegen:</u><br>
<code style=font-size:12px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>
<code style=font-size:12px>FILES=(/keyfile.bin)</code><br>
 
&nbsp;<u>ISO-Abbild auf USB-Stick übertragen:</u><br>
<code style=font-size:12px;>fdisk -l</code><br>
<code style=font-size:12px;>dd bs=4M if=/pfad/archlinux-'''*'''-x86_64.iso of=/dev/sd'''x''' status=progress oflag=sync</code><br><br>
 
&nbsp;<u>Installation unterbrechen:</u><br>
<code style=font-size:12px;>reboot</code><br>
<code style=font-size:12px;>poweroff</code><br><br>
 
&nbsp;<u>Deutsche Tastaturbelegung - Die Taste '''{{Taste|Z}}''' drücken, um das '''y''' Zeichen zu erhalten:</u><br>
<code style=font-size:12px;>loadkeys de</code><br><br>
 
{|border="0" style="font-size:14px; line-height: 16px"
|&nbsp;<u>Partitionieren:</u>
|-
|* {{ic|fdisk -l}} - '''x''' ermitteln
|-
|* {{ic|fdisk /dev/'''x'''}} - fdisk starten
|-
|* {{taste|o}} - neue Partitionstabelle im chache
|-
|* {{taste|n}} - neue Partition anlegen
|-
|* {{taste|Enter}} - Primarpatition bestätigen
|-
|* {{taste|Enter}} - Partitionsnummer bestätigen
|-
|* {{taste|Enter}} - Ersten Sektor bestätigen
|-
|* {{taste|Enter}} - Letzten Sektor bestätigen
|-
|* {{taste|a}} - Bootsektor aktivieren
|-
|* {{taste|p}} - zur eigenen Kontrolle vor dem Speichern
|-
|* {{taste|w}} - schreiben der Partitionstabelle
|}<br>
 
&nbsp;<u>Formatieren:</u><br>
<code style=font-size:12px;>mkfs.ext4 -L p_arch /dev/sd'''x'''1</code><br><br>
 
&nbsp;<u>Mounten:</u><br>
<code style=font-size:12px;>mount -L p_arch /mnt</code><br><br>
 
&nbsp;<u>Installation der Basispakete:</u><br>
<code style=font-size:12px;>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br><br>
 
&nbsp;<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>
 
&nbsp;<u>fstab erzeugen:</u><br>
<code style=font-size:12px;>genfstab -Lp /mnt > /mnt/etc/fstab</code><br><br>
 
&nbsp;<u>Chrooten:</u><br>
<code style=font-size:12px;>arch-chroot /mnt/</code><br><br>
 
&nbsp;<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>
&nbsp;<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</code><br>
 
<code style=font-size:12px;>locale-gen</code><br><br>
 
&nbsp;<u>Das Root Password erstellen:</u><br>
<code style=font-size:12px;>passwd</code><br><br>
 
&nbsp;<u>Grub installieren:</u><br>
<code style=font-size:12px;></code><br>
<code style=font-size:12px;></code><br><br>
 
&nbsp;<u>Chrootumgebung verlassen und Partitionen lösen:</u><br>
<code style=font-size:12px;>exit</code><br>
 
<code style=font-size:12px;>umount /mnt</code><br><br>
 
&nbsp;<u>Arch Linux neu booten und anmelden:</u><br>
<code style=font-size:12px;>reboot</code><br>
<code style=font-size:12px;>'''mein-rechner''' login: root</code><br><br>
 
&nbsp;<u>Internetverbindung herstellen über Lan:</u><br>
<code style=font-size:12px;>ip link</code><br>
<code style=font-size:12px;>dhcpcd enp'''xxx'''</code><br><br>
 
&nbsp;<u>Internetverbindung prüfen:</u><br>
<code style=font-size:12px;>ping -c3 www.archlinux.de</code><br><br>
 
&nbsp;<u>Arch Linux Aktualisieren:</u><br>
<code style=font-size:12px;>pacman -Syu</code><br><br>
 
&nbsp;<u>Einen Benutzer anlegen und ggf. zu den Gruppen hinzufügen:</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;>gpasswd -a '''duda''' wheel audio video games power</code><br><br>
 
&nbsp;<u>Gruppenmitgliedern von wheel Rootrechte per 'sudo' verleihen:</u><br>
<code style=font-size:12px;>EDITOR=nano visudo</code><br>
&nbsp;<u>Kommentarzeichen und Leerzeichen von dieser Zeile entfernen:</u><br>
<code style=font-size:12px;># %wheel ALL=(ALL) ALL</code><br><br>
 
&nbsp;<u>Notwendige Dienste installieren und aktivieren:</u><br>
<code style=font-size:12px;>pacman -S acpid avahi</code><br>
<code style=font-size:12px;>systemctl enable acpid</code> - <u>Energieverwaltung</u><br>
<code style=font-size:12px;>systemctl enable avahi-daemon</code> - <u>Netzwerk-Zuweisung</u><br>
<code style=font-size:12px;>systemctl enable systemd-timesyncd.service</code> - <u>Zeit-Synchronisation</u><br>
 
&nbsp;<u>Wenn das System auf einer SSD betrieben wird:</u><br>
<code style=font-size:12px;>systemctl enable fstrim.timer</code><br><br>
 
&nbsp;<u>Installation und Konfiguration von X:</u><br>
<code style=font-size:12px;>pacman -S xorg-server xorg-xinit</code><br>
<code style=font-size:12px;>localectl set-x11-keymap de pc105 deadgraveacute</code><br>
 
<code style=font-size:12px;>lspci &#124;grep VGA</code><br>
&nbsp;<u>Passend zur Grafikkarte einen freien Treiber installieren:</u><br>
<code style=font-size:12px;>pacman -S xf86-video-amdgpu</code><br>
<code style=font-size:12px;>pacman -S xf86-video-intel</code><br>
<code style=font-size:12px;>pacman -S xf86-xf86-video-nouveau</code><br><br>
 
&nbsp;<u>Plasma (minimal):</u><br>
<code style=font-size:12px;>pacman -S kwin plasma-desktop plasma-nm sddm</code><br>
 
&nbsp;<u>GNOME (minimal):</u><br>
<code style=font-size:12px;>pacman -S mutter network-manager-applet gdm</code><br>
 
&nbsp;<u>Xfce4 (minimal):</u><br>
<code style=font-size:12px;>pacman -S xfwm4 xfce4-session network-manager-applet lightdm</code><br><br>
 
&nbsp;<u>Nur einen Loginmanager aktivieren:</u><br>
<code style=font-size:12px;>systemctl enable sddm.service</code> - <u>für das Plasma Desktop</u><br>
<code style=font-size:12px;>systemctl enable gdm.service</code> - <u>für das GNOME Desktop</u><br>
<code style=font-size:12px;>systemctl enable lightdm.service</code> - <u>für das Xfce4 Desktop</u><br>
 
&nbsp;<u>Netzwerkmanager aktivieren:</u><br>
<code style=font-size:12px;>systemctl enable NetworkManager.service</code><br><br>
 
<code style=font-size:12px;>reboot</code><br>
&nbsp;<u>Und Einloggen im Desktopmanager</u>
 
[[en:Beginners' Guide]]
[[Kategorie:Installation]]

Aktuelle Version vom 24. April 2024, 20:36 Uhr

„Tuxnix“ wurde von Tuxnix (Diskussion) als in Bearbeitung markiert. Um Bearbeitungskonflikte zu vermeiden, kontaktiere Tuxnix (Diskussion) bitte, bevor du den Artikel bearbeitest.


Erzeugen einer Schlüsseldatei zur Vermeidung einer zweiten Eingabe des Verschlüsselungspassworts:
dd bs=512 count=4 if=/dev/urandom of=/keyfile.bin
cryptsetup luksAddKey /dev/disk/by-label/ROOT /keyfile.bin
chmod 000 /keyfile.bin

nano /etc/mkinitcpio.conf
'/keyfile.bin' zu Files hinzufuegen:
FILES=(/keyfile.bin)