Arch installation

Arch installation

Sarthak Bansal

In this article I will tell you how to install arch you can just copy and paste these commands and it will install arch for you

By Sarthak Bansal


First install iso file from arch official website then make a bootable usb frm rufus and boot Into arch then follow me   connect your phone with usb (make sure ur debuging settings are on as we need it for net )   okay so lets get started


ip link


now setting a mirror server for fast package installing do pacman -S reflector


reflector -c "mirror name" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist


pacman -Syy


cfdisk


select dos


select new


now give root partiton space according to you i wil give 6 gb buz i am using 8 gb hdd(vm)


now select primary


now we will create swap again select free space then use 2 to 10 gb only max hit enter then select entended then select type then swap and then select write and then quit


write lsblk and check all the partiations are created or not


now formating them


mkfs.ext4 /dev/sda1


mkswap /dev/sda2


mount /dev/sda1 /mnt


swapon /dev/sda2


pacstrap -i /mnt base linux linux-firmware sudo nano -vi


genfstab -U /mnt >> /mnt/etc/fstab


arch-chroot /mnt


timedatectl list-timezones


Find your time zone and make a note of the name then


timedatectl set-timezone Time/Zone


sudo nano /etc/locale.gen


Uncomment the name you want the time zone of 


Then save it by ctrl x and type y then 


locale-gen

echo [locale_name that u choosed] > /etc/locale.conf


echo [Sarthak] > /etc/hostname


touch /etc/hosts


127.0.0.1 localhost

::1 localhost

127.0.1.1 [sarthak]


systemctl enable dhcpcd


passwd 


Sed ur password


We will use grub boot loader lmao


pacman -Syu grub


grub-install /dev/sda


Then exit chroot with command exit


sudo reboot


sudo pacman -Syu


sudo pacman -S xrog xcfe4 xfce4-goodies lightdm lightdm-gtk-greeter


sudo systemctl enable lightdm

Report Page