Ubuntu安装nvidia显卡驱动
1.安装前安装必要的依赖
sudo apt-get install build-essential
sudo apt-get install g++
sudo apt-get install make
2.到官网下载对应驱动
https://www.nvidia.cn/Download/index.aspx?lang=cn
3.卸载原有驱动
sudo apt-get remove --purge nvidia*
4.禁用nouveau
sudo gedit /etc/modprobe.d/blacklist.conf
//在末尾添加
blacklist nouveau
options nouveau modeset=0
sudo update-initramfs -u
sudo reboot
5.安装驱动
sudo telinit 3
//进入放驱动的目录
sudo chmod 777 .
sudo ./NVIDIA-Linux-xxx.run –no-opengl-files
1.The distribution-provided pre-install script failed! Are you sure you want to continue?
continue installation
2.Would you like to register the kernel module souces with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later?
No
3.Nvidia's 32-bit compatibility libraries?
No
4.Would you like to run the nvidia-xconfigutility to automatically update your x configuration so that the NVIDIA x driver will be used when you restart x? Any pre-existing x confile will be backed up.
Yes
6.安装完毕
//回到图形化
sudo service gdm3 start
//查看GPU信息
nvidia-smi