Install CUDA on Linux Mint Mate 20

Introduction

I recently replaced linux Mint with the latest version of MINT20. I reinstalled CUDA that was running until then. During this time, I will record what I learned for later.

Linux Mint Linux Mint 20 MATE  Hard GALLERIA DT (Dospara)

Installation procedure

Install from the following page of Nvidia https://developer.nvidia.com/cuda-downloads

Linux -> x86_64 -> Ubunut -> 20.04 -> dev[network]

I copied and pasted it to the terminal according to the installation instructions displayed after this. It takes about 40 minutes

wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get update
sudo apt-get -y install cuda

The installation went smoothly, but at the end I got the following message and stopped.


Your system has UEFI Secure Boot enabled.

UEFI Secure Boot requires additional configuration to work with third-party drivers.

As I scrolled and read, I was finally asked to enter the password. I was able to proceed by entering the same password that I set for linux twice. After that, the installation was finished immediately.

Then I rebooted. Then the screen display is strange. The image is displayed large. It seems that the screen settings have changed. Attempts to launch nvcc from the terminal are not recognized. So I restarted again. Then the screen size returned to normal. But nvcc doesn't start yet. When I run sudo apt-get -y install cuda again, I get a message that CUDA is already installed. The driver was also properly set by nvidia.

Post-processing

There was one last thing I had to do. This is the path setting. https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions

$ export PATH=/usr/local/cuda-11.2/bin${PATH:+:${PATH}}

By inputting from the terminal like this, nvcc can be started.

Path setting

Add the path setting to the end of the file called profile in your home directory. Now you can call nvcc from your terminal at any time.

nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Nov_30_19:08:53_PST_2020
Cuda compilation tools, release 11.2, V11.2.67
Build cuda_11.2.r11.2/compiler.29373293_0


Recommended Posts

Install CUDA on Linux Mint Mate 20
[Note] Install wxPython 3.x on Linux Mint (Ubuntu)
Install Minecraft on Arch Linux
Install Linux on your Chromebox
Install the JDK on Linux
Elixir = Comfortable on Linux Mint
Install tomcat 5.5 on Amazon Linux.
Introducing Elixir on Linux Mint
Install Homebrew on Amazon Linux 2
Install strongSwan 5.9.1 on Amazon Linux 2
Install CUDA10.1 + cuDNN7.6.5 + tensorflow-2.3.0 on Ubuntu 18.04
Install oracle java8 on amazon linux2
Install CUDA 8.0 and Chainer on Ubuntu 16.04
Install Arch Linux on DeskMini A300
How to install VMware-Tools on Linux
Install pyenv on EC2 (Amazon Linux)
[Note] Install Imagick on Amazon Linux2
I'll install Ruby on EC2 (Amazon Linux2) 2020
Install scipy on Linux without internet connection
How to install aws-session-manager-plugin on Manajro Linux
Install and launch k3s on Manjaro Linux
Install and Configure TigerVNC server on Linux
How to install packages on Alpine Linux
5 reasons to install Linux on your laptop.
How to install Anisble on Amazon Linux 2
Dockerfile: Install Docker on your Linux server
Install Mecab on Linux (CentOS) with brew
How to install php7.4 on Linux (Ubuntu)
Install rJava on Linux in R3.6 environment.
Linux Mint can't boot on ASUS X205TA
Until you install Arch Linux on VMware
Install Python 3.8, Pip 3.8 on EC2 (Amazon Linux 2)
Linux "Install on / dev / sda" error resolution
Play MJ4 (Mahjong game) on Linux Mint 20
Install Anydesk Linux version on Chromebook [Result NG]
Install the latest Cuda + CuDNN on Ubuntu 18.04 @ Spring 2020
How to install Camunda Modeler on Manjaro Linux
Install PHP 7 series on Amazon Linux 2 with Amazon Linux Extras
Install mecab on Marvericks
Install Tensorflow on Mac
Daemonizing processes on Linux
Linux mint installation procedure
Install TensorFlow on Ubuntu
Install python on WSL
Install Faiss on CentOS 7
Install pyenv on mac
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install Grub on USB memory (UEFI) ~ Boot Linux from grub on USB memory ~
jblas on Arch Linux
Install docker on Fedora31
Linux (WSL) on Windows
NAT router on Linux
Install numba on CentOS 7.2
[Node] [npm] Install npm packeage on MacOS / Linux without sudo
Install Ansible on Mac
How to install Linux on a 32bit UEFI PC
Install Python on Mac
Install Python 3 on Mac