linux:ubuntu20.04,cuda配置历程

1.关闭安全启动(极为重要)

万一不幸忘记关闭

sudo chmod +x *.run
sudo ./NVIDIA-Linux-x86_64-384.59.run --uninstall

2.参考下面博主博客https://blog.csdn.net/m0_37412775/article/details/109355044

3.修改部分:查阅发现:新手门注意,下载的文件的地址在哪儿,按照上面博主的命令,软件就会安装在哪儿,我将要安装的cuda驱动安装run文件放在了/opt下。

cd /opt
sudo mkdir download
sudo chmod 777 /opt
cp /home/cmx/download/NVIDIA-Linux-x86_64-510.54.run /opt #注意前面的地址是你文件放的地 sudo chmod a+x NVIDIA-Linux-x86_64-510.54.run
sudo ./NVIDIA-Linux-x86_64-510.54.run  -no-x-check -no-nouveau-check -no-opengl-files




另外参考ubuntu18.04 安装Nvidia驱动的三种方式(必看)_低吟浅笑的博客-CSDN博客_ubuntu18.04安装nvidia显卡驱动

1. There appears to already be a driver installed on your system (version:      
  390.42).  As part of installing this driver (version: 390.42), the existing  
  driver will be uninstalled.  Are you sure you want to continue? 
  Continue installation      Abort installation 
(选择 Coninue,如果是重装的话)
2. The distribution-provided pre-install script failed!  Are you sure you want
  to continue?                                                                 
 Continue installation      Abort installation       
(选择 Cotinue)
3. 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.
Yes                       No  
(这里选 No)
4. Install NVIDIA's 32-bit compatibility libraries?
    Yes                       No  
(这里选 No)
5. Installation of the kernel module for the NVIDIA Accelerated Graphics Driver
  for Linux-x86_64 (version 390.42) is now complete.                           
  OK
6.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                       No  
(这里选 Yes)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值