Skip to content

Instantly share code, notes, and snippets.

@Kline-
Created January 3, 2024 02:58
Show Gist options
  • Save Kline-/48b405d67a8310fd795ffe4b87a257f0 to your computer and use it in GitHub Desktop.
Save Kline-/48b405d67a8310fd795ffe4b87a257f0 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