Operating System: - Ubuntu 18.10 Cosmic Cuttlefish Linux
Privileged access to your Ubuntu 18.10 Cosmic Cuttlefish Linux installation will be required.
EASY - MEDIUM
# - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ - requires given linux commands to be executed as a regular non-privileged user
Automatic Install using standard Ubuntu Repository
The first method is the easiest to perform and in most cases it is the recommended approach. First, detect the model of your nvidia graphic card and the recommended driver. To do so execute:
$ ubuntu-drivers devices
Automatic Nvidia Drivers Installation on Ubuntu 18.10 Cosmic Cuttlefish Linux
From the above output we can conclude that the current system has NVIDIA GeForce GTX 1060 6GB graphic card installed and the recommend driver to install is nvidia-390. If you agree with the recommendation feel free to use the ubuntu-drivers command again to install all recommended drivers:
$ sudo ubuntu-drivers autoinstall
Alternatively, install desired driver selectively using the apt command. For example:
$ sudo apt install nvidia-390
Once the installation is concluded, reboot your system and you are done.
SUBSCRIBE TO NEWSLETTER Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.
Automatic Install using PPA repository to install Nvidia Beta drivers
Using graphics-drivers PPA repository allows us to install bleeding edge Nvidia beta drivers at the risk of unstable system. To proceed first add the ppa:graphics-drivers/ppa repository into your system:
In order to install new Nvidia driver we need to stop the current display server. The easiest way to do this is to change into runlevel 3 using the telinit command. After executing the following linux command the display server will stop, therefore make sure you save all your current work ( if any ) before you proceed:
$ sudo telinit 3
Hit CTRL+ALT+F1 and login with your username and password to open a new TTY1 session or login via SSH.
Install Nvidia Driver
To start installation of Nvidia driver execute the following linux command and follow the wizard:
$ sudo bash NVIDIA-Linux-x86_64-390.87.run
The distribution-provided pre-install script failed! Are you sure you want to continue? -> CONTINUE INSTALLATION
Would you like to run the nvidia-xconfig utility? -> YES
The Nvidia driver is now installed. Reboot your system:
$ sudo reboot
Configure NVIDIA X Server Settings
After reboot your should be able to start NVIDIA X Server Settings app from the Activities menu.
Official Nvidia Drivers
WARNING: Unable to find suitable destination to install 32-bit compatibility libraries
Depending on your needs, this can be safely ignored. However, if you wish to install steam game platform this issue cannot be ignored. To resolve execute: