Advertisement
Guest User

The Ultimate Rocky Linux Install Guide with NVIDIA Drivers

a guest
Dec 16th, 2023
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.46 KB | Software | 0 0
  1. Here's an outline of what is covered in the video. Since YouTube cuts off the text, it's better if you use this post as a guide vs. the description on youtube.
  2.  
  3. Outline and commands used:
  4.  1. Download the Rocky Linux ISO from: https://rockylinux.org/download/
  5.  2. **IMPORTANT** During install, select "Server" with NO GUI
  6.  3. Configuration:
  7.  
  8.     sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
  9.     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
  10.     sudo dnf config-manager --enable crb
  11.  
  12. 4. Dependencies and Tools
  13.  
  14.     sudo dnf update -y
  15.     sudo dnf install xorg-x11-server-Xorg xorg-x11-xauth -y
  16.     sudo dnf install plasma-desktop kscreen sddm kde-gtk-config dolphin konsole kate plasma-discover firefox rocky-backgrounds sddm-breeze mpv  -y
  17.  
  18. 5. Prep for NVIDIA
  19.  
  20.     sudo dnf groupinstall "Development Tools"
  21.     sudo dnf install kernel-devel epel-release
  22.     sudo dnf install dkms
  23.  
  24. 6. Install NVIDIA
  25.     Add repo:
  26.  
  27.         sudo dnf config-manager --add-repo http://developer.download.nvidia.com/compute/cuda/repos/rhel9/$(uname -i)/cuda-rhel9.repo
  28.  
  29.     Dependencies:
  30.  
  31.         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
  32.  
  33.     Install NVIDIA Driver:
  34.  
  35.         sudo dnf module install nvidia-driver:latest-dkms
  36.  
  37. 7. Disable nouveau in GRUB
  38.  
  39.     sudo nano /etc/default/grub
  40.  
  41.         Make this line match:
  42.  
  43.             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"
  44.  
  45.     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**):
  46.  
  47.         BIOS:
  48.  
  49.             sudo grub2-mkconfig -o /boot/grub2/grub.cfg
  50.  
  51.         EFI:
  52.  
  53.             sudo grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg
  54.  
  55. 8. Reboot
  56.     You'll still boot to login prompt (No GUI yet)
  57.  
  58. 9. Login and test NVIDIA
  59.  
  60.    nvidia-smi
  61.  
  62. 10. Set to boot to KDE
  63.  
  64.    sudo systemctl set-default graphical.target
  65.    sudo systemctl enable sddm
  66.  
  67. 11. Install Flatpak and anything else you may want
  68.  
  69.    sudo dnf install flatpak
  70.    flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
  71.  
  72. 12. Reboot into Rocky Linux KDE with NVIDIA :)
  73.  
  74. POST INSTALL:
  75.  
  76. 13. Install DaVinci Resolve and fix to edit on Linux
  77.  
  78.     Download link: https://www.blackmagicdesign.com/products/davinciresolve
  79.  
  80.     Dependancies for DaVinci Resolve:
  81.  
  82.         sudo dnf install apr apr-util mesa-libGLU
  83.         ./DaVinci_Resolve_18.6.4_Linux.run
  84.  
  85.     Transcode Command:
  86.  
  87.   One liner:
  88.  
  89.     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
  90.  
  91.    Batch:
  92.  
  93.        for f in *.mov;
  94.        do
  95.            ffmpeg -i "$f" -y -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le \ "${f%.mov}_conv.mov";
  96.        done
  97.  
  98. 14. Install VMware Player for VMs
  99.  
  100.     Download Link: https://www.vmware.com/products/workstation-player/workstation-player-evaluation.html
  101.  
  102.     Install VMware player:
  103.  
  104.     sudo dnf install kernel-headers kernel-devel
  105.     sudo ./VMware-Player-Full-17.5.0-22583795.x86_64.bundle
  106.  
  107. 15. Fix Rocky Linux Neofetch icon in the terminal
  108.  
  109.     curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch | grep -o Rocky
  110.  
  111.     sudo curl -s https://raw.githubusercontent.com/dylanaraps/neofetch/master/neofetch -o /usr/bin/neofetch
  112.  
  113. 16. Install Brave
  114.  
  115.  
  116.     sudo dnf install dnf-plugins-core
  117.  
  118.     sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/brave-browser.repo
  119.  
  120.     sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
  121.  
  122.     sudo dnf install brave-browser
  123.  
  124.  
  125. 17. Install and fix obs-studio
  126.  
  127.     OBS Config File Location: /home/thelinuxitguy/.config/obs-studio/basic/profiles/Untitled/
  128.  
  129. 18. Add Rocky wallpaper
  130.  
  131.     Wallpaper Link: https://global.discourse-cdn.com/business7/uploads/rockylinux/original/1X/b49931e04226c4413bbe3c2d5d5cb01a3c6669c6.png
  132.  
  133. Link to the Youtube video: https://youtu.be/7AUWzWlssjs
Tags: tutorial
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement