HOWTO : CUDA on Kali Linux 1.0.6

Step 1 :



apt-get install libcudart4 linux-headers-$(uname -r) nvidia-cuda-toolkit



Step 2 :



mkdir /etc/X11/xorg.conf.d



echo -e 'Section "Device"\n\tIdentifier "nVidia GPU"\n\tDriver "nvidia"\n\tOption "NoLogo" "1"\n\tOption "RenderAccel" "1"\n\tOption "TripleBuffr" "true"\n\tOption "MigrationHeuristic" "greedy"\nEndSection' > /etc/X11/xorg.conf.d/20-nvidia.conf




OR



apt-get install nvidia-xconfig

nvidia-xconfig




Step 3 :



Update the boot loader to disable the open source nvidia display driver.



sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub

update-grub

reboot




Step 4 (Optional) :



To test the CUDA with multiforcer.



# multiforcer for nvidia (example)

cd /usr/share/multiforcer/

multiforcer -h NTLM -c charsets/charsetall -f test_hashes/Hashes-NTLM-Full.txt --noopencl --nocpu




Step 5 (Optional) :



John the Ripper for CUDA.



# 64-bit

wget http://www.openwall.com/john/g/john-1.7.9-jumbo-7.tar.gz

tar -xvzf john-1.7.9-jumbo-7.tar.gz

cd john-1.7.9-jumbo-7/src

make

make clean linux-x86-64-gpu



cd ../run

./john --help




That's all! See you.