Let's downlaod the ISO from this link.
Now need a pendrive, 4GB is more then enough.
pen drive's path /dev/sdb/
sudo dcfldd if=arch_linux.iso of=/dev/sdbNow let's boot the target machine with using UEFI and this pendrive.
if dhcp ethernet is not available use wifi-menu to setup wireless network
Partiton the drive
fdisk -l # check the list which one is getting the arch setup/dev/nvme0n1 is the target
fdisk /dev/nvme0n1create 3 drive for the arch setup
- 512MB for EFI
/dev/nvme0n1p1 - 2GB for swap
/dev/nvme0n1p2 - rest goes to /
/dev/nvme0n1p3
mkfs.fat -F32 /dev/nvme0n1p1
mkswap /dev/nvme0n1p2
swapon
mkfs.ext4 /dev/nvme0n1p3now mount the partitons (for systemd-boot see below)
mount /dev/nvme0n1p3 /mnt
mkdir -p /mnt/boot/EFI
mount /dev/nvme0n1p1 /mnt/boot/EFIInstall base system
pacstrap /mnt base linux linux-firmwareadd the base system to fstab
genfstab -U /mnt >> /mnt/etc/fstabarch-chroot /mntWOW!! we are in the system now
Change hostname
echo 'fullbrick' > /etc/hostnameChange timezone
ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtimecreate user
useradd -mg users -G wheel,storage,power -s /bin/bash sakib
passwd sakibnow install my favourite packages
# I have nvidia GPU
# I love plasma desktop
pacman -S plasma intel-ucode konsole kate okular neovim git docker nvidia xorg-xrandrlocale-gen
nano /etc/locale.gen
# Uncomment en_US.UTF-8 UTF-8
locale-genSetup Network
systemctl enable NetworkManager avahi-daemon docker sddmAfter Initial boot we will configure nvidia
We have 2 options one is grub another is systemd-boot, will describe both, use anyone.
Install grub
pacman -S grub efibootmgr dosfstools os-prober mtools
grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfgNothing to install
mount /dev/nvme0n1p3 /mnt
mkdir -p /mnt/boot
mount /dev/nvme0n1p1 /mnt/bootCreate /boot
bootctl --path=/boot installadd following lines to /boot/loader/loader.conf
timeout 3
default arch
Next
cd /boot/loader/entries/
blkid -s PARTUUID -o value /dev/nvme0n1p3 > arch.confNow edit arch.conf, keep the UUID
title Arch Linux
linux /vmlinuz-linux
initrd /intel-ucode.img
initrd /initramfs-linux.img
options root=PARTUUID=<generated_uuid> rw nvidia-drm.modeset=1
Done with installation
exit
umount -a
rebootsystem will reboot into new KDE dekstop. happy us.
Nvidia setup (I have an asus Vivobook S15, should work for you too)
/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
Option "PrimaryGPU" "yes"
ModulePath "/usr/lib/nvidia/xorg"
ModulePath "/usr/lib/xorg/modules"
EndSection
/usr/share/sddm/scripts/Xsetup
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto/etc/mkinitcpio.conf
MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)
/etc/pacman.d/hooks/nvidia.hook
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used
[Action]
Description=Update Nvidia module in initcpio
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'
sudo mkinitcpio -p linuxNow reboot and issue nvidia-smi you will file you kwin is running on nvidia