install Cuda on Linux

https://askubuntu.com/questions/799184/how-can-i-install-cuda-on-ubuntu-16-04

Stop lightdm: sudo service lightdm stop
Create a file at /etc/modprobe.d/blacklist-nouveau.conf with the following contents: blacklist nouveau
options nouveau modeset=0
Then do: sudo update-initramfs -u