Ubuntu install NVIDIA graphics card driver

Ubuntu install NVIDIA graphics card driver

  • The easiest way is to install Synaptic and then search for NVIDIA to find an up-to-date driver to install.
sudo apt install synaptic
sudo synaptic

The driver installed in this way has been tested by Ubuntu and is relatively safe. However, the version is a bit older, the NVidia driver in the Ubuntu16.04 LTS I installed is version 384.

  • You can directly install the 384 version of NVidia's driver (strongly recommended) :
sudo apt install nvidia-384

Install the CUDA driver

Installing the CUDA driver will automatically install the graphics card driver, which can be downloaded and installed from https://developer.nvidia.com/cuda-downloads .

However, after installing this method, it hangs after restarting . You can try to solve it by referring to the methods later in this article.

  • It is recommended to install version 8.X. After the installation of 9.1, there will be a loop login phenomenon, and you cannot enter the system.

Install NVIDIA factory driver

To install the updated driver, you can download it from the NVidia official website ( http://www.nvidia.cn/Download/index.aspx?lang=cn ).

When installing, it asks to shut down xserver, run:

sudo service lightdm stop

Press ctl+alt+F1 to enter command line mode. Press ctl+alt+F 7 again to return to the graphical interface.

After running, restart lightdm and run:

sudo service lightdm start

However, due to insufficient testing and complicated installation, it will also encounter the phenomenon of hanging after restarting, making it impossible to log in.

You can boot into "Advanced-Recovery" mode and reset it from the command line.

run:

 dpkg-reconfigure lightdm

System repair measures, refer to:

If it still doesn't work, just reinstall the system.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324897237&siteId=291194637