Skip to content

Instantly share code, notes, and snippets.

@avoidwork
Last active December 19, 2023 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avoidwork/6047edbf3badd4cc7619a23f502d1359 to your computer and use it in GitHub Desktop.
Save avoidwork/6047edbf3badd4cc7619a23f502d1359 to your computer and use it in GitHub Desktop.
debian nvidia
$ vi /etc/apt/sources.list
# add [contrib], [non-free] to [main] line
deb http://deb.debian.org/debian/ bookworm main non-free-firmware contrib non-free
$ LINUX_HEADERS=$(uname -r)
$ apt update
$ apt -y install nvidia-driver firmware-misc-nonfree linux-headers-$LINUX_HEADERS dkms
# default [nouveau] driver is disabled
$ cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf
# You need to run "update-initramfs -u" after editing this file.
# see #580894
blacklist nouveau
$ reboot
# verify installation to show Graphic cards status
$ nvidia-smi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment