通过netboot方式启动的终端,在终端上编译需要的nvidia驱动(NVIDIA-Linux-x86_64-430.40.run)时,没有出现安装提示。因此做如下操作
1,由于终端启动后是只读文件系统(nfs挂载时的属性导致)
vim /etc/exports
内容:
/opt/live/binary(这个路径随便设置) *(ro,no_root_squashfs,secure,sync,no_subtree_check)
这个属性设置了只读,导致终端无法通过修改etc/modprobe.d/blacklist-nvidia.conf方式,屏蔽自带的驱动:
blacklist nouveau
options nouveau modeset=0
#重新生成 kernel initramfs
#update-initramfs –u
2,修改netboot启动方式中的live.cfg文件:添加参数nomodeset
append boot =live netboot=nfs nfsroot=服务器IP地址:tftp路径 nomodeset queit spash
然后重启服务:systemctl restart tftpd-hpa
接着重新启动终端,即可正常进入桌面系统,为了编译nvidia驱动,需要进进入命令行模式:ctrl+alt+f1
以下操作使用超级用户权限:
sudo -i 进入超级用户权限
systemctl stop lightdm (关停这个服务,该服务和gdm3类似,在stretch版本特有,目前还不清楚debian 10是不是该服务)
同时查看是否有自带的nouveau驱动:
lsmod | grep nouveau
若有的话,需要先卸载nouveau:rmmod nouveau
chmod +x NVIDIA-Linux-x86_64-430.40.run (提前把nvidia驱动加载终端上)
./NVIDIA-Linux-x86_64-430.40.run
接着,出现以下提示:
would you like to resister the kernel module sources with DKMS? this wille allow DKMS to automatically build a new module ,if you install a different kernel later ? (此处我选了否)
然后出现warning:。。。。。 直接点击OK
出现:
an incomplete installation of libglvnd was found,… (我选择了 don’t install
)
出现:would you like to run the nvidia-xconfig utility to automatically update your x configuration file so that the nvidia x driver will be used …(选择yes)
等待完成。
附件:安装日志(https://blog.csdn.net/a985588764/article/details/100103749)