This assumes you are willing to part with your data; fresh install means wiping previous data.
...
- Select the desired drive for Scratch, and then 'add GPT partition'
- <leave blank intentionally to fill remaining space on this drive>; ext4; <use dropdown to select /Other>, and then name it 'scr'>
Create
Expand title Example of setting up Scratch drive
Step 4d - Setup the
...
Data drive
Easy again, since we're using the entire capacity of this last drive. In this case, I am using the only drive that can be selected now since I have already configured the others.
...
I condensed these commands so you can copy/paste AFTER you can SSH into your system, OR very carefully type out.
...
If you want to SSH to run the next set of commands
...
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.
...
:
If you're local, and not iKVM/remote with the system (you don't have the luxury of copy/paste), it might be easier if you SSH into the system from this point to run the next set of commands. Since this is a fresh blank Ubuntu installation, it won't have the network ports setup yet. You can run 'sudo apt-get install net-tools' to get IP on the network ports.
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 options"blacklist lbm-nouveau" modeset=0 | tee -a >> /etc/modprobe.d/blacklist-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 -yecho "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 install ipmitoolautoremove -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 gitbuild-essential -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 |
---|
apt install ubuntu-desktop && 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
...
Important: Depending on the hardware, your system may feature a primary onboard/offboard display selection. Generally, onboard is the display-port built into the motherboard, and offboard is a GPU-accelerated device. A bit more description here: Onboard/Offboard display notes by Operating System
- If your system DOES NOT have a built-in display port to the motherboard, meaning NO onboard/offboard selection, the display will naturally default to the only option- the Graphics Card
- If your system supports onboard/offboard display, results may vary whether the Ubuntu 20.04 login screen will loop or freeze
In the linked article, it shows no confirmed expectation for Ubuntu 20.04, this is because it really does differ depending on the hardware installed, and there are many many combinations of hardware that may or may not allow normal Ubuntu 20.04 behavior AFTER the login screen. If it hangs on the login screen, reboot the system, get to the screen again, and try 'ctrl+alt+f3' to reach a terminal-only screen again so you can resolve it when properly installing the NVIDIA drivers in step 8.
Code Block |
---|
reboot |
Step 8 - Installing NVIDIA driver
Once you get access to a terminal, whether getting lucky with the display as the system is locally, or SSH'ed via IP, you can install
Code Block |
---|
#get root access again
sudo bash
<password>
#this downloads the NVIDIA driver .run file to whatever directory you are currently in
#for example sake, this is the latest A6000 Linux Driver file at the time of publishing this article
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/460.56/NVIDIA-Linux-x86_64-460.56.run
#makes the .run file executable
chmod +x NVIDIA-Linux-x86_64-460.56.run
#disables all GUI/display
init 3
#executes the now executable .run file
./NVIDIA-Linux-x86_64-460.56.run |
If all steps above were performed correctly, it will NOT complain about nouveau being loaded, and you can just ignore ALL other questions and continue pressing <enter> until the NVIDIA driver installs. If it fails to install, it will clearly say that the NVIDIA Driver installation has failed. If this occurs, try running the installation file again, and provide us the LAST screen before the NVIDIA driver installation fails so we can further investigate.
If it successfully installs, you can run this command to check installed NVIDIA hardware.
Code Block |
---|
#installed NVIDIA hardware
nvidia-smi
#installed NVLinks, if you have it (it can run this command even if you DON'T have them installed)
nvidia-smi nvlink -s |
Step 9 - Install Teamviewer
Code Block |
---|
#this is latest Linux Teamviewer install file from their website
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
apt install ./teamviewer_amd64.deb
#to run it, you can get to GUI, open terminal, and simply type in:
teamviewer |
If you run into display issues on Step 8 or 9
...
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 |
---|
apt install ubuntu-desktop -y |
Step 7h - REBOOT to allow all the changes to apply
Important: Depending on the hardware, your system may feature a primary onboard/offboard display selection. Generally, onboard is the display-port built into the motherboard, and offboard is a GPU-accelerated device. A bit more description here: Onboard/Offboard display notes by Operating System
- If your system DOES NOT have a built-in display port to the motherboard, meaning NO onboard/offboard selection, the display will naturally default to the only option- the Graphics Card
- If your system supports onboard/offboard display, results may vary whether the Ubuntu 20.04 login screen will loop or freeze
In the linked article, it shows no confirmed expectation for Ubuntu 20.04, this is because it really does differ depending on the hardware installed, and there are many many combinations of hardware that may or may not allow normal Ubuntu 20.04 behavior AFTER the login screen. If it hangs on the login screen, reboot the system, get to the screen again, and try 'ctrl+alt+f3' to reach a terminal-only screen again so you can resolve it when properly installing the NVIDIA drivers in step 8.
Code Block |
---|
reboot |
Step 8 - Installing NVIDIA driver
Once you get access to a terminal, whether getting lucky with the display as the system is locally, or SSH'ed via IP, you can install
Code Block |
---|
#get root access again
sudo bash
<password>
#this downloads the NVIDIA driver .run file to whatever directory you are currently in
#for example sake, this is the latest A6000 Linux Driver file at the time of publishing this article
wget https://us.download.nvidia.com/XFree86/Linux-x86_64/460.56/NVIDIA-Linux-x86_64-460.56.run
#makes the .run file executable
chmod +x NVIDIA-Linux-x86_64-460.56.run
#disables all GUI/display
init 3
#executes the now executable .run file
./NVIDIA-Linux-x86_64-460.56.run |
If all steps above were performed correctly, it will NOT complain about nouveau being loaded, ignore all questions until it asks to install or configure nvidia-xconfig for you, say no at this prompt. If it fails to install, it will clearly say that the NVIDIA Driver installation has failed. If this occurs, try running the installation file again, and provide us the LAST screen before the NVIDIA driver installation fails so we can further investigate.
If it successfully installs, you can run this command to check installed NVIDIA hardware.
Code Block |
---|
#installed NVIDIA hardware
nvidia-smi
#installed NVLinks, if you have it (it can run this command even if you DON'T have them installed)
nvidia-smi nvlink -s |
Step 9 - Install Teamviewer
Code Block |
---|
#this is latest Linux Teamviewer install file from their website
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
apt install ./teamviewer_amd64.deb
#to run it, you can get to GUI, open terminal, and simply type in:
teamviewer
#if the teamviewer doesnt show a join code and just shows a dash then the following needs to be ran in a terminal line by line.
sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf
sudo systemctl restart NetworkManager
sudo systemctl stop networkd-dispatcher
sudo systemctl disable networkd-dispatcher
sudo systemctl mask networkd-dispatcher
sudo apt-get purge nplan netplan.io -y
sudo apt-get install ifupdown
#the networkmanager file will show managed=false
cat /etc/NetworkManager/NetworkManager.conf
main]
plugins=ifupdown,keyfile
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
#this file will need to be changed to look like this using VI or Nano
cat /etc/NetworkManager/NetworkManager.conf
main]
plugins=ifupdown,keyfile
[ifupdown]
managed=true
[device]
wifi.scan-rand-mac-address=no
#once file is changed and saved run
sudo service network-manager restart
reboot
#once system comes back up the network will then be able to be managed through the gui which will allow teamviewer to see the network cards and will then present the proper join codes. DHCP address will change |
If you run into display issues on Step 8 or 9
I cannot stress enough that it is because the system has the onboard/offboard capability, and Ubuntu doesn't know what to do with it sometimes. It is more consistent with CentOS for it to work regardless what the primary display option in BIOS is, but Ubuntu has issues typically with onboard VGA. However, I haven't had issues with a Supermicro 4U with onboard with using the installation method listed above.
Useful POST-OS install commands to run
Allows quicker OS boot, and prevents automatic updates breaking NVIDIA driver.
[Ubuntu] Unable to manage Network via GUI
[Ubuntu] "A start job is running for wait for network to be configured"