Nvidia Gtx 1060 Setup On Rocky Linux 9.X
- Download the latest
.runinstaller from Nvidia’s site: https://www.nvidia.com/en-us/drivers/details/237928/ - Install
gcc:sudo dnf install -y gcc - Install the
kernel-develpackage:sudo dnf install -y kernel-devel-$(uname -r) - Run the
.runinstaller:sudo sh NVIDIA-Linux-x86_64-$DRIVER_VERSION.run - Allow the installer to blacklist the
nouveaudrivers. reboot- Run the installer again.
- Install the 32-bit drivers.
NEW VERSION
Host Config
- Find the
device-slotandvendor-idinformation:lspci -Dnn | grep -i NVIDIA - Place the
device-idandvendor-idinto theCMDLINE_LINUXarea. - Add the following parameters to your
grubkernel cmdline parameters:sudo tee /etc/default/grub <<EOF GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="crashkernel=1G-4G:192M,4G-64G:256M,64G-:512M resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet amd_iommu=on iommu=pt pci-stub.ids=10de:1c03,10de:10f1" GRUB_DISABLE_RECOVERY="true" GRUB_ENABLE_BLSCFG=true EOF - Update
grub:sudo grub2-mkconfig -o /etc/grub2.cfg - Blacklist the
nouveaudrivers:sudo tee /etc/modprobe.d/blacklist.conf <<EOF blacklist nouveau EOF - Add the EPEL repo:
sudo dnf install epel-release -ycurver="rhel$(rpm -E %rhel)"sudo wget -O /etc/yum.repos.d/cuda-$curver.repo \ http://developer.download.nvidia.com/compute/cuda/repos/$curver/$(uname -i)/cuda-$curver.repo - Enable the CRB repo:
sudo crb enable - Update with
dnf:sudo dnf update -y - Reboot:
sudo reboot - Install the Nvidia driver:
sudo dnf module install nvidia-driver:latest-dkms -y - Reboot:
sudo reboot