On top of a suitable computer, a stable internet con­nec­tion is required to install Arch Linux. Setup can be achieved by following prompts and is made somewhat more difficult by a lack of graphic aids. A desktop en­vir­on­ment can be op­tion­ally added after in­stalling Arch Linux.

Once installed and figured out, Arch Linux offers users more pos­sib­il­it­ies than many other Linux server dis­tri­bu­tions. Although the system has a very min­im­al­ist structure, it can be used with numerous ex­ten­sions and therefore cus­tom­ised and in­di­vidu­al­ised as desired. There remains a somewhat larger hurdle to overcome before reaching this point, however. The min­im­al­ist approach also means Arch Linux does not have any graphic in­stall­a­tion and con­fig­ur­a­tions aids. For in­ex­per­i­enced users in par­tic­u­lar, this makes the first steps quite com­plic­ated at first glance. Here, we explain all the steps required to install Arch Linux from pre­par­a­tion to final setup.

Cheap domain names – buy yours now
  • Free website pro­tec­tion with SSL Wildcard included
  • Free private re­gis­tra­tion for greater privacy
  • Free Domain Connect for easy DNS setup

The re­quire­ments for in­stalling Arch Linux

Before you get started, it is worth taking a look at the system re­quire­ments needed to install Arch Linux. Your computer must be x86-64 com­pat­ible, have a secure and stable internet con­nec­tion, and have a USB drive with a storage capacity of at least 2 GB. You will also need at least 512 MB of RAM and 1 GB of storage. However, 2 GB of RAM and at least 20 GB of memory are re­com­men­ded to install Arch Linux smoothly and for regular use later on.

Create a backup before in­stalling Arch Linux

In­stalling Arch Linux will delete all the data on your computer and on the current operating system. For this reason, you should either use a computer where this won’t be a problem, use a virtual machine, or create a backup for Linux or Windows. Use an external hard disk for this. Get started only when you are sure that in­stalling Arch Linux can’t lead to any loss of sensitive data.

Arch Linux download

The first step is to download the in­stall­a­tion image. On the Linux Arch download page you will find an ISO file which you should save on a bootable USB stick. Al­tern­at­ively, you can burn the file onto a blank DVD. Make sure you download the latest version and only download it from the official site.

Then, restart your computer and select the stick in the BIOS as the boot drive. How you get into the BIOS depends on the computer’s man­u­fac­turer. In many cases, the [F2] key is the button to press. Otherwise, you can find the right key or com­bin­a­tion of keys in the man­u­fac­turer’s manual. In the BIOS, access the boot menu, select `Boot Arch Linux (x86_64)´, save this change and then boot the program from the USB stick. You are now ready to install Arch Linux.

Create par­ti­tions and delete the hard disk

To install the system properly, you first need to create par­ti­tions and then embed them. At the outset you have two drives: on the one hand, your computer’s hard disk and, on the other hand, the Arch Linux in­stall­a­tion medium. To partition, proceed as follows:

  1. First, select `Boot Arch Linux (x86_64)´.
  2. The easiest way to create par­ti­tions is to use a program like cfdisk. Start by entering the name as a command.
  3. Now select `dos´ for the MBR partition style. Al­tern­at­ively, you can select `gpt´, `sgi´ or `sun´ under `Select label type´. If you have several hard disks, you need to choose the right one.
  4. Now start cfdisk via `cfdisk /dev/sda´. If your hard disk has a different name, you need to replace the part `/dev/sda´ ac­cord­ingly. This stands for the name of your hard disk.
  5. Now you can see whether the hard disk is empty. If it isn’t, you can delete it by clicking `Delete´.

Create a swap partition

If the hard disk is empty, first create a swap partition that will be used as RAM for Arch Linux.

  1. To do this, go to `New´ at the bottom left and press [Enter].
  2. Then select `Primary´ and, again, confirm with [Enter].
  3. Now type a number in MB and confirm that too – 1024 cor­res­ponds to 1 GB, 2048 2 GB and so on. Your swap partition should be twice, or even three times, the size of your RAM. With 2 GB RAM, you would choose 4096 MB (equi­val­ent to 4 x 1024).
  4. Now select `Quit´ to end the process.

Create the main partition

The main partition will later become the storage space for your actual operating system and other data. Create it as follows:

  1. Select the `Pri/Log Free Space´ partition.
  2. Go back to `New´ and press [Enter].
  3. Now select `Primary´ and confirm your selection.
  4. Check the size of the partition under `Size type´. This value should cor­res­pond to your total memory minus the swap partition.
  5. Now go to `Bootable´ at the bottom left and confirm the selection.
  6. Then select `Write´ (second option from the right), then `yes´ and press [Enter].
  7. Now quit cfdisk by clicking on `Quit´.

Create the file system and embed the par­ti­tions

Finally, create the file system and embed the two par­ti­tions. To do this, first format your primary partition with the following command:

mkfs.ext4 /dev/sda2

If you have chosen a different name for your primary partition, change the entry ac­cord­ingly.

Now embed the formatted partition. The command for this is:

mount /dev/sda2 /mnt

This way you can use the partition as a drive.

For the next step, insert a swap file in the swap partition. To do this, use the following commands and confirm each with [Enter]:

mkswap /dev/sda1
swapon /dev/sda1

Install Arch Linux: basic System and Settings

Now you can get started with actually in­stalling Arch Linux. To load the base system, you must be connected to the internet. Although this can also be done using WLAN, an Ethernet con­nec­tion is more secure and therefore re­com­men­ded in this case.

Install the base system

To install Arch Linux, enter the following:

pacstrap /mnt base base-devel

Confirm. The Arch Linux in­stall­a­tion will now be carried out. This can take up to 30 minutes depending on your internet con­nec­tion.

Create an fstab

Create an fstab with UUIDs so you can specify where drives are mounted in the directory. The right command is:

genfstab -UP /mnt > /mnt/etc/fstab

Set the root password

Now open the chroot access to make further settings. The ap­pro­pri­ate command is this one:

arch-chroot /mnt

Here you can now change your root password, for example.

Change the language, keyboard layout, and time zone

You can also set the language at this point via the system con­fig­ur­a­tion. This is the correct command for American English:

echo LANG=en_GB.UTF-8 > /etc/locale.conf

The right commands for keyboard layout and local time zone are:

echo KEYMAP=en-latin1 > /etc/vconsole.conf
In -sf /usr/share/zoneinfo/Europe/London /etc/localtime

Create archive

You need an archive for all files that are used when starting the system. You create these initramfs like this:

mkinitcpio -p linux

Install boot­load­er

You need a boot loader to install Arch Linux. A popular and secure variant is the Grand Unified Boot­load­er (GRUB). You can get this by using this command:

pacman -S grub os-prober

To install, type this the next time you boot:

grub-install /dev/sda

Then create a con­fig­ur­a­tion file:

grub-mkconfig -o /boot/grub/grub.cfg

Complete the Arch Linux in­stall­a­tion

You have now suc­cess­fully completed the Arch Linux in­stall­a­tion and can use the base system by entering this command:

exit > umount /dev/sda2 > reboot

If you want to continue using the system via the command line, this is not an issue and – at this point – you have finished in­stalling Arch Linux. You can also set up another desktop en­vir­on­ment, however. There are various options for this – other than Gnome, LXDE, and Budgie are supported.

Con­clu­sion: in­stalling Arch Linux is easier than expected

Linux certainly knows simpler systems than Arch Linux. However, once the in­stall­a­tion is done, you get a system that gives you a lot of pos­sib­il­it­ies to customise. For beginners, other dis­tri­bu­tions may be more suitable at first glance, but once you have fa­mil­i­ar­ised yourself and un­der­stood Arch Linux from in­stall­a­tion to con­fig­ur­a­tion to regular main­ten­ance, this will also help you with other dis­tri­bu­tions. A large community is also available for all questions about Arch Linux.

Go to Main Menu