1.禁用nouveau
1.1打开文件blacklist.conf
sudo gedit /etc/modprobe.d/blacklist-nouveau.conf
1.2向文件中写入以下两行内容
- blacklist nouveau
- options nouveau modeset=0
1.3.更新系统
sudo update-initramfs -u
1.4重启电脑
reboot
1.5验证是否禁用成功
lsmod | grep nouveau
若没有任何输出,则禁用成功
2.驱动安装
2.1准备工作
先将下载好的驱动文件放在home下,比如我的文件名为:NVIDIA-Linux-x86_64-510.85.02.run
2.2卸载掉原有驱动
sudo apt-get remove nvidia-*
或
sudo apt-get remove --purge nvidia*
注:卸载后是这样的
2.3给驱动run文件赋予执行权限
sudo chmod a+x NVIDIA-Linux-x86_64-510.85.02.run
2.4安装
sudo ./NVIDIA-Linux-x86_64-510.85.02.run -no-opengl-files -no-x-check -no-nouveau-check
注:只有禁用opengl这样安装才不会出现循环登陆的问题
-no-x-check:安装驱动时关闭X服务
-no-nouveau-check:安装驱动时禁用nouveau
-no-opengl-files:只安装驱动文件,不安装OpenGL文件
3.安装过程中的一些选项
1.An alternate method of installing the NVIDIA driver was detected. (xxxxxxxxxxxxx).Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:
选continue installation
2. would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module,if you install a different kernel later.
选No
3. Install NVIDIA's 32-bit compatibility libraries?
选No(图给错了)
4. Would you like to run the nvidia-xconfig utility to aotumatically update your X configuration file so that the NVIDIA X driver will be used when you restart X?ANy pre-existing X configuration file will be backed up.
选no
4.后续工作
4.1挂载NVIDIA驱动
sudo modprobe nvidia
4.2检查驱动是否安装成功
nvidia-smi
5.一些其他可能用到的命令
5.1进入文本模式
进入快捷键:Ctrl + Alt + F1,回到图形界面快捷键:Ctrl + Alt + F7
5.2关闭图形界面
sudo service lightdm stop
5.3网络问题
unset all_proxy && unset ALL_PROXY
评论记录:
回复评论: