装nvidia驱动笔记

 

实验室ubuntu系统更新什么东西之后驱动就不行了,而且会导致ubuntu循环登陆,每次重新安装我都要再查别的笔记的命令,所以今天还是记录下来以后照着输入就可以了

首先要记一下你run文件的位置和具体名称,我的run文件名是NVIDIA-Linux-x86_64-430.14.run

1、删除原有驱动(一般驱动没了也不用这一步了)

sudo apt-get remove --purge nvidia*

2、因为以前禁用驱动了,所以不需要重复操作,直接关闭图形界面

sudo service lightdm stop

3、进入你run文件所在文件夹,执行

sudo sh ./NVIDIA-Linux-x86_64-430.14.run

安装过程中一些选项:
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 继续。
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  继续

4、打开图形界面

sudo service lightdm start

5、验证是否成功

nvidia-smi

不需要重启

 

若第一次安装可参考这个博主https://blog.csdn.net/Stories_Untold/article/details/78521925

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章