Diese Anleitung führt dich durch die Installation von Arch Linux mit KDE Plasma. Sie verwendet das archinstall-Skript und ein zusätzliches Post-Installationsskript, um den Prozess zu vereinfachen.
- EIGENE VERANTWORTUNG: Die Nutzung dieser Anleitung und der Skripte erfolgt auf eigene Gefahr. Es können unerwartete Probleme auftreten, da jedes System anders konfiguriert ist.
- DATENSICHERUNG: Es wird DRINGEND EMPFOHLEN, vor jeglichen Änderungen eine vollständige Datensicherung zu erstellen.
- HAFTUNGSAUSSCHLUSS: Der Ersteller übernimmt KEINERLEI Verantwortung oder Haftung für Datenverluste, Systeminstabilitäten oder andere Schäden, die durch die Nutzung dieser Informationen entstehen könnten.
Hier ist eine Liste der Anwendungen, die das Installationsskript automatisch installiert:
- Firefox (Webbrowser)
- Thunderbird (E-Mail-Programm)
- FileZilla (FTP/SFTP-Client)
- PuTTY (SSH- & Telnet-Client)
- LocalSend (Dateien im lokalen Netzwerk teilen)
- Discord (Chat, Voice & Community)
- Threema (Sicherer Messenger)
- WasIstLos (WhatsApp Client)
- KDE Connect (Smartphone-Integration)
- Gwenview (Bild-Betrachter)
- Spectacle (Bildschirmfotos erstellen)
- GIMP (Bild-Bearbeitung)
- Krita (Digitales Malen & Zeichnen)
- Skanpage (Scan-Anwendung)
- Elisa (Musik-Wiedergabe)
- VLC (Universeller Media-Player)
- Kamoso (Webcam-Anwendung)
- Kdenlive (Video-Bearbeitung)
- HandBrake (Video-Konvertierung)
- LibreOffice (Office-Suite)
- KAddressBook (Kontaktverwaltung)
- Paperwork (Dokumenten-Scanner & Verwaltung)
- Okular (PDF- & Dokumenten-Betrachter)
- Kate (Texteditor)
- Geany (Leichte Entwicklungsumgebung)
- Meld (Dateien & Ordner vergleichen)
- Vim (Modal-Texteditor im Terminal)
- Dolphin (Dateimanager)
- Ark (Archivverwaltung)
- Konsole (Terminal-Emulator)
- Octopi (Grafische Paketverwaltung)
- Flatpak (Distributions-Framework)
- UFW (Firewall)
- CUPS (Drucker-Verwaltung)
- Deja-Dup (Datensicherung)
- KBackup (Datensicherung)
- KeePassXC (Passwortverwaltung)
- K3B (Brennprogramm für CDs/DVDs)
- Ventoy (Bootfähige USB-Sticks erstellen)
- KMahjongg (Mahjongg Solitaire)
- KPat (Patience-Kartenspiele)
- SuperTuxKart (3D-Rennspiel)
- Lade das aktuelle Arch Linux ISO herunter: https://archlinux.org/download/
- Erstelle einen bootfähigen USB-Stick. Unter Linux kannst du den
dd-Befehl verwenden. WICHTIG: Ersetze/dev/sdXdurch die korrekte Gerätebezeichnung deines USB-Sticks. Eine falsche Angabe kann deine Festplatte löschen!sudo dd if=archlinux-*.iso of=/dev/sdX bs=4M status=progress - Alternativ kannst du das Open-Source-Werkzeug Ventoy verwenden, mit dem du ISO-Dateien direkt auf den Stick kopieren kannst, ohne ihn neu formatieren zu müssen: https://www.ventoy.net
Starte deinen PC neu und boote vom erstellten USB-Stick. Wähle, falls verfügbar, den UEFI-Boot-Modus. Du landest dann in einer Konsole mit Root-Rechten.
- Ethernet (Kabel): Die Verbindung sollte automatisch hergestellt werden.
- WLAN (Drahtlos): Nutze
iwctlzur Konfiguration.Führe imiwctl
iwctl-Prompt die folgenden Befehle aus:Verlassedevice list station wlan0 scan station wlan0 get-networks station wlan0 connect "WLAN-SSID"iwctlmitexit. - Verbindung testen: Prüfe die Verbindung mit einem Ping.
ping archlinux.org
Stelle das deutsche Tastaturlayout ein und synchronisiere die Systemzeit:
loadkeys de
timedatectl set-ntp trueDer komfortable Teil der Installation beginnt jetzt.
Sicherheitshinweis zur Konfigurationsdatei: Das Skript verwendet eine externe Konfigurationsdatei. Du kannst den Inhalt vor der Verwendung prüfen, indem du sie herunterlädst:
wget https://bit.ly/3JZStkt
less config.jsonStarte die Installation, entweder lokal oder direkt von der URL:
archinstall --config config.jsonoder
archinstall --config-url https://bit.ly/3JZStktFolge den Anweisungen im Menü, um die Festplatten, den Hostnamen und die Benutzerkonten zu konfigurieren.
- Wähle "Disk configuration" im Hauptmenü.
- Wähle "Partitioning" -> "Use a best-effort default partition layout".
- Wähle deinen Zieldatenträger aus. WICHTIG: Alle Daten auf diesem Datenträger gehen verloren.
- Wähle bei "Filesystem" die Option btrfs.
- Bestätige "Would you like to use BTRFS subvolumes with a default structure?" mit "Yes".
- Bestätige "Would you like to use compression or disable CoW?" mit "Use compression".
- (Optional) Für maximale Sicherheit kannst du die Festplattenverschlüsselung mit LUKS konfigurieren.
- Navigiere zu "Btrfs snapshots" und wähle die Option "Snapper".
- Wähle "Hostname" im Hauptmenü.
- Gib einen gewünschten Namen für deinen Computer ein.
- Wähle "Authentication".
- Lege ein Root-Passwort fest.
- Füge ein Benutzerkonto hinzu und beantworte die Frage "Should [user] be a superuser (sudo)?" unbedingt mit "Yes".
Überprüfe die Zusammenfassung und wähle "Install", um den Vorgang zu starten.
Öffne nach dem Neustart und der Anmeldung eine Konsole und führe das Post-Installations-Skript aus.
Sicherheitshinweis zur Skriptausführung: Es wird empfohlen, das Skript vor der Ausführung zu überprüfen:
wget https://bit.ly/3K0ziHj
less postinstall.shFühre das Skript anschließend mit den folgenden Befehlen aus:
chmod +x postinstall.sh
sudo ./postinstall.shWICHTIG: Während der Installation wirst du mehrfach zur Passworteingabe aufgefordert. Das ist normal und notwendig. Nachdem das Skript beendet ist, starte deinen PC neu.
Das Skript automatisiert die folgenden Schritte:
- Einrichten des DNS-Resolvers
- Systemaktualisierung (
pacman -Syyu) - Sortieren der Spiegelserver (
reflector) - Installation von AUR-Helfern wie
paruundyay - Konfiguration von
snapperundbtrfs-assistantfür System-Snapshots - Einrichtung der Drucker-Software (CUPS)
- Installation von Hardware-Firmware (
linux-firmware) - Synchronisierung der Hardware-Uhr mit UTC
- Einrichtung der UFW-Firewall
- System-Tuning und Härtung (Optimierung von Kernel-Parametern,
zram,arch-audit) - Konfiguration des GRUB-Bootloaders und Aktivierung zusätzlicher Kernel-Sicherheitsmodule
- Einrichtung von
os-proberzur Erkennung anderer Betriebssysteme - Konfiguration des I/O-Schedulers
- Installation von
systemd-oomdzur Verhinderung von System-Einfrieren - Installation einer umfangreichen Sammlung von System- und Desktop-Anwendungen
- Einrichtung der Z-Shell (ZSH), Starship und Nerd Fonts
- Konfiguration von KDE-Thema und -Schriftarten
- Einrichtung eines automatischen Paket-Cache-Aufräumens
- Prüfung auf fehlgeschlagene Systemdienste
- BTRFS Snapshots: Die empfohlene Aufbewahrungsrichtlinie für Snapshots ist bereits eingestellt. Snapshots für das
/home-Verzeichnis sind standardmäßig deaktiviert, da klassische Backups für persönliche Daten besser geeignet sind. - BTRFS Balance: Dieser Prozess ordnet Daten neu an, um fragmentierten Speicherplatz zurückzugewinnen. Ein vollständiger Balance-Vorgang kann lange dauern. Oft ist ein gefilterter Balance die bessere Wahl, z.B.
btrfs balance start -dusage=50 /um nur Blöcke neu anzuordnen, die weniger als 50% gefüllt sind. - Systemupdates: Dein System kann in Zukunft einfach mit dem Befehl
sysupdaktualisiert werden. - Installation von Software:
- Offizielle Repositories: Immer die erste Wahl. Nutze
pacman -S. - Arch User Repository (AUR): Nutze AUR-Helper wie
yayoderparu. Prüfe im Zweifelsfall dasPKGBUILD-Skript. - Flatpak: Sinnvoll für proprietäre Software oder Anwendungen, die eine strikte Isolierung benötigen.
- Offizielle Repositories: Immer die erste Wahl. Nutze
- ARCH LINUX WIKI: Das Wiki ist eine wertvolle Ressource für die Fehlersuche und erweiterte Informationen: https://wiki.archlinux.org
This guide will walk you through the installation of Arch Linux with KDE Plasma. It uses the archinstall script and an additional post-installation script to simplify the process.
- YOUR OWN RESPONSIBILITY: You use this guide and the scripts at your own risk. Every system is configured differently, and unexpected problems may occur.
- DATA BACKUP: It is STRONGLY RECOMMENDED to create a complete and verified data backup of your important files or your entire system before making any changes.
- DISCLAIMER: The creator of this guide and the scripts assumes NO responsibility or liability for any data loss, system instabilities, or other damages that may arise from the use of the information provided here.
Here is a list of the applications that the installation script automatically installs:
- Firefox (Web browser)
- Thunderbird (Email client)
- FileZilla (FTP/SFTP file transfer)
- PuTTY (SSH & Telnet client)
- LocalSend (Share files on the local network)
- Discord (Chat, voice & community)
- Threema (Secure messenger)
- WasIstLos (WhatsApp client)
- KDE Connect (Smartphone integration)
- Gwenview (Image viewer)
- Spectacle (Take screenshots)
- GIMP (Comprehensive image editing)
- Krita (Digital painting & drawing)
- Skanpage (Scanning application)
- Elisa (Music playback)
- VLC (Universal media player)
- Kamoso (Webcam application)
- Kdenlive (Advanced video editing)
- HandBrake (Video conversion)
- LibreOffice (Complete office suite)
- KAddressBook (Contact management)
- Paperwork (Document scanner & management)
- Okular (PDF & document viewer)
- Kate (Advanced text editor)
- Geany (Lightweight development environment)
- Meld (Compare files & folders)
- Vim (Modal text editor in the terminal)
- Dolphin (File manager)
- Ark (Archive manager)
- Konsole (Terminal emulator)
- Octopi (Graphical package manager)
- Flatpak (Distribution framework)
- UFW (Firewall)
- CUPS (Printer management)
- Deja-Dup (Simple data backup)
- KBackup (Simple data backup)
- KeePassXC (Password manager)
- K3B (CD/DVD burning program)
- Ventoy (Create bootable USB sticks)
- KMahjongg (Mahjongg Solitaire)
- KPat (Patience card games)
- SuperTuxKart (3D racing game)
- Download the latest Arch Linux ISO: https://archlinux.org/download/
- Create a bootable USB stick. On Linux, you can use the
ddcommand. IMPORTANT: Replace/dev/sdXwith the correct device name of your USB stick. An incorrect entry can erase your hard drive!sudo dd if=archlinux-*.iso of=/dev/sdX bs=4M status=progress - Alternatively, use the open-source tool Ventoy, which allows you to create a bootable drive by simply copying the ISO file to it without reformatting: https://www.ventoy.net
Restart your PC and boot from the created USB stick. Choose the UEFI boot mode if available. You will then land in a console with root privileges.
- Ethernet (Cable): The connection should be established automatically.
- WLAN (Wireless): Use
iwctlto configure the connection:Execute the following commands in theiwctl
iwctlprompt:Then, exitdevice list station wlan0 scan station wlan0 get-networks station wlan0 connect "WLAN-SSID"iwctlwithexit. - Test Connection: Check if everything is working with a ping:
ping archlinux.org
Set the German keyboard layout and synchronize the system time:
loadkeys de
timedatectl set-ntp trueThe comfortable part of the installation begins now.
Security Notice for Configuration File: The following command uses a configuration file from an external source. You are encouraged to review the content of the file before use by downloading and viewing it first:
wget https://bit.ly/3JZStkt
less config.jsonOnce you agree with the content, you can start the script locally or use the direct URL:
archinstall --config config.jsonor
archinstall --config-url https://bit.ly/3JZStktFollow the instructions to configure the disks, hostname, and user accounts. Do not change other settings.
- Select "Disk configuration" from the main menu.
- Choose "Partitioning" -> "Use a best-effort default partition layout".
- Select the target disk from the list. IMPORTANT: All data on this disk will be erased.
- For "Filesystem," choose btrfs.
- Answer "Would you like to use BTRFS subvolumes with a default structure?" with "Yes".
- Answer "Would you like to use compression or disable CoW?" with "Use compression".
- (Optional) For maximum security, you can configure disk encryption with LUKS.
- Navigate to "Btrfs snapshots" and select "Snapper".
- Select "Hostname" from the main menu.
- Enter the desired name for your computer.
- Select "Authentication".
- Set a strong root password.
- Add a user account and be sure to answer "Should [user] be a superuser (sudo)?" with "Yes".
Review the configuration summary and select "Install" to begin the process.
After the reboot and login, open a console (terminal) and run the post-installation script.
Security Notice for Script Execution: The commands for running the script are deliberately separated. This allows you to inspect the script after downloading it and before running it with root privileges using the following command:
wget https://bit.ly/3K0ziHj
less postinstall.shThen, execute the script with these commands:
chmod +x postinstall.sh
sudo ./postinstall.shIMPORTANT: You will be prompted to enter your password multiple times during the installation. This is correct and necessary due to the security settings. After the script is finished, you should restart your PC.
The script automates the following steps:
- Setting up the DNS resolver
- System update (
pacman -Syyu) - Sorting mirror servers (
reflector) - Installing AUR helpers like
paruandyay - Configuring
snapperandbtrfs-assistantfor system snapshots - Setting up printer software (CUPS)
- Installing hardware firmware (
linux-firmware) - Synchronizing the hardware clock with UTC
- Setting up the UFW firewall
- System tuning and hardening (optimizing kernel parameters,
zram,arch-audit) - Configuring the GRUB bootloader and enabling additional kernel security modules
- Setting up
os-proberto detect other operating systems - Configuring the I/O scheduler
- Installing
systemd-oomdto prevent system freezes due to low memory - Installing a comprehensive collection of system tools and desktop applications
- Setting up Z-Shell (ZSH), Starship, and Nerd Fonts
- Configuring KDE theme and fonts
- Setting up an automatic package cache cleanup
- Checking for failed system services
- BTRFS Snapshots: The recommended snapshot retention policy is already configured. Snapshots for your
/homedirectory are generally not needed and are therefore disabled by default. Classic backup programs are better for personal data. - BTRFS Balance: This process re-arranges data to reclaim fragmented space. A full balance operation can take a very long time. Often, a filtered balance is the better choice, e.g.,
btrfs balance start -dusage=50 /to re-arrange only data blocks that are 50% or less full. - System Updates: You can easily update your system in the future with the
sysupdcommand. - Installing Software:
- Official Repositories: Always the first choice. Use
pacman -S. - Arch User Repository (AUR): Use AUR helpers like
yayorparu. Always be aware of the security risks and review thePKGBUILDscript if in doubt. - Flatpak: A good option if an application is not available in the official repositories or the AUR, or if you want strict isolation for security reasons.
- Official Repositories: Always the first choice. Use
- ARCH LINUX WIKI: The Wiki is an exceptionally comprehensive and community-maintained knowledge base. It is the first and often best place to find solutions to problems: https://wiki.archlinux.org