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

被折叠的 条评论
为什么被折叠?



