agon
Lt. Junior Grade
- Registriert
- Feb. 2022
- Beiträge
- 380
Arch Linux – Setup Guide
– Updated Edition –
– Updated Edition –
0 INTRO
This extensive & modular guide focuses on how to install and set up Arch Linux with the following goals in mind. The system should:- be as stable as possible,
- be sufficiently secure (without compromising usability too much),
- have acceptable low latency (for real-time applications, including games),
- be automated as much as possible (also for a small maintenance of the system),
- be well set up for KDE, Gaming, Firefox, mpv, Virt-Manager, your hardware, …
Many sections (esp. after installation) should be adaptable to other distributions.
0.1 Recommended prerequisites
- Having an UEFI system & a whole drive
- View: FAQ & Help:Reading
- For a better understanding of certain steps, view:
- the file system hierarchy overview &
- the essential core utilities of a GNU/Linux system
0.2 Key features – Realization of goals
0.2.1 Ideal setup of Secure Boot using
- Unified kernel image (UKI) – a single executable which will be booted directly from UEFI firmware (no extra boot manager). Using mkinitcpio as the UKI generator with systemd init.
- Full-disk encryption (FDE) – dm-crypt using LUKS2 extension
- Own UEFI keys. Dual booting with Windows is possible.
- Kernel lockdown (but disables hibernation)
0.2.2 File system: Btrfs (Feature overview)
0.2.3 Low latency
… to match Windows E2E latency.- Kernel: linux-zen
- Reducing input & output latency: GameMode, Reduce DRI latency, Disable tear prevention
- Reducing PipeWire latency
- Realtime privileges with rt module
- Settings from/for: Professional audio, CachyOS, Gaming::Improving performance
0.2.4 System Hardening
- Restrict programs' capabilities: AppArmor
- Sandboxing applications: Firejail (AppArmor is required)
- Firewall: Firewalld
- Kernel Hardening
- UEFI Hardening: Admin Password, SPI Write Protection, etc.
0.2.5 Setup for the following software & hardware
- Desktop environment: KDE Plasma
- AUR helper & Pacman wrapper: Paru | Shell: Zsh
- Web browser: Firefox | Media player: mpv
- Office: LibreOffice, Printer & Scanner
- Virtualization: KVM/QEMU > libvirt > virt-manager | Containerization: Podman
- AI / LLM: Ollama, PyTorch, ONNX Runtime for e.g. Firefox AI Runtime, etc.
- Hardware Security Key (Nitrokey 3): FIDO2, OpenPGP Card, SSH Key, WebAuthn
- … and more
0.2.6 Disk layout
Partition | 1: EFI system partition | 2: Root partition |
File systems & Labels | └ FAT32 (Unencrypted) | └ "Arch" – LUKS2 encrypted . └ "Root" – Btrfs |
Mount points | /efi | /, /.snapshots, /home, /swap, … |
Attachments
- Arch Linux – Setup Guide (ODT, PDF)
- Arch Linux – Config files (Package lists, Zsh, Firejail, Firefox, mpv)
- Shortcuts introduction (DE: Rund um Shortcuts)
Support me
If you find my guide helpful, then that's great. However, a lot of working time went into it.- If you have any suggestions for improvement, please let me know. For example, when commands no longer work because their parameter names have been changed.
- You can also support my work by donating ComputerBase Pro or a Steam Card.
Anhänge
Zuletzt bearbeitet: