ubuntu16.04 install NVIDIA driver - run file install ubuntu16.04 install NVIDIA driver - run file install

Ubuntu16.04 install NVIDIA (NVIDIA) driver - run file installation

NVIDIA's official graphics card driver update is relatively timely, but the compatibility with the ubuntu system is not very good, and warnings are often generated. There are usually two ways to install an NVIDIA graphics card, as follows:

method one

  1. Download the CUDA installation package (.deb format, CUDA is a parallel computing language for calling GPU)
  2. Enter ubuntu terminal (shortcut key Ctrl+ t)
  3. Use the dpkgcommand to install (installing CUDA will automatically download and install the latest graphics card driver)
    Disadvantages: The installed graphics card driver is sometimes incompatible with the system and needs to be repaired by itself.

Method Two

Download the specified NVIDIA driver installation package (.run format). The installation of run format files is sometimes troublesome. Here we focus on explaining the steps, as follows: - [ NVIDIA ]

  • nouveau forbid command to write to file

sudo vim /etc/modprobe.d/blacklist.conf
blacklist new
blacklist lbm-new
options new modeset=0
alias new off
alias lbm-new off

  • call directive forbids nouveau

echo options new modeset=0 | sudo tee -a /etc/modprobe.d/new-kms.conf

  • build new kernel

sudo update-initramfs -u

  • reboot

sudo reboot

  • enter tty mode

ctrl + alt+ F1

  • shut down xserver

sudo service lightdm stop
sudo init 3


  • Switch to the specified directory of the NVIDIA installation package, grant permissions and install it
cd nvidiadirectory/
chmod +x nvidia.run
sudo sh nvidia.run –no-opengl-files
Note: no is preceded by a double bar

Guess you like

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