Ubuntu安装nvidia GPU显卡驱动教程

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

pighmB6.png

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  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值