Skip to content

Instantly share code, notes, and snippets.

@netfeed
Last active August 5, 2020 14:17
Show Gist options
  • Select an option

  • Save netfeed/8e7c307e2c7ffe76e62ecefe9965cb56 to your computer and use it in GitHub Desktop.

Select an option

Save netfeed/8e7c307e2c7ffe76e62ecefe9965cb56 to your computer and use it in GitHub Desktop.

Debian Nvidia install

  • create keys
    • sudo open-ssl req -new -x509 -newkey rsa:2048 -keyout /path/to/nvidia-private.key -outform DER /path/to/nvidia-public.der -days 36500 -subj "/CN=Graphics Driver"
  • load new keys into mok
    • sudo mokutil --import /path/to/public-nvidia.der
    • create password, remember password
  • disable nouveau
    • echo options nouveau modset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
    • sudo update-initramfs -u
  • reboot and enable the new signed key in mok
  • download nvidia driver
    • links2 download.nvidia.com
    • download the required driver
  • install driver
    • sudo apt install libglvnd-dev
    • sudo sh /path/to/NVIDIA-Linux....run -s --module-signing-secret-key=/full/path/to/nvidia-private.key --module-signing-public-key=/full/path/to/nvidia-public.der
      • make sure to not use /home/<USERNAME> instead of ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment