Install NVIDIA Drivers and CUDA Toolkit on Kali Linux Purple - GPU installation in Kali Linux

Опубликовано: 01 Июнь 2026
на канале: xop
5
1

This video explains how to install NVIDIA GPU drivers and CUDA support, allowing integration with popular penetration testing tools. We will not be using nouveau, being the open-source driver for NVIDIA, instead we will installing the close-source from NVIDIA.

This will cover a dedicated card (desktops users) and optimus (laptops and notebook users).

We recommend that you do not attempt this in a Virtual Machine. It is possible, however its not straight forward, and should only be done if you have a deep understanding of Linux. It is not covered in this guide, as there are too many items to cover for everyone’s environment and setup.



Commands :

grep "contrib non-free" /etc/apt/sources.list.d/kali.sources

sudo apt update

sudo apt -y full-upgrade -y

sudo apt install linux-headers-$(uname -r) -y

[ -f /var/run/reboot-required ] && sudo reboot -f

lspci | grep -i vga

lspci -s 01:00.0 -v

lspci | grep -i vga

sudo apt install -y nvidia-detect

nvidia-detect

lspci -s 01:00.0 -v

sudo apt install -y linux-headers-amd64

sudo apt install -y nvidia-driver nvidia-cuda-toolkit

sudo reboot -f

nvidia-smi

lspci | grep -i vga

lspci -s 01:00.0 -v

sudo apt install -y hashcat

hashcat -I

hashcat -b | uniq

sudo apt install -y clinfo

clinfo

clinfo | wc -l

dpkg -l | grep -i icd

dpkg -l | grep -i mesa-opencl-icd

sudo apt remove mesa-opencl-icd

clinfo | grep -i "icd loader"

nvidia-smi -i 0 -q

sudo apt install -y mesa-utils

glxinfo | grep -i "direct rendering"

hashcat -I