ubuntu22.04安装NVIDIA驱动

文章目录


前言

ubuntu22.04操作系统安装NVIDIA驱动,使用nvidia-smi查看加速卡使用情况。


一、环境

操作系统版本:Ubuntu 22.04.3 LTS (GNU/Linux 5.15.0-119-generic x86_64)

nvidia-driver版本:nvidia-driver-535

二、安装步骤

2.1 获取驱动版本

shell 复制代码
 ubuntu-drivers devices

输出

shell 复制代码
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00002684sv00001458sd000040C0bc03sc00i00
vendor   : NVIDIA Corporation
driver   : nvidia-driver-545-open - distro non-free
driver   : nvidia-driver-535-server-open - distro non-free
driver   : nvidia-driver-535-server - distro non-free
driver   : nvidia-driver-545 - distro non-free
driver   : nvidia-driver-535 - distro non-free
driver   : nvidia-driver-550 - distro non-free recommended
driver   : nvidia-driver-535-open - distro non-free
driver   : nvidia-driver-550-open - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin

2.2 安装驱动

shell 复制代码
apt install nvidia-driver-535 -y

apt update 

#更新号之后重启机器
reboot

3.查看安装结果

shell 复制代码
nvidia-smi 

输出

shell 复制代码
Mon Sep  9 08:32:21 2024       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce RTX 4090        Off | 00000000:01:00.0 Off |                  Off |
|  0%   43C    P8              29W / 450W |      1MiB / 24564MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
                                                                                         
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|  No running processes found                                                           |
+---------------------------------------------------------------------------------------+

总结

记录一下ubuntu2204安装NVIDIA驱动

相关推荐
藥瓿亭11 小时前
K8S认证|CKS题库+答案| 3. 默认网络策略
运维·ubuntu·docker·云原生·容器·kubernetes·cks
Gaoithe11 小时前
ubuntu 端口复用
linux·运维·ubuntu
Mike_66615 小时前
win10安装WSL2、Ubuntu24.04
windows·ubuntu·wsl2
SilentCodeY15 小时前
Ubuntu 系统通过防火墙管控 Docker 容器
linux·安全·ubuntu·系统防火墙
超级土豆粉1 天前
从0到1写一个适用于Node.js的User Agent生成库
linux·ubuntu·node.js
抠脚学代码1 天前
Ubuntu18.6 学习QT问题记录以及虚拟机安装Ubuntu后的设置
qt·学习·ubuntu
Sapphire~1 天前
Linux-07 ubuntu 的 chrome 启动不了
linux·chrome·ubuntu
啵啵学习1 天前
Linux 里 su 和 sudo 命令这两个有什么不一样?
linux·运维·服务器·单片机·ubuntu·centos·嵌入式
FREEDOM_X2 天前
新版NANO下载烧录过程
ubuntu·机器人
好多知识都想学2 天前
Linux 文件处理器 sed 和 awk 详细讲解
linux·运维·ubuntu