System Setup - cephi-sui/dotfiles GitHub Wiki
Enable firewall and networking.
systemctl enable --now firewalld NetworkManager systemd-resolved
Allow systemd-resolved to manage DNS resolution instead of NetworkManager.
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
If desired, connect to Wi-Fi.
<network>
and<password>
are dependent on the desired network.
nmcli d wifi list
nmcli d wifi connect <network> password <password>
systemctl enable --now systemd-timesyncd
systemctl enable --now systemd-oomd
systemctl enable fstrim.timer
Refresh pacman mirrors on a weekly basis.
pacman -Syu reflector && systemctl enable reflector.timer
Edit /etc/xdg/reflector/reflector.conf
to prefer faster, closer mirrors.
/etc/xdg/reflector/reflector.conf |
---|
--country "United States" |
--sort rate |
pacman -Syu power-profiles-daemon python-gobject && systemctl enable --now power-profiles-daemon
powerprofilesctl
pacman -Syu os-prober
Edit /etc/default/grub
.
/etc/default/grub |
---|
GRUB_DISABLE_OS_PROBER=false |
Mount the partition containing the Windows bootloader and run this command.
It should have output stating that Windows was found.
grub-mkconfig -o /boot/grub/grub.cfg
mesa
is the DRI driver for 3D acceleration.
vulkan-radeon
adds Vulkan
support.
libva-mesa-driver
adds VA-API
accelerated video decoding.
pacman -Syu mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver
Optional: mesa-vdpau
adds VDPAU
accelerated video decoding.
pacman -Syu mesa-vdpau lib32-mesa-vdpau
Set the amdgpu.vm_update_mode=3
kernel parameter for AMD Radeon 7000 series.
This seems to fix a rare page fault issue when playing specific games.
/etc/default/grub |
---|
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet amdgpu.vm_update_mode=3" |
reboot
Before you forget, set up the NVIDIA mkinitcpio hook for pacman.
Install NVIDIA drivers.
pacman -Syu nvidia nvidia-utils lib32-nvidia-utils nvidia-settings
For Wayland compositors, set the modeset
kernel module parameter in GRUB.
/etc/default/grub |
---|
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet nvidia_drm.modeset=1" |
reboot
Make sure that nvidia drivers are in use.
lspci -k | grep -B 2 nvidia
mesa
is the DRI driver for 3D acceleration.
vulkan-intel
adds Vulkan
support.
intel-media-driver
adds VA-API
accelerated video decoding.
pacman -Syu mesa lib32-mesa vulkan-intel lib32-vulkan-intel intel-media-driver
reboot