X
Tech
Why you can trust ZDNET : ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission. Our process

'ZDNET Recommends': What exactly does it mean?

ZDNET's recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.

When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.

ZDNET's editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.

Close

How to install Arch Linux (without losing your sanity)

If you've ever wanted to try Arch Linux, but were afraid of the installation process, there's an easier way to do it, thanks to a built-in script.
Written by Jack Wallen, Contributing Writer
The lightdm greeter on Arch Linux.

With the installation complete, you can log in to your Arch Linux desktop.

Jack Wallen/ZDNET

Arch Linux is one of the last Linux distributions I would ever suggest to new users. Although using Arch Linux isn't all that difficult, installing it is another issue altogether. Unlike most Linux distributions, Arch Linux doesn't have a user-friendly GUI installer. It's all text-based and installation can be a challenge, even for people with plenty of experience using Linux.

Also: How to install Linux on an old laptop to give it new life and purpose

Recently, I discovered Arch Linux has a built-in installer script that was created to make the installation less challenging. I gave the script a go and found the claim of simplifying the task to be spot on. No, it's not as simple as, say, installing Ubuntu Linux (or any distribution with a GUI installer), but it's not the sanity-challenging task it once was.

Let me show you how to install Arch Linux.

How to install Arch Linux with archinstall

What you'll need: The only things you'll need for this task are a computer (or virtual machine) to install Arch Linux and a downloaded ISO image to use for the installation. I'll demonstrate this with a virtual machine, running on VirtualBox, which is the route I would recommend for testing purposes.

Also: Thinking about switching to Linux? 9 things you need to know

With those two things at the ready, let's install. You'll be surprised at how quickly you can get this installtion done.

1. Boot the ISO image

The first thing to do is boot the ISO image. Of course, if you're installing to a computer (also called "bare metal"), you'll need to burn the ISO image to a bootable USB drive. Let the boot finish and you should find yourself on the root bash prompt.

2. Run the archlinux command

From the root bash prompt, type archlinux and hit Enter on your keyboard. This will start the installation script. When you see Set/Modify the below options, you're ready to configure the installation.

The Arch Linux root bash prompt.

This is where you run the archlinux command.

Screenshot by Jack Wallen/ZDNET

3. Configure the necessary options

You'll have to go through and set several options. Use the arrow keys on your keyboard to navigate the text-based menu. I won't walk you through each option, but I will explain what areas you'll need to configure. Follow along with these instructions and you'll understand what to do:

  • Mirrors -- Select the closest mirror region to you. Find the location, hit the space bar to select it, and then hit Enter on your keyboard. Navigate to Back and hit Enter again.
  • Disk configuration -- Select Use a best-effort default partition layout. Make sure to select the drive you want to install Arch Linux on (again, using the arrow keys to navigate and the Space bar to select). Select ext4 as the filesystem. 
  • Root password -- Make sure to use a strong/unique password.
  • User account -- Add a user, type/verify a password, make them a "superuser", and then navigate to Confirm and exit and hit Enter on your keyboard.
  • Profile -- Select Desktop, choose the desktop environment you want (such as GNOME, KDE Plasma, Budgie, Enlightenment, Cinnamon, etc), and select the Greeter (I would recommend lightdm-gtk-greeter, which is the default).
  • Audio -- Select Pipewire.
  • Additional packages -- Here you can type any software you want to add (such as Firefox and Thunderbird). Don't worry, you can install more software from the desktop GUI once you're finished installing the operating system.
  • Network configuration -- Select Use NetworkManager and hit Enter on your keyboard.
  • Timezone -- Select the timezone for your area.
The archlinux installation command in action.

I've gone through and configured the installation using the archlinux comand.

Screenshot by Jack Wallen/ZDNET

Once you've taken care of the above options, navigate to Install and hit Enter on your keyboard. You'll be prompted to hit Enter again and the installation countdown will begin. This process should take about five minutes to complete. You'll then be asked if you want to chroot into the newly created installation and perform post-install configurations. Select no and hit Enter, which will return you to the root bash prompt. 

Also: How to choose the right Linux desktop distribution for you

Type reboot and Arch Linux will reboot. If you've installed on bare metal, remove the USB drive and allow your new Arch Linux installation to boot. If you've installed Arch Linux as a virtual machine either select Boot existing OS from the boot screen, or shut down the VM, remove the ISO image from the Storage section of settings, and reboot.

You should then find yourself on the Arch Linux login screen. Congratulations, you've successfully installed Arch Linux without losing your sanity.

Editorial standards