查看显卡信息
- $: lspci | grep VGA
注销桌面用户
CTRL + ALT + F1 登录纯命令行
删除原驱动
- $: sudo apt-get remove --purge nvidia*
禁用nouveau驱动
- $: sudo vim /etc/modprobe.d/blacklist-nouveau.conf
增加以下内容:
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off
保存退出
- $: echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
重启
- $: sudo update-initramfs -u
- $: sudo reboot
进入纯命令行获取Kernel source
- $: apt-get install linux-source
安装Nvidia驱动
- $: sudo service lightdm stop
- $: cd Downloads
- $: sudo chmod +x NVIDIA-Linux-x86_64-390.77.run
- $: sudo sh NVIDIA-Linux-x86_64-390.77.run
安装过程中选项:
-
The distribution-provided pre-install script failed! Are you sure you want to continue?
选择 continue
-
Nvidia's 32-bit libraries?
这个一定选择 YES,很多软件需要32位库支持,例如最好玩的steam。
-
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
没见过选项最好都选择安装。
挂载Nvidia驱动
- $: modprobe nvidia
重启完成
- $: reboot