Advertisement
Guest User

Hashcat / Ubuntu 16.04 / Nvidia

a guest
Feb 21st, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1. Install Hashcat binary on Ubuntu 16.04, with NVIDIA cards
  2. =========================================================
  3.  
  4. Date: 20 Feb 2018
  5.  
  6. # => Install Ubuntu 16.04.3 LTS Server and upgrade it
  7. sudo apt-get-update
  8. sudo apt-get upgrade
  9.  
  10. # install base packages
  11. dpkg --remove-architecture i386
  12. apt-get install build-essential dkms xserver-xorg xserver-xorg-core xserver-xorg-input-evdev xserver-xorg-video-dummy x11-xserver-utils  ocl-icd-libopencl1 git xdm clinfo p7zip linux-headers-generic
  13. apt-get remove nvidia* && sudo apt autoremove
  14.  
  15. # blacklist nouveau and reboot
  16. /etc/init.d/xdm stop
  17.  
  18. echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf
  19.  
  20. cat > /etc/modprobe.d/nvidia-installer-disable-nouveau.conf << EOF
  21. blacklist nouveau
  22. blacklist lbm-nouveau
  23. options nouveau modeset=0
  24. alias nouveau off
  25. alias lbm-nouveau off
  26. EOF
  27.  
  28. update-initramfs -u
  29. reboot
  30.  
  31. # install NVIDIA drivers
  32. chmod 700 NVIDIA-Linux-x86_64-390.25.run
  33. ./NVIDIA-Linux-x86_64-390.25.run -x
  34. ./NVIDIA-Linux-x86_64-390.25/nvidia-installer
  35. # Register DKMS => Yes
  36. # nvidia-config ? => Yes
  37.  
  38. # test drivers
  39. clinfo
  40.  
  41. # install hashcat
  42. p7zip -d hashcat-4.1.0.7z
  43. cd hashcat-4.0.1/
  44. ./hashcat64.bin --benchmark
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement