From 804dd4a9222546806a80415f04722d36f6c5895c Mon Sep 17 00:00:00 2001 From: zdongs Date: Tue, 10 Sep 2024 14:05:57 +0800 Subject: [PATCH] vault backup: 2024-09-10 14:05:57 --- .obsidian/workspace.json | 11 ++++--- ...\243\205nvidia\351\251\261\345\212\250.md" | 31 +++++++++++++++++++ 2 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 "_posts/pool/2024-09-09-linux\346\226\260\346\234\272\345\231\250\345\256\211\350\243\205nvidia\351\251\261\345\212\250.md" diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 9d3731a..daacc69 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -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 } @@ -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", @@ -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 } @@ -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" } } }, @@ -158,6 +158,8 @@ }, "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", @@ -165,7 +167,6 @@ "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", diff --git "a/_posts/pool/2024-09-09-linux\346\226\260\346\234\272\345\231\250\345\256\211\350\243\205nvidia\351\251\261\345\212\250.md" "b/_posts/pool/2024-09-09-linux\346\226\260\346\234\272\345\231\250\345\256\211\350\243\205nvidia\351\251\261\345\212\250.md" new file mode 100644 index 0000000..73c43db --- /dev/null +++ "b/_posts/pool/2024-09-09-linux\346\226\260\346\234\272\345\231\250\345\256\211\350\243\205nvidia\351\251\261\345\212\250.md" @@ -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后得到的提示是基于你自己的机子,那个路径才是正确的。 \ No newline at end of file