I have a problem that nvidia cannot be used on the computer of the ssh destination of the laboratory, so I wrote it instead of a memorandum. Please do so at your own risk.
The environment to execute is as follows.
kernel
$ uname -a
Linux s38 4.4.0-179-generic #209-Ubuntu SMP Fri Apr 24 17:48:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
OS
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"
GPU
$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GK107GL [Quadro K420](rev a1)
01:00.1 Audio device: NVIDIA Corporation GK107 HDMI Audio Controller (rev a1)
02:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080](rev a1)
02:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
03:00.0 VGA compatible controller: NVIDIA Corporation GP104 [GeForce GTX 1080](rev a1)
03:00.1 Audio device: NVIDIA Corporation GP104 High Definition Audio Controller (rev a1)
Install nvidia-driver on ubuntu 18.04 I installed the driver from the official website, so I downloaded it locally as well. The version is NVIDIA-Linux-x86_64-430.09.run.
Next, I sent this file to my laboratory computer via scp.
local
scp ~/Downloads/NVIDIA-Linux-x86_64-430.09.run ssh destination
Next, I disabled nouveau running on ubuntu. I'm not sure why it's disabled, but even when I did it before, I remember that it moved the moment I disabled it, so I've disabled it.
ssh
$ sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
$ sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
$ sudo update-initramfs -u
$ sudo reboot
Install the driver after confirming the reboot. At this time, you will be asked various questions, so answer appropriately.
ssh
$ sudo bash NVIDIA-Linux-x86_64-430.09.run
If you run nvidia-smi
and get various information, you will succeed!
Recommended Posts