Hereās an outline of what is covered in the video. Since YouTube cuts off the text in the description, itās better to use this post as a guide vs. the description on youtube.
THIS IS THE OLD 9.3 WAY. TRY THE NEW 9.4 EASY INSTALL HERE: https://github.com/TheLinuxITGuy/Rocky-Scripts
Iām keeping the 9.3 steps because people still find this video, and they show every repo, GRUB flag and systemctl set-default the scripts handle for you.
Video: https://youtu.be/7AUWzWlssjs
Want a friendlier desktop? See the Linux Mint 21.3 guide. For Arch, see Arch Linux with NVIDIA Drivers.
Outline and commands used
- Download the Rocky Linux ISO from: https://rockylinux.org/download/
- IMPORTANT During install, select āServerā with NO GUI
- Configuration (EPEL, RPM Fusion, CRB)
- Dependencies and tools (Xorg, Plasma, SDDM)
- Prep for NVIDIA (Development Tools, kernel-devel, DKMS)
- Install NVIDIA
- Disable
nouveauin GRUB - Reboot (still TTY)
- Login and test NVIDIA (
nvidia-smi) - Set graphical target + enable SDDM
- Flatpak / Flathub
- Reboot into KDE
- Post-install: Resolve, VMware, neofetch, Brave, OBS, wallpaper
Installer notes (Anaconda)
Use a 9.3 ISO to match the video. For new machines, use current 9.x and Rocky-Scripts.
Write the ISO, boot UEFI, pick Server (or Minimal), use custom disk if you care about LVM, create a user with sudo/wheel and set a hostname. Do not tick GNOME. On el9, adding Plasma to Server is more predictable than Anacondaās Workstation set plus NVIDIA.
First boot: text login, no SDDM. Youāll stay on a TTY until step 10. Thatās on purpose. Check network with ip addr (fix DNS with nmcli if needed) and use sudo -i or sudo on each command.
3. Configuration (repos)
EPEL:
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpmRPM Fusion free + nonfree (needed for multimedia later):
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-9.noarch.rpmCRB (CodeReady Builder, extra -devel packages el9 hides by default):
sudo dnf config-manager --enable crbNVIDIA needs headers from CRB. Skip it and dnf later says āpackage not foundā.
Then:
sudo dnf update -yIf dnf update pulled a new kernel, reboot before you compile NVIDIA modules, or youāll build against a kernel you arenāt running.
--nogpgcheck only applies to those three release RPMs. Normal GPG checks apply after that. If your policy forbids it, use the Rocky/EPEL docs commands.
4. Xorg + KDE (still not the default target)
sudo dnf install xorg-x11-server-Xorg xorg-x11-xauth -ysudo dnf install plasma-desktop kscreen sddm kde-gtk-config dolphin konsole kate plasma-discover firefox rocky-backgrounds sddm-breeze mpv -yThatās a basic Plasma desktop (kscreen handles displays). Donāt enable graphical.target yet. NVIDIA goes in first.
If DNF canāt find plasma-desktop, the repos didnāt enable. dnf repolist should list epel, fusion and crb.
5. Prep for NVIDIA
sudo dnf groupinstall "Development Tools"sudo dnf install kernel-devel epel-releasesudo dnf install dkmskernel-devel must match uname -r. If DNF grabbed the wrong one, install kernel-devel-$(uname -r) explicitly.
uname -rrpm -q kernel-develIf they donāt match, DKMS builds for the wrong kernel and nvidia-smi fails.
6. Install NVIDIA
Add the CUDA/RHEL9 repo (architecture via uname -i):
sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repoDependencies:
sudo dnf install kernel-headers-$(uname -r) kernel-devel-$(uname -r) tar bzip2 make automake gcc gcc-c++ pciutils elfutils-libelf-devel libglvnd-opengl libglvnd-glx libglvnd-devel acpid pkgconfig dkmsInstall the DKMS NVIDIA driver module:
sudo dnf module install nvidia-driver:latest-dkmsDKMS compile errors are almost always a kernel-devel mismatch or missing Development Tools.
Stream names change. If latest-dkms is gone, run dnf module list nvidia-driver and pick the current DKMS stream. Donāt mix RPM Fusion akmod-nvidia with this CUDA repo driver.
7. Disable nouveau in GRUB
sudo nano /etc/default/grubAppend nouveau.modeset=0 to your GRUB_CMDLINE_LINUX.
Note: your GRUB_CMDLINE_LINUX shouldnāt match mine. Mine is shown for demonstration purposes only.
GRUB_CMDLINE_LINUX="resume=/dev/mapper/rl_localhost--live-swap rd.lvm.lv=rl_localhost-live/root rd.lvm.lv=rl_localhost-live/swap crashkernel=auto rhgb quiet nouveau.modeset=0 rd.driver.blacklist=nouveau"I also add rd.driver.blacklist=nouveau so the initramfs doesnāt load nouveau first. Keep your existing line and just append those two.
Write the changes out. If you are using BIOS, ONLY use the BIOS command. If you are using EFI, only use the EFI command. VERY IMPORTANT.
BIOS:
sudo grub2-mkconfig -o /boot/grub2/grub.cfgEFI:
sudo grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfgOn newer Rocky 9, grub2-mkconfig -o /boot/grub2/grub.cfg is often right even on UEFI (the EFI grub.cfg may be a stub). If youāre unsure:
ls /boot/grub2/grub.cfg /boot/efi/EFI/rocky/grub.cfg[ -d /sys/firmware/efi ] && echo UEFI || echo BIOSAfterward, grep nouveau /boot/grub2/grub.cfg (or your EFI path) should show the tokens. If not, nouveau still loads.
8 and 9. Reboot and test NVIDIA (still TTY)
sudo rebootYouāll still boot to a login prompt (no GUI yet). Log in and test:
nvidia-smiYou should see your GPU and driver version. command not found means the NVIDIA userspace isnāt installed. A kernel ioctl error means the module didnāt load (dmesg | grep -i nvidia). Do not enable SDDM until nvidia-smi is clean.
10. Set to boot to KDE
sudo systemctl set-default graphical.targetsudo systemctl enable sddmsystemctl get-default should print graphical.target. Do Flatpak before rebooting.
11. Flatpak and Flathub
sudo dnf install flatpakflatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepoDiscover can now install Flatpaks.
12. Reboot into Rocky Linux KDE with NVIDIA
sudo rebootYou should land in Plasma, with nvidia-smi still working in Konsole. If SDDM is black but a TTY (Ctrl+Alt+F3) works, fix nvidia-smi first.
Post-install: DaVinci Resolve
Download: https://www.blackmagicdesign.com/products/davinciresolve
Dependencies:
sudo dnf install apr apr-util mesa-libGLURun the installer (version from the video):
chmod +x DaVinci_Resolve_18.6.4_Linux.run./DaVinci_Resolve_18.6.4_Linux.runUse the .run you actually downloaded. Linux Resolve canāt read typical H.264, so transcode to DNxHR.
One liner:
ffmpeg -i "/home/chris/Documents/YT Videos/2023-12-13 09-01-33.mov" -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le OUTPUT_FILE.movBatch:
for f in *.mov; do ffmpeg -i "$f" -y -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le "${f%.mov}_conv.mov"doneInstall ffmpeg from RPM Fusion if the base package is too limited. Same as on Mint and Arch.
VMware Player
Download (URL from the video): https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html
sudo dnf install kernel-headers kernel-develsudo ./VMware-Player-Full-17.5.0-22583795.x86_64.bundlePlayer rebuilds vmmon after kernel updates. Secure Boot blocks unsigned modules, so I disable it on this workstation.
Neofetch icon in the terminal
The videoās workaround pulled upstream neofetch:
curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch | grep -o Rockysudo curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch -o /usr/bin/neofetchCaveat: this drops a GitHub file into /usr/bin over your neofetch, so check it first. Prefer dnf install neofetch or fastfetch when available, and donāt make curl | sudo tee a habit.
Brave
sudo dnf install dnf-plugins-coresudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.reposudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.ascsudo dnf install brave-browserIf Braveās repo URL has moved, use their current instructions.
OBS Studio
Install with DNF/Fusion or Flatpak. OBS config location on my machine:
/home/thelinuxitguy/.config/obs-studio/basic/profiles/Untitled/
Use your own home directory. On NVIDIA, pick NVENC once nvidia-smi works. If a capture source is missing on Wayland, try an X11 Plasma session.
Rocky wallpaper
Wallpaper from the video:
Set it in Plasmaās wallpaper settings. CDN links break, so rocky-backgrounds is the safer bet.
Troubleshooting
- GDM/GNOME appeared: you didnāt pick Server without GUI, or something else enabled GNOME.
nvidia-smibroken after a kernel update: DKMS should rebuild. If not, checkdkms status,dnf reinstallthe nvidia DKMS package and reboot.- Nouveau still loads: wrong
grub.cfgpath, or you didnāt regenerate the initramfs (dracut -f) after blacklisting.lsmod | grep nouveaushould be empty. - Resolve wonāt start: missing
apr/mesa-libGLU, or NVIDIA OpenCL. Getnvidia-smiworking first, then check the.runlogs.
Thanks for following along and I hope this was helpful and informative.
Best regards,
The Linux IT Guy