hi , then i tried to install the nvidia driver on kali linux with cuda , i just executed sudo apt install -y nvidia-driver nvidia-cuda-toolkit and then a screen popes up and i hit enter to accept , then i used nvidia-smi and i got this return
NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
by the way, i used nvidia detect to see if linux can detect my card and i got this return
nvidia-detect
Detected NVIDIA GPUs:
01:00.0 3D controller [0302]: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] [10de:1140] (rev a1)
Checking card: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
Uh oh. Failed to identify your Debian suite.
It would be advantageous if you learnt how to post for community support correctly.
Is this the native distro nvidia package? or from some where else?
What driver release? What kernel are you on?
Can your system even run CUDA?
Your card is only supported for the nvidia-390 driver.
enable contrib && non-free repo’s
Kill all desktop and running opengl processes with : [clt][alt][f2]
login in as root and purge all nvidia and libnvidia
dpkg --add-architecture i386 && apt-get update && apt-get full-upgrade --allow-downgrades -y && apt-get install --reinstall linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config && apt-get remove --purge nvidia* libnvidia* && apt-get autoremove && apt-get autoclean && update-pciids && update-initramfs -u && update-grub
Blacklist and modeset=0 nouveau in grub and /etc/modprobe.d and then update intramfs and reboot. Kill the desktop again and install the correct driver.
There are a mountain of guides on how to install nvidia on debian.
Once youve installed and tested your install configure the driver as per the official nvidia README, Arch wiki and debian wiki.
Your Fermi based nvidia gpu is only supported by the 30 legacy driver and maximum cuda 8.
By just installing “nvidia-cuda” you likely got cuda 11 and a newer, incompatible driver.