You can support us by downloading this article as PDF from the Link below. Download the guide as PDF

Introduction

In case you had a laborious experience installing Arch Linux, then someone thought about simplifying the process while still maintaining the lean results that Arch promises. Archfi authored by Matmoul is that solution.

Archfi is just a simple bash script wizard to install Arch Linux after you have booted on the official Arch Linux install media. With this script written by Matmoul, you can install Arch Linux with two simple terminal commands.

Requirements

Internet access to fetch the script
Download and create bootable flash or CD/DVD

Step 1: Download Arch ISO

Use the following link to download the latest Arch Linux ISO file.

Latest Arch Download Link

Step 2: Create bootable installation media

Once the ISO is downloaded, create a bootable USB device using dd Linux command.

sudo dd if=path-to-image.iso  of=/dev/sdX bs=4M

Replace sdX with your device name, e.g /dev/sdb

archfi wizard is made to install minimum packages (Base, bootloader and optionally archdi). At the end of this wizard, you can install or launch archdi (Arch Linux Desktop Install) to install and configure desktop packages.

Step 3: Plug your USB and begin

Boot with the last Arch Linux image with a bootable device (either Flash or DVD). You should see the screen below as it begins the installation process. Choose “Boot Arch Linux” and hit enter.

Archfi boot iso 1

Then make sure you have an internet connection on the Arch iso as already discussed in the requirements. You can check that by pinging google.com once you have landed on the terminal.

Step 4: Fetch the wizard file

If everything is okay so far, it is time to fetch the file we are interested in. Type the following to get the installation script. Let it download and proceed to the next step.

wget archfi.sf.net/archfi
Archfi fetch script 2

Step 5: Execute the script

After we have downloaded our file, let us go ahead and execute it as illustrated below.

# sh archfi

Hit enter after that.
Archfi launch script 3

The command above will load the Wizard which we shall follow to the very end. Be ready and stay put.

Step 6: Configure language, keyboard and, disks

This step focuses on configuring the keyboard, language preferences and preparing the disks (partitioning and formatting)

Select the “Language” option and hit enter.

Archfi main menu language 4

That will open up other configurations inside is as shown below. Choose the language you prefer and hit enter.

Archfi main menu language 4 1

Back to the main menu, highlight “Set Keyboard Layout

Archfi main menu keyboard 5

Inside that item, set your preferred keyboard config and press enter.

Archfi main menu keyboard 5 1

Setting the editor is optional, you can set “vim, nano, edit or vi” and others if you would like to.

Archfi main menu editor 6

Choose the one you like and hit enter or “OK”

Archfi main menu editor 6 1

And onto Partitioning the disks now. Highlight the option and in we go.

Archfi main menu disk 7

You have four options for you to explore. I will go with “Auto Partitions” but feel free to edit if you would wish to.

Archfi main menu disk 7 1

Pick the device to apply a partitioning scheme on and press enter.

Archfi main menu disk 7 2

Confirm to continue with the operation

Archfi main menu disk 7 3

You should get success messaged similar to the ones below on your terminal. Press any key to return to the place we left off.

Archfi main menu disk 7 4

Since we have already done what is on the next screen, simply highlight “Back” so that we navigate to the main menu.

Archfi main menu disk 7 5

Step 7: Select partitions and install

In this step, we are going to format “boot, root and swap” with the right file systems then proceed to install Arch Linux base system. Highlight ” Select partitions and install ” menu item and press enter.

Archfi main menu select partition 8

Simply follow the direction of the wizard, hitting enter on each partition it goes to assign boot, swap, and root.

Archfi main menu select partition boot 8 1

Setting the swap partition

Archfi main menu select partition swap 8 2

Setting the root partition

Archfi main menu select partition root 8 3

Assigning home to no partition

Archfi main menu select partition home 8 4

Confirm the selections made and hit enter for yes.

Archfi main menu select partition all 8 5

Step 8: Format the partitions

After we have assigned the partitions to directories, the next step is to create filesystems on top of them. Follow the screenshots below to get them partitions formatted.

Archfi main menu format and mount 9

Acknowledge the warning by hitting on “yes

Archfi main menu format and mount 9 1

Install file system on boot device

Archfi main menu format and mount file system boot 9 2
Archfi main menu format and mount file system boot 9 3

Format swap as a swap file system

Archfi main menu format and mount file system swap 9 4
Archfi main menu format and mount file system swap 9 5

Install a file system on the root device

Archfi main menu format and mount file system root 9 6
Archfi main menu format and mount file system root 9 7

Step 8: Mount filesystems ready for Arch Install.

Everything needed for files to be copied is now ready. All we have to do at this stage is to mount the remaining partitions on directories and make them ready to install Arch Linux.

Archfi main menu format and mount mount 10
Archfi main menu format and mount mount 10 1

Step 9: Install Arch Linux

The previous step leads us to the “Installation menu“. Here, you have the opportunity to set Arch mirrors near to you and to thus fetch the latest files for installation. The options presented are straight forward.

Archfi install menu edit mirrors first 11

Add mirrors close to you to speed up the downloading of files

Archfi install menu edit mirrors first 11 2

After you are done, highlight “Install Arch Linux” and hit enter.

Archfi install menu edit mirrors first 11 1

You can choose the kernel you would like to have from a list of three provided.

Archfi install menu kernel 11 1

The firmware is optional but prudent to have.

Archfi install menu firmware 11 2

Sit back, relax and wait for the files as they are being downloaded and installed.

Archfi install menu installations 11 3

Wait for the installer to complete installation of Arch Linux. Then boot to your new system to start using it.

More Arch Linux guides:

How To Install Podman on Arch Linux / Manjaro

Arch Linux vs Manjaro – Why I Use Arch / Manjaro Linux

How to Install VMware Workstation on Arch Linux / Manjaro

How To Install Snap on Arch Linux / Manjaro

As an appreciation for the content we put out,
we would be thrilled if you support us!


As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.

LEAVE A REPLY

Please enter your comment!
Please enter your name here