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.
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.
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.
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.
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.
That will open up other configurations inside is as shown below. Choose the language you prefer and hit enter.
Back to the main menu, highlight “Set Keyboard Layout“
Inside that item, set your preferred keyboard config and press enter.
Setting the editor is optional, you can set “vim, nano, edit or vi” and others if you would like to.
Choose the one you like and hit enter or “OK”
And onto Partitioning the disks now. Highlight the option and in we go.
You have four options for you to explore. I will go with “Auto Partitions” but feel free to edit if you would wish to.
Pick the device to apply a partitioning scheme on and press enter.
Confirm to continue with the operation
You should get success messaged similar to the ones below on your terminal. Press any key to return to the place we left off.
Since we have already done what is on the next screen, simply highlight “Back” so that we navigate to the main menu.
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.
Simply follow the direction of the wizard, hitting enter on each partition it goes to assign boot, swap, and root.
Setting the swap partition
Setting the root partition
Assigning home to no partition
Confirm the selections made and hit enter for yes.
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.
Acknowledge the warning by hitting on “yes“
Install file system on boot device
Format swap as a swap file system
Install a file system on the root device
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.
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.
Add mirrors close to you to speed up the downloading of files
After you are done, highlight “Install Arch Linux” and hit enter.
You can choose the kernel you would like to have from a list of three provided.
The firmware is optional but prudent to have.
Sit back, relax and wait for the files as they are being downloaded and installed.
Wait for the installer to complete installation of Arch Linux. Then boot to your new system to start using it.
More Arch Linux guides: