- USB thumb drive with atleast 16GB memory
- ArchLinux ISO file downloaded(https://archlinux.org/download/ - You can use magnet link to download arch linux)
- Make sure you have disabled safe boot, you can enable it again after installation
- Make sure you have empty partition present in you SSD
- Make sure you are connected with wired lan connection, otherwise you need to connect with wifi in step 2
- Make USB drive bootable
- If you are using Windows as host machine, then you can try win32diskmanager to write ISO image in thumb drive.
- For other OS, check here https://wiki.archlinux.org/title/USB_flash_installation_medium
- Boot the machine with USB thumb drive
- once you get into arch console, make sure you have internet connection.
ip a
if you are not connected with wired connection then connection with wifi using below commandsiwctl
device list
- this will give name of your wifi connection(e.g wlan0)station wlan0 scan
- this will scan all available wifi networksstation wlan0 get-networks
- this will show all the available networksstation wlan0 connect YOUR-WIFI-NAME
exit
ip a
- this should show ip in wlan0
- Check your partition using
fdisk -l
orlbslk
- Run the following to do create required partition,
cfdisk /dev/nvme0n1
- this will show all the parition, you can use up and down arrow to select your partition where you want to install arch linux, then select NEW if it is free space, otherwise select DELETE if partition is not empty. If you already have EFI partition present, then don't create EFI partition. Only create root and swap partition. If your partition size if 250GB then give root 240GB and give SWAP partition 10GB. Once partition is created, select WRITE and type yes. It will create all the required partitions.
- Now we need to format the partition
mkfs.ext4 /dev/root_partition
to format the root partitionmkswap /dev/swap_partition
to format the swap partition
- Now we need to mount the partitions
mount /dev/root_partition /mnt
- this will mount root partitionmount --mkdir /dev/efi_partition /mnt/boot/efi
- this will mount current EFI partitionswapon /dev/swap_partition
- this will enable swap partition
- Install essential packages
pacstrap -K /mnt base linux linux-firmware vim
- you can change linux kernel name to install other versions e.g linux-hardened
- Configure the system
genfstab -U /mnt >> /mnt/etc/fstab
- Change the time
ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
- Go to root
arch-chroot /mnt
hwclock --systohc
- Edit
/etc/locale.gen
and uncomment en_US.UTF-8 locale-gen
vim /etc/locale.conf
and writeLANG=en_US.UTF-8
in this filevim /etc/vconsole.conf
and writeKEYMAP=us
in this filevim /etc/hostname
and write hostname in this file e.g archvim /etc/hosts
and write these in this file127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
vim /etc/mkinitcpio.conf
and search for HOOKS and make sure to moveblock
andkeyboard
beforeautodetect
mkinitcpio -p linux
- Create GRUB boot loader
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-d=GRUB
grub-mkconfig -o /boot/grub/grub.cfg
- Add new user
useradd -mG wheel deepak
- Set password for new user
passwd deepak
EDITOR=vim visudo
- search for wheel section and enable it for sudo
- Install Xorg (Display Server):
pacman -S xorg
- Install Graphics Drivers:
Choose the appropriate graphics driver based on your hardware. For Intel graphics, you might need xf86-video-intel,
for AMD, you might need xf86-video-amdgpu, and for NVIDIA, you might need nvidia. Install the driver that matches
your hardware:
- For Intel:
pacman -S xf86-video-intel
- For AMD:
pacman -S xf86-video-amdgpu
- For NVIDIA (proprietary driver):
sudo pacman -S nvidia
- For Intel:
- Install Basic Input Drivers:
pacman -S xf86-input-libinput
- Install GUI Environment:
Choose a desktop environment or window manager of your preference. Popular choices include XFCE, KDE, or i3:
- For XFCE:
pacman -S xfce4 xfce4-goodies
- For KDE:
pacman -S plasma kde-applications
- For i3 (a tiling window manager):
sudo pacman -S i3 dmenu
- For XFCE:
- Install Additional Drivers and Tools (Optional):
Depending on your hardware and needs, you might want to install additional drivers or tools. For example:
- For sound support:
sudo pacman -S alsa-utils pulseaudio
- For sound support:
- Install Display Manager (Optional):
Install a display manager to manage your graphical login screen. For example, for LightDM:
pacman -S lightdm lightdm-gtk-greeter
systemctl enable lightdm
- Enable Network Services:
systemctl enable NetworkManager
- exit from chroot
umount -R /mnt
and remove USB thumb drive- reboot
- If for any reason you messed up the installation. Login to your window machine, format the partition and install again.
- In some cases, your boot loaded still holds GRUB and it does not delete it. To delete from boot loader follow these commands
- Open CMD as Admin in window
diskpart
select disk 0
list partition
select partition 1
- make sure you select efi partition hereassign letter=x
exit
- exit from disk partx:
this will direct you to efi partitioncd efi
dir
rd GRUB /s
- this will delte GRUB from boot loader- restart the system, it will unmount efi automatically.
You should able to boot Arch linux successfully. For deltailed official installation guide refer here (https://wiki.archlinux.org/title/installation_guide) https://www.youtube.com/watch?v=yaThYGr37DI