theme: ricetheme
New palette
New palette

Arch Install Guide: From USB Stick to Working Desktop

An Arch install takes you from a bootable USB to a working desktop, covering disk setup, bootloader, networking, user security, and a graphical environment.

A dark-themed illustration shows a USB plugged into a laptop, followed by a terminal window with code, and finally a clean desktop interface.

tl;dr the short answer

An Arch Linux install builds a working operating system from a minimal base, with you choosing its disk layout, packages, bootloader, network, users, and desktop. Plan partitions carefully, configure a boot path and everyday account, then keep the rolling-release system updated and check Arch news before upgrading; use archinstall for a guided setup or install by hand for more control. The result can be tailored to your hardware and preferences, but it requires ongoing maintenance and care.

Moving into an empty apartment is exciting, but you’d rather pick your own furniture than inherit someone else’s couch. Installing Arch Linux works the same way. You start with a bare system and choose every piece, so the result is exactly what you built.

This guide takes you from the ISO (a bootable disc image you write to a USB stick) to a working desktop.

We’ll cover the steps other guides skip, like encryption, hardware requirements, and the archinstall helper, plus a terminal setup that makes the fresh install feel like yours.

Getting Ready for Your Arch Install

Here’s what Arch is, how to boot its installer from USB, and what to check first.

What Arch is and who it suits

Arch Linux is a rolling-release distribution: updates arrive continuously instead of in numbered versions. It’s built around simplicity and user customization. Judd Vinet created it.

Arch isn’t beginner friendly. Ubuntu hands you a finished desktop, while Arch hands you a bare system you build yourself.

Power users choose Arch for that control. Think of a ricer who wants a tiling window manager, a custom bar, and matching colors: they pick every piece on Arch, so it’s entirely theirs.

Hackers use Arch for the same reason: a minimal base with nothing installed you didn’t choose.

Arch should run on any x86_64-compatible (64-bit) machine with a minimum of 512 MiB (about half a gigabyte) of random access memory (RAM), though the live system needs more memory to boot.

A basic install takes under 2 GiB (about 2 gigabytes) of disk space. Your hardware doesn’t need to be fancy.

Download the ISO and boot from USB

Work through these in order:

  1. Download the ISO (a disk image file) from archlinux.org.
  2. Use a tool like Rufus or Etcher to turn the stick into a bootable USB.
  3. Change the boot order in your BIOS (Basic Input/Output System) so the stick boots first.

Prepare the live system before installing

Booting the stick drops you into the live system, a temporary Arch environment. Handle these first:

  • Keyboard layout. Set it so your keys type what you expect.
  • Time. Sync the clock with NTP (Network Time Protocol).
  • Mirrors. Use reflector to rank and set the fastest package mirrors.
  • Official guide. Keep the official installation guide handy.

Splitting and Formatting Your Disk

Before you write anything to disk, plan where everything lives.

How to lay out your partitions

Run lsblk (list block devices) to find your target disk. Wrong disk, gone data.

A simple layout has three parts:

  • EFI system partition: a small partition that UEFI (Unified Extensible Firmware Interface) machines read to find the bootloader.
  • Root partition: the system itself, sized for packages and updates.
  • Home partition: your personal files.

Picture a hyprland user with months of tweaks. A separate home partition lets them reinstall the system and keep those files. It’s about keeping your rice, not rebuilding it.

Picking a partitioning tool and table type

A partitioning tool edits the layout, and the table type records it on disk. Your boot mode picks the table.

  • GParted (GNOME Partition Editor) is the graphical option.
  • gdisk handles GPT (GUID Partition Table) disks for UEFI.
  • fdisk handles MBR (Master Boot Record, also called DOS) disks for legacy BIOS (Basic Input/Output System) setups.

UEFI machines need GPT and an EFI partition, while legacy BIOS machines usually use MBR and skip it. Unsure which you have? Check your firmware settings.

Format the partitions and mount them

Using the names from lsblk (sda1 is EFI, sda2 root, sda3 home), write the filesystems and mount them under /mnt.

  • Format root as ext4 (fourth extended filesystem): mkfs.ext4 /dev/sda2
  • Format the EFI partition as FAT32 (File Allocation Table, 32-bit): mkfs.fat -F32 /dev/sda1

Mount root first so the rest have somewhere to land:

  1. mount /dev/sda2 /mnt
  2. mkdir -p /mnt/boot && mount /dev/sda1 /mnt/boot
  3. mkdir -p /mnt/home && mount /dev/sda3 /mnt/home

Want Btrfs (B-tree file system)? Use mkfs.btrfs instead of mkfs.ext4. Want encryption? LUKS (Linux Unified Key Setup) locks a partition, so unlock it first and format the device it opens.

Installing and Configuring the Base System

This is where we turn the install into a real system. If you’d rather let archinstall handle these steps, it offers a guided route, but working by hand shows you what’s happening.

Which base packages to install

Start with pacstrap, which copies the base system onto your mounted root partition. Add these to the same command:

  • linux and linux-firmware: the kernel, plus firmware for many Wi-Fi and graphics chips
  • intel-ucode or amd-ucode: microcode updates from your CPU maker
  • vim or nano: an editor for changing config files before you have a desktop

Picture a student reviving a ten-year-old ThinkPad over a weekend. Those extras are the difference between a laptop that boots clean and one missing its Wi-Fi.

It’s less about how many packages you install and more about which ones you need. Lean beats bloated.

A student uses a ThinkPad to install Arch Linux via terminal, discarding unneeded packages while checking off essentials.

Generate fstab and chroot into the system

Run genfstab -U /mnt >> /mnt/etc/fstab to create your fstab, which lists the partitions to mount at boot. Then enter the new system with arch-chroot (arch-chroot /mnt), so every command runs inside the installed system, not the live ISO.

Set your timezone, locale and hostname

Now make it feel like yours:

  1. Link your timezone with ln -sf /usr/share/zoneinfo/Region/City /etc/localtime, using your own region and city.
  2. Sync the hardware clock with hwclock --systohc.
  3. Uncomment your language in /etc/locale.gen, run locale-gen, then set LANG=en_US.UTF-8 in /etc/locale.conf.
  4. Write your machine’s name to /etc/hostname, then match it in /etc/hosts.

Last, set up swap as a partition, a file, or zram (compressed swap held in RAM). Pick one and move on.

Installing the Bootloader

The bootloader starts your system after the firmware hands off, so without one, nothing boots. Pick GRUB for flexibility or systemd-boot on UEFI (Unified Extensible Firmware Interface) machines.

Installing GRUB and detecting other systems

Inside your chroot, run pacman -S grub efibootmgr os-prober, then write GRUB to disk with the command for your firmware:

  • BIOS (Basic Input/Output System): grub-install --target=i386-pc /dev/sda (whole disk, not a partition)
  • UEFI: grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

Swap /efi for your EFI mount point. For dual boot, also set GRUB_DISABLE_OS_PROBER=false in /etc/default/grub, since newer GRUB versions skip os-prober by default. Then run grub-mkconfig -o /boot/grub/grub.cfg to generate the menu.

A student dual-booting Arch beside Windows on an old ThinkPad sees only Arch in the menu until they add that line and regenerate. Then both appear.

Using systemd-boot and how booting works

For systemd-boot, run bootctl install, then create /boot/loader/entries/arch.conf pointing to your kernel, your initramfs (the early filesystem with drivers for your root partition), and your root partition.

On BIOS, the firmware runs a tiny first GRUB stage from your disk’s first sector, which loads the rest and starts your kernel. The real BIOS and UEFI split is where the firmware looks for the bootloader.

Every Arch boot follows one chain:

  1. firmware
  2. bootloader
  3. kernel with initramfs
  4. systemd (which starts your services)

Miss one link, and nothing starts.

Unmount, reboot and recover if needed

Exit the chroot with exit, run umount -R /mnt to unmount every partition, pull out the install stick, and run reboot.

If it won’t boot, don’t reinstall. Boot the install stick, mount your root partition at /mnt and your EFI partition inside it, run arch-chroot /mnt, and rerun the bootloader command. You’re fixing one step, not starting over.

Getting Connected to the Internet

Nothing else here works until you’re online, so start here. Then make sure the connection survives your first reboot.

Connecting to Wi-Fi during the install

Start with iwctl, the built-in wireless tool:

  1. device list finds your Wi-Fi card, usually wlan0.
  2. station wlan0 scan, then station wlan0 get-networks, shows what’s nearby.
  3. station wlan0 connect YourNetwork joins it and asks for the password.

Wired? DHCP (the service that hands out network addresses) usually connects you automatically. Older guides use wifi-menu, a text menu for the same job, but iwctl is the more direct route.

Test with ping -c 3 archlinux.org, which sends three small test packets. Replies mean you’re online. Check before you partition a disk, not after an install stalls halfway through.

Managing your network after installing

Enable NetworkManager, a service that handles wired and Wi-Fi connections, from inside your new system:

systemctl enable NetworkManager

Prefer netctl? Run systemctl enable netctl-auto@wlan0 to connect to your saved profiles at boot. Interface names like wlan0 and enp3s0 vary between machines, so run ip link to see yours before you edit anything.

Advanced DNS and file sharing options

DNS (Domain Name System) turns site names into addresses, but plain lookups travel unencrypted. DNSSEC (DNS Security Extensions) checks that answers were signed by the site’s owner, so forged replies fail.

Encrypted DNS hides your lookups from anyone watching.

NFS (Network File System) shares folders between Linux machines. Think of a self-hoster who browses a home media server’s movie folder from their desktop. With NFS, they use those files over the network instead of copying them.

SSHFS mounts a remote folder over SSH (Secure Shell), needing only SSH access to the other machine.

Samba handles Windows-style shared folders and can join an Active Directory domain, Microsoft’s network login system. Add these only when you need them.

Dark terminal interface showing DNS resolution, secure self-hosted media streaming via server, and SSHFS/Samba connectivity tiles.

Creating Users and Securing Privileges

Before you customize anything, you’ll lock down who can do what.

Root and everyday user accounts

The root account has unlimited power, so set its password with passwd first.

Then you’ll create your everyday account with useradd -m -G wheel yourname, which joins you to the wheel group (the group allowed to administer the system), and set its password with passwd yourname.

Avoid prolonged root use. Picture a student on a ten-year-old ThinkPad who leaves a root shell open after one quick fix. One mistyped command can reach every file. Use root occasionally, not constantly, and log in as your everyday user.

Granting sudo rights with visudo

sudo (short for superuser do) lets your everyday account run one command as administrator after you type your password. Its rules live in sudoers, which you should edit only with visudo, because it’s built to catch syntax errors before saving.

As root, run visudo, find # %wheel ALL=(ALL:ALL) ALL, and remove the leading #. That lets anyone in the wheel group run any command as any user, after entering their password.

polkit (PolicyKit, the permission broker for desktop apps) handles requests like mounting drives. Its rules give fine-grained control, such as letting a ricer’s file manager mount a flash drive without a password while system files still ask.

Hardening the system and its firewall

Start with a few habits:

  • Keep it updated. Regular updates ship fixes for known problems.
  • Use strong passwords. Long passphrases beat short clever ones.
  • Control group access. Only give wheel to accounts that need admin rights.

Run getent group wheel anytime to spot any account with admin rights it shouldn’t have.

A firewall controls which network traffic reaches your machine. Pick nftables, the newer framework, or iptables, the older tool many guides still show, and stick with one.

Deny incoming traffic by default, then allow only the ports you use. Quiet is the goal.

Managing Software Packages Day to Day

Once you’re booted, the package manager becomes your daily tool.

The basics of using pacman

pacman is Arch’s package manager, and pacman -S followed by a name installs anything you need. Learn the core operations before anything else, since understanding what each one does beats memorizing flags.

Clean the package cache now and then so old downloads don’t eat disk space.

Arch is a rolling release, so there are no version jumps. Frequent updates stay manageable. Neglected ones don’t.

Choosing repositories and mirrors

Your packages come from a few sources:

  • Official repositories. Your foundation and first stop for nearly everything.
  • Multilib for 32-bit. Enable it only when you need 32-bit packages on a 64-bit system.
  • Unofficial user repositories. Community sources with software you won’t find elsewhere, so add only the ones you’d trust.

Mirrors vary in speed and freshness, so check mirror status before blaming your connection. Reflector ranks mirrors and writes a fresh list for you.

Building AUR packages and staying safe

The Arch User Repository (AUR) holds community-submitted packages, and you build each one yourself. Helpers like yaourt can automate that, but learn the manual steps first.

A PKGBUILD is a file describing how to fetch, build, and package software. The makepkg tool runs it and produces a package pacman can install. Together, these form the Arch build system: recipes in, installable packages out.

The AUR is unofficial, so safety is on you. A PKGBUILD can run commands on your machine, so read it before you build, not after.

Picture a tinkerer hunting for a niche bar module that exists only in the AUR. An unfamiliar download address in the PKGBUILD makes them walk away, and their system stays clean.

Keeping up with Arch news before updates

Read the Arch news before any upgrade. Announcements sometimes call for manual steps. Picture a homelabber who upgrades Friday night without checking, then hits a failed boot. The news had flagged a step they skipped.

arch-announce is the announcements mailing list, so subscribe to get notices before you update.

The pkgstats service gathers package statistics, and it’s optional, so you decide whether to opt in.

Setting up a Graphical Desktop

A fresh install boots to a text prompt. Let’s fix that.

Installing Xorg and graphics drivers

Xorg is the display server that draws your windows. Install it with sudo pacman -S xorg-server xorg-xinit; the second package provides startx.

Your graphics card needs a driver, the software that lets Xorg use the GPU (graphics processing unit). Check yours with lspci | grep -i vga. Intel and AMD usually use open-source drivers in mesa, while NVIDIA needs its own. Wrong driver, black screen.

Wayland is a newer option, but i3 doesn’t run on it, so this guide sticks with Xorg.

A GPU connects via a driver to a working monitor, while a mismatched piece links to a black screen labeled 'black screen'.

Choosing a desktop like GNOME or KDE

A desktop environment bundles the panel, file manager, and settings.

  • GNOME and KDE Plasma: polished, but heavier on memory.
  • Xfce: lightweight and quick on older hardware.
  • Cinnamon and MATE: traditional layouts that sit in between.

The tradeoff is features against overhead. A parent sharing a laptop for email and browsing? Xfce keeps things simple.

A display manager is the graphical login screen most desktops install. Without one, you log in at the console and start by hand.

Tiling windows with i3

Tiling window managers arrange windows in a grid. Stacking lets windows overlap, while tiling keeps them side by side.

Install with sudo pacman -S i3-wm i3status dmenu:

  • i3-wm: the window manager.
  • i3status: feeds the bar.
  • dmenu: a keyboard launcher.

Create ~/.xinitrc with echo 'exec i3' > ~/.xinitrc, which tells startx to launch i3.

Type startx at the console to launch i3, or call startx from your shell profile to autostart.

Copy the sample config with mkdir -p ~/.config/i3 && cp /etc/i3/config ~/.config/i3/config, then confirm the bar block runs i3status. Restart i3, and you’re up.

Customizing Your System After Install

Your base system boots, but it probably doesn’t feel like yours yet, so we’ll fix that. These steps turn it into a daily driver.

Everyday apps to install first

LibreOffice handles documents and spreadsheets, and you’ll want a browser, an email client, and VLC for nearly any video or audio file. Add a PDF viewer, a simple text editor, and an archive manager for zipped files.

Is Arch Linux good for gaming? It can be, once it’s set up properly. Install Steam with pacman, Arch’s package manager, and match your graphics drivers to your hardware, since drivers decide how well games run.

Getting sound and media working

ALSA (Advanced Linux Sound Architecture), the low-level sound layer, usually works right out of the box. Many setups add a sound server, PulseAudio or PipeWire (the newer one), to mix audio for several apps at once.

Install codecs and plugins so common formats play, and add a volume control tool. Test it before you tweak it.

Adding fonts and changing the look

Install TrueType fonts (a common font format) so text looks sharp in every app. Your look then rests on GTK and Qt, the toolkits behind most graphical apps, so set a matching theme for each.

Console fonts control the plain text screen you see before a graphical session starts. Your terminal emulator needs its own font and color config. That’s less about installing a theme and more about matching every app to one look.

Making the shell and terminal your own

Your shell reads the commands you type. Bash is the default on Arch, and zsh is a popular alternative. These tools make it feel like yours:

  • Tab completion: let Tab finish file names and commands for you.
  • Aliases and prompt: short names for long commands, plus a prompt that shows what matters.
  • tmux or screen: a terminal multiplexer that keeps sessions alive when you close a window.
  • Colored output: color for ls and grep makes results easy to scan.
  • Starship: a fast prompt that works across shells.
  • zoxide: remembers the folders you visit so you can jump back fast.
  • fzf: a fuzzy finder for files and history.
  • eza: a modern, friendlier replacement for ls.

Getting laptop power and hardware working

TLP, a power management tool, tunes settings to stretch your battery, and CPU frequency scaling, speed control for your processor, lets it speed up under load and slow down when idle.

Think of a student on a ten-year-old laptop who needs the battery to survive a long lecture. Tuning can make that possible.

Get your touchpad and input devices behaving, starting with tap-to-click and scrolling. Then arrange external monitors with xrandr, a command-line tool for X11 (the X Window System) sessions.

Bluetooth needs its own setup and a pairing tool. Drives formatted for Windows use NTFS (New Technology File System), so install NTFS support and automount them when you plug them in.

Managing services and tuning performance

systemd is the system manager behind your services, and systemctl lets you start, stop, and enable them. When something misbehaves, journalctl reads the logs so you can see why.

  • TRIM: enable it so your solid-state drive (SSD) stays responsive over time.
  • Benchmarking and tuning: measure before and after each change so you know what helped.
  • Printing with CUPS: CUPS (Common UNIX Printing System) handles printers and print queues.
  • Browser cache in RAM: keeping the cache in RAM (your fast system memory) reduces disk writes, but it clears on reboot.

Small, measured changes beat a pile of tweaks.

You’ve now walked the whole path, from booting the ISO to a desktop that starts clean and looks like yours.

Each step builds on the last: a partitioned disk, a working base system, a bootloader that finds it, and a network connection that keeps everything current.

Give encryption and your package habits extra attention, since you’ll live with them every day. Keep your config files backed up so a rebuild is painless.

Your desktop should reflect you, and it should still boot tomorrow.

References

  1. Arch Linux — archlinux.org
  2. Installation guide — wiki.archlinux.org

Questions

What is the difference between Arch and Ubuntu?

Arch Linux starts as a minimal system that you configure yourself, while Ubuntu typically provides a ready-to-use desktop and more defaults. Arch uses a rolling-release model with continuous updates; Ubuntu offers scheduled releases. Arch offers more control but generally requires more setup and maintenance.

How to install Arch step by step?

1. Download the Arch ISO and create a bootable USB, then boot from it. 2. Check your hardware and network, identify the correct disk, and plan and create its partitions; formatting the wrong disk can erase data. 3. Format and mount the partitions, then install the base system and needed packages with pacstrap, or use the guided archinstall tool. 4. Enter the new system with arch-chroot, configure settings and users, install a bootloader and networking, then unmount and reboot. 5. After booting, install a desktop, graphics drivers, and other software you need.

How does Arch Linux compare to Ubuntu?

Arch and Ubuntu are both Linux distributions, but they take different approaches. Arch is a minimal rolling-release system that gives you control over what is installed, while Ubuntu generally supplies a more complete desktop and a more guided setup. Arch suits people comfortable configuring and maintaining their system; Ubuntu is often easier to start with.

How much RAM is needed for Arch Linux?

Arch can run on a 64-bit x86_64 machine with a minimum of 512 MiB of RAM, though the live installer needs more to boot. A graphical desktop and everyday applications require additional memory, with the amount depending on the desktop and workload.

Why do hackers use Arch Linux?

Hackers may choose Arch because its minimal base lets them install only the tools and components they want. The same customization and control also appeal to other power users; using Arch does not itself make someone a hacker.

Is Arch Linux good for gaming?

Arch can be good for gaming once configured, but you need to install Steam and the graphics drivers suited to your hardware. Game performance depends largely on the GPU, drivers, and game compatibility, and setup may take more hands-on work than on a ready-to-use desktop system.

Sources

  1. Arch Linux - About, archlinux.org
  2. Installation guide - ArchWiki, wiki.archlinux.org