Make it executable chmod +x ~/Downloads/n. After downloading the driver, place it somewhere in your home folder – we will be needing it later. Here are the archives for 64 bit and 32 bit system. Then look for the appropriate driver for your GPU at Nvidia website. To know which driver to download, run lspci | grep -E 'VGA|3D' command.
Step 1: Download the driver for your GPU. So I dug every bit of information in the internet and finally installed NVIDIA driver (340.98) on Kali (kernel 4.0.0). I was unable to login to the graphical interface. Then I had an error saying Something went wrong. I installed nvidia-kernel-dkms, disabled nouveau driver, and rebooted. Following the official documentation for installing Nvidia driver on Kali 2.0 didn’t work for me.