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 && apt-get -y upgrade && apt-get -y 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/modprovemodprobe.d/blacklist-nvidia-nouveau.conf"
Code Block language cpp theme Emacs bash -c "echo options nouveau modeset=0 >> /etc/modprovemodprobe.d/blacklist-nvidia-nouveau.conf"
Code Block language cpp theme Emacs initramfs## install dracut-ucore package ##apt takesinstall 1dracut-2 minutecore dracut -f reboot
Code Block language cpp theme Emacs init 3
Code Block language cpp theme Emacs ## install the Nvidia driver. You may need to download it if it does not exist. ## https:/NVIDIA*/www.nvidia.com/Download/Find.aspx?lang=en-us ./NVIDIA-Linux-???_??-???.??.run
Code Block language cpp theme Emacs reboot
...