Ubuntu 18.04 安装 GeForce RTX 2080 Ti

ubuntu 专栏收录该内容
97 篇文章 0 订阅

Ubuntu 18.04 安装 GeForce RTX 2080 Ti

1,安装 RTX 2080 Ti

# cat /etc/issue
Ubuntu 18.04.5 LTS \n \l
# lspci | grep -i nvidia
21:00.0 VGA compatible controller: NVIDIA Corporation GV102 (rev a1)
21:00.1 Audio device: NVIDIA Corporation Device 10f7 (rev a1)
21:00.2 USB controller: NVIDIA Corporation Device 1ad6 (rev a1)
21:00.3 Serial bus controller [0c80]: NVIDIA Corporation Device 1ad7 (rev a1)
# update-pciids
Downloaded daily snapshot dated 2020-09-22 03:15:01
cat /usr/share/misc/pci.ids | grep -i rtx
  • 查看显卡
# lspci | grep -i nvidia
21:00.0 VGA compatible controller: NVIDIA Corporation TU102 [GeForce RTX 2080 Ti Rev. A] (rev a1)
21:00.1 Audio device: NVIDIA Corporation TU102 High Definition Audio Controller (rev a1)
21:00.2 USB controller: NVIDIA Corporation TU102 USB 3.1 Host Controller (rev a1)
21:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU102 USB Type-C UCSI Controller (rev a1)
lshw -numeric -C display

2,安装驱动

apt install ubuntu-drivers-common -y
ubuntu-drivers devices
vendor   : NVIDIA Corporation
driver   : nvidia-driver-440-server - distro non-free
driver   : nvidia-driver-435 - distro non-free
driver   : nvidia-driver-450-server - distro non-free recommended
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-450 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
  • 添加源
add-apt-repository ppa:graphics-drivers/ppa
sudo add-apt-repository ppa:graphics-drivers/ppa
apt update
# ubuntu-drivers devices
vendor   : NVIDIA Corporation
driver   : nvidia-driver-418-server - distro non-free
driver   : nvidia-driver-440-server - distro non-free
driver   : nvidia-driver-450-server - distro non-free recommended
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-415 - third-party free
driver   : nvidia-driver-450 - distro non-free
driver   : nvidia-driver-435 - distro non-free
driver   : xserver-xorg-video-nouveau - distro free builtin
  • 查看TMPDIR目录是否报错
 echo $TMPDIR
apt install -y nvidia-driver-450-server

3,禁用 nouveau

# lsmod | grep nouveau
nouveau              1708032  0
mxm_wmi                16384  1 nouveau
video                  45056  1 nouveau
i2c_algo_bit           16384  1 nouveau
ttm                   106496  1 nouveau
drm_kms_helper        172032  1 nouveau
drm                   401408  3 drm_kms_helper,ttm,nouveau
wmi                    24576  3 wmi_bmof,mxm_wmi,nouveau
  • vim /etc/modprobe.d/blacklist.conf
  • 添加参数
blacklist nouveau
  • 更新
update-initramfs -u
reboot
# nvidia-smi
Thu Sep 24 15:29:21 2020
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.51.06    Driver Version: 450.51.06    CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| 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  GeForce RTX 208...  Off  | 00000000:21:00.0 Off |                  N/A |
| 37%   56C    P0    51W / 300W |      0MiB / 11016MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

参考:

  1. Ubuntu 18.04安装NVIDIA(英伟达) RTX2080Ti显卡
  • 0
    点赞
  • 0
    评论
  • 1
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2020 CSDN 皮肤主题: 技术黑板 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值