Skip to content

Instantly share code, notes, and snippets.

@aishenreemo
Created March 3, 2025 02:21
Show Gist options
  • Select an option

  • Save aishenreemo/c95fad4b75936918e67aa3b567dd440b to your computer and use it in GitHub Desktop.

Select an option

Save aishenreemo/c95fad4b75936918e67aa3b567dd440b to your computer and use it in GitHub Desktop.
Fresh install arch linux

How to install Arch

  • Boot into Live ISO
  • Load keyboard layout
  • timedatectl set-ntp true
  • Make a boot, swap and root partition.
  • Format boot using mkfs.fat -F 32
  • Format swap using mkswap
  • Format root with mkfs.ext4
  • Mount root to /mnt
  • mkdir -p /mnt/boot/efi and mount the boot partition there.
  • Activate the swap using swapon
  • pacstrap /mnt base linux linux-firmware pipewire pipewire-pulse doas grub efibootmgr os-prober dhcpcd iwd amd-ucode neovim archlinux-keyring
  • genfstab -U /mnt >> /mnt/etc/fstab
  • arch-chroot /mnt
  • ln -sf /usr/share/zoneinfo/Asia/Manila /etc/localtime
  • hwclock --systohc
  • nvim /etc/locale.gen
  • locale-gen
  • echo "LANG=en_US.UTF-8" >> /etc/locale.conf
  • systemctl enable dhcpcd
  • systemctl enable iwd
  • useradd -m -G wheel,audio,video -s /bin/bash aivan
  • echo "permit persist :wheel" > /etc/doas.conf
  • passwd
  • grub-install /dev/sda
  • grub-mkconfig -o /boot/grub/grub.cfg
  • exit umount -R /mnt reboot and done!

Steps I've done after installing Arch Linux

  • Configure /etc/default/grub and disable timeout and enable os-prober.
  • Ensure Microsoft EFI is inside /mnt/boot if os-prober doesn't show up.
  • Installed cups for printing.

Configuring home

  • Hyprland
    • ~/.config/hypr/
    • ~/.local/bin/start-desktop.sh
  • Waybar
    • ~/.local/bin/start-waybar.sh
  • Alacritty
    • ~/.config/alacritty/alacritty.toml
  • Wallpapers
    • git clone https://github.com/aishenreemo/wallpapers .wallpapers
  • Neovim

Setting up Printer

Printer Model: Brother DCP-T720DW

  • Run this series of commands.
doas paru -Syy cups brother-dcp-t720dw nss-mdns avahi ghostscript gsfonts
doas systemctl enable --now avahi
doas systemctl enable --now cups
  • Modify /etc/nsswitch.conf to ensure mdns is used for hostname resolution.
hosts: files mymachines mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns
  • Go to CUPS home page http://localhost:631/ and add the printer (make sure it is turned on).

Setting up Git

  • Download all keys on Google Drive.
  • Copy all ssh keys to ~/.ssh.
  • chmod 600 the private ssh key.
  • Run this
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
  • Import all public and private gpg keys.

  • Configure git

git config --global user.name "Aishen Reemo"
git config --global user.email "aish3n@pm.me"
git config --global commit.gpgSign true
git config --global gpg.program gpg
gpg --list-secret-keys --keyid-format=long
git config --global user.signingkey HASH_KEY
  • Use pinentry-curses to gnupg
mkdir -p ~/.gnupg
echo 'pinentry-program /usr/bin/pinentry-curses' > ~/.gnupg/gpg-agent.conf
gpg-connect-agent reloadagent /bye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment