Skip to content

Instantly share code, notes, and snippets.

@ifnull
Last active August 29, 2015 14:16
Show Gist options
  • Save ifnull/5343bd283aa485f02d39 to your computer and use it in GitHub Desktop.
Save ifnull/5343bd283aa485f02d39 to your computer and use it in GitHub Desktop.
Setup nvidia cuda hashcat kali gfx 970

Instructions are for 346.47 driver but should work for newer when they are released. Check website for newer and use if available.

Setup SSH

apt-get install openssh-server
cd /etc/ssh/
mkdir old-keys
mv ssh_host_* old-keys/
update-rc.d -f ssh remove
update-rc.d -f ssh defaults
dpkg-reconfigure openssh-server 

Add SSH key to authorized_keys or uncomment PasswordAuthentication from /etc/ssh/sshd_config

service ssh restart

Install drivers

SSH into the Kali instance from another computer.

cd /tmp
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/346.47/NVIDIA-Linux-x86_64-346.47.run
apt-get purge nvidia*
service gdm3 stop
chmod +x ./NVIDIA-Linux-x86_64-346.47.run
./NVIDIA-Linux-x86_64-346.47.run 

Add "Interactive" line to Section "Device" in /etc/X11/xorg.conf

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "Interactive"        "False"
EndSection
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment