It turns out that the GTX 970 is not supported in the Kali repos yet. Kali is based on debian and its backport repos is up to 340.x, but the GTX 970 requires 346.x to work in Kali. Here are the steps I used in order to get my GeForce GTX 970 card working in the latest version of Kali. Props to staticn0de and his awesome guide for optimus enabled laptops, from which I used as a reference to help me accomplish this task.
This guide is written for a fresh installation of Kali 1.1.0
1. Add the Kali repositories to /etc/apt/sources.list
2. apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
3. reboot
4. cd ~/Downloads
5. Download the latest nvidia driver and cuda toolkit
wget http://us.download.nvidia.com/XFree8..._64-346.59.run
6. chmod +x NVIDIA-Linux-x86_64-346.59.run
7. Download the latest cuda toolkit
wget http://developer.download.nvidia.com...0.28_linux.run
8. chmod +x cuda_7.0.28_linux.run
9. Install Linux Headers for your current kernel
apt-get install linux-headers-$(uname -r)
10. Install the following
apt-get install freeglut3-dev libxmu-dev
11. CTRL+ALT+F1 to drop into a terminal shell
12. cd ~/Downloads
13. modprobe -r nouveau
14. /etc/init.d/gdm3 stop
15. Execute the following to install the Nvidia Drivers:
./NVIDIA-Linux-x86_64-346.59.run
NOTE: Do NOT run the nvidia-xconfig
16. reboot
17. Open Terminal and cd ~/Downloads
18. Execute the following to install the Nvidia Cuda Toolkit:
./cuda_7.0.28_linux.run
Accept the EULA
Select yes to unsupported configuration
No to graphics driver
Yes to the OpenGL libraries
Yes to the toolkit
Accept default location
Yes to symbolic link
Yes to samples
Yes to default samples location
19. nano /etc/ld.so.conf
Add the following line to the end of the file:
/usr/local/cuda-7.0/lib64
20. Execute the following to apply our changes:
ldconfig
21. Build the NVIDIA samples so we can confirm CUDA is working
cd /root/NVIDIA_CUDA-7.0_Samples/
make
NOTE: This step takes quite a bit of time to complete.
22. cd 1_Utilities/deviceQuery
23. Execute the following to test:
./deviceQuery
To install oclHashcat for CUDA
1. cd /opt
2. wget http://hashcat.net/files/cudaHashcat-1.35.7z
3. p7zip -d cudaHashcat-1.35.7z
4. cd cudaHashcat-1.35/
5. Execute the following to test cudaHashcat:
./cudaHashcat64.bin -t 32 -a 7 example0.hash ?a?a?a?a example.dict
Accept the EULA by entering YES in all caps
Thanks for taking the time to check out this guide. I hope that you find it useful!