- Open
cfdisk
and create the following partitions:- Select GPT as the partition table.
- Create partitions:
/dev/sda1
= 300M (EFI System Partition)/dev/sda2
= 4G (Swap Partition)/dev/sda3
= Remaining space (Root Partition)
- Format partitions:
mkfs.ext4 /dev/sda3 mkfs.fat -F 32 /dev/sda1 mkswap /dev/sda2
- Mount the partitions:
mount /dev/sda3 /mnt mkdir -p /mnt/boot/efi mount /dev/sda1 /mnt/boot/efi swapon /dev/sda2
- Install the base system:
pacstrap /mnt base linux linux-firmware sof-firmware base-devel grub efibootmgr nano networkmanager
- Generate the fstab file:
genfstab -U /mnt >> /mnt/etc/fstab cat /mnt/etc/fstab
- Change root into the new system:
arch-chroot /mnt
- Set the timezone:
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime hwclock --systohc
- Configure the locale:
nano /etc/locale.gen # Uncomment en_US.UTF-8 locale-gen echo "LANG=en_US.UTF-8" > /etc/locale.conf echo "KEYMAP=us" > /etc/vconsole.conf
-
Set hostname:
echo "arch" > /etc/hostname
-
Enable NetworkManager:
systemctl enable NetworkManager
-
Set root password:
passwd
-
Create a user:
useradd -m -g users -G wheel -s /bin/bash Ren passwd Ren
-
Grant sudo privileges:
EDITOR=nano visudo # Uncomment %wheel ALL=(ALL) ALL
- Install and configure GRUB:
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg
- Exit chroot and reboot:
exit umount -a reboot
- Install KDE Plasma:
sudo pacman -S plasma sddm kde-applications sudo systemctl enable --now sddm