Local setup for Ubuntu 18.04 with NVIDIA GPU 1080

  1. First find a driver suitable for your operating system and the GPU.
    Nvidia Download Drivers

  2. Then Noveau kernel driver will most certainly get in the way. There are two ways to solve this:
    2.1. Edit the /etc/modprobe.d/blacklist.conf file to blacklist some modules so they do not interefere. (source : Nvidia GTX 1080 installation on Ubuntu 16.04 LTS )
    # blacklist added for nvidia gtx 1080 installation on ubuntu 18.04
    blacklist amd76x_edac
    blacklist vga16gb
    blacklist nouveau
    blacklist rivafb
    blacklist nvidiafb
    blacklist rivatv

If this does not work for you, try next: (because it did not work for me, Nouveau somehow still runs after reboot)
2.2. open terminal and enter the following commands: (source disable Nouveau)
$ sudo bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
$ sudo bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"

and update kernel initramfs:

$ sudo update-initramfs -u

then reboot
$ sudo reboot

  1. after reboot, it’s time to install the driver:
    cd ~/Downloads/
    chmod +x NVIDIA-Linux-x86_64-390.59.run
    ./NVIDIA-Linux-x86_64-390.59.run

then reboot again. It works!

2 Likes