Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(Entwurf)
(Erzeugen einer Schlüsseldatei)
 
(55 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{|border="0" style="font-size:14px; line-height: 16px; wide: 100%"
{{inuse|[[Benutzer:Tuxnix|Tuxnix]] ([[Benutzer Diskussion:Tuxnix|Diskussion]])}}{{SEITENTITEL:sway}}{{righttoc}}
|'''Spickzettel Installation - UEFI - 2 Partitionen'''
|-
|Für einen UEFI-Rechner - 2 Partitionen (unverschlüsselt): /boot / - Lan - Systemd-boot
|}


&nbsp;<u>ISO-Abbild prüfen:</u><br>
<u>Erzeugen einer Schlüsseldatei zur Vermeidung einer zweiten Eingabe des Verschlüsselungspassworts:</u><br>
<code style=font-size:12px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><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>


&nbsp;<u>ISO-Abbild auf USB-Stick übertragen:</u><br>
<code style=font-size:12px>nano /etc/mkinitcpio.conf</code><br>
<code style=font-size:12px;>fdisk -l</code><br>
<u>'/keyfile.bin' zu Files hinzufuegen:</u><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>
<code style=font-size:12px>FILES=(/keyfile.bin)</code><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|gdisk /dev/'''x'''}} - gdisk starten
|-
|* {{taste|o}} - neue Partitionstabelle im chache
|-
|* {{taste|y}} - bestätigen
|-
|* {{taste|n}} - neue Partition
|-
|* {{taste|Enter}} - die Partitionsnummer bestätigen
|-
|* {{taste|Enter}} - den ersten Sektor bestätigen
|-
|* {{ic|+512M}} - die Partitionsgröße festlegen
|-
|* {{ic|ef00}} - den Partitionstyp für EFI setzen
|-
|* {{ic|n}} - eine weitere Partition anlegen
|-
|* {{taste|Enter}} - die Partitionsnummer bestätigen
|-
|* {{taste|Enter}} - ersten Sektor bestätigen
|-
|* {{taste|Enter}} - letzten Sektor bestätigen
|-
|* {{taste|Enter}} - den Linux Partitionstyp (8300) bestätigen
|-
|* {{taste|p}} - zeige neue Partitionstabelle zur Überprüfung an
|-
|* {{taste|w}} - speichern der neuen Partitionstabelle
|-
|* {{taste|y}} - bestätigen
|}<br>
 
&nbsp;<u>Formatieren:</u><br>
<code style=font-size:12px;>mkfs.fat -F 32 -n EFIBOOT /dev/sd'''x'''1</code><br>
<code style=font-size:12px;>mkfs.ext4 -L p_arch /dev/sd'''x'''2</code><br><br>
 
&nbsp;<u>Mounten:</u><br>
<code style=font-size:12px;>mount -L p_arch /mnt</code><br>
 
<code style=font-size:12px;>mkdir /mnt/boot</code><br>
<code style=font-size:12px;>mount -L EFIBOOT /mnt/boot</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 Micocode:</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>Systemd-boot installieren:</u><br>
<code style=font-size:12px;>bootctl install</code><br><br>
 
<code style=font-size:12px;>nano /boot/loader/entries/arch-uefi.conf</code><br>
&nbsp;<u>Und wie folgt anpassen:</u><br>
<code style=font-size:12px;>title Arch Linux</code><br>
<code style=font-size:12px;>linux /vmlinuz-linux</code><br>
<code style=font-size:12px;>initrd /initramfs-linux.img</code><br>
<code style=font-size:12px;>options root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
 
<code style=font-size:12px;>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
&nbsp;<u>Und wie folgt angepassen:</u><br>
<code style=font-size:12px;>title Arch Linux Fallback</code><br>
<code style=font-size:12px;>linux /vmlinuz-linux</code><br>
<code style=font-size:12px;>initrd /initramfs-linux-fallback.img</code><br>
<code style=font-size:12px;>options root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br><br>
 
<code style=font-size:12px;>nano /boot/loader/loader.conf</code><br>
&nbsp;<u>Und entsprechend angepassen:</u><br>
<code style=font-size:12px;>default arch-uefi.conf</code><br>
<code style=font-size:12px;>timeout 4</code><br><br>
 
<code style=font-size:12px;>bootctl update</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/boot</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>Und entfernen von Kommentatorzeichens und Leerzeichen:</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 X11:</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><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>Desktopumgebung installieren:</u><br>
&nbsp;Siehe [[:Kategorie:Desktopumgebung|Desktopumgebung]]<br>
<code style=font-size:12px;>reboot</code><br>
 
[[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)