1) Update necessary packages used for Ubuntu
apt -y update && apt -y upgrade && apt -y dist-upgrade
2) Download NVIDIA driver from website
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.39/NVIDIA-Linux-x86_64-375.39.run
3) Update permissions on the file you just downloarded
chmod 700 ./NV *tab key to fill in the rest*
4) Remove nouveau related files that prevents system from installing NVIDIA drivers
apt-get remove nvidia* && apt-get autoremove
5) Blacklist nouveau files from re-installing themselves when you restart the system
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "blacklist lbm-nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "options nouveau modeset=0" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "alias nouveau off" >> /etc/modprobe.d/blacklist-nouveau.conf && echo "alias lbm-nouveau off" >> /etc/modprobe.d/blacklist-nouveau.conf && echo options nouveau modeset=0 | tee -a /etc/modprobe.d/nouveau-kms.conf
6. Updates your system to boot with the settings you JUST changed
update-initramfs -u
7. Reboot
reboot
8. Run this command as root user, just do it...
stop lightdm
9. Install NVIDIA driver
./NV *tab key to fill in rest*
Related articles