Installing Headless Nvidia Drivers in Ubuntu 20.04 and up

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

3 Responses

  1. Toaster February 27, 2022 / 5:19 pm

    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

  2. zzttar June 17, 2022 / 1:02 am

    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.

  3. JohnRB September 15, 2022 / 11:07 pm

    What about with cuda? I cant figure that one out driving me crazy

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.