Ubuntu & Nvidia drivers

Options

  • GUI
    • Software & Updates
  • CLI
    • removing drivers
    • install certain driver from Ubuntu repo
    • install with ubuntu-drivers
    • install from POP!_OS repo
    • nouveau driver [WIP]

Install with Software & Updates app

Open Software & Updates app -> Additional Drivers tab -> check desired driver -> Apply changes

Removing drivers

sudo apt-get remove --purge '^nvidia-.*'

Install from Ubuntu repo

Search for possible drivers:

apt-cache search nvidia-driver-*

Install:

apt-get install nvidia-driver-510

From ubuntu-drivers

sudo ubuntu-drivers autoinstall

Install from POP!_OS repo

If you are running Ubuntu 19.10 or later – add the Apt Preferences File:

sudo nano /etc/apt/preferences.d/system76-apt-preferences

Add the following six lines (seven if you count the space in the middle):

Package: *
Pin: release o=LP-PPA-system76-dev-stable
Pin-Priority: 1001

Package: *
Pin: release o=LP-PPA-system76-dev-pre-stable
Pin-Priority: 1001

Save the file. Now you should be able to install the System76 Driver as described below.

Installing the Driver
To install our Driver you need to run the following commands in the Terminal:

sudo apt-add-repository -y ppa:system76-dev/stable
sudo apt-get update
sudo apt install system76-driver-nvidia

nouveau driver [WIP]

How to add shortcut to shell script to Ubuntu Gnome dock

Tested on Ubuntu 20.04.3 LTS

Create a shell script in /path/to/my/shellscript/my_shell_script.sh

Add png icon to /home/<USER>/.icons/my-icon.png

Add a file to /home/<USER>/.local/share/applications named my_shortcut.desktop

File contents:

[Desktop Entry]
Type=Application
Name=MyShellScript
Exec=/path/to/my/shellscript/my_shell_script.sh
Icon=/home/<USER>/.icons/my-icon.png
Categories=Development;

Search in Applications – type „MyShellScript…” > Right-click > Add to favourites.

Done.