This assumes you are willing to part with your data; fresh install means wiping previous data.
Table of Contents |
---|
Step 1 - Create bootable USB and load Ubuntu 20.04 ISO
...
Expand | ||
---|---|---|
| ||
Remove your USB drive containing the Ubuntu-server 20.04.2 LTS ISO, and then hit 'ENTER' to allow it to reboot. |
Once the system reboots, there will be no GUI at first. It will also complain or note that a network port is attempting to reconfigure (or searching for network). It can take up to 4-5 minutes per port being searched until it loads a login prompt.
Expand | ||
---|---|---|
| ||
On this step, I only had 1 network cable. I had to switch the cable to the other network port. The network cable is known-working network, but Ubuntu is searching for network during boot. After messing with the network cable and ports until it was happy. FIRST BOOT, it will look like this; just press 'enter', and it will look like normal login prompt. The SSH text is competing to appear at the same time as the login prompt. After logging in, you will have normal Ubuntu activity, terminal-mode. |
Step 7 - Setting up your Ubuntu OS for NVIDIA drivers and GUI display
After the system reboots, you will be greeted by terminal-mode/command-line only. NO GUI; we'll get to that shortly. We have to first setup the base-system and make it work nicely with NVIDIA drivers. A constant challenge for us is making sure your system's Linux OS has a functional NVIDIA driver installed; easier said than done, as Linux/header updates unlinks NVIDIA modules if local updates are ran.
I condensed these commands so you can copy/paste AFTER you can SSH into your system, OR very carefully type out.
Step 7a - Grant root access for yourself for the next set of commands during this step
FIRST, grant yourself 'root' access by using the command:
Code Block |
---|
sudo bash |
Use the password you setup for this system, and then you will be greeted with a 'root@<whatever>'.
Step 7b - Update base-system
Code Block |
---|
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y |
Step 7c - Blacklist Nouveau in system files
Nouveau is a legacy display driver loaded by Linux, it conflicts with NVIDIA and needs to be disabled so NVIDIA driver can install properly. I put this all on one line for the sake of time, but it basically writes the blacklist-nouveau parameter so it doesn't load when Ubuntu boots. Ever.
Code Block |
---|
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "blacklist lbm-nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "options nouveau modset=0" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "alias nouveau off" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "alias lbm-nouveau off" >> /etc/modprobe.d/blacklist-nouveau.conf && echo options nouveau modeset=0 | tee -a /etc/modprobe.d/nouveau-kms.conf |
Step 7d - Get rid if legacy/old NVIDIA modules
Code Block |
---|
apt-get remove nvidia* && apt-get autoremove -y |
Step 7e - Install necessary packages for NVIDIA driver and other Docker packages
This takes 5-8 minutes
Code Block |
---|
apt-get install net-tools -y && apt-get install build-essential -y && apt-get install gfortran -y && apt-get install ethtool -y && apt-get install software-properties-common -y && apt-get install curl -y && apt-get install ipmitool -y && apt-get install git -y |
Step 7f - Update system files
Should take 1-2 minutes
Code Block |
---|
update-initramfs -u |
Step 7g - Install Ubuntu-desktop
This takes quite a bit of time (maybe 10-12 minutes)... So step away from your system after running this.
Code Block |
---|
yum install ubuntu-desktop -y |
Step 7h - REBOOT to allow all the changes to apply
Important:
Code Block |
---|
reboot |