This blog is for my notes on setting up Arch from scratch to my liking. I use KDE Plasma as my desktop and my computers have a NVIDIA GPU (my Asus laptop also has an additional integrated GPU). I am not going to cover downloading the ISO, putting it on a USB, booting from the USB or running the Archinstall installer (selecting the Plasma desktop).
When running the arch installer:
Apparmor
Add the following kernel parameters to your Boot Manager, see Boot Manager Configuration for reference
lsm=landlock,lockdown,yama,integrity,apparmor,bpfInstall apparmor and apparmord (Set of over +1500 profiles) packages
Terminal window sudo pacman -S apparmor apparmor.d-gitEnable/Start AppArmor service
Terminal window systemctl enable --now apparmor.serviceEnable caching for AppArmor profiles
## Add the following lines:write-cacheOptimize=compress-fastSave the file and reboot.
Example (/boot/limine.conf
):
timeout: 5default_entry: 2 # Points directly to the 'linux-cachyos' entry below
/+CachyOS # Entry 1: A directory (use /+ to expand by default)//linux-cachyos # Entry 2: The actual bootable entry protocol: linux kernel_path: boot():/vmlinuz-linux-cachyos cmdline: quiet splash root=UUID=... rw # Basic kernel parameters module_path: boot():/initramfs-linux-cachyos.img
KERNEL_CMDLINE
variables in /etc/default/limine
. You can set default parameters for all kernels or specific parameters for certain kernel names (e.g., linux-cachyos
).# Default parameters for most kernelsKERNEL_CMDLINE[default]="quiet splash rd.udev.log_priority=3"
# Specific parameters for the 'linux-cachyos' kernelKERNEL_CMDLINE["linux-cachyos"]="quiet splash mitigations=off"
# Parameters for fallback entries (if generated)# KERNEL_CMDLINE[fallback]="..."
Installing yay
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
Snapper support:
- Create the file
/etc/default/limine
if it doesn’t already exist. - Make sure to manually set
ESP_PATH=/boot
in this file. - Try
sudo limine-snapper-sync
in a terminal, does it work? - If works, enable the service
systemctl enable --now limine-snapper-sync.service
yay -Syu btrfs-assistant
Probably reboot and then run Btrfs-assistant
Warp terminal
Install cachyos mirrors
wget https://mirror.cachyos.org/cachyos-repo.tar.xztar xvf cachyos-repo.tar.xz && cd cachyos-repo
sudo ./cachyos-repo.sh
You will want to run Cachy's
sudo chwd -ato auto detect hardware
Install All Packages (from prior installs)
Using a previously created package list from prior installs (pacman -Qqet > pkglist.txt), type yay -S --needed --noconfirm - < YOURPKGLIST.txt with the downloaded package list below. Current list: https://gist.github.com/whelanh/28f620a1f0890d73f2be251344658f9a
Check if Nvidia really installed
sudo cat /sys/module/nvidia_drm/parameters/modesetInstall Cachyos kernel
reboot
if you use systemd-boot-manager (in the Cachyos Repos....not AUR), it will create the boot entries for you
No comments:
Post a Comment