ubuntu18.04安装RTX3090驱动

本文档记录了在Ubuntu18.04全新系统中成功安装NVIDIA RTX3090驱动的详细过程,包括移除nouveau、安装lightdm、以及驱动的安装步骤。遵循这些步骤,可以避免图形界面问题并确保驱动正确安装。

ubuntu18.04  刚安装完的干净系统,成功安装nvidia驱动记录

 

1.下载显卡驱动,英伟达官网搜索下载

2.直接移除nouveau:

$cd /lib/modules/4.0.0-12-generic/kernel/drivers/gpu/drm/nouveau
#注意:上面命令中的 4.0.0-12-generic 根据ubuntu版本的不同而不同,具体是哪一个可以自己查看

---》查看当前使用的内核 uname -r

$mv nouveau.ko nouveau.ko.org

$update-initramfs -u

3.安装lightdm

    $ sudo apt install lightdm

重启

4.开始安装

  • 进入ubuntu后,在桌面按下Ctrl+Alt+F1进入命令行界面
    输入root,在输入密码就可以完成登陆(如果还没有修改过root密码的可以参考ubuntu16.04修改root的密码)
    执行命令

$sudo service lightdm stop
#关闭图形界面

$cd /home/username/Downloads
#进入去驱动程序所在的默认下载目录,上面的username为你的用户名,如果你把放在其他地方,进入相应的目录

$sudo chmod a+x NVIDIA-Linux-x86_64-390.77.run
#后面的驱动要改为你自己的驱动,可在输入NVIDIA后按下Tab键自动补全

$sudo ./NVIDIA-Linux-x86_64-390.77.run -no-opengl-files

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 继续。
问题没记住,选项是:install without signing
问题大概是: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 继续

#待安装完成后,打开图像界面
$sudo service lightdm start

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值