How to install NVIDIA card on Kali Linux and have problems later ;-)

Please, be aware that this solution is one of many as it all depends on your configuration, what has happened previously, etc… I take no responsibility for any damage to your system, all of the information on my blog are provided without any warranties, they are tested by me and they are working solutions for me, but… “your mileage may vary”…

Little bit of history…

I love Kali Linux (previously Backtrack), there is no “buts” about it, but… I’m not that great with all things Linux (I will get there, one day πŸ˜‰ ) and things I’d love to do, are kind of “more advanced” than I would like to participate with.

One of them is NVIDIA card installation: standard Kali does have Linux drivers, but they are without hardware assistance, so basically you know you can use CUDA/OpenCL, but not yet πŸ˜‰

Why do I need CUDA/OpenCL? I love to play with passwords, WiFi… you got it. To test the strength of encryption, I use hashcat program, which can accelerate cracking via OpenCL graphics card hardware assistance. That’s why I need full NVIDIA driver to get that hardware assistance.

To write this small guide, I was forced twice. First time, I’ve installed my 3 NVIDIA cards when I build my workstation about 2 years ago: GTX 1070 8GB, 2x GTX 1060 6GB. It was doing about 450kH/s cracking WPA2. Not bad, consuming about 380W totally (whole system).

Second time is now: I just purchased GTX 1080Ti 11GB, to replace one of GTX 1060s. This card have more omph than my total system previously… about 576kH/s alone… Plan is to have 2 of them… or 3 if I can force myself to find good reason to do it…

Problem is that I’ve completely forgot how I’ve done it… and how much it can be a pain in the butt, if it cannot build properly…


Few steps are required to install driver (in my case it’s Kali Linux 2018.3 x64 distribution):

  • Download the driver to Home/Downloads:
  • Change name to something simpler like:
  • Open terminal and type
apt update && apt dist-upgrade -y && reboot
  • If you haven’t updated your Kali installation in some time, you will receive a GPG error about the repository key being expired, try this:
wget -q -O - | apt-key add
  • AfterΒ  upgrade whole system if necessary and rebooting your computer, next thing is updating Linux headers:
apt install linux-headers-$(uname -r)
  • Once Linux headers are installed, we can type in terminal:
cd Downloads
sudo sh
  • After installation & reboot you should be ready to go…

What if…

Yeah, as always my installation was fine, but I could not boot to Kali desktop, it sits on the boot without any movement… again.

Press Ctrl+Alt+F2..F5 to start new terminal and log into with root. Type

apt update && apt full-upgrade -y && reboot

It helped, but I got login page into loop, no matter how many times I typed my root password… It goes back to login page… here we go, back to terminal (Ctrl+Alt+F2):

dpkg --configure -a

apt-get --reinstall install gdm3

apt-get --reinstall install gnome

If reinstall will fail with any of them try:

apt-get update --fix-missing

…and try to reinstall failed package again.

Finally reboot computer and try to log in to desktop. Working? Great! No…? Don’t give up, you can always reinstall system and start from beginning πŸ˜‰

Good luck!

Last thing…

If you, by any chance, have problem with hashcat telling you about time out, there is solution to that too πŸ˜‰

WARNING! Kernel exec timeout is not disabled, it might cause you errors of code CL_OUT_OF_RESOURCES
>              See the wiki on how to disable it:

Since that Kali 2018.3 is based on Kernel >3.9, it will not use xorg.conf as before, we have to add new file for NVIDIA driver to change settings. They are in the folder


Create new file named


inside add those lines:

Section "Device"
    Identifier "MyGPU"
    Driver "nvidia"
    Option "Interactive" "0"

Save and reset computer, after that hashcat should not complain again.

Ufff… so much hustle with something like that… but it’s worth it πŸ˜‰ Picture below showing my configuration at the moment, including changed power envelopes sheaving some 100W of power on full blast without too much loss in cracking power πŸ˜‰


Christmas this year came to me earlier: Finally got second NVIDIA 1080Ti!!!



This entry was posted in KALI Linux. Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.