This comprehensive guide will walk you through installing Arch Linux from scratch with your choice of desktop environment.
Arch Linux provides unparalleled control and customization, allowing you to build exactly the system you want.
⚠️ Important: This guide assumes basic Linux knowledge. Arch installation requires attention to detail.
Always have the official Arch Wiki open as a reference: wiki.archlinux.org
1. Preparation
Step 1.1: Download Arch Linux ISO
Download the latest Arch Linux ISO from the official website:
# Download from: https://archlinux.org/download/
# Verify the signature for security
gpg --keyserver-options auto-key-retrieve --verify archlinux-*.iso.sig
Step 1.2: Create Bootable USB
Create a bootable USB drive (replace /dev/sdX with your USB device):
# Linux/macOS
sudo dd bs=4M if=archlinux-*.iso of=/dev/sdX conv=fsync oflag=direct status=progress
# Windows (use Rufus or similar tool)
Step 1.3: Boot from USB
Boot from the USB drive and you'll be greeted with the Arch Linux live environment.
💡 Tip: If you have UEFI, ensure Secure Boot is disabled in BIOS settings.
2. Base Installation
Step 2.1: Verify Boot Mode
# Check if booted in UEFI mode
ls /sys/firmware/efi/efivars
# If directory exists, you're in UEFI mode
Step 2.2: Connect to Internet
# For Ethernet (usually automatic)
ping archlinux.org
# For WiFi
iwctl
[iwd]# device list
[iwd]# station wlan0 scan
[iwd]# station wlan0 get-networks
[iwd]# station wlan0 connect "Your-WiFi-Name"
[iwd]# exit
Step 2.3: Update System Clock
timedatectl set-ntp true
timedatectl status
Step 2.4: Partition Disks
List available disks and create partitions:
# List disks
lsblk
# Use cfdisk for easier partitioning
cfdisk /dev/sda
# Recommended partition scheme for UEFI:
# /dev/sda1: 512M EFI System (Type: EFI System)
# /dev/sda2: 4G+ Linux swap (Type: Linux swap)
# /dev/sda3: Remaining space Linux filesystem (Type: Linux filesystem)
Step 2.5: Format Partitions
# Format EFI partition
mkfs.fat -F32 /dev/sda1
# Format root partition
mkfs.ext4 /dev/sda3
# Setup swap
mkswap /dev/sda2
swapon /dev/sda2
Step 2.6: Mount Partitions
# Mount root partition
mount /dev/sda3 /mnt
# Create and mount EFI directory
mkdir /mnt/boot
mount /dev/sda1 /mnt/boot
3. System Configuration
Step 3.1: Install Base System
# Install base packages
pacstrap /mnt base linux linux-firmware
# Install additional essential packages
pacstrap /mnt base-devel vim nano networkmanager grub efibootmgr
# Create user and add to groups
useradd -m -G wheel,audio,video,optical,storage -s /bin/bash username
# Set user password
passwd username
# Enable sudo for wheel group
EDITOR=nano visudo
# Uncomment: %wheel ALL=(ALL) ALL
GNOME Features: GNOME provides a modern, clean desktop experience with excellent Wayland support,
integrated applications, and smooth animations. Perfect for users who want a polished, user-friendly environment.
5. Hyprland Wayland Compositor
Step 5.1: Create User Account (if not done)
# Create user and add to groups
useradd -m -G wheel,audio,video,optical,storage -s /bin/bash username
# Set user password
passwd username
# Enable sudo for wheel group
EDITOR=nano visudo
# Uncomment: %wheel ALL=(ALL) ALL
Hyprland Features: Hyprland is a dynamic tiling Wayland compositor with beautiful animations,
extensive customization options, and excellent performance. Perfect for power users who want a modern,
efficient workflow with eye-candy.
6. KDE Plasma Desktop Environment
Step 6.1: Create User Account (if not done)
# Create user and add to groups
useradd -m -G wheel,audio,video,optical,storage -s /bin/bash username
# Set user password
passwd username
# Enable sudo for wheel group
EDITOR=nano visudo
# Uncomment: %wheel ALL=(ALL) ALL
# Exit chroot and reboot first
exit
umount -R /mnt
reboot
# After reboot, login through SDDM
# KDE Plasma will start automatically
# Optional: Install AUR helper (yay)
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
# Install popular AUR packages
yay -S visual-studio-code-bin discord spotify
KDE Plasma Features: KDE Plasma offers the most customizable desktop experience with extensive
theming options, powerful widgets, and a traditional desktop paradigm. Perfect for users who want maximum
control over their desktop appearance and behavior.
# Install yay AUR helper
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
# Alternative: Install paru
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd ..
rm -rf paru
Step 7.3: Graphics Drivers
# For NVIDIA GPUs
sudo pacman -S nvidia nvidia-utils nvidia-settings
# For AMD GPUs
sudo pacman -S xf86-video-amdgpu mesa
# For Intel GPUs
sudo pacman -S xf86-video-intel mesa
# For laptops with hybrid graphics
sudo pacman -S optimus-manager
Step 7.4: Essential Software
# Development tools
sudo pacman -S git vim neovim tmux docker docker-compose
# Media and productivity
sudo pacman -S vlc gimp libreoffice-fresh
# System utilities
sudo pacman -S htop btop neofetch tree unzip zip
# Fonts and themes
sudo pacman -S ttf-fira-code ttf-font-awesome
yay -S ttf-ms-fonts
# Useful commands to remember
sudo pacman -Syu # Update system
sudo pacman -S package # Install package
sudo pacman -R package # Remove package
sudo pacman -Ss search # Search packages
yay -S aur-package # Install from AUR
systemctl status service # Check service status
journalctl -xe # View system logs
🎉 Congratulations! You've successfully installed Arch Linux with your chosen desktop environment.
Remember: the journey doesn't end here. Arch Linux is about continuous learning and customization.
Explore the AUR, customize your desktop, and most importantly - have fun with your new system!