Skip to content

The Ultimate Rocky Linux Install Guide with NVIDIA Drivers

Install Rocky Linux 9.3 with KDE Plasma and NVIDIA drivers, then add DaVinci Resolve, VMware Workstation Player, Brave and OBS Studio.

On this page
  1. Outline and commands used
  2. Installer notes (Anaconda)
  3. 3. Configuration (repos)
  4. 4. Xorg + KDE (still not the default target)
  5. 5. Prep for NVIDIA
  6. 6. Install NVIDIA
  7. 7. Disable nouveau in GRUB
  8. 8 and 9. Reboot and test NVIDIA (still TTY)
  9. 10. Set to boot to KDE
  10. 11. Flatpak and Flathub
  11. 12. Reboot into Rocky Linux KDE with NVIDIA
  12. Post-install: DaVinci Resolve
  13. VMware Player
  14. Neofetch icon in the terminal
  15. Brave
  16. OBS Studio
  17. Rocky wallpaper
  18. Troubleshooting

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

  1. Download the Rocky Linux ISO from: https://rockylinux.org/download/
  2. IMPORTANT During install, select ā€œServerā€ with NO GUI
  3. Configuration (EPEL, RPM Fusion, CRB)
  4. Dependencies and tools (Xorg, Plasma, SDDM)
  5. Prep for NVIDIA (Development Tools, kernel-devel, DKMS)
  6. Install NVIDIA
  7. Disable nouveau in GRUB
  8. Reboot (still TTY)
  9. Login and test NVIDIA (nvidia-smi)
  10. Set graphical target + enable SDDM
  11. Flatpak / Flathub
  12. Reboot into KDE
  13. 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:

Terminal window
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

RPM Fusion free + nonfree (needed for multimedia later):

Terminal window
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.rpm

CRB (CodeReady Builder, extra -devel packages el9 hides by default):

Terminal window
sudo dnf config-manager --enable crb

NVIDIA needs headers from CRB. Skip it and dnf later says ā€œpackage not foundā€.

Then:

Terminal window
sudo dnf update -y

If 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)

Terminal window
sudo dnf install xorg-x11-server-Xorg xorg-x11-xauth -y
sudo dnf install plasma-desktop kscreen sddm kde-gtk-config dolphin konsole kate plasma-discover firefox rocky-backgrounds sddm-breeze mpv -y

That’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

Terminal window
sudo dnf groupinstall "Development Tools"
sudo dnf install kernel-devel epel-release
sudo dnf install dkms

kernel-devel must match uname -r. If DNF grabbed the wrong one, install kernel-devel-$(uname -r) explicitly.

Terminal window
uname -r
rpm -q kernel-devel

If 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):

Terminal window
sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo

Dependencies:

Terminal window
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 dkms

Install the DKMS NVIDIA driver module:

Terminal window
sudo dnf module install nvidia-driver:latest-dkms

DKMS 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

Terminal window
sudo nano /etc/default/grub

Append nouveau.modeset=0 to your GRUB_CMDLINE_LINUX.
Note: your GRUB_CMDLINE_LINUX shouldn’t match mine. Mine is shown for demonstration purposes only.

Terminal window
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:

Terminal window
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

EFI:

Terminal window
sudo grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg

On 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:

Terminal window
ls /boot/grub2/grub.cfg /boot/efi/EFI/rocky/grub.cfg
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

Afterward, 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)

Terminal window
sudo reboot

You’ll still boot to a login prompt (no GUI yet). Log in and test:

Terminal window
nvidia-smi

You 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

Terminal window
sudo systemctl set-default graphical.target
sudo systemctl enable sddm

systemctl get-default should print graphical.target. Do Flatpak before rebooting.

11. Flatpak and Flathub

Terminal window
sudo dnf install flatpak
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Discover can now install Flatpaks.

12. Reboot into Rocky Linux KDE with NVIDIA

Terminal window
sudo reboot

You 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:

Terminal window
sudo dnf install apr apr-util mesa-libGLU

Run the installer (version from the video):

Terminal window
chmod +x DaVinci_Resolve_18.6.4_Linux.run
./DaVinci_Resolve_18.6.4_Linux.run

Use the .run you actually downloaded. Linux Resolve can’t read typical H.264, so transcode to DNxHR.

One liner:

Terminal window
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.mov

Batch:

Terminal window
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"
done

Install 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

Terminal window
sudo dnf install kernel-headers kernel-devel
sudo ./VMware-Player-Full-17.5.0-22583795.x86_64.bundle

Player 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:

Terminal window
curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch | grep -o Rocky
sudo curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch -o /usr/bin/neofetch

Caveat: 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

Terminal window
sudo dnf install dnf-plugins-core
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf install brave-browser

If 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:

https://global.discourse-cdn.com/business7/uploads/rockylinux/original/1X/b49931e04226c4413bbe3c2d5d5cb01a3c6669c6.png

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-smi broken after a kernel update: DKMS should rebuild. If not, check dkms status, dnf reinstall the nvidia DKMS package and reboot.
  • Nouveau still loads: wrong grub.cfg path, or you didn’t regenerate the initramfs (dracut -f) after blacklisting. lsmod | grep nouveau should be empty.
  • Resolve won’t start: missing apr / mesa-libGLU, or NVIDIA OpenCL. Get nvidia-smi working first, then check the .run logs.

Thanks for following along and I hope this was helpful and informative.

Best regards,

The Linux IT Guy