Skip to content

Instantly share code, notes, and snippets.

@sepgh
Created December 22, 2024 05:55
Show Gist options
  • Save sepgh/4713f956898e9ab6ddc92ed84144997f to your computer and use it in GitHub Desktop.
Save sepgh/4713f956898e9ab6ddc92ed84144997f to your computer and use it in GitHub Desktop.
Initializing my Fedora KDE system including Nvidia installation and fixes
sudo dnf update
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf update
sudo dnf remove dragon
sudo dnf install git proxychains-ng vlc ffmpeg obs-studio gimp python3 python3-pip --allowerasing
sudo fwupdmgr refresh --force
sudo fwupdmgr update --force
sudo dnf remove dragon
sudo dnf install git python3 python3-pip
sudo dnf copr enable -y lkiesow/noise-suppression-for-voice
sudo dnf install -y ladspa-realtime-noise-suppression-plugin
# NVIDIA
sudo dnf install nvidia-gpu-firmware akmod-nvidia nvidia-gpu-firmware xorg-x11-drv-nvidia-cuda --allowerasing
sudo dnf install xorg-x11-drv-nvidia-cuda
sudo grubby --update-kernel=ALL --args='video=vesafb:mtrr:3'
sudo dnf install vulkan
sudo dnf install xorg-x11-drv-nvidia-cuda-libs
sudo dnf install nvidia-vaapi-driver libva-utils vdpauinfo
echo "Running > vdpauinfo | grep NVIDIA"
vdpauinfo | grep NVIDIA
echo "Running vainfo"
vainfo
# https://rpmfusion.org/Howto/Optimus
echo "Running lsmod |grep nouveau (should have no output or you are fucked)"
lsmod | grep nouveau
sudo echo "options nvidia NVreg_DynamicPowerManagement=0x02" >> /etc/modprobe.d/nvidia.conf
sudo echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1" >> /etc/modprobe.d/nvidia.conf
sudo echo "options nvidia NVreg_TemporaryFilePath=/var/tmp" >> /etc/modprobe.d/nvidia.conf
# sudo systemctl --now mask nvidia-powerd
sudo akmods --force
sudo dracut -f --regenerate-all
echo "alias prime-run=\"__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia\"" >> ~/.bashrc
# KDE Configuration
echo "Configure KCMSHELL6"
kcmshell6 kcm_kded
rpm -qa kmod-nvidia\*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment