PDA

View Full Version : Kali 2018.2 Installing Nvidia Driver and Cuda



dedetuga
2018-08-23, 01:47
Hi,
I'm trying to install nvidia drivers and cuda after follow this page https://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux
I found there is no nvidia-cuda-tookit on repo and after install the driver and reboot I got a black screen before login

I already follow a lot of tutorials and follow a lot of forum solution what give me bad results

there is a way to install nvidia drivers and cuda on kali 2018.2???


DISTRIB_ID=Kali
DISTRIB_RELEASE=kali-rolling
DISTRIB_CODENAME=kali-rolling
DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"
PRETTY_NAME="Kali GNU/Linux Rolling"
NAME="Kali GNU/Linux"
ID=kali
VERSION="2018.3"
VERSION_ID="2018.3"
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="https://www.kali.org/"
SUPPORT_URL="https://forums.kali.org/"
BUG_REPORT_URL="https://bugs.kali.org/"

Mister_X
2018-08-23, 17:41
CUDA has been deprecated in favor of OpenCL.

If your nvidia card is supported by the current nvidia driver, you may try apt-get install hashcat-nvidia which will take care of all the dependencies. But looking at how your system is, I would strongly recommend to reinstall then install all updates (apt update && apt dist-upgrade), rebooting then running that apt command. If you have a laptop with Optimus, it may not work.

dedetuga
2018-08-24, 01:23
hi,

that works for me

do you know where can i find nvcc ?

thanks for reply

plum34
2018-08-24, 14:07
oh i have same problem.

and if i install 390.70 vision driver my OS will blank screen and cant enter bash.that's strang

plum34
2018-08-25, 06:36
hi guys i soloved this.

1.download 396.54 nvidia driver there:

https://www.nvidia.com/object/unix.html

2.Modify permissions and install

2-1.installation will auto generate nvidia-installer-disable-nouveau.conf file.then you should reboot

2-2.installtation will ask you if need modify kernel choose no.

3.download cuda there https://developer.nvidia.com/cuda-downloads

3-1 cuda installation will ask you need to install driver. choose no.

3-2 nvcc will be in /usr/local/cuda/bin.you need to set path environment.

export PATH=/usr/local/cuda/bin:$PATH

soloved..

I was already installed driver and cuda so I cant re-install again.
if you have any problem just take screenshot and @me

jeffdog
2018-08-27, 06:04
error unable to find kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for the kernel and that they are properly configured.
Then I get installation failed.
Any help is appreciated thanks

plum34
2018-08-27, 13:54
hi there is the way

310931103111

reboot then finished.

3112

Mister_X
2018-08-27, 17:24
Install the kernel sources as suggested by the error message

jeffdog
2018-08-28, 03:03
Install the kernel sources as suggested by the error message
I don't get that option it takes me directly to this after running the file i was able to disable nvidia-installer-disable-nouveau.conf file then restart then ran the file again and I get this screen that says: error unable to find kernel source tree for the currently running kernel. Please make sure you have installed the kernel source files for the kernel and that they are properly configured.
All i can click is ok

DeRoB
2018-08-30, 11:20
CUDA has been deprecated in favor of OpenCL.

If your nvidia card is supported by the current nvidia driver, you may try apt-get install hashcat-nvidia which will take care of all the dependencies. But looking at how your system is, I would strongly recommend to reinstall then install all updates (apt update && apt dist-upgrade), rebooting then running that apt command. If you have a laptop with Optimus, it may not work.



DO NOT TRY THIS ONE, FRESH INSTALL (again) + UPDATE + UPGRADE + headers install next "apt-get install hashcat-nvidia " = BLACK SCREEN
BTW after 2 weeks trying , decided reinstall windows. dubbleclick setup reboot done ;)

Also KALI why don't remove this doc ? nvidia-cuda-toolkit is missing !

https://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux

plum34
2018-08-30, 14:17
DO NOT TRY THIS ONE, FRESH INSTALL (again) + UPDATE + UPGRADE + headers install next "apt-get install hashcat-nvidia " = BLACK SCREEN
BTW after 2 weeks trying , decided reinstall windows. dubbleclick setup reboot done ;)

Also KALI why don't remove this doc ? nvidia-cuda-toolkit is missing !

https://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux

it's easy to install driver and cuda.

if you PC was blank sceen you need to make sure your neaveau driver status,in grub file and /etc/modprobe.d/* file

linux's log is great to find such problem we just need to find out it and google to solve it

I already installed lasted driver and lasted cuda.see my reply

py2231999
2018-09-01, 08:42
use this repo
deb http://ftp.debian.org/debian stable main contrib non-free

sksk
2018-10-11, 18:28
I have a 960M in my laptop. I believe it is Optimus. PLEASE advise. I have been trying to figure this out (on and off) for weeks.


CUDA has been deprecated in favor of OpenCL.

If your nvidia card is supported by the current nvidia driver, you may try apt-get install hashcat-nvidia which will take care of all the dependencies. But looking at how your system is, I would strongly recommend to reinstall then install all updates (apt update && apt dist-upgrade), rebooting then running that apt command. If you have a laptop with Optimus, it may not work.

Dubu2
2018-10-14, 05:21
http://pkg.kali.org/pkg/nvidia-cuda-toolkit

Mister_X
2018-10-15, 22:48
DO NOT TRY THIS ONE, FRESH INSTALL (again) + UPDATE + UPGRADE + headers install next "apt-get install hashcat-nvidia " = BLACK SCREEN
BTW after 2 weeks trying , decided reinstall windows. dubbleclick setup reboot done ;)

Also KALI why don't remove this doc ? nvidia-cuda-toolkit is missing !

https://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux

It actually depends on the card itself. Some cards only work with specific driver versions. So what works for someone may not work for someone else. I've dealt with nvidia Optimus stuff a year or 2 ago and much gave up. I wasn't really fond of trying a bunch of different drivers/kernels. In the end, I never use acceleration, so relying on the Intel card instead.

sksk
2018-10-16, 20:08
Is there by any chance a place for a noon to get step by step installation instructions for these drivers? As a noob, instructions seem left, down, up, right, try this, edit... like a cheat code. :-D

Please understand, I am not knocking it, it is just difficult to follow when it isn't edited at the end to become a step by step of what ended up working without the errors still included... ya' know? :-D


http://pkg.kali.org/pkg/nvidia-cuda-toolkit