Step #9 Configure repositories
Now it’s time to configure repositories. Open the pacman.conf file:
# nano /etc/pacman.conf
If you are using 64 bit system you should go ahead and enable (un-comment) the “multilib” repo:
[multilib] Include = /etc/pacman.d/mirrorlist
Then hit Ctrl+X and then type ‘y‘ when asked.
Now it’s time to update the repositories by running this command:
Step #10 Create users
We first need to give a root password so we can perform administrative tasks. But we will also create a user for the system as it’s not recommended to run as root.
First set root password. Run this command and give the password and give the desired password:
Now it’s time to create a user for the system and also add some groups to it. So run the following command and replace ‘muktware‘ with your user-name.
# useradd -m -g users -G wheel,storage,power -s /bin/bash muktware
Then give the password for this new user (which in my case was muktware). When you run this command it will again ask you to enter new password:
# passwd muktware
Now we have to allow this use to do administrative jobs as sudo so let’s install sudo.
# pacman -S sudo
# pacman -Ss sudo
Once that is done, we will now allow the users in wheel group to be able to performance administrative tasks with sudo. Run the following command to edit the sudoers:
# EDITOR=nano visudo
It will open the sudoers file where you have to uncomment this line:
%wheel ALL=(ALL) ALL
I will also recommend installing bash-completion so that Arch auto-complete commands of names of packages:
# pacman -S bash-completion
Step #11 Install boot loader
We are now going to install grub and configure the boot loader. In my case I have a system with BIOS (if you have UFI then check out the appropriate Arch Wiki page).
Let’s first install grub for bios and configure it. Run these commands:
# pacman -S grub
# grub-install --target=i386-pc --recheck /dev/sda
I have other operating systems installed on the same system (namely openSUSE) and I wanted Arch to show these systems in the grub menu so I can select at the boot. Even if you don’t have other OSes installed I would recommend installing OS Prober:
pacman -S os-prober
Once it is installed update the grub so Arch knows about other operating systems. Run this command:
# grub-mkconfig -o /boot/grub/grub.cfg
In order for it to stay connected to the Internet after reboots, find the interface for lan by run this command:
Then enable and start the network for that interface by running these commands:
# systemctl enable dhcpcd@_name_of_interface.service
# systemctl start dhcpcd@_name_of_interface.service
We are now done with the installation and configuration of Arch Linux. There is still some work left – installing the Display Manager (X server), the desktop environment and appropriate graphics drivers. Since the OS is installed let’s reboot into the new OS. So first exit from the chroot environment:
And now unmount the root, home and reboot the system:
# umount -R /mnt
Note: Remove the USB so that the system doesn’t boot into it again.