1656

麒麟V10安装Nvidia显卡驱动

安装依赖

apt install pkg-config libglvnd-dev libglvnd0

防火墙放行

kysec_set -n exectl -v kysoft NVIDIA-Linux-x86_64-555.52.04.run
setstatus -f kid off

安装

赋予权限后进行安装

./NVIDIA-Linux-x86_64-555.52.04.run
选项翻译选择
Install NVIDIA'S 32-BIT compatibility libraries?英伟达32位兼容库NO
Would you like to register the kernel是否安装DKMS,这会引起内核变化YES
The initramfs will likely need to be rebuilt重建Initramfs内核引导Rebuild initramfs(重建引导
would you like to run the nvidia-xconfig是否要通过英伟达的xconfig自动更新配置XNO
2363

Ubuntu 22.04手动安装卸载NVIDIA驱动

下载驱动文件

官网地址:官方驱动 | NVIDIA
根据自己的显卡型号,选择驱动文件进行下载
(注意:选择系统的下拉框中如果没有ubuntu系统,可以点击全部系统,就能选择了)

更新系统软件

root账户下操作

apt update

apt install g++ gcc make

禁用默认驱动

安装Nvidia驱动前,需要禁用自带显卡驱动nouveau

vi /etc/modprobe.d/blacklist.conf

在文件末尾添加并保存:

blacklist nouveau
options nouveau modeset=0

更新initinitramfs,执行以下命令

update-initramfs -u
890

ubuntu20.04安装显卡驱动

查看可用驱动

ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0 ==
modalias : pci:v000010DEd00002503sv0000107Dsd00002503bc03sc00i00
vendor   : NVIDIA Corporation
model    : GA106 [GeForce RTX 3060]
driver   : nvidia-driver-525 - distro non-free
driver   : nvidia-driver-525-server - distro non-free
driver   : nvidia-driver-535-open - distro non-free
driver   : nvidia-driver-535-server - distro non-free
driver   : nvidia-driver-470-server - distro non-free
driver   : nvidia-driver-535-server-open - distro non-free recommended
driver   : nvidia-driver-525-open - distro non-free
driver   : nvidia-driver-535 - distro non-free
driver   : nvidia-driver-470 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin