How do I install graphics card drivers on Ubuntu server?

To install graphics card drivers in Ubuntu Server, you will need to use the command line. Below are the steps to install NVIDIA graphics card drivers.

  1. Firstly, make sure that the system has been updated to the latest version.
sudo apt update
sudo apt upgrade
  1. Install a universal graphics card driver installation tool for Linux.
sudo apt install nvidia-utils-460
  1. Check to see if the system recognizes the graphics card.
lshw -c video
  1. Disable the nouveau driver (if it is already installed on the system):
sudo vi /etc/modprobe.d/blacklist.conf

Add the following content at the end of the document:

blacklist nouveau
options nouveau modeset=0

Save and exit, then update initramfs.

sudo update-initramfs -u
  1. Restart the system to apply the new settings.
sudo reboot

The steps above are for installing NVIDIA graphics card drivers, but for other brands of graphics cards, you can also follow similar steps to install the drivers. If you are using an AMD graphics card, you can try using the AMDGPU-PRO driver. After installation, you can use the command nvidia-smi to view the graphics card information.

Leave a Reply 0

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


广告
Closing in 10 seconds
bannerAds