Arch Linux Installation

Arch Linux version 3.x Installation

1. Identify the name of your Ethernet interface:
# ip link
Note: eth0 = enp0s3 in my test system

2. Check internet connection:
# ping -c 3 www.google.com

3. Disk preparation (MBR):
# cfdisk /dev/sda
# mkfs.ext4 /dev/sda1
# mkfs.ext4 /dev/sda3

Swap Partition:
# mkswap /dev/sda2
# swapon /dev/sda2

4. Mount the partitions:
# mount /dev/sda1 /mnt
# mkdir /mnt/home
# mount /dev/sda3 /mnt/home

5. Install base and base-devel
# vi /etc/pacman.d/mirrorlist
# pacstrap /mnt base base-devel

6. Generate an fstab and verify:
# genfstab -U -p /mnt >> /mnt/etc/fstab
# vi /mnt/etc/fstab
Note: Only the root (/) partition needs 1 for the last field,
Everything else should have either 2 or 0.

7. Chroot and configure the base system:
# arch-chroot /mnt

8. Locale:
# vi /etc/locale.gen
Uncomment en_US.UTF-8 UTF-8

9. Time zone:
# ls /usr/share/zoneinfo/
# ln -s /usr/share/zoneinfo/(Zone)/(SubZone) /etc/localtime

10. Hostname:
# echo myhostname > /etc/hostname

11. Configure the network using dhcpcd:
# systemctl enable dhcpcd@interface_name.service

12. Set the root password:
# passwd

13. Syslinux:
# pacman -S syslinux
# syslinux-install_update -i -a -m

14. Verify boot partition
# vi /boot/syslinux/syslinux.cfg

15. Unmount the partitions and reboot:
# exit
# umount /mnt/{boot,home,}
# reboot

Post-installation
Install X
# pacman -S xorg-server xorg-server-utils xorg-xinit

For VirtualBox setup, Install the Guest Additions:
Install virtualbox-guest-utils
# modprobe -a vboxguest vboxsf vboxvideo
Create virtualbox.conf file in /etc/modules-load.d/ with these lines:
vboxguest
vboxsf
vboxvideo