Jump to content

Solution to installing Nvidia drivers on Ubuntu 22.04 for transcoding


Dogsbody
Go to solution Solved by Dogsbody,

Recommended Posts

  • Solution
Dogsbody

TL;DR

Ubuntu actually make it really easy to install the right nvidia drivers however there are separate packages for NVDEC & NVENC so you need to find the right packages.

The magic sauce (at the time of writing) is...

sudo apt install nvidia-headless-525-server nvidia-settings nvidia-utils-525-server libnvidia-decode-525-server libnvidia-encode-525-server

Background

I'm running Emby in a VM (on TrueNAS SCALE). I decided to add a GPU and PCI passthrough for hardware accelerated transcoding.

All the advice on the Emby pages say that you should install the nvidia driver from the nvidia homepage and NOT from the package manager. I couldn't get this to work and it felt wrong as I wouldn't get automatic security patches.

There seemed to be other users on the forums that had installed an entire xserver dekstop on their VM's just to get the drivers to work.

I was adamant that I wanted to use the package manager.

Nvidia drivers can typically be installed with a simple...

sudo apt install nvidia-headless-525-server

...however that obviously didn;t work.  You have to specifically install the nvidia libraries for NVDEC & NVENC...

sudo apt install libnvidia-decode-525-server libnvidia-encode-525-server

... the rest is just gravy which give you tools like `nvidia-smi`...

sudo apt install nvidia-settings nvidia-utils-525-server

I hope this is of use to someone else.

  • Thanks 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...