nvidia graphics driver installation system ubuntu16.04
.
ubuntu 16.04 default driver installation of third party open source nouveau, you first need to install the nvidia graphics driver disabled nouveau, or will encounter problems of conflict, making it impossible to install nvidia graphics driver.
1, editing system files:
sudo vim /etc/modprobe.d/blacklist.conf
2, insert the following two lines at the end of the file
blacklist nouveau
options nouveau modeset=0 sudo reboot
3, update system
sudo update-initramfs -u
4, reboot the system (be sure to reboot)
sudo reboot
5. Verify nouveau disabled
lsmod | grep nouveau
没有信息显示,说明nouveau已被禁用
6. Find your computer's video card model and then download the appropriate driver in NVIDIA's official website. URL:
http://www.nvidia.cn/page/home.html
wegt http://cn.download.nvidia.com/XFree86/Linux-x86_64/440.44/NVIDIA-Linux-x86_64-440.44.run
7. Under ubuntu press ctrl + alt + f1 to enter the command line interface,
sudo Service lightdm STOP // this is off the graphical interface
8, and then uninstall the original driver:
sudo apt-get remove nvidia-*
9, run the file to the drive gives execute permissions:
sudo chmod a+x NVIDIA-Linux-x86_64-396.18.run
10. Installation:
sudo ./NVIDIA-Linux-x86_64-396.18.run -no-x-check -no-nouveau-check
Parameter Description:
-no-opengl-files //只有禁用opengl这样安装才不会出现循环登陆的问题
-no-x-check:安装驱动时关闭X服务
-no-nouveau-check:安装驱动时禁用nouveau
-no-opengl-files:只安装驱动文件,不安装OpenGL文件
11, during installation options:
有提示选择一直回车就对了 ^_^
12, Mount Nvidia driver:
modprobe nvidia
Check the drive is successfully installed:
nvidia-smi
13, if the following prompt appears, the installation was successful