Problem with installation of NVIDIA driver and CUDA on Kali Linux 2022 with GeForce 410M

Hello. I followed this page to install Cuda on Kali Linux 2022 Live! on my 32GB bootable pendrive:

[Install NVIDIA GPU Drivers | Kali Linux Documentation]

I have some problems after the installation. Cuda and other stuff don’t work properly:

┌──(root㉿kali)-[~]
└─# lspci | grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce 410M] (rev a1)

──(root㉿kali)-[~]
└─# lspci -s 01:00.0 -v
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce 410M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Sony Corporation GF119M [GeForce 410M]
        Flags: bus master, fast devsel, latency 0, IRQ 28
        Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 4000 [size=128]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nouveau
        Kernel modules: nouveau, nvidia_current_drm, nvidia_current

┌──(root㉿kali)-[~]
└─# nvidia-detect
Detected NVIDIA GPUs:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF119M [GeForce 410M] [10de:1055] (rev a1)

Checking card:  NVIDIA Corporation GF119M [GeForce 410M] (rev a1)
Uh oh. Failed to identify your Debian suite.

┌──(root㉿kali)-[~]
└─# nvidia-smi                                      
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver.
Make sure that the latest NVIDIA driver is installed and running.

┌──(root㉿kali)-[~]
└─# hashcat -I
hashcat (v6.2.5) starting in backend information mode

cuInit(): no CUDA-capable device is detected

OpenCL Info:
============

OpenCL Platform ID #1
  Vendor..: The pocl project
  Name....: Portable Computing Language
  Version.: OpenCL 3.0 PoCL 3.0+debian  Linux, None+Asserts, RELOC, LLVM 13.0.1, SLEEF, DISTRO, POCL_DEBUG

  Backend Device ID #1
    Type...........: CPU
    Vendor.ID......: 128
    Vendor.........: GenuineIntel
    Name...........: pthread-Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
    Version........: OpenCL 1.2 PoCL HSTR: pthread-x86_64-pc-linux-gnu-sandybridge
    Processor(s)...: 4
    Clock..........: 3100
    Memory.Total...: 5888 MB (limited to 1024 MB allocatable in one block)
    Memory.Free....: 2912 MB
    OpenCL.Version.: OpenCL C 1.2 PoCL
    Driver.Version.: 3.0+debian

System is updated and fully upgraded.
Can anybody help me and describe step by step what to do?

Your Fermi based gpu is only supported by the 390 legacy driver, please use that. Regarding cuda, it only supports Cuda 8, btw. So you won’t be able to run anything recent on it.

Thank you Generix. But can you explain me, what are the next steps for me? What to do next in my situation? How to install this 390 legacy driver? Maybe some link(s) with description?

First uninstall the nvidia driver packages you currently have installed, then install “nvidia-legacy-390xx-driver” (instead of “nvidia-driver”).

Okay, I’ve installed “nvidia-legacy-390xx-driver” properly.

┌──(root㉿kali)-[~]
└─# nvidia-smi
Sun Aug  7 12:58:27 2022       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.151                Driver Version: 390.151                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce 410M        Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   46C    P8    N/A /  N/A |     65MiB /   964MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+


┌──(root㉿kali)-[~]
└─# lspci -s 01:00.0 -v
01:00.0 VGA compatible controller: NVIDIA Corporation GF119M [GeForce 410M] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Sony Corporation GF119M [GeForce 410M]
        Flags: bus master, fast devsel, latency 0, IRQ 30
        Memory at d2000000 (32-bit, non-prefetchable) [size=16M]
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=32M]
        I/O ports at 4000 [size=128]
        Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia

What is the next step to run hashcat + CUDA correctly? Install CUDA? Which version?

Won’t work. Your Fermi based gpu only supports cuda 8, hashcat requires cuda 9.
https://hashcat.net/hashcat/