1. Download the driver required by NVIDIA
First enter nvidia-smi to know whether the nvidia driver is installed, and the picture shows that it is not installed. Can be installed as follows
- Download the corresponding driver according to the command it gives
sudo apt install nvidia-utils-340 in
the picture sudo apt install nvidia-utils-390 in the picture
- Install directly according to the driver recommended by ubuntu
Check the graphics card model: Input: ubuntu-drivers devices
Automatic installation: sudo ubuntu-drivers autoinstall
After the execution is complete, reboot directly. Restart the computer, and that's it.
The following appears in nvidia-smi, which means the installation is successful:
2. Remote connection
First, make sure that the ssh service is installed on the server side, if it is not installed, press the following command
sudo apt-get install openssh-server
After installation, start the service
service sshd start