Modifications:
- Shell: zsh
- windows manager: i3wm
- window switcher: rofi
- editor: neovim and vscode
- terminal: alacritty
- multiplexer: tmux
- monitor: htop and polybar
- compositor: picom
- browser: firefox
other repo used:
- alacritty-theme
- rofi theme
- gurb2-themes
- nerd fonts
- tokyo night theme
- nvim packer
Programs used
- create bootable USB drive from using the archlinux iso file from their website
- Boot into archlinux live in UEFI mode
can verify boot mode by running this line
ls /sys/firmware/efi/efivars
- Update the system clock
timedatectl set-timezone Singapore timedatectl status
- Using
fdisk
, create 300MB of space for EFI system partition and the rest of the space for the root partition - format the root partition
mkfs.ext4 /dev/[root partition]
- format the efi partition
mkfs.fat -F 32 /dev/[efi partition]
- mount the file systems
mount /dev/[root partition] /mnt mount --mkdir /dev/[efi partition] /mnt/boot
- install essential packages using pacman
pacstrap -K /mnt base linux linux-firmware neovim
- generate fstab file
genfstab -U /mnt >> /mnt/etc/fstab
- change root into archlinux system
arch-chroot /mnt
- set timezone
ln -sf /usr/share/zoneinfo/Asia/Singapore /etc/localtime hwclock --systohc # use local time for archlinux so it does not interfer with windows timedatectl set-local-rtc 1
- localization
locale-gen vim /etc/locale.conf # add text below LANG=en_US.UTF-8
- create hostname
vim /etc/hostname # add hostname inside
- set root password
passwd
- install and configure bootloader (using grub)
# install packages pacman -S gurb efibootmgr # using --removable here because UEFI firmware doesnt detect the boot correctly without it # referenced solution in https://bbs.archlinux.org/viewtopic.php?id=250928 grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable # install package pacman -S os-prober # uncomment line below in /etc/default/grub GRUB_DISABLE_OS_PROBER=false # generate grub.cfg file and add archlinux OS to boot grub-mkconfig -o /boot/grub/grub.cfg # os-prober doesnt detect windows boot manager so i manually added in an entry to grub which points to bootmgfw.efi # add to /etc/grub.d/40_custom # replace (hd3,gpt3) with the disk number and partition number that points to windows boot manager menuentry "Windows boot manager" { insmod part_gpt insmod chain set root='(hd3,gpt3)' chainloader /EFI/Microsoft/Boot/bootmgfw.efi }
- Install networkmanger and dhcpcd (i only need ethernet)
pacman -S dhcpcd networkmanager systemctl enable NetworkManager.service systemctl enable dhcp.service
- Create user and give sudo rights
pacman -S sudo useradd -G wheel -m andre passwd andre visudo # uncomment out the line below %wheel ALL=(ALL:ALL) ALL
- Install nvidia drivers (currently using Nvidia GTX 1060)
sudo pacman -S xf86-video-nouveau mesa
- Install desktop env and/or window managers
sudo pacman -S xorg-server xorg-xinit xorg-apps # for installing gnome sudo pacman -S gnome sudo systemctl start gdm.service # for installing i3wm sudo pacman -S i3-wm i3lock i3status xss-lock dex network-manager-applet
- Install programs
sudo pacman -S firefox neofetch picom polybar rofi tmux alacritty feh htop zsh git
- Copy dot files into .config
copy in .config folders for settings such as alacritty i3 picom polybar and rofi copy .xinitrc and .zshrc into home directory
- Install AUR installer
sudo pacman -S --needed git base-devel git clone https://aur.archlinux.org/yay-bin.git cd yay-bin makepkg -si yay -Y --gendb yay -Syu --devel yay -Y --devel --save
- Install good to have programs
sudo pacman -S telegram-desktop sudo pacman -S discord sudo pacman -S docker # a program similar to postman yay insomnia # for chinese and japanese characters sudo pacman -S noto-fonts-cjk # for audio yay pacmixer
- Add in fonts
# install FiraCode Font yay nerd fira code # update font fc-cache -fv fc-list # to find your new font fc-match fira -s # update font in alacritty