This video shown you step-by-step how to install arch linux. As we Know, Arch Linux is a simple and lightweight linux distribution targeted at competent Linux users. It uses ‘pacman’, its home-grown package manager, to provide updates to the latest software applications with full dependency tracking. Operating on a rolling release system, Arch can be installed from a CD image or via an FTP server.
The default install provides a solid base that enables users to create a custom installation. In addition, the Arch Build System (ABS) provides a way to easily build new packages, modify the configuration of stock packages, and share these packages with other users via the Arch Linux user repository.
Step by Step Installing Arch Linux
Before installing Arch Linux
Make sure your computer is connected to the internet
dhcpcd
ping -c 3 google.com
Partitioning Disk
Partition Scheme :
- HDD 80 GB RAM 2GB
- sda1 : 30GB for /
- sda2 : 4GB for swap
- sda3 : 46 for /home
lsblk
cfdisk /dev/sda
lsblk
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home
Choose Closest Mirror List
pacman -Sy
pacman -S reflector
reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist
Install Arch Linux Base Package
pacstrap -i /mnt base base-devel
Configure fstab and Chroot /mnt
genfstab -U -p /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
arch-chroot /mnt
Configure Language and Location
nano /etc/locale.gen
Uncomment this line:
en_US.UTF-8 UTF-8
locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
Set Time Zone
ls /usr/share/zoneinfo/
ln -s /usr/share/zoneinfo/America/New_York> /etc/localtime
hwclock –systohc –utc
Configure Arch Linux Repository
nano /etc/pacman.conf
Uncomment this line:
[multilib] Include = /etc/pacman.d/mirrorlist
pacman -Sy
Set Hostname and Network
echo linuxscoop > /etc/hostname
systemctl enable dhcpcd@enp0s3.service
Give Root Password and Create New User
Give a root password :
passwd
Create new user and allow the users in wheel group to be able to performance administrative tasks with sudo :
pacman -S sudo bash-completion
useradd -m -g users -G wheel,storage,power -s /bin/bash lsteam
passwd lsteam
EDITOR=nano visudo
Uncomment this line:
%wheel ALL=(ALL) ALL
Install and Configure boot loader
mkinitcpio -p linux
pacman -S grub os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
Unmount the Partitions and Reboot
exit
unmount -R /mnt
reboot