[管理员手册](五)Ubuntu desktop 20.04系统安装显卡驱动NVIDIA cuda pytorch向日葵sunlogin安装
此命令需慎重!!!sudo apt upgrade 內核更新!!!顯卡驅動可能需要重裝!
1、首先需要徹底刪除已有驅動
 sudo apt-get remove --purge '^nvidia-.*'
 sudo apt-get install ubuntu-desktop
 sudo rm /etc/X11/xorg.conf
 echo 'nouveau' | sudo tee -a /etc/modules
 ?
2、安裝驅動
 ubuntu-drivers devices
 sudo ubuntu-drivers autoinstall
 或sudo apt install nvidia-driver-xxx
 reboot 后測試命令nvidia-smi查看是否安裝成功
 如果出現Failed to initialize NVML: driver/library version mismatch 表明內核模塊(cat /proc/driver/nvidia/version) 和新安裝的驅動(可能是自動更新的)不匹配。試驗了兩種方法[7][8],都不能將內核卸載,因此保持與內核一致的驅動版本進行安裝。
3、安裝深度學習套件cuda pytorch
 sudo apt install nvidia-cuda-toolkit
 登錄https://pytorch.org/?進行安裝設定 安裝pytorch:pip install torch==1.7.1+cu110 torchvision==0.8.2+cu110 torchaudio===0.7.2 -f https://download.pytorch.org/whl/torch_stable.html
 4、解決向日葵軟件在Ubuntu 20.04依賴libwebkitgtk-3.0-0等問題[9][10]
 1)下載向日葵軟件 SunloginClient-10.0.2.24779_amd64.deb
 2)修改并重新打包https://www.jianshu.com/p/289001a00cb1,安裝
 3)向日葵在系統中作為服務存在,/etc/systemd/system/runsunloginclient.service? 同時也存在于多用戶模式/etc/systemd/system/multi-user.target.wants/runsunloginclient.service? ?配置文件存在于/etc/orayconfig.conf
 4)啟動向日葵后在home下自動建立sensors文件夾,沒有很好的辦法處理,故在啟動腳本/usr/local/sunlogin/etc/watch.sh中? 添加命令rm -rf sensors
總結
以上是生活随笔為你收集整理的[管理员手册](五)Ubuntu desktop 20.04系统安装显卡驱动NVIDIA cuda pytorch向日葵sunlogin安装的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: c语言程序书写时每行必须有行号,C语言阶
- 下一篇: mysql8.0重置密码
