How to easily install Arch Linux Using a Step by Step Script

Step 0 — Pre-Installation Notes

  • If you’re a beginner who is trying this out for the first time, try this out using VMWare(How to install and use VMWare) emulator or any other equivalent software. It is a long and intricate process and its a good idea to get some practice on a virtual machine.
  • If you’re using this guide to install Arch Linux on a computer, make sure that it is connected to the internet so that you can download the required scripts.

Step 1 — How to get it

With git

  • Get list of packages and install git: pacman -Sy git
  • get the script: git clone git://github.com/helmuthdu/aui

Without git

Step 2 — Run the script

  1. Change into the directory and run the checklist to install the system base cd aui && ./fifo

Step 3 — Select Keymap

  1. Enter 1 and hit Enter
  2. Enter 132 and hit Enter

Step 4 — Select Editor

  1. Type in 2 and hit Enter
  2. Type in 2 again and hit Enter (Recommended option to select nano as default editor)

Step 5 — Configure Mirror List

  1. Select the code corresponding to your country and confirm
  2. Ctrl — X to exit the editor

Step 6 — Partition Scheme

  1. Type in 3 and hit Enter
  2. Type in 1 to select Default partition scheme
  3. Type in 1 to select cfdisk as a partition program
  4. Type in 1 to select /dev/sda
  5. Select dos option
  6. Select New
  7. Enter a partition size that is (Free space — Half of RAM)
  8. Select Primary
  9. Select Bootable to enable Boot Flag
  10. Move down to the free space and select new
  11. Enter remaining partition size
  12. Select Primary
  13. Select Type and select the Linux swap / Solaris option
  14. Select Write
  15. Select Quit

Step 6 — Format Partitions

  1. Type 1 to select /dev/sda1
  2. Type in 4 to select ext4 filesystem (encountered error — WRITE SAME failed. Manually zeroing)
  3. Enter 1 to select swap partition
  4. Enter 1 again to select /dev/sda2

Step 7 — Install Base System

  1. Type in 5 to Install Base System
  2. The script will proceed to install the base system. This can take a few minutes.

Step 8 — Configure Fstab

  1. Type 6 to select Fstab
  2. Type 2 to select UUID
  3. Ctrl + X to exit nano editor

Step 9 — Configure Hostname

  1. Type 7 to Configure Hostname
  2. Enter computer name and hit Enter

Step 10 — Configure Timezone

  1. Type 8 to configure Timezone
  2. Type the number corresponding to your Timezone

Step 11 — Configure Hardware Clock

  1. Type 9 to configure hardware clock
  2. Type 1 to select UTC

Step 12 — Configure Locale

  1. Type 10 to configure locale
  2. Type 80 for en_us (Choose your own if required)

Step 13 — Configure Mkinitcpio

  1. Type 11 to Configure Mkinitcpio

Step 14 — Install Bootloader

  1. Type 1 to select GRUB 2
  2. Type 1 to select Automatic

Step 15 — Root Password

  1. Type 13 to set root password
  2. Set a password

Step 16 — Done

  1. Type d and hit enter
  2. Type y to reboot system
  3. At the login prompt, type root
  4. Enter the root password you set in the previous step

At this point you have successfully installed Arch Linux and logged in as the root user.

Links

Github Repository — https://github.com/helmuthdu/aui

Video Walkthrough — https://www.youtube.com/watch?v=4LqsWKTrZNM

Like what you read? Give ResidentNerd Reviews a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.