1.下载驱动
wget ftp://192.168.9.5:2121/whl_and_run/NVIDIA-Linux-x86_64-440.36.run
2.删除原有驱动(可选)
sudo apt-get remove --purge nvidia*
3.禁用nouveau驱动
sudo gedit /etc/modprobe.d/blacklist.conf
编辑 /etc/modprobe.d/blacklist-nouveau.conf 文件,添加以下内容:
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
然后保存。
关闭nouveau:
echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
4.重启
update-initramfs -u
reboot
5.验证nouveau是否已禁用
lsmod | grep nouveau
没有信息显示,说明nouveau已被禁用,接下来可以安装nvidia的显卡驱动。
6.获取Kernel source
sudo apt-get install linux-source
sudo apt-get install linux-headers-x.x.x-x-generic
7.安装NVIDIA驱动
1)关闭图形界面
sudo service lightdm stop ## 关闭图形界面
2)赋予权限
sudo chmod a+x NVIDIA-Linux-x86_64-440.36.run
3)执行安装
sudo ./NVIDIA-Linux-x86_64-440.36.run
4)安装过程中的选项
The distribution-provided pre-install script failed! Are you sure you want to continue? 选择 yes 继续。
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 继续。
if you install a different kernel later? 选择 No 继续。
问题没记住,选项是:install without signing
问题大概是:Nvidia’s 32-bit compatibility libraries? 选择 No 继续。
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 继续
5)打开图像化界面
sudo service lightdm start
nvidia-smi
网友评论