centos 安装显卡
时间: 2023-08-20 20:06:44 浏览: 101
在CentOS上安装显卡驱动需要按照以下步骤进行操作。首先,你需要下载显卡驱动并赋予文件执行权限。可以使用如下命令来完成这一步骤:
```
sudo chmod a+x NVIDIA-Linux-x86_64-460.106.00.run
```
然后,你需要执行以下命令来安装显卡驱动:
```
sudo ./NVIDIA-Linux-x86_64-460.106.00.run
```
如果安装过程中提示修改xorg.conf文件,你可以选择"Yes"来进行修改。如果遇到以下错误提示:
```
WARNING: You do not appear to have an NVIDIA GPU supported by the XXX NVIDIA Linux graph
```
你可以在安装命令后面加上参数`--add-this-kernel`。如果遇到以下错误提示:
```
unable to find the kernel source tree for the currently running kernel...
```
你可以在安装命令后面加上参数`--kernel-source-path=/usr/src/kernels/内核号`,其中`内核号`是你当前运行的内核版本号。如果遇到以下错误提示:
```
unable to load the kernel module 'nvidia.ko' ...
```
你可以执行以下命令来解决:
```
./NVIDIA-XXXX.run --kernel-source-path=/usr/src/kernels/内核号 -k $(uname -r)
```
以上就是在CentOS上安装显卡驱动的步骤。请根据具体情况进行操作。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [服务器,Linux,centos7成功安装显卡驱动(超详细)](https://blog.csdn.net/qq_51570094/article/details/123900837)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [CentOS 7.6安装 NVIDIA 独立显卡驱动(完整版)](https://blog.csdn.net/tony_vip/article/details/104531383)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文