Benutzer:Tuxnix: Unterschied zwischen den Versionen

Aus wiki.archlinux.de
Keine Bearbeitungszusammenfassung
(Entwurf)
Zeile 1: Zeile 1:
Arch Spickzettel - BIOS
{|border="0" style="font-size:14px; line-height: 16px; wide: 100%"
{|border="0" style="font-size:14px; line-height: 16px; wide: 100%"
   |Arch Installation auf einen UEFI-Rechner: */boot  / (unverschlüsselt)   *Lan   *Systemd-boot
   |Arch Installation auf einen BIOS-Rechner: */ (unverschlüsselt)   *Lan   *Grub
  |-
  |-
  |(Zum Ausdrucken geeignet)
  |(Zum Ausdrucken geeignet)
Zeile 25: Zeile 27:
  |* {{ic|fdisk -l}} - '''x''' ermitteln
  |* {{ic|fdisk -l}} - '''x''' ermitteln
  |-
  |-
  |* {{ic|gdisk /dev/'''x'''}} - gdisk starten
  |* {{ic|fdisk /dev/'''x'''}} - fdisk starten
  |-
  |-
  |* {{taste|o}} - neue Partitionstabelle im chache
  |* {{taste|o}} - neue Partitionstabelle im chache
  |-
  |-
|* {{taste|y}} - bestätigen
  |* {{taste|n}} - neue Partition anlegen
|-
  |* {{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}} - Primarpatition bestätigen
  |-
  |-
  |* {{taste|Enter}} - ersten Sektor bestätigen
  |* {{taste|Enter}} - Partitionsnummer bestätigen
  |-
  |-
  |* {{taste|Enter}} - letzten Sektor bestätigen
  |* {{taste|Enter}} - Ersten Sektor bestätigen
  |-
  |-
  |* {{taste|Enter}} - den Linux Partitionstyp (8300) bestätigen
  |* {{taste|Enter}} - Letzten Sektor bestätigen
  |-
  |-
  |* {{taste|p}} - zeige neue Partitionstabelle zur Überprüfung an
  |* {{taste|a}} - Bootsektor aktivieren
  |-
  |-
  |* {{taste|w}} - speichern der neuen Partitionstabelle
  |* {{taste|p}} - zur eigenen Kontrolle vor dem Speichern
  |-
  |-
  |* {{taste|y}} - bestätigen
  |* {{taste|w}} - schreiben der Partitionstabelle
|}<br>
|}<br>


&nbsp;<u>Formatieren:</u><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'''1</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:12px;>mount -L p_arch /mnt</code><br>
<code style=font-size:12px;>mount -L p_arch /mnt</code><br><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>
&nbsp;<u>Installation der Basispakete:</u><br>
Zeile 99: Zeile 85:
<code style=font-size:12px;>passwd</code><br><br>
<code style=font-size:12px;>passwd</code><br><br>


&nbsp;<u>Systemd-boot installieren:</u><br>
&nbsp;<u>Grub installieren:</u><br>
<code style=font-size:12px;>bootctl install</code><br><br>
<code style=font-size:12px;></code><br>
 
<code style=font-size:12px;></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>
&nbsp;<u>Chrootumgebung verlassen und Partitionen lösen:</u><br>
<code style=font-size:12px;>exit</code><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>
<code style=font-size:12px;>umount /mnt</code><br><br>



Version vom 24. Februar 2021, 13:42 Uhr

Arch Spickzettel - BIOS

Arch Installation auf einen BIOS-Rechner: */ (unverschlüsselt)   *Lan   *Grub
(Zum Ausdrucken geeignet)


 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
* fdisk /dev/x - fdisk starten
* o - neue Partitionstabelle im chache
* n - neue Partition anlegen
* ↵ Enter - Primarpatition bestätigen
* ↵ Enter - Partitionsnummer bestätigen
* ↵ Enter - Ersten Sektor bestätigen
* ↵ Enter - Letzten Sektor bestätigen
* a - Bootsektor aktivieren
* p - zur eigenen Kontrolle vor dem Speichern
* w - schreiben der Partitionstabelle


 Formatieren:
mkfs.ext4 -L p_arch /dev/sdx1

 Mounten:
mount -L p_arch /mnt

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

 Installation von Microcode:
pacstrap /mnt intel-ucode oder pacstrap /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

 Grub installieren:



 Chrootumgebung verlassen und Partitionen lösen:
exit

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
 Kommentarzeichen und Leerzeichen von dieser Zeile entfernen:
# %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 X:
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

 Plasma (minimal):
pacman -S kwin plasma-desktop plasma-nm sddm

 GNOME (minimal):
pacman -S mutter network-manager-applet gdm

 Xfce4 (minimal):
pacman -S xfwm4 xfce4-session network-manager-applet lightdm

 Nur einen Loginmanager aktivieren:
systemctl enable sddm.service - für das Plasma Desktop
systemctl enable gdm.service - für das GNOME Desktop
systemctl enable lightdm.service - für das Xfce4 Desktop

 Netzwerkmanager aktivieren:
systemctl enable NetworkManager.service

reboot
 Und Einloggen im Desktopmanager