brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: ubuntu-drivers devices tells you which graphics driver to install

Ubuntu
~/tips/tip-ubuntu-drivers-devices

ubuntu-drivers devices

Shows which driver Ubuntu recommends for your graphics card, ready to install with one command.

Picking an NVIDIA driver by browsing a download page is how people end up with a driver that fights Secure Boot. Ubuntu already knows what suits your card.

ubuntu-drivers devices
sudo ubuntu-drivers install

The first command lists the hardware that needs a driver and the candidates, with the recommended one marked. The second installs the recommended one. The Ubuntu Server docs call the ubuntu-drivers tool the recommended route, and say it uses the same logic as the Additional Drivers window.

You can also pin a branch yourself, for example sudo ubuntu-drivers install nvidia:535. On a compute server, the docs add --gpgpu and the -server driver variants.

Reboot afterwards so the new kernel module loads.

I would always read the list before installing, even though the tool picks for you. A driver is a kernel module, so a wrong pick can leave you with a black screen.

Caveat: the docs warn against DKMS driver modules unless you run a custom kernel, because they are not signed for Secure Boot. Stay with the packaged drivers and the tool handles the signing side for you.

Further reading: Ubuntu Server docs: NVIDIA drivers installation, On this site: pro status shows what Ubuntu Pro covers on your machine, On this site: do-release-upgrade -c checks for a new Ubuntu release without starting one

More Ubuntu tips sudo apt install ppa-purge grep ^Prompt /etc/update-manager/release-upgrades sudo tee /etc/update-motd.d/60-disk >/dev/null <<'EOF' ubuntu-bug openssh-server sudo update-alternatives --config editor All Ubuntu tips (8) All topics

Link