[HowTo] Install Arch Linux

Hello everybody. In this new post, I will explain the basic setup to install an Arch Linux 2016. As mentioned on the official website of Arch (www.archlinux.org), this distribution has the main objectives to be lightweight and flexible. Arch Linux has its official and optimized  packages for i686 and x64_86 architectures. These officials packages are available directly through the pacman utility. Additionally, the Arch User Repository, named AUR, completes the official packages. These community packages can be easily installed with yaourt tool.

First, simply download the latest version of Arch from its website. The version used in this document is the 2016.02.01 64 bits. For this tutorial, the system is installed as a virtual machine running on VMware Fusion. The first step is to boot on the ISO. You should see this first screen.

Screen Shot 2016-02-12 at 07.33.51

Select the first option. After few seconds, you are logged in root in the live system. Zsh is the current shell in use. The first step to do is to configure the keyboard layout. This can be done using the loadkeys command. For example, in my case, I want the French Switzerland layout.

All available keymap files can be found in /usr/share/kbd/keymaps.

Now, it is time to partition the disks. To find the current name of your installed disk, you can run the following command:

Of course, the output differs in function of your configuration. Just remember the path to your disk where you want to install the system. Now we can partition the disk using cfdisk tool. Select dos as label type. In this example, to be simpler as possible, only one partition is used. Of course, this is not the best practice recommended for security reasons. Be sure to enable “boot” flag on the partition.

Screen Shot 2016-02-12 at 09.32.11

Do not forget to write your changes before quitting the tool. After that, it is necessary to format the partition. In this example, I use ext4 filesystem. Then we can mount the partition in /mnt

Now we can install the base system on this folder. Simply use this command:

It takes some minutes to download all necessary packages depending of your connection speed. Once done, all base files of Arch are present in /mnt. Now, it is necessary to make a special chroot on it.

You can note by trying the ls  / command that the current root directly is now the content of /mnt. The first thing to do is to set a password for the root user of your freshly new system.

Then, edit /etc/locale.gen and remove the dash (#) in front of your desired locales. In my case I enabled fr_CH.  Then generate all related files to your locales.

It is necessary to create a symbolic link like this to set correctly the time zone

Of course, we need to adapt the path to your current locales. We can set a hostname, for example Archilinux.

After that, we can install the bootloader. In the case of my configuration, I have a BIOS instead of UEFI. Please note that the installation can differ a little with UEFI based system.

Now if this operation is a success, we can generate the initial RAM disk and the base configuration for linux and grub.

Now, we can generate the fstab to be able to automaticaly mount the file system on boot.

Once done, your system reboot and all is correct, you should see the grub screen.

Screen Shot 2016-02-12 at 09.49.10

Select the first option and your system starts. Future [How-to] will explain how to install graphical interface and so on… 🙂

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditShare on StumbleUponShare on TumblrPin on PinterestFlattr the authorDigg thisBuffer this pagePrint this page

1 comment

  1. Hey,

    J’ai vue une information de ta part dans un forum, sur ce que je cherchais dans google, ta un moyen de contact? des questions pour la formation que ta fait. Merci

Leave a Reply

Your email address will not be published. Required fields are marked *