Installing Arch the fun way
3 minutes read
Installing Arch is not hard at all, it’s quite simple to do. Arch has long been known as a power-users’ distro, and Arch users are usually elitists. Today, we’ll break that notion!
Let’s learn how to install Arch manually!
Step 1: Download the Arch ISO
Download the Arch ISO from here. You can also download it from a mirror in your country for faster download speeds.
Step 2: Boot into the Arch ISO
Create a fresh VM and boot into the Arch ISO that you’ve downloaded. Alternatively, you can flash the image to a USB and boot from it. The ISO file will automatically boot into a shell. You can type clear
to clear the screen.
Step 3: Set the Time and Date
Run the following command to set the time and date:
Step 4: Partition the Virtual Hard Drive
This step requires parted
, so install it if it isn’t available in the live environment: sudo pacman -S parted
. Partition your virtual hard drive using the following commands:
Step 5: Format the Partitions
Format the partitions that you’ve created:
If you’ve created a btrfs filesystem, use the following command instead:
Step 6: Mount the Partitions
Mount the partitions to your filesystem:
Step 7: Install Base Arch Stuff
Install the base Arch stuff onto your install. This process can take ≈ 10-15 min depending on your internet connection:
# IF YOU'RE ON A NON-SOYSTEMD DISTRO SUCH AS ARTIX
Step 8: Set Hostname
Add a hostname to your VM:
Choose a proper timezone and set the hostname:
Install the nano text editor:
Step 9: Configure /etc/hosts
Edit the /etc/hosts
file and add the following:
Step 10: Set Root Password
Set the password for the root user:
Step 11: Add User
Add a user (add them to required groups) and set a password for the user:
&&
Add the user to the wheel group in the /etc/sudoers
file:
EDITOR=nano
Uncomment the following line in the /etc/sudoers
file:
)
Step 12: Install Bootloader
Systemd-boot | GRUB | |
---|---|---|
BIOS | N | Y |
UEFI | Y | Y |
Install the bootloader:
Note that os-prober is optional, but can be useful to troubleshoot dual-boot systems. You need not install it inside a VM, or when you’re not dual-booting.
Then install the bootloader to the right place - you can choose between Grub and Systemd-boot.
Grub
Now we need to generate a grub config file.
Systemd-boot
Open /etc/fstab
and note the UUID of the partition mounted at /
(root
or /dev/sda2
in this case).
Now create /boot/loader/entries/arch.conf
with the following content:
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.amg
options root=<UUID obtained above> rw
NOTE: Replace with amd-ucode.img
if you have an AMD processor.
Step 13: Finish the install
Get a networking daemon set up:
# Replace accordingly if you're running a non-soystemd distro
Leave the arch-chroot; installation’s almost over.
exit
Finally unmount the live USB: umount -l /mnt && exit
Shut down the VM: shutdown now
The virtual machine has been shut down , eject the ISO file (remove the USB if you’re performing the installation on bare metal). When the VM has finished booting up once more, login into the tty by typing your username and password.
Now we install a desktop.
Choose which DE you need from this link.
If you want a display manager such as SDDM, you can set it up as well:
# Replace accordingly if you're running a non-soystemd distro
Now that the Arch install has finished, simply reboot your system using the reboot
command.