Zum Inhalt springen

Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
Tuxnix (Diskussion | Beiträge)
Entwurf
K Seiten im Benutzerkontext müssen nicht mit inuse-Vorlage markiert werden
 
(58 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
Arbeitsnotizen. Nur für eigene Zwecke:
{{SEITENTITEL:sway}}{{righttoc}}


<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>


=Arch Intallation - in Konsolen Befehlen=
<code style=font-size:12px>nano /etc/mkinitcpio.conf</code><br>
Diese Anleitung ist als Spikzettel zur [[Anleitung für Einsteiger]] gedacht und listet die Konsolen Befehle die nötig sind um auf einen UEFI-Rechner ein einfaches Basis Arch Linux zu installieren.
<u>'/keyfile.bin' zu Files hinzufuegen:</u><br>
 
<code style=font-size:12px>FILES=(/keyfile.bin)</code><br>
 
* Für UEFI-Rechner - (unverschlüsselt)
* 2 Partitionen: /boot und /
* Systemd-boot als Bootloader
 
 
<div style="line-height: 0.2em;">&nbsp;ISO-Abbild prüfen:</div>
<code>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>
 
<div style="line-height: 0.2em;">&nbsp;ISO-Abbild auf USB-Stick übertragen:</div>
<code>fdisk -l</code><br>
<code>dd bs=4M if=/pfad/archlinux-'''*'''-x86_64.iso of=/dev/sd'''x''' status=progress oflag=sync</code><br><br>
 
<div style="line-height: 0.2em;">&nbsp;Installation unterbrechen:</div>
<code>reboot</code><br>
<code>poweroff</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Deutsche Tastaturbelegung - Die Taste '''{{Taste|Z}}''' drücken, um das '''y''' Zeichen zu erhalten:</div>
<code>loadkeys de</code><br>
 
 
&nbsp;Partitionieren:
* {{ic|fdisk -l}} - Mounts der angeschlossenen Datenträger ermitteln.
* {{ic|gdisk /dev/'''x'''}} –  Starten von gdisk
* {{taste|o}} – Erzeugen einer neuen GPT im cache. (Protektiver MBR zur Kompatibilität)
* {{taste|y}} – Bestätigung
* {{taste|n}} – Erstellen einer neuen Partition
* {{taste|Enter}} – Partitionsnummer bestätigen
* {{taste|Enter}} – Den ersten Sektor bestätigen
* {{ic|+512M}} – Die Partitionsgröße festlegen
* {{ic|ef00}} – Den Partitionstyp einer EFI-Partition setzen
* {{ic|n}} – Eine weitere Partition erstellen
* {{taste|Enter}} – Partitionsnummer bestätigen
* {{taste|Enter}} – Ersten Sektor bestätigen
* {{taste|Enter}} – Letzten Sektor bestätigen
* {{taste|Enter}} – Linux Partitionstyp (8300) bestätigen
* {{taste|p}} - Zeige neue Partitionstabelle zur Überprüfung an. 
* {{taste|w}} - Speicher der neue Partitionstabelle.
* {{taste|y}} – Bestätigung
 
 
<div style="line-height: 0.2em;">&nbsp;Formatieren:</div>
<code>mkfs.fat -F 32 -n EFIBOOT /dev/sd'''x'''1</code><br>
<code>mkfs.ext4 -L p_arch /dev/sd'''x'''2</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Mounten:</div>
<code>mount -L p_arch /mnt</code><br>
 
<code>mkdir /mnt/boot<br></code><br>
<code>mount -L EFIBOOT /mnt/boot</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Installation der Basispakete:</div>
<code>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Installation von Micocode:</div>
<code>pacstrap /mnt intel-ucode</code>oder<code>pacstrap /mnt amd-ucode</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;fstab erzeugen:</div>
<code>genfstab -Lp /mnt > /mnt/etc/fstab</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Chrooten:</div>
<code>arch-chroot /mnt/</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Konfiguration:</div>
<code>echo '''myhost''' > /etc/hostname</code><br>
<code>echo LANG=de_DE.UTF-8 > /etc/locale.conf</code><br>
<code>echo KEYMAP=de-latin1 > /etc/vconsole.conf</code><br>
<code>echo FONT=lat9w-16 >> /etc/vconsole.conf</code><br>
<code>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</code><br><br>
 
<code>nano /etc/locale.gen</code><br>
<div style="line-height: 0.2em;">&nbsp;Und das # am Anfang folgender Zeilen entfernen:</div>
<code>#de_DE.UTF-8 UTF-8</code><br>
<code>#de_DE ISO-8859-1</code><br>
<code>#de_DE@euro ISO-8859-15</code><br>
<code>#en_US.UTF-8</code><br>
 
<code>locale-gen</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Ein Root Password erstellen:</div>
<code>passwd</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Systemd-boot installieren:</div>
<code>bootctl install</code><br>
 
 
<code>nano /boot/loader/entries/arch-uefi.conf</code><br>
<div style="line-height: 0.2em;">&nbsp;Und wie folgt anpassen:</div>
<code>title    Arch Linux</code><br>
<code>linux    /vmlinuz-linux</code><br>
<code>initrd  /initramfs-linux.img</code><br>
<code>options  root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br>
 
 
<code>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
<div style="line-height: 0.2em;">&nbsp;Und wie folgt angepassen:</div>
<code>title    Arch Linux Fallback</code><br>
<code>linux    /vmlinuz-linux</code><br>
<code>initrd  /initramfs-linux-fallback.img</code><br>
<code>options  root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code>
 
 
<code>nano /boot/loader/loader.conf</code><br>
<div style="line-height: 0.2em;">&nbsp;Und entsprechend angepassen:</div>
<code>default arch-uefi.conf</code><br>
<code>timeout 4</code><br><br>
 
<code>bootctl update</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Chroot verlassen und Partitionen lösen:</div>
<code>exit</code><br>
 
<code>umount /mnt/boot</code><br>
<code>umount /mnt</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Arch Linux neu booten und anmelden:</div>
<code>reboot</code><br>
 
<code>'''myhost''' login: root</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Internetverbindung prüfen:</div>
<code>ping -c3 www.archlinux.de</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Internetverbindung herstellen über Lan:</div>
<code>ip link</code><br>
<code>dhcpcd enp'''xxx'''</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Arch Linux Aktualisieren:</div>
<code>pacman -Syu</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Einen Benutzer hinzufügen und zu Gruppen zuordnen:</div>
<code>useradd -m -g users -s /bin/bash '''duda'''</code><br>
<code>passwd '''duda'''</code><br>
<code>gpasswd -a '''duda''' wheel audio video games power</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Für die Gruppenmitglieder von wheel sudo aktivieren:</div>
<code>EDITOR=nano visudo</code><br>
<div style="line-height: 0.2em;">&nbsp;Entfernen des Kommentatorzeichens und des Leerzeichens.</div>
<code>%wheel ALL=(ALL) ALL</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Nützliche Dienste installieren und aktivieren:</div>
<code>pacman -S acpid dbus avahi cups</code><br>
 
 
<code>systemctl enable acpid</code><br>
<code>systemctl enable avahi-daemon</code><br>
<code>systemctl enable cups.service</code><br>
<code>systemctl enable systemd-timesyncd.service</code><br>
 
<div style="line-height: 0.2em;">&nbsp;Wenn das System auf einer SSD betrieben wird:</div>
<code>systemctl enable fstrim.timer</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Installation und Konfiguration von X11</div>
<code>pacman -S xorg-server xorg-xinit</code><br>
<code>localectl set-x11-keymap de pc105 deadgraveacute</code><br>
 
 
<code>lspci &#124;grep VGA</code><br>
<div style="line-height: 0.2em;">&nbsp;Passend zur Grafikkarte einen freien Treiber installieren:</div>
<code>pacman -S xf86-video-amdgpu</code><br>
<code>pacman -S xf86-video-intel</code><br>
<code>pacman -S xf86-xf86-video-nouveau</code><br>
 
 
<div style="line-height: 0.2em;">&nbsp;Desktopumgebung installieren:</div>
&nbsp;Siehe [[:Kategorie:Desktopumgebung|Desktopumgebung]]<br>
<code>reboot</code><br>
 
[[en:Beginners' Guide]]
[[Kategorie:Installation]]

Aktuelle Version vom 31. Januar 2025, 14:39 Uhr

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)