Nvidia RTX A4000 GPU 安装 515驱动记录-Ubuntu22.04

2023-11-09

The record of Nvidia driver installation of Nvidia RTX A4000 in ubuntu22.04

Environment:

Ubuntu22.04

GPU: Nvidia RTX A4000 

Use the official NVIDIA driver for manual installation (stable and reliable)

Step:

1. Before installing the driver, be sure to update the software list and install the necessary software and dependencies (required)

sudo apt-get update   #Update software list
 
sudo apt-get install g++
 
sudo apt-get install gcc
 
sudo apt-get install make

2. Check the GPU model (you don't need to check if you know the model of the graphics card, go to the next step; the general command to check the model of the graphics card: lspci | grep -i vga)

lspci | grep -i nvidia

3. Uninstall the original driver

sudo apt-get remove --purge nvidia*

4. Disable nouveau (nouveau is a generic driver) (required)

sudo gedit /etc/modprobe.d/blacklist.conf   #Or(blacklist-nouveau.conf)

Add the following at the end of the opened blacklist.conf, save the text and close

blacklist nouveau
 
options nouveau modeset=0

Enter the following update in the terminal, restart the computer after the update (required)

sudo update-initramfs –u

Then, reboot your server in the terminal,

reboot

After restarting, enter the following in the terminal, there is no output indicating that the shielding is successful

lsmod | grep nouveau

5. In order to install the new Nvidia driver, we need to stop the current display server. The easiest way is to use the telinit command to change to runlevel 3. After entering the following linux command in the terminal, it shows that the server will stop. (must)

sudo telinit 3

Enter the black text interface tty (if you can't get in, press Ctrl + Alt + F1~F6 (corresponding to enter tty1~tty6 respectively)), and then enter the user name and password, similar to the following:

Exit the text interface to the graphical interface, enter sudo telinit 5 or Ctrl + Alt + F1/F7/F8 (some Lenovo computers: Ctrl + Alt + Fn + F1)

6. In the text interface, disable the X-window service and type the following command in the terminal (required)

sudo /etc/init.d/gdm3 stop

7. Driver installation

First to check the corresponding driver of your GPU, I used this website to find the proper driver that I would like to isntall Official Drivers | NVIDIA

 After you figure out which driver version is the proper, you don't need to download it to your server, you can use the following conmmand to install it,

Here, my proper driver version is 515, so I use this command as follow to install,

sudo apt install nvidia-driver-515

For you, if your version is not the same to me, such as 410 version, then your command is 

sudo apt install nvidia-driver-410

8. After the driver is installed, enter nvidia-smi in the terminal to check whether it is installed,

nvidia-smi

and it will appear like the following, congratulations !!!

 Then enter nvidia-settings to bring up the settings interface,

nvidia-settings

similar to the following, and it's OK.

9.Restart the display service, done

sudo  service  gdm3 start

Fast way: Condensed and minimalist method: for you who are racing against time! 

sudo apt-get update   #update softwart list
 
sudo apt-get install g++  #install necessary dependencies 
sudo apt-get install gcc
sudo apt-get install make
 
sudo apt-get remove --purge nvidia*  #uninstall previous drivers
 
sudo gedit /etc/modprobe.d/blacklist.conf   #disabled nouveau, open this file first, and then add the following two lines at the end of the content to save.
blacklist nouveau   
options nouveau modeset=0
 
sudo update-initramfs –u   #update
reboot   #restart your server
lsmod | grep nouveau   
 
sudo telinit 3  
sudo service gdm3 stop   #stop display service
sudo apt install nvidia-driver-515 #Please install proper driver version corresponding to your Nvidia GPU, in my case, it is 515 version
 
sudo  service  gdm3 start   #start display service, done

References:

​Ubuntu20.04、22.04安装nvidia显卡驱动——超详细、最简单_道阻且长行则将至!的博客-CSDN博客_ubuntu安装nvidia显卡驱动​ ubuntu20.04 安装nvidia显卡驱动后无法启动系统的解决办法_Felix0328的博客-CSDN博客_ubuntu装了显卡驱动无法进入系统

2022年11月30日记录

安装ubuntu20.04之后,发现默认安装的显卡版本是515版本,根本不需要自己再去手动安装。

但是此时我也发现Nvidia在2022年11月28日发布了525版本驱动。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Nvidia RTX A4000 GPU 安装 515驱动记录-Ubuntu22.04 的相关文章

随机推荐

  • anaconda python3.8目录_Linux系统下Anaconda的安装和使用教程

    一 Anaconda的安装 去官网下载 https www anaconda com products individual 下载到本地后利用FileZilla软件上传到服务器 我这里上传到了 data bioinfosoftware文件夹
  • vcpkg编译第三方库leveldb

    vcpkg编译leveldb 1 安装vcpkg 使用git命令直接pull vcpkg源码 git clone https github com microsoft vcpkg 2 在vcpkg目录执行bootstrap vcpkg ba
  • Android 之 intent内容解析

    文章目录 intent intent 属性 1 Action 匹配规则 Action匹配只要有一个与Intent中携带Action相同即可 2 Category 注意 3 Data 4 Component 5 Type 6 Extras 存
  • DirectShow音视频同步实验报告(2)

    单一视频流 Filter Graph如图2 图2 单一视频流的Filter Graph 注意 紧靠Video Renderer的上一级Filter的Video输出Pin 其GetMediaType函数提供的Media Type的VIDEOI
  • CMake学习之set

    文章目录 一 set关键字 二 变量的使用 一 set关键字 将一个cmake变量设置为给定值 将变量
  • 搭建jupyter notebook,开启线上IDE学习

    一 windows搭建jupyter notebook 在jupyter notebook中利用本地虚拟环境 1 激活本地虚拟环境 activate py36 安装nb conda conda install nb conda 3 在ana
  • 发布一套很有本土特色的闽南语QQ表情

    发布一套很有本土特色的闽南语QQ表情 作为福建本地人 对闽南语在熟悉不过了 平时朗朗上口的俗话 现在演变成活泼可爱有趣的QQ表情咯 大家喜欢的话可以来收藏 底下有QQ表情导入包 直接导入QQ即可使用了
  • 如何安装EasyX图形库

    如何下载 1 打开EasyX官网点我 应该是这样子的 2 点击 下载 EasyX 在图片的右边 找不到算你眼瞎 3 直接打开安装包 4 下一步 来到选择界面 5 点击安装 EasyX文档也可以安装一下 但下面的必须点一个 6 点击关闭 结束
  • 服务器运维基础知识,运维技术必须了解的服务器基础知识

    小影提醒 文章部分内容源于互联网收集整理 不代表影速观点 若有咨询 运维技术必须了解的服务器基础知识 等有关服务器 云主机租用 托管 配置 价格问题 请随时咨询影速科技客服 享受1v1贴心服务 1 双路等于双核么 常听说双路至强XX式服务器
  • Spring Boot单元测试

    目录 什么是单元测试 单元测试的好处 单元测试的实现 断言 修改操作 删除操作 添加数据 返回受影响的行数 返回自增id 什么是单元测试 是指对软件中的最小可测试单元进行检查和验证的过程 单元测试的好处 可以非常简单 直观 快速的测试某一个
  • 模块化 组合化_一流的组合模块系统

    模块化 组合化 这是本系列的第二篇文章 介绍了用于组合的反转控制类型系统 本文讨论了比上一篇文章的 一流过程类型 更通用的 模块类型 系统 注意 某些功能性编程语言也尝试定义一流模块 本文定义的First Class Modules是从反向
  • 前端基础学习之Sass

    一 概念 1 Sass是什么 Sass 英文全称 Syntactically Awesome Stylesheets 是一个最初由 Hampton Catlin 设计并由 Natalie Weizenbaum 开发的层叠样式表语言 Sass
  • AI读天涯神贴----人,应该怎么活

    接着上一期AI读天涯神贴 开悟其实很简单 这期我们来用AI读另外一篇神帖 人 应该怎么活 下面是帖子中的一些节选 老家有句话 叫春天戳一棍 秋天吃一顿 意思是 春天用个棍子在地上捅个窟窿 扔进种子 那秋天就有可能因此吃上一顿的果实 春天 这
  • Prometheus - SSL 证书过期监控

    目录 一 环境 二 部署 Exporter 2 1 配置 blackbox exporter 2 2 配置 Prometheus 2 3 Grafana 监控面板 一 环境 数据采集 Exporter blackbox exporter V
  • Java实现登录[数据库]

    和上篇的随机点名系统一样 都是使用MySQL数据库来实现 因为刚学所以写点简单例子满足下自己 需求分析 1 输入用户名和密码 2 与数据库中的记录进行比较 原理比较 简单 直接贴代码吧 import java sql Connection
  • 黑马点评给店铺类型查询业务添加缓存(List实现)

    代码如下 public Result queryShopTypeList String key CACHE SHOP TYPE KEY List 1 从Redis中查询店铺类型 获取所有 List
  • 红黑树

    1 概念 红黑树是一种近似平衡的二叉搜索树 在每个结点上增加一个存储位表示结点的颜色 可以是Red或Black 通过对任何一条从根到叶子的路径上各个结点着色方式的限制 红黑树确保没有一条路径会比其他路径长出两倍 因而是接近平衡的 2 性质
  • 多项式回归的matlab实现

    一次函数的线性回归 首先我们回顾一下当回归函数为一次函数的情况 存在训练样本矩阵 X 该矩阵大小为m n 其中m为样本数量 n为特征数量 此时回归方程为 其中为系数向量 此时代价函数为 当代价函数取得最小值时 为最优解 对进行求导得到
  • Navicat使用教程:在Navicat Monitor for MySQL/MariaDB中配置实例

    下载Navicat Monitor最新版本 Navicat Monitor是一套安全 简单而且无代理的远程服务器监控工具 它具有强大的功能使你的监控发挥最大效用 受监控的服务器包括 MySQL MariaDB 和 Percona Serve
  • Nvidia RTX A4000 GPU 安装 515驱动记录-Ubuntu22.04

    The record of Nvidia driver installation of Nvidia RTX A4000 in ubuntu22 04 Environment Ubuntu22 04 GPU Nvidia RTX A4000