NOTE: you might have to disable secure boot inorder to boot into arch-live USB
root@archiso mounting root partition to /mnt of the iso (all packages will be downloaded here).
here in below mount command theXin sdX is the letter of your partition depending on your h/w eg :sda or sdb or sdc
mount /dev/sdX2 /mnt
creating seperate efi directory to mount efi partition
mkdir -p /mnt/boot/efi
mounting efi partition
mount /dev/sdX1 /mnt/boot/efi
lsblk -> you should see your mount points.pacstrap -K /mnt base base-devel linux linux-headers linux-firmware nano amd-ucode
This will take some time to download and install base, kernel and included packages based on mirrors / server speed and your internet speed.
genfstab -U /mnt >> /mnt/etc/fstab
type below command to check the generated fstab
cat /mnt/etc/fstab
now you have to see that your command prompt change.
arch-chroot /mnt
get your timezone if you are not aware how, using below command
timedatectl list-timezones | grep your-country-name or timezone name
using below command get your time zone here the
YourRegionNamemight be your country name or region depending on where you arezonenamewill be your City or your locality
ln -sf /usr/share/zoneinfo/YourRegionName/zonename /etc/localtime
for example below:
ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
hwclock --systohc
nano /etc/locale.gen
find for line with
#en_US.UTF-8 UTF-8(this is for english) or your locale format
uncomment that line by removing
#at the begening of the line.
save the file (ctrl+o) and exit nano editor (ctrl+x)
type below command to generate your locale
locale-gen
once executed type below command to add genrated locale to your conf file.
nano /etc/locale.conf
add your locale formate to the config file
LANG=en_US.UTF-8
save and exit the file
type below command to set host name
nano /etc/hostname
add your desired name for the system and save and exit file.
next to configure localhost and internet.
nano /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 hostname.localdomain hostname
mkinitcpio -P
wait for mkinitcpio execution to complete
passwd
pacman -S grub efibootmgr networkmanager network-manager-applet git pulseaudio alsa-utils
pacman -S grub efibootmgr networkmanager network-manager-applet git pipewire pipewire-pulse pipewire-alsa alsa-utils
Note: use wireplumber for media session service instead pipewire-media-session (personal preference)
for other packages accept defaults and download - install packages.
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch
once the grub is installed you should check that no erros are reported which will be shown after execution once done then generate config for grub by sending output of grub-mkconfig to the grub.cfg file using below command
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager.service
useradd -mG wheel username
NOTE: here username can be your choice
passwd username
NOTE: here username is the user name which you have given above while creating user
EDITOR=nano visudo
#wheel ALL=(ALL) ALL
uncommment that line (remove # symbol) - save and exit.
exit
umount -R /mnt
reboot