Skip to content

Commit

Permalink
vault backup: 2024-09-10 14:05:57
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgzn committed Sep 10, 2024
1 parent e236b08 commit 804dd4a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "_posts/pool/2024-09-06-windows无cpu启动stable-diffusion API接口.md",
"file": "_posts/pool/2024-09-09-linux新机器安装nvidia驱动.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -86,7 +86,7 @@
"state": {
"type": "backlink",
"state": {
"file": "_posts/pool/2024-09-06-windows无cpu启动stable-diffusion API接口.md",
"file": "_posts/pool/2024-09-09-linux新机器安装nvidia驱动.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -103,7 +103,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "_posts/pool/2024-09-06-windows无cpu启动stable-diffusion API接口.md",
"file": "_posts/pool/2024-09-09-linux新机器安装nvidia驱动.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -126,7 +126,7 @@
"state": {
"type": "outline",
"state": {
"file": "_posts/pool/2024-09-06-windows无cpu启动stable-diffusion API接口.md"
"file": "_posts/pool/2024-09-09-linux新机器安装nvidia驱动.md"
}
}
},
Expand Down Expand Up @@ -158,14 +158,15 @@
},
"active": "80f516ebdcd05899",
"lastOpenFiles": [
"_posts/pool/2024-09-06-windows无cpu启动stable-diffusion API接口.md",
"_posts/pool/2024-09-09-linux新机器安装nvidia驱动.md",
"_posts/pool/2024-09-05-日记.md",
"_posts/engineering/2024-09-05-免费且私密的联网搜索组件duckduckgo.md",
"_posts/pool/2024-09-06-github_page+obsidian实现个人笔记云管理.md",
"assets/img/Dingtalk_20240906103705.jpg",
"assets/img/Dingtalk_20240906103403.jpg",
"_posts/pool/2024-08-13-generator.md",
"_template/tech_note.md",
"_posts/pool/2024-09-06-windows无cpu启动stable-diffusion API接口.md",
"assets/img/Dingtalk_20240906094335.jpg",
"_posts/game/2024-06-27-猫国建设者原版开启小猫科学家.md",
"assets/img.md",
Expand Down
31 changes: 31 additions & 0 deletions _posts/pool/2024-09-09-linux新机器安装nvidia驱动.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: linux新机器安装nvidia驱动
author: X
date: 2024-09-09 09:45:21 +0800
categories:
- engineering
- linux
tags:
- linux
- environment
---
昨天搞的,有点记不清具体细节了。
首先查看显卡型号:
```shell
lspci | grep -i nvidia
```

在以下网页找到对应的显卡
https://www.nvidia.com/en-us/drivers/
> 加载可能很慢,稍等一会儿会出现选项
我是T4,找到的最新驱动来自这里:
https://www.nvidia.cn/drivers/details/231206/

右键复制下载链接后,wget下载即可。
下载后发现是`.deb`文件,这个有点和我事先看好的教程不太一样,教程里写的是`.run`文件的安装。所以这里费了点功夫,最后参考的是天翼云的教程:
https://www.ctyun.cn/document/10027724/10256137

很管用,很详细,点赞。

略微不同之处是,我没有执行apt-key那一条语句,是直接执行了dpkg后,跳出了提示,让我用cp语句完成类似操作。这两者应该是等价的。但建议使用我的方式,因为天翼云提供的apt-key中使用的路径是适配天翼云的,而你自己dpkg后得到的提示是基于你自己的机子,那个路径才是正确的。

0 comments on commit 804dd4a

Please sign in to comment.