Skip to content

Instantly share code, notes, and snippets.

@alierkan
Forked from Kline-/deb-nvidia-headless.txt
Created September 9, 2024 14:57
Show Gist options
  • Save alierkan/480e3eba70038badc2b7544089a0dddf to your computer and use it in GitHub Desktop.
Save alierkan/480e3eba70038badc2b7544089a0dddf to your computer and use it in GitHub Desktop.
Debian NVIDIA driver install for headless server
The current nvidia-driver package in Debian 12 is designed for desktop systems and has dependencies to install Xorg
and other desktop packages. There is no package similar to the nvidia-headless package provided by Ubuntu. These were
the minimal packages (and their dependencies) I had to install to get a Quadro P400 running on a headless Debian 12
box for transcoding use.
install dkms nvidia-kernel-dkms libnvcuvid1 libnvidia-encode1 nvidia-smi linux-headers-amd64 nvidia-driver-bin
rmmod nouveau
modprobe nvidia
Check the output of nvidia-smi and the card should be properly detected and ready for use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment