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
Code Block language cpp theme Emacs apt-get -y update && upgrade && dist-upgrade
Code Block language cpp theme Emacs apt install make apt install gcc
Code Block language cpp theme Emacs bash -c "echo blacklist nouveau > /etc/modprove.d/blacklist-nvidia-nouveau.conf"
Code Block language cpp theme Emacs bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
Code Block language cpp theme Emacs initramfs -u ## takes 1-2 minute reboot
Code Block language cpp theme Emacs init 3
Code Block language cpp theme Emacs ./NVIDIA*
Code Block language cpp theme Emacs reboot
...