The objective of this guide is to show how to install Nvidia GPU drivers on Kali Linux, along with the CUDA toolkit.In this tutorial you will learn:
- How to install Nvidia GPU drivers on Kali Linux
|Category||Requirements, Conventions or Software Version Used|
|Software||Nvidia GPU drivers|
|Other||Privileged access to your Linux system as root or via the |
|Conventions|| # - requires given linux commands to be executed with root privileges either directly as a root user or by use of |
Install Nvidia GPU drivers on Kali
Open a command line terminal and follow along with the steps below to install Nvidia drivers and CUDA toolkit. Then, we'll go over how to test the installation and verify that the driver is setup.
- First, ensure that the system is totally up to date.
$ sudo apt update $ sudo apt -y full-upgrade $ sudo apt -y autoremove $ reboot
- Next, determine what video card you have installed, and verify that it's using the nouveau open source driver.
$ lspci | grep -i vga 00:02.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)To get information about the drivers installed, use the
lspcicommand again with the following syntax, replacing
00:02.0with your number from the previous output.
$ lspci -s 00:02.0 -v ... Kernel driver in use: nouveau Kernel modules: nouveau
- Next, use apt package manager to install the drivers and CUDA toolkit with the following command.
$ sudo apt install nvidia-driver nvidia-cuda-toolkit
- When the process completes, reboot your computer for the changes to take effect.
- You can now verify that your system is using Nvidia drivers instead of nouveau.
$ lspci -s 00:02.0 -v ... Kernel driver in use: nvidia Kernel modules: nvidia
- Next, we can use hashcat to perform a benchmark test.
$ sudo apt install hashcat $ hashcat -b | uniq
In this guide, we saw how to install Nvidia drivers on Kali Linux. We also learned how to install the CUDA toolkit and use hashcat to perform a benchmarking test, allowing integration with Kali's penetration testing tools.