裝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

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