Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
(Entwurf)
(Entwurf)
Zeile 1: Zeile 1:
Arbeitsnotizen. Nur für eigene Zwecke:
{|border="0" style="font-size:14px; line-height: 16px; wide: 100%"
 
  |'''Spickzettel Installation - UEFI - 2 Partitionen'''
 
{|border="0" style="font-size:14px; line-height: 16px, wide: 100%"
  |'''Spickzettel zum Ausdrucken'''
  |-
  |-
  |Für einen UEFI-Rechner - 2 Partitionen (unverschlüsselt): /boot / - Lan - Systemd-boot.
  |Für einen UEFI-Rechner - 2 Partitionen (unverschlüsselt): /boot / - Lan - Systemd-boot
|}
|}


&nbsp;<u>ISO-Abbild prüfen:</u><br>
&nbsp;<u>ISO-Abbild prüfen:</u><br>
<code style=font-size:14px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>
<code style=font-size:12px;>md5sum archlinux-'''*'''-x86_64.iso</code><br><br>


&nbsp;<u>ISO-Abbild auf USB-Stick übertragen:</u><br>
&nbsp;<u>ISO-Abbild auf USB-Stick übertragen:</u><br>
<code style=font-size:14px;>fdisk -l</code><br>
<code style=font-size:12px;>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>
<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>
&nbsp;<u>Installation unterbrechen:</u><br>
<code style=font-size:14px;>reboot</code><br>
<code style=font-size:12px;>reboot</code><br>
<code style=font-size:14px;>poweroff</code><br><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>
&nbsp;<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>
<code style=font-size:12px;>loadkeys de</code><br><br>


{|border="0" style="font-size:14px; line-height: 16px"
{|border="0" style="font-size:14px; line-height: 16px"
  |&nbsp;<u>Partitionieren:</u>
  |&nbsp;<u>Partitionieren:</u>
  |-
  |-
  |* {{ic|fdisk -l}}
  |* {{ic|fdisk -l}} - '''x''' ermitteln
  |-
  |-
  |* {{ic|gdisk /dev/'''x'''}}
  |* {{ic|gdisk /dev/'''x'''}} - gdisk starten
  |-
  |-
  |* {{taste|o}} - neue Partitionstabelle im chache
  |* {{taste|o}} - neue Partitionstabelle im chache
  |-
  |-
  |* {{taste|y}} - Bestätigung
  |* {{taste|y}} - bestätigen
  |-
  |-
  |* {{taste|n}} - neue Partition
  |* {{taste|n}} - neue Partition
Zeile 41: Zeile 38:
  |* {{ic|+512M}} - die Partitionsgröße festlegen
  |* {{ic|+512M}} - die Partitionsgröße festlegen
  |-
  |-
  |* {{ic|ef00}} - den Partitionstyp einer EFI-Partition setzen
  |* {{ic|ef00}} - den Partitionstyp für EFI setzen
  |-
  |-
  |* {{ic|n}} - eine weitere Partition erstellen
  |* {{ic|n}} - eine weitere Partition anlegen
  |-
  |-
  |* {{taste|Enter}} - die Partitionsnummer bestätigen
  |* {{taste|Enter}} - die Partitionsnummer bestätigen
Zeile 51: Zeile 48:
  |* {{taste|Enter}} - letzten Sektor bestätigen
  |* {{taste|Enter}} - letzten Sektor bestätigen
  |-
  |-
  |* {{taste|Enter}} - Linux Partitionstyp (8300) bestätigen
  |* {{taste|Enter}} - den Linux Partitionstyp (8300) bestätigen
  |-
  |-
  |* {{taste|p}} - zeige neue Partitionstabelle zur Überprüfung an
  |* {{taste|p}} - zeige neue Partitionstabelle zur Überprüfung an
Zeile 57: Zeile 54:
  |* {{taste|w}} - speichern der neuen Partitionstabelle
  |* {{taste|w}} - speichern der neuen Partitionstabelle
  |-
  |-
  |* {{taste|y}} - Bestätigung
  |* {{taste|y}} - bestätigen
|}<br>
|}<br>


&nbsp;<u>Formatieren:</u><br>
&nbsp;<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:12px;>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>
<code style=font-size:12px;>mkfs.ext4 -L p_arch /dev/sd'''x'''2</code><br><br>


&nbsp;<u>Mounten:</u><br>
&nbsp;<u>Mounten:</u><br>
<code style=font-size:14px;>mount -L p_arch /mnt</code><br>
<code style=font-size:12px;>mount -L p_arch /mnt</code><br>


<code style=font-size:14px;>mkdir /mnt/boot</code><br>
<code style=font-size:12px;>mkdir /mnt/boot</code><br>
<code style=font-size:14px;>mount -L EFIBOOT /mnt/boot</code><br><br>
<code style=font-size:12px;>mount -L EFIBOOT /mnt/boot</code><br><br>


&nbsp;<u>Installation der Basispakete:</u><br>
&nbsp;<u>Installation der Basispakete:</u><br>
<code style=font-size:14px;>pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano</code><br><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>
&nbsp;<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>
<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>
&nbsp;<u>fstab erzeugen:</u><br>
<code style=font-size:14px;>genfstab -Lp /mnt > /mnt/etc/fstab</code><br><br>
<code style=font-size:12px;>genfstab -Lp /mnt > /mnt/etc/fstab</code><br><br>


&nbsp;<u>Chrooten:</u><br>
&nbsp;<u>Chrooten:</u><br>
<code style=font-size:14px;>arch-chroot /mnt/</code><br><br>
<code style=font-size:12px;>arch-chroot /mnt/</code><br><br>


&nbsp;<u>Konfiguration:</u><br>
&nbsp;<u>Konfiguration:</u><br>
<code style=font-size:14px;>echo '''myhost''' > /etc/hostname</code><br>
<code style=font-size:12px;>echo '''mein-rechner''' > /etc/hostname</code><br>
<code style=font-size:14px;>echo LANG=de_DE.UTF-8 > /etc/locale.conf</code><br>
<code style=font-size:12px;>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:12px;>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:12px;>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:12px;>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</code><br><br>


<code style=font-size:14px;>nano /etc/locale.gen</code><br>
<code style=font-size:12px;>nano /etc/locale.gen</code><br>
&nbsp;<u>Und das # am Anfang folgender Zeilen entfernen:</u><br>
&nbsp;<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:12px;>#de_DE.UTF-8 UTF-8</code><br>
<code style=font-size:14px;>#de_DE ISO-8859-1</code><br>
<code style=font-size:12px;>#de_DE ISO-8859-1</code><br>
<code style=font-size:14px;>#de_DE@euro ISO-8859-15</code><br>
<code style=font-size:12px;>#de_DE@euro ISO-8859-15</code><br>
<code style=font-size:14px;>#en_US.UTF-8</code><br>
<code style=font-size:12px;>#en_US.UTF-8</code><br>


<code style=font-size:14px;>locale-gen</code><br><br>
<code style=font-size:12px;>locale-gen</code><br><br>


&nbsp;<u>Ein Root Password erstellen:</u><br>
&nbsp;<u>Das Root Password erstellen:</u><br>
<code style=font-size:14px;>passwd</code><br><br>
<code style=font-size:12px;>passwd</code><br><br>


&nbsp;<u>Systemd-boot installieren:</u><br>
&nbsp;<u>Systemd-boot installieren:</u><br>
<code style=font-size:14px;>bootctl install</code><br><br>
<code style=font-size:12px;>bootctl install</code><br><br>


<code style=font-size:14px;>nano /boot/loader/entries/arch-uefi.conf</code><br>
<code style=font-size:12px;>nano /boot/loader/entries/arch-uefi.conf</code><br>
&nbsp;<u>Und wie folgt anpassen:</u><br>
&nbsp;<u>Und wie folgt anpassen:</u><br>
<code style=font-size:14px;>title   Arch Linux</code><br>
<code style=font-size:12px;>title Arch Linux</code><br>
<code style=font-size:14px;>linux   /vmlinuz-linux</code><br>
<code style=font-size:12px;>linux /vmlinuz-linux</code><br>
<code style=font-size:14px;>initrd   /initramfs-linux.img</code><br>
<code style=font-size:12px;>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: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:14px;>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
<code style=font-size:12px;>nano /boot/loader/entries/arch-uefi-fallback.conf</code><br>
&nbsp;<u>Und wie folgt angepassen:</u><br>
&nbsp;<u>Und wie folgt angepassen:</u><br>
<code style=font-size:14px;>title   Arch Linux Fallback</code><br>
<code style=font-size:12px;>title Arch Linux Fallback</code><br>
<code style=font-size:14px;>linux   /vmlinuz-linux</code><br>
<code style=font-size:12px;>linux /vmlinuz-linux</code><br>
<code style=font-size:14px;>initrd   /initramfs-linux-fallback.img</code><br>
<code style=font-size:12px;>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: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:14px;>nano /boot/loader/loader.conf</code><br>
<code style=font-size:12px;>nano /boot/loader/loader.conf</code><br>
&nbsp;<u>Und entsprechend angepassen:</u><br>
&nbsp;<u>Und entsprechend angepassen:</u><br>
<code style=font-size:14px;>default arch-uefi.conf</code><br>
<code style=font-size:12px;>default arch-uefi.conf</code><br>
<code style=font-size:14px;>timeout 4</code><br><br>
<code style=font-size:12px;>timeout 4</code><br><br>


<code style=font-size:14px;>bootctl update</code><br><br>
<code style=font-size:12px;>bootctl update</code><br><br>


&nbsp;<u>Chroot verlassen und Partitionen lösen:</u><br>
&nbsp;<u>Chrootumgebung verlassen und Partitionen lösen:</u><br>
<code style=font-size:14px;>exit</code><br>
<code style=font-size:12px;>exit</code><br>


<code style=font-size:14px;>umount /mnt/boot</code><br>
<code style=font-size:12px;>umount /mnt/boot</code><br>
<code style=font-size:14px;>umount /mnt</code><br><br>
<code style=font-size:12px;>umount /mnt</code><br><br>


&nbsp;<u>Arch Linux neu booten und anmelden:</u><br>
&nbsp;<u>Arch Linux neu booten und anmelden:</u><br>
<code style=font-size:14px;>reboot</code><br>
<code style=font-size:12px;>reboot</code><br>
<code style=font-size:12px;>'''mein-rechner''' login: root</code><br><br>


<code style=font-size:14px;>'''myhost''' 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>
&nbsp;<u>Internetverbindung prüfen:</u><br>
<code style=font-size:14px;>ping -c3 www.archlinux.de</code><br><br>
<code style=font-size:12px;>ping -c3 www.archlinux.de</code><br><br>
 
&nbsp;<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>


&nbsp;<u>Arch Linux Aktualisieren:</u><br>
&nbsp;<u>Arch Linux Aktualisieren:</u><br>
<code style=font-size:14px;>pacman -Syu</code><br><br>
<code style=font-size:12px;>pacman -Syu</code><br><br>


&nbsp;<u>Einen Benutzer hinzufügen und zu Gruppen zuordnen:</u><br>
&nbsp;<u>Einen Benutzer anlegen und ggf. zu den Gruppen hinzufügen:</u><br>
<code style=font-size:14px;>useradd -m -g users -s /bin/bash '''duda'''</code><br>
<code style=font-size:12px;>useradd -m -g users -s /bin/bash '''duda'''</code><br>
<code style=font-size:14px;>passwd '''duda'''</code><br>
<code style=font-size:12px;>passwd '''duda'''</code><br>
<code style=font-size:14px;>gpasswd -a '''duda''' wheel audio video games power</code><br><br>
<code style=font-size:12px;>gpasswd -a '''duda''' wheel audio video games power</code><br><br>


&nbsp;<u>Für die Gruppenmitglieder von wheel sudo aktivieren:</u><br>
&nbsp;<u>Gruppenmitgliedern von wheel Rootrechte per 'sudo' verleihen:</u><br>
<code style=font-size:14px;>EDITOR=nano visudo</code><br>
<code style=font-size:12px;>EDITOR=nano visudo</code><br>
&nbsp;<u>Entfernen des Kommentatorzeichens und des Leerzeichens.</div>
&nbsp;<u>Und entfernen von Kommentatorzeichens und Leerzeichen:</u><br>
<code style=font-size:14px;>%wheel ALL=(ALL) ALL</code><br><br>
<code style=font-size:12px;># %wheel ALL=(ALL) ALL</code><br><br>


&nbsp;<u>Nützliche Dienste installieren und aktivieren:</u><br>
&nbsp;<u>Notwendige Dienste installieren und aktivieren:</u><br>
<code style=font-size:14px;>pacman -S acpid dbus avahi cups</code><br>
<code style=font-size:12px;>pacman -S acpid avahi</code><br>
<code style=font-size:14px;>systemctl enable acpid</code><br>
<code style=font-size:12px;>systemctl enable acpid</code> - <u>Energieverwaltung</u><br>
<code style=font-size:14px;>systemctl enable avahi-daemon</code><br>
<code style=font-size:12px;>systemctl enable avahi-daemon</code> - <u>Netzwerk-Zuweisung</u><br>
<code style=font-size:14px;>systemctl enable cups.service</code><br>
<code style=font-size:12px;>systemctl enable systemd-timesyncd.service</code> - <u> - Zeit Synchronisation</u><br>
<code style=font-size:14px;>systemctl enable systemd-timesyncd.service</code><br>


&nbsp;<u>Wenn das System auf einer SSD betrieben wird:</u><br>
&nbsp;<u>Wenn das System auf einer SSD betrieben wird:</u><br>
<code style=font-size:14px;>systemctl enable fstrim.timer</code><br><br>
<code style=font-size:12px;>systemctl enable fstrim.timer</code><br><br>


&nbsp;<u>Installation und Konfiguration von X11:</u><br>
&nbsp;<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:12px;>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:12px;>localectl set-x11-keymap de pc105 deadgraveacute</code><br><br>


<code style=font-size:14px;>lspci &#124;grep VGA</code><br>
<code style=font-size:12px;>lspci &#124;grep VGA</code><br>
&nbsp;<u>Passend zur Grafikkarte einen freien Treiber installieren:</u><br>
&nbsp;<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:12px;>pacman -S xf86-video-amdgpu</code><br>
<code style=font-size:14px;>pacman -S xf86-video-intel</code><br>
<code style=font-size:12px;>pacman -S xf86-video-intel</code><br>
<code style=font-size:14px;>pacman -S xf86-xf86-video-nouveau</code><br><br>
<code style=font-size:12px;>pacman -S xf86-xf86-video-nouveau</code><br><br>


&nbsp;<u>Desktopumgebung installieren:</u><br>
&nbsp;<u>Desktopumgebung installieren:</u><br>
Siehe [[:Kategorie:Desktopumgebung|Desktopumgebung]]<br>
&nbsp;Siehe [[:Kategorie:Desktopumgebung|Desktopumgebung]]<br>
<code style=font-size:14px;>reboot</code><br>
<code style=font-size:12px;>reboot</code><br>


[[en:Beginners' Guide]]
[[en:Beginners' Guide]]
[[Kategorie:Installation]]
[[Kategorie:Installation]]

Version vom 19. Februar 2021, 15:35 Uhr

Spickzettel Installation - UEFI - 2 Partitionen
Für einen UEFI-Rechner - 2 Partitionen (unverschlüsselt): /boot / - Lan - Systemd-boot

 ISO-Abbild prüfen:
md5sum archlinux-*-x86_64.iso

 ISO-Abbild auf USB-Stick übertragen:
fdisk -l
dd bs=4M if=/pfad/archlinux-*-x86_64.iso of=/dev/sdx status=progress oflag=sync

 Installation unterbrechen:
reboot
poweroff

 Deutsche Tastaturbelegung - Die Taste Z drücken, um das y Zeichen zu erhalten:
loadkeys de

 Partitionieren:
* fdisk -l - x ermitteln
* gdisk /dev/x - gdisk starten
* o - neue Partitionstabelle im chache
* y - bestätigen
* n - neue Partition
* ↵ Enter - die Partitionsnummer bestätigen
* ↵ Enter - den ersten Sektor bestätigen
* +512M - die Partitionsgröße festlegen
* ef00 - den Partitionstyp für EFI setzen
* n - eine weitere Partition anlegen
* ↵ Enter - die Partitionsnummer bestätigen
* ↵ Enter - ersten Sektor bestätigen
* ↵ Enter - letzten Sektor bestätigen
* ↵ Enter - den Linux Partitionstyp (8300) bestätigen
* p - zeige neue Partitionstabelle zur Überprüfung an
* w - speichern der neuen Partitionstabelle
* y - bestätigen


 Formatieren:
mkfs.fat -F 32 -n EFIBOOT /dev/sdx1
mkfs.ext4 -L p_arch /dev/sdx2

 Mounten:
mount -L p_arch /mnt

mkdir /mnt/boot
mount -L EFIBOOT /mnt/boot

 Installation der Basispakete:
pacstrap /mnt base base-devel linux linux-firmware dhcpcd nano

 Installation von Micocode:
pacstrap /mnt intel-ucodeoderpacstrap /mnt amd-ucode

 fstab erzeugen:
genfstab -Lp /mnt > /mnt/etc/fstab

 Chrooten:
arch-chroot /mnt/

 Konfiguration:
echo mein-rechner > /etc/hostname
echo LANG=de_DE.UTF-8 > /etc/locale.conf
echo KEYMAP=de-latin1 > /etc/vconsole.conf
echo FONT=lat9w-16 >> /etc/vconsole.conf
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime

nano /etc/locale.gen
 Und das # am Anfang folgender Zeilen entfernen:
#de_DE.UTF-8 UTF-8
#de_DE ISO-8859-1
#de_DE@euro ISO-8859-15
#en_US.UTF-8

locale-gen

 Das Root Password erstellen:
passwd

 Systemd-boot installieren:
bootctl install

nano /boot/loader/entries/arch-uefi.conf
 Und wie folgt anpassen:
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/entries/arch-uefi-fallback.conf
 Und wie folgt angepassen:
title Arch Linux Fallback
linux /vmlinuz-linux
initrd /initramfs-linux-fallback.img
options root=LABEL=p_arch rw lang=de init=/usr/lib/systemd/systemd locale=de_DE.UTF-8

nano /boot/loader/loader.conf
 Und entsprechend angepassen:
default arch-uefi.conf
timeout 4

bootctl update

 Chrootumgebung verlassen und Partitionen lösen:
exit

umount /mnt/boot
umount /mnt

 Arch Linux neu booten und anmelden:
reboot
mein-rechner login: root

 Internetverbindung herstellen über Lan:
ip link
dhcpcd enpxxx

 Internetverbindung prüfen:
ping -c3 www.archlinux.de

 Arch Linux Aktualisieren:
pacman -Syu

 Einen Benutzer anlegen und ggf. zu den Gruppen hinzufügen:
useradd -m -g users -s /bin/bash duda
passwd duda
gpasswd -a duda wheel audio video games power

 Gruppenmitgliedern von wheel Rootrechte per 'sudo' verleihen:
EDITOR=nano visudo
 Und entfernen von Kommentatorzeichens und Leerzeichen:
# %wheel ALL=(ALL) ALL

 Notwendige Dienste installieren und aktivieren:
pacman -S acpid avahi
systemctl enable acpid - Energieverwaltung
systemctl enable avahi-daemon - Netzwerk-Zuweisung
systemctl enable systemd-timesyncd.service - - Zeit Synchronisation

 Wenn das System auf einer SSD betrieben wird:
systemctl enable fstrim.timer

 Installation und Konfiguration von X11:
pacman -S xorg-server xorg-xinit
localectl set-x11-keymap de pc105 deadgraveacute

lspci |grep VGA
 Passend zur Grafikkarte einen freien Treiber installieren:
pacman -S xf86-video-amdgpu
pacman -S xf86-video-intel
pacman -S xf86-xf86-video-nouveau

 Desktopumgebung installieren:
 Siehe Desktopumgebung
reboot