Lots of poor documentation around the interwebs for this… here is the required packages to make this useful. If you want the normal driver with xorg just remove headless from the package name.
apt install linux-headers-$(uname -r) -y
apt install nvidia-headless-470-server nvidia-utils-470-server libnvidia-encode-470-server -y
Omg thank you so much! I’ve been searching for hours and this did the trick for me. Why does this have to be so difficult? Haha
Thank you! I too spent all day trying to figure out something so simple. I probably went to 25 different guides until I found this one.
What about with cuda? I cant figure that one out driving me crazy