1. Download and Install from USB Stick
- Download
Ubuntu-server
image. - Burn the image to a USB stick at least 8GB space via tools like unetbootin, Raspberry Pi Imager, or Balenea Etcher
- Boot your computer with the USB.
- Install with default UI instructions. Just enable the SSH option to connect remotely.
- After the installation done, the hard disk space might be showed lower. Run the following commands to fix;
2. Install NVIDIA drivers
If you have external GPU card installed on your machine, you can install relevant driver packs bundled with Ubuntu.
- Check the available drivers packed with Ubuntu-server
ubuntu-drivers devices
- Before installing the driver, you can check whether any GPU driver is installed or not.
nvidia-smi
- You can search drivers to install via
apt search nvidia-driver
orapt-cache search nvidia-driver
. - If you are OK with the Ubuntu-server defaults you can use
sudo ubuntu-drivers autoinstall
command. If you want to install a specific driver you can usesudo apt install nvidia-driver-xxx
. Replace thexxx
with appropriate driver version number listed in the step3
.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
If you get this message when you run
nvidia-smi
It is recommended that to install CUD drivers.