This is my first experience to install Arch Linux on my computer (Via Virtualbox). And this is a quite “Big Project” for me because it took several hours to get my Arch Linux 2016 installed. Installing Arch Linux is not as easy as installing other Linux distribution. It does not shipped with graphical installer, so we need to use Terminal command for every installation steps.
There are many steps to install Arch Linux 2016 on our computer. If you are new to Arch Linux, I recommend you to test it on a Virtualbox or VMware or other virtual machine. By testing this way, our data will be safe if something went wrong.
Note: Like I was mentioned above, this is my first time installing Arch Linux. I will post any errors or misconfigured stuffs here.
Steps to install Arch Linux 2016
Step 1. Download Arch Linux installation ISO
If you don’t have it already, you can download the Arch Linux ISO from this link. You can burn it to a CD or create Arch Linux Live CD if you are planning to install it on a dedicated PC or Laptop. Read how to create Arch Linux Live USB.
Step 2. Boot the computer with Arch Linux ISO
On the first boot menu, select the first option to start the installation process. Select the second option if you are installing on 32 bit system.
Step 3. Check the internet connection.
On the Arch Terminal window, check your internet connection using ping command:
Make sure we get the reply from the ping command. Which means our internet connection is working on Arch.
Step 4. Partition the hard disk
First, check the available hard disk on system. In my case, the hard drive is attached and listed as /dev/sda. To see the hard disk list attached on your system, use the fdisk command as follow.
Create new partition
Change /dev/sda with your own configuration shown on previous command. The picture below show the complete command to create new partitions.
I created two partitions with 15 GB and 4 GB.
Create file system on each partitions we created with previous command
Step 4. Mount partitions
We need to mount the new partitions to /mnt.
mount /dev/sda1 /mnt
mount /dev/sda2 /mnt/home
Step 5. Preparing for Base Installation
At this steps, we already have 2 new partitions and all the new partitions were mounted to /mnt. Now we can start perform the base system installation for Arch.
pacstrap /mnt base base-devel
The system will download some packages from the internet. This step will take long time depends on the internet speed. Be patient.
When it completed, you will see something like this
Generate fstab file
genfstab /mnt >> /mnt/etc/fstab
Get into the new system
Now update password and install grub-bios package
pacman -S grub-bios
grub-mkconfig -o /boot/grub/grup.cfg
echo arch-pc > /etc/hostname
Exit from chroot and umount the mounted partitions, and finally reboot
Select Arch Linux from the boot menu as shown above. Then login with the root user. We need to enable the dhcpcd service with this command
systemctl enable dhcpcd
Reboot the computer and at this point we have Arch Linux with base system installed. On the next tutorial, I will show you how to install Desktop environment on Arch Linux. Cheers.