How to install NVIDIA driver on Ubuntu ssh destination

Introduction

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.

Development environment

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)

NVIDIA driver installation

procedure

  1. Download the driver from the official
  2. Send the file with scp
  3. Disable nouveau
  4. Installation

Installation details

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!

References

-Install nvidia-driver on ubuntu 18.04

Recommended Posts

How to install NVIDIA driver on Ubuntu ssh destination
How to install NVIDIA driver on Ubuntu 18.04 (Note)
How to install WildFly on Ubuntu 18.04
How to install production Metabase on Ubuntu
How to install network drivers on standalone Ubuntu
How to install multiple JDKs on Ubuntu 18.04 LTS
How to install ImageMagick on Windows 10
How to use Bio-Formats on Ubuntu 20.04
How to install MariaDB 10.4 on CentOS 8
How to build vim on Ubuntu 20.04
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
How to install and use Composer on an ECS instance on Ubuntu 16.04
How to install Eclipse (Photon) on Mac
I want to install PHP 7.2 on Ubuntu 20.04.
How to install beta php8.0 on CentOS8
Install Realtek network driver on Ubuntu Note
How to install and configure the monitoring tool "Graphite" on Ubuntu
How to change the timezone on Ubuntu
How to install Adopt OpenJDK on Debian, Ubuntu with apt (-get)
How to install kafkacat on Amazon Linux2
How to install c2ffi on Ubuntu, which automatically parses C header files
How to configure ubuntu to be used on GCP
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
[Ruby on Rails] How to install Bootstrap in Rails
How to build a Pytorch environment on Ubuntu
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
Install pyqt5 on ubuntu
Install Ruby on Ubuntu 20.04
How to install Docker
How to install docker-machine
Install Autoware on Ubuntu 18.04.5
How to install MySQL
Install Homebrew on Ubuntu 20.04
How to install ngrok
How to install Ruby on an EC2 instance on AWS
Install MySQL 5.6 on CentOS6 [How to specify the version]
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Cybozu Office 10 on Ubuntu 20.4
Install Docker on Ubuntu Server 20.04
[Rails] How to install devise
How to deploy on heroku
Install zabbix agent (5.0) on Ubuntu 18.04
Install MAV Proxy on Ubuntu 18.04
Install Arudino IDE on Ubuntu 20
Install Java on WSL Ubuntu 18.04
How to install Boots Faces
Install Ubuntu Desktop 20.10 on RaspberryPi4
Install Arduino IDE on Ubuntu 20.04
Install raspi-config on Ubuntu 20.04 (LTS)
Install WordPress 5.5 on Ubuntu 20.04 LTS
Install PlantUML on Intellij on Ubuntu
Install Ubuntu Server 20.04 on Btrfs
Note: Install PostgreSQL 9.5 on Ubuntu 18.04
[Rails] How to install simple_calendar
[Rails] How to install reCAPTCHA
How to install JDK8-10 (Mac)
How to add HDD to Ubuntu
How to run npm install on all projects in Lerna
How to Burning a Install Disk of Windows from Ubuntu
How to install JDK 8 on Windows without using the installer