$ sed -i 's/^#ParallelDownloads/ParallelDownloads/' /etc/pacman.conf
$ sudo reflector --verbose --latest 10 --protocol https --download-timeout 60 --sort rate --save /etc/pacman.d/mirrorlist
$ loadkeys us
$ cfdisk /dev/sda
- Make 1G partition for
bootefi
- Make 8G partition for
swap
- Make the 3rd partition with the rest of the space available
- Write and Quit
$ mkfs.fat -F 32 /dev/sda1
$ mkswap /dev/sda2
$ mkfs.ext4 /dev/sda3
Mount the drives that you've just created:
$ mkdir -p /mnt/boot/efi
$ mount /dev/sda1 /mnt/boot/efi
$ swapon /dev/sda2
$ mount /dev/sda3 /mnt
$ mkdir -p /mnt/TOSHIBA
$ mount /dev/sdb /mnt/TOSHIBA
$ pacstrap -K /mnt base base-devel linux-zen linux-zen-headers linux-firmware sof-firmware pacman-contrib efibootmgr intel-ucode grub networkmanager reflector vim man git
$ genfstab -U /mnt > /mnt/etc/fstab
$ cat /mnt/etc/fstab
$ arch-chroot /mnt
$ ln -sf /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
$ hwclock --systohc
$ timedatectl set-ntp true
$ vim /etc/locale.gen
> uncomment "en_US.utf-8 utf-8" line
$ locale-gen
$ vim /etc/locale.conf
> add the line "LANG=en_US.UTF-8"
$ vim /etc/hostname
> add the line "arch"
$ vim /etc/hosts
> add these lines
"""
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
"""
$ passwd
> enter your root password
$ pacman -Syu xdg-utils xdg-user-dirs
$ grub-install /dev/sda
$ vim /boot/grub/grub.cfg
> change the grub timeout to "GRUB_TIMEOUT=2"
$ grub-mkconfig -o /boot/grub/grub.cfg
$ systemctl enable NetworkManager
$ systemctl enable reflector.timer
Replace username
with your preferred name.
$ useradd -mG wheel username
$ passwd username
> create user password
$ EDITOR=vim visudo
> uncomment this line.
"""
%wheel ALL=(ALL) ALL
"""
$ exit
$ umount -R /mnt
$ reboot
$ vim /etc/pacman.conf
> uncomment these lines.
"""
[multilib]
Include = /etc/pacman.d/mirrorlist
"""
$ cd Downloads
$ git clone https://aur.archlinux.org/paru.git
$ cd paru
$ makepkg -si
sudo paru -S ark bluedevil dolphin gwenview kcalc kate kdeconnect kde-gtk-config khotkeys kinfocenter kinit kio-fuse konsole kscreen kwallet-pam okular plasma-desktop plasma-disks plasma-nm plasma-pa powerdevil print-manager sddm-kcm spectacle vlc xsettingsd klipper noto-fonts-cjk noto-fonts-emoji noto-fonts kcodecs kcoreaddons kdeplasma-addons breeze-gtk
Congratulations you've Arch installed in your system :)