installing arch

Aug 12, 2021

installing arch

August 12, 2021

installation procedure

1. boot to iso

2. partition disks

3. format partitions

4. networking

5. update system and install reflector, update reflector

$ pacman -Syy
$ pacman -S reflector
# backup mirrorlist
$ cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
# update mirrorlist
$ reflector -c "US" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist

6. mount partitions

# mkdirs
$ mkdir -pv /mnt/home /mnt/boot/efi
# mount partitions
$ mount /dev/sda2 /mnt # root partition to /mnt
$ mount /dev/sda1 /mnt/boot/efi  # efi partition to /mnt/boot/efi
$ mount /dev/sda3 /mnt/home # home partition to /mnt/home

7. install arch system

$ pacstrap /mnt base linux linux-firmware vim 

8. generate fstab

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

9. arch-chroot and set up system

# enter system as root
$ arch-chroot /mnt
# timezone
$ timedatectl set-timezone America/Chicago
# locale
$ vim /etc/local.gen # uncomment locale en_US-UTF.8
$ echo LANG=en_US-UTF.8 > /etc/locale/conf
$ export LANG=en_US-UTF.8
# hosts
$ echo myarch > /etc/hostname # customize hostname for myarch
$ vim /etc/hosts
  # ADD HOSTS
  127.0.0.1     localhost
  ::1           localhost
  127.0.1.1     myarch    #same as hostname
$ passwd # set root password
# update pacman.conf
$ vim /etc/pacman.conf
  # add ILoveCandy to the options section
  [Options]
  ...
  ILoveCandy

  # uncomment multilib section
  [multilib]
  Include=/etc/pacman.d/mirrorlist

10. install grub

$ pacman -S grub efibootmgr
$ grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/boot/efi
$ grub-mkconfig -o /boot/grub/grub.cfg

11. install desktop

$ pacman -S xorg sddm plasma kde-applications
# if nvidia gpu
$ pacman -S nvidia nvidia-settings nvidia-utils nvidia-dkms lib32-nvidia-utils vulkan-icd-loader lib32-vulkan-icd-loader
# if amd cpu
$ pacman -S amd-ucode
# other utils
$ pacman -S nfs-utils neofetch firefox git base-devel ttf-fira-code ttf-fira-mono ttf-fira-sans ttf-dejavu

12. enable display server, network, config dm

$ systemctl enable sddm
$ systemctl enable NetworkManager
$ vim /usr/lib/sddm/sddm.conf.d/default.conf
  # find [Theme] and add 'breeze'
  [Theme]
  Current=breeze

13. Reboot

# exit arch-chroot
$ exit
$ systemctl reboot

post-install config

install software


system configs


customize kde


references

its foss
kde sddm not wayland
its foss (kde/wayland)
install yay/aur
install virtualbox on arch btm font braille kde-configuration-files kde config to kwriteconfig.kt

other

packages installed but these failed on a previous install
vulkan-icd-loader
lib32-nvidia-utils
lib32-vulkan-icd-loader


research/future items