|
|
(57 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> |
|
| |
|
| {|border="0" style="font-size:14px; line-height: 16px, wide: 100%"
| | <code style=font-size:12px>nano /etc/mkinitcpio.conf</code><br> |
| |'''Spickzettel zum Ausdrucken'''
| | <u>'/keyfile.bin' zu Files hinzufuegen:</u><br> |
| |-
| | <code style=font-size:12px>FILES=(/keyfile.bin)</code><br> |
| |Für einen UEFI-Rechner - 2 Partitionen (unverschlüsselt): /boot / - Lan - Systemd-boot.
| |
| |}
| |
| | |
| <u>ISO-Abbild prüfen:</u><br>
| |
| <code style=font-size:14px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>
| |
| | |
| <u>ISO-Abbild auf USB-Stick übertragen:</u><br>
| |
| <code style=font-size:14px;>fdisk -l</code><br>
| |
| <code style=font-size:14px;>dd bs=4M if=/pfad/archlinux-'''*'''-x86_64.iso of=/dev/sd'''x''' status=progress oflag=sync</code><br><br>
| |
| | |
| <u>Installation unterbrechen:</u><br>
| |
| <code style=font-size:14px;>reboot</code><br>
| |
| <code style=font-size:14px;>poweroff</code><br><br>
| |
| | |
| <u>Deutsche Tastaturbelegung - Die Taste '''{{Taste|Z}}''' drücken, um das '''y''' Zeichen zu erhalten:</u><br>
| |
| <code style=font-size:14px;>loadkeys de</code><br><br>
| |
| | |
| {|border="0" style="font-size:14px; line-height: 16px"
| |
| | <u>Partitionieren:</u>
| |
| |-
| |
| |* {{ic|fdisk -l}}
| |
| |-
| |
| |* {{ic|gdisk /dev/'''x'''}}
| |
| |-
| |
| |* {{taste|o}} - neue Partitionstabelle im chache
| |
| |-
| |
| |* {{taste|y}} - Bestätigung
| |
| |-
| |
| |* {{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 einer EFI-Partition setzen
| |
| |-
| |
| |* {{ic|n}} - eine weitere Partition erstellen
| |
| |-
| |
| |* {{taste|Enter}} - die 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}} - speichern der neuen Partitionstabelle
| |
| |-
| |
| |* {{taste|y}} - Bestätigung
| |
| |}<br>
| |
| | |
| <u>Formatieren:</u><br>
| |
| <code style=font-size:14px;>mkfs.fat -F 32 -n EFIBOOT /dev/sd'''x'''1</code><br>
| |
| <code style=font-size:14px;>mkfs.ext4 -L p_arch /dev/sd'''x'''2</code><br><br>
| |
| | |
| <u>Mounten:</u><br>
| |
| <code style=font-size:14px;>mount -L p_arch /mnt</code><br>
| |
| | |
| <code style=font-size:14px;>mkdir /mnt/boot</code><br>
| |
| <code style=font-size:14px;>mount -L EFIBOOT /mnt/boot</code><br><br>
| |
| | |
| <u>Installation der Basispakete:</u><br>
| |
| <code style=font-size:14px;>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br><br> | |
| | |
| <u>Installation von Micocode:</u><br>
| |
| <code style=font-size:14px;>pacstrap /mnt intel-ucode</code>oder<code style=font-size:14px;>pacstrap /mnt amd-ucode</code><br><br>
| |
| | |
| <u>fstab erzeugen:</u><br>
| |
| <code style=font-size:14px;>genfstab -Lp /mnt > /mnt/etc/fstab</code><br><br>
| |
| | |
| <u>Chrooten:</u><br>
| |
| <code style=font-size:14px;>arch-chroot /mnt/</code><br><br>
| |
| | |
| <u>Konfiguration:</u><br>
| |
| <code style=font-size:14px;>echo '''myhost''' > /etc/hostname</code><br>
| |
| <code style=font-size:14px;>echo LANG=de_DE.UTF-8 > /etc/locale.conf</code><br>
| |
| <code style=font-size:14px;>echo KEYMAP=de-latin1 > /etc/vconsole.conf</code><br>
| |
| <code style=font-size:14px;>echo FONT=lat9w-16 >> /etc/vconsole.conf</code><br>
| |
| <code style=font-size:14px;>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</code><br><br>
| |
| | |
| <code style=font-size:14px;>nano /etc/locale.gen</code><br>
| |
| <u>Und das # am Anfang folgender Zeilen entfernen:</u><br>
| |
| <code style=font-size:14px;>#de_DE.UTF-8 UTF-8</code><br>
| |
| <code style=font-size:14px;>#de_DE ISO-8859-1</code><br>
| |
| <code style=font-size:14px;>#de_DE@euro ISO-8859-15</code><br>
| |
| <code style=font-size:14px;>#en_US.UTF-8</code><br>
| |
| | |
| <code style=font-size:14px;>locale-gen</code><br><br>
| |
| | |
| <u>Ein Root Password erstellen:</u><br>
| |
| <code style=font-size:14px;>passwd</code><br><br>
| |
| | |
| <u>Systemd-boot installieren:</u><br>
| |
| <code style=font-size:14px;>bootctl install</code><br><br>
| |
| | |
| <code style=font-size:14px;>nano /boot/loader/entries/arch-uefi.conf</code><br>
| |
| <u>Und wie folgt anpassen:</u><br>
| |
| <code style=font-size:14px;>title Arch Linux</code><br>
| |
| <code style=font-size:14px;>linux /vmlinuz-linux</code><br>
| |
| <code style=font-size:14px;>initrd /initramfs-linux.img</code><br>
| |
| <code style=font-size:14px;>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:14px;>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
| |
| <u>Und wie folgt angepassen:</u><br>
| |
| <code style=font-size:14px;>title Arch Linux Fallback</code><br>
| |
| <code style=font-size:14px;>linux /vmlinuz-linux</code><br>
| |
| <code style=font-size:14px;>initrd /initramfs-linux-fallback.img</code><br>
| |
| <code style=font-size:14px;>options root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8</code><br>
| |
| | |
| <code style=font-size:14px;>nano /boot/loader/loader.conf</code><br>
| |
| <u>Und entsprechend angepassen:</u><br>
| |
| <code style=font-size:14px;>default arch-uefi.conf</code><br>
| |
| <code style=font-size:14px;>timeout 4</code><br><br>
| |
| | |
| <code style=font-size:14px;>bootctl update</code><br><br>
| |
| | |
| <u>Chroot verlassen und Partitionen lösen:</u><br>
| |
| <code style=font-size:14px;>exit</code><br>
| |
| | |
| <code style=font-size:14px;>umount /mnt/boot</code><br>
| |
| <code style=font-size:14px;>umount /mnt</code><br><br>
| |
| | |
| <u>Arch Linux neu booten und anmelden:</u><br>
| |
| <code style=font-size:14px;>reboot</code><br>
| |
| | |
| <code style=font-size:14px;>'''myhost''' login: root</code><br><br>
| |
| | |
| <u>Internetverbindung prüfen:</u><br>
| |
| <code style=font-size:14px;>ping -c3 www.archlinux.de</code><br><br>
| |
| | |
| <u>Internetverbindung herstellen über Lan:</u><br>
| |
| <code style=font-size:14px;>ip link</code><br>
| |
| <code style=font-size:14px;>dhcpcd enp'''xxx'''</code><br><br>
| |
| | |
| <u>Arch Linux Aktualisieren:</u><br>
| |
| <code style=font-size:14px;>pacman -Syu</code><br><br>
| |
| | |
| <u>Einen Benutzer hinzufügen und zu Gruppen zuordnen:</u><br>
| |
| <code style=font-size:14px;>useradd -m -g users -s /bin/bash '''duda'''</code><br> | |
| <code style=font-size:14px;>passwd '''duda'''</code><br>
| |
| <code style=font-size:14px;>gpasswd -a '''duda''' wheel audio video games power</code><br><br>
| |
| | |
| <u>Für die Gruppenmitglieder von wheel sudo aktivieren:</u><br>
| |
| <code style=font-size:14px;>EDITOR=nano visudo</code><br>
| |
| <u>Entfernen des Kommentatorzeichens und des Leerzeichens.</div>
| |
| <code style=font-size:14px;>%wheel ALL=(ALL) ALL</code><br><br>
| |
| | |
| <u>Nützliche Dienste installieren und aktivieren:</u><br>
| |
| <code style=font-size:14px;>pacman -S acpid dbus avahi cups</code><br>
| |
| <code style=font-size:14px;>systemctl enable acpid</code><br>
| |
| <code style=font-size:14px;>systemctl enable avahi-daemon</code><br>
| |
| <code style=font-size:14px;>systemctl enable cups.service</code><br>
| |
| <code style=font-size:14px;>systemctl enable systemd-timesyncd.service</code><br>
| |
| | |
| <u>Wenn das System auf einer SSD betrieben wird:</u><br>
| |
| <code style=font-size:14px;>systemctl enable fstrim.timer</code><br><br>
| |
| | |
| <u>Installation und Konfiguration von X11:</u><br>
| |
| <code style=font-size:14px;>pacman -S xorg-server xorg-xinit</code><br>
| |
| <code style=font-size:14px;>localectl set-x11-keymap de pc105 deadgraveacute</code><br><br>
| |
| | |
| <code style=font-size:14px;>lspci |grep VGA</code><br>
| |
| <u>Passend zur Grafikkarte einen freien Treiber installieren:</u><br>
| |
| <code style=font-size:14px;>pacman -S xf86-video-amdgpu</code><br>
| |
| <code style=font-size:14px;>pacman -S xf86-video-intel</code><br>
| |
| <code style=font-size:14px;>pacman -S xf86-xf86-video-nouveau</code><br><br>
| |
| | |
| <u>Desktopumgebung installieren:</u><br>
| |
| Siehe [[:Kategorie:Desktopumgebung|Desktopumgebung]]<br>
| |
| <code style=font-size:14px;>reboot</code><br>
| |
| | |
| [[en:Beginners' Guide]]
| |
| [[Kategorie:Installation]]
| |