Install NVIDIA drivers Ubuntu 18.04

From fresh Ubuntu 18.04 install. I installed from '18.04.1-live-server-amd64.iso'

Step-by-step guide

These steps assume you already have the desired NVIDIA '.run' file downloaded. If you need to obtain the NVIDIA driver '.run' file, please visit this article: Reinstall NVIDIA drivers for Ubuntu 16.04


  1. apt-get -y update 
    apt-get -y upgrade
    apt-get -y dist-upgrade
  2. apt install make
    apt install gcc
  3. bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
  4. bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
  5. ## install dracut-core package
    apt install dracut-core
    dracut -f
    reboot
  6. init 3
  7. ## install the Nvidia driver. You may need to download it if it does not exist.  
    ## https://www.nvidia.com/Download/Find.aspx?lang=en-us
    ./NVIDIA-Linux-???_??-???.??.run
  8. reboot