July 29, 2019 1:01 PM PDT
Installing Nvidia driver in Ubuntu / Xubuntu 18.04 Bionic LTS
To start ALWAYS HAVE A BACK-UP OF EVERYTHING YOU EDIT, CHANGE OR ADD.I use bootable DVD's or USB drives with Paragon Hard Drive Manager 15, Other Linux OS's running live from a DVD or USB.
For me Paragon is the best they only make it for Windows but you can boot to a USB or DVD and make system images of your Linux installs.
With a system image if anything goes wrong you can just restore the working image!
Note:In 18.04 the apt-get has changed to just "apt" but apt-get still works. So if you use just "apt" and it does not work switch to "apt-get"Install Nvidia drivers on Ubuntu / Xubuntu 18.04 bionic LTS.1. Type or copy & paste this into a terminal window.
sudo add-apt-repository ppa:graphics-drivers/ppa
2. Type or copy & paste this into a terminal window.
sudo apt update
3. Run this to identify your graphic's card/s or to make sure Ubuntu is seeing the right card/s.
It will suggest the best drivers for your system.
Type or copy & paste this into a terminal window.
ubuntu-drivers devices
You should see something like this.
== /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.1 ==
modalias : pci:v000010DEd000010F7sv00003842sd00002383bc04sc03i00
vendor : NVIDIA Corporation
driver : oem-audio-hda-daily-dkms - third-party free
== /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001E07sv00003842sd00002383bc03sc00i00
vendor : NVIDIA Corporation
driver : nvidia-driver-415 - third-party free
driver : nvidia-driver-410 - third-party free
driver : nvidia-driver-430 - third-party free recommended
driver : nvidia-driver-418 - third-party free
driver : xserver-xorg-video-nouveau - distro free builtin
If you use "430" and end up with a BLACK SCREEN you're probably using "Display Port or Display port to HDMI cables.
You can fix it by using only a HDMI cable. I use "418" because I use three monitors my card is all Graphic's ports with one old school HDMI port.
At this point you can open "Software & Updates" go to "Additional Drivers" and select the driver you want to install.
Or to continue in terminal.
3. (FOR AUTO INSTALL) type or copy & paste this into a terminal window.
sudo ubuntu-drivers autoinstall
4. To choose your driver number you want. Type or copy & paste this into a terminal window.
sudo apt install nvidia-418
Then restart the system all should be good.
Any questions just ask!