How to Install NVIDIA Driver and CUDA on Rocky 9.1

Hi guys, I finally solved it by disable the secure boot on bios, here’s the steps:

  1. check the driver version your laptop need and download the .run file from the official website;
  2. disable the the secure boot on bios;
  3. disable the nouveau;
  4. go into tty and run the .run file using sudo cmd,
    –no-x-check params when running the command
    i.e
./NVIDIA-Linux-x86_64-515.48.07.run --no-x-check
  1. reboot and check whether installed sucessfully: nvidia-smi
1 Like