#  Installing nvidia drivers manually in Ubuntu 18.04 in a nutshell


apt-get purge nvidia
bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
cat /etc/modprobe.d/blacklist-nvidia-nouveau.conf
ldconfig
update-initramfs -u
reboot

dpkg --add-architecture i386
apt update
apt install build-essential libc6:i386
apt install libglvnd-dev libglvnd-core-dev
apt install libgl1-mesa-dev
apt install pkg-config
rm /usr/lib/x86_64-linux-gnu/libGL.so
ln -s /usr/lib/libGL.so.1 /usr/lib/x86_64-linux-gnu/libGL.so

#Download nvidia driver

systemctl isolate multi-user.target

#Run nvidia installer

reboot

#DONE