Arch / EndeavourOS Setup Guide
Configuration
Refresh the package database:
bash
sudo pacman -Sy --noconfirmbash
sudo pacman -S --needed --noconfirm curl wget git sudo jqInstall yay:
bash
sudo pacman -S --needed --noconfirm yayUpdate package mirrors
Rank the EndeavourOS mirrors:
bash
sudo pacman -S --needed eos-rankmirrors reflectorbash
sudo eos-rankmirrorsRank the Arch mirrorlist directly with reflector:
bash
sudo reflector --latest 20 --sort rate --save /etc/pacman.d/mirrorlistRefresh the databases and upgrade the system:
bash
sudo pacman -SyuChaotic AUR
Import and sign the keyring key:
bash
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.combash
sudo pacman-key --lsign-key 3056513887B78AEBInstall the keyring and mirrorlist packages:
bash
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'Add this to the end of /etc/pacman.conf:
ini
[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlistRefresh the databases:
bash
sudo pacman -SyInstall Packages
Install the necessary packages:
bash
yay -S --needed --noconfirm base-devel cmake alacritty fish plasma-wayland-session brave-origin-bin zoxide eza vlc papers sublime-text-4 jq parallel localsendDisable services
bash
sudo systemctl disable --now bluetooth.service cups.service lvm2-monitor docker ModemManagerConfigure Fish
Create the config directory and download the config:
bash
mkdir -p "/home/$TARGET_USER/.config/fish"bash
sudo curl -fsSL -o "/home/$TARGET_USER/.config/fish/config.fish" https://raw.githubusercontent.com/fynks/configs/refs/heads/main/backups/config.fishAdd Fish to the list of valid shells and make it the default:
bash
command -v fish | grep -qxF - /etc/shells || echo "$(command -v fish)" | sudo tee -a /etc/shellsbash
sudo chsh -s "$(command -v fish)"Log out and back in for the shell change to take effect.
Install the optional packages
bash
yay -S --needed --noconfirm android-tools jdownloader2 java-rhino libreoffice-still ventoy visual-studio-code-bin firefox librewolf nodejs npm bat yt-dlp telegram-desktop celluloidInstall Bun:
bash
sudo -u "$TARGET_USER" bash -c 'curl -fsSL https://bun.com/install | bash'Configure Firefox policies
bash
sudo mkdir -p /etc/firefox/policiesbash
sudo curl -fsSL -o /etc/firefox/policies/policies.json https://raw.githubusercontent.com/fynks/configs/refs/heads/main/browsers/configs/policies.jsonRestore the uBlock Origin config from the repo in the extension's settings.
Restore keyboard shortcuts
Download the KDE shortcut scheme:
bash
wget https://raw.githubusercontent.com/fynks/configs/refs/heads/main/backups/kde-shortcuts.kksrcIn System Settings, open Keyboard → Shortcuts, choose Import Scheme..., select the downloaded file and click Apply. Press Alt + F2 and type shortcuts to open it quickly.
Troubleshooting
GPG key errors
bash
sudo pacman-key --refresh-keysIf the keyring is broken, rebuild it:
bash
sudo pacman -S --needed archlinux-keyring endeavouros-keyringbash
sudo rm -rf /etc/pacman.d/gnupg && sudo pacman-key --init && sudo pacman-key --populate archlinux endeavouros