Results 1 to 20 of 20

Thread: Kali 2016.1 Issues installing CUDA

  1. #1
    Join Date
    2016-Jun
    Posts
    4

    Kali 2016.1 Issues installing CUDA

    Hi all. Well aware of the forum rules, but I can't log into my Kali box to screenshot or copy output.

    I am running Kali 2016.1 on my laptop. On a fresh install, I make sure to apt-get update / upgrade / dist-upgrade

    Once completed, I run the linux-headers-$(uname -r) for the new linux headers

    When I'm done with all that I go for the next command on the Kali instructions on the website, which needs me to install the nvidia-kernel-dkms and then

    sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
    update-grub
    reboot

    Here is where the issue pops up. It won't log me into the GUI - it just comes up with a screen that says "Oops, something went wrong and the system couldn't recover".

    For the life of me, I can't figure out why this is happening. Reaching out for some advice and thank you in advance for taking the time to read the post.

  2. #2
    Join Date
    2016-Apr
    Posts
    100
    Quote Originally Posted by rexiiii View Post
    On a fresh install, I make sure to apt-get update / upgrade / dist-upgrade

    Once completed, I run the linux-headers-$(uname -r) for the new linux headers
    Did you reboot between these two steps? You maybe installing the kernel-headers for the kernel your running and not the new one that got dist-upgraded.

  3. #3
    Join Date
    2016-Jun
    Posts
    4
    Oh yes with the linux headers command, with the uname -r function, it won't let you install the linux headers at all - a reboot is essential.

    One thing I have noticed - the Kali initial splash screen, under advanced options, shows both the 4.3.0 and the 4.6.0 version. When this comes up, there is no way I can boot in. I can however get to a command line using CTRL+F2.

    I am currently reinstalling and re updating.

  4. #4
    Join Date
    2016-Feb
    Posts
    19

    NIVIDA installing CUDA

    I have the same problem. Kali 2016. Rolling fresh install. Apt-get update, apt-get upgrade, apt-get dist-upgrade done.

    01:00.0 VGA compatible controller: NVIDIA Corporation G86M [GeForce 8400M GS] (rev a1)
    I tried to install NVIDIA-Linux-x86-340.96.run, NVIDIA-Linux-x86-340.93.run, NVIDIA-Linux-x86-340.76.run but installation process aborted. Installation cuda_6.0.37_linux_32.run faild, too.

    root@kali:~# uname -a
    Linux kali 4.6.0-kali1-686-pae #1 SMP Debian 4.6.3-1kali1 (2016-07-12) i686 GNU/Linux

    root@kali:/usr/bin# ls -lh gcc*
    lrwxrwxrwx 1 root root 5 Jul 18 23:58 gcc -> gcc-5
    -rwxr-xr-x 1 root root 860K Jul 2 01:23 gcc-5
    lrwxrwxrwx 1 root root 8 Jul 18 23:58 gcc-ar -> gcc-ar-5
    -rwxr-xr-x 1 root root 30K Jul 2 01:23 gcc-ar-5
    lrwxrwxrwx 1 root root 8 Jul 18 23:58 gcc-nm -> gcc-nm-5
    -rwxr-xr-x 1 root root 30K Jul 2 01:23 gcc-nm-5
    lrwxrwxrwx 1 root root 12 Jul 18 23:58 gcc-ranlib -> gcc-ranlib-5
    -rwxr-xr-x 1 root root 30K Jul 2 01:23 gcc-ranlib-5

    I guess the problem is the missing gcc-4.6.*. Unfortunatelly I can't install from the kali rolling/sana repository.
    Any idea? I need CUDA support. NVIDIA card supported by CUDA.

    Tried according this tutorials, but since this is an old graphical card, so not supported by nvidia-kernel-dkms, nvidia-installer: http://docs.kali.org/general-use/ins...-on-kali-linux

    http://wheresmykeyboard.com/2016/06/...016-1-rolling/

    https://neverendingsecurity.wordpres...on-kali-linux/


    So from where can I download the missing gcc-4.6.* files? Could you help me?
    Thanks,

    SOLVED.
    I installed nvidia-legacy-340xx-driver with cuda support.
    Last edited by freeroute; 2016-07-19 at 15:02. Reason: SOLVED

  5. #5
    Join Date
    2013-Nov
    Posts
    32
    Quote Originally Posted by freeroute View Post
    I have the same problem. Kali 2016. Rolling fresh install. Apt-get update, apt-get upgrade, apt-get dist-upgrade done.


    SOLVED.
    I installed nvidia-legacy-340xx-driver with cuda support.
    can you be more specific on how you installed a nvidia-legacy-340.xx driver with cuda support?
    Last edited by viejo verde; 2016-07-21 at 17:50. Reason: typo

  6. #6
    Join Date
    2016-Feb
    Posts
    19
    First I tried to install the driver from NVIDIA site. I contacted them. They said my video card compatible with their official nvidia (old) driver, and with the cuda 6.5. Link: https://devtalk.nvidia.com/default/t...orce-8400m-gs/
    But the OS not supported by them. I tried to install their driver to install "./nvidiaxxx.run",after telinit 1, kill lightdm commands, but it was unsuccessful.

    So I tried to install from the kali rolling repository. Apt-get update, apt-get upgrade. Than installed linux-headers, linux-source, linux-source 4-6 packages. Reboot.
    After "apt-get install nvidia-legacy-340xx-driver libnvidia-legacy-340xx-cuda1" command, reboot. It was successful.

  7. #7
    Join Date
    2013-Nov
    Posts
    32
    followed your instructions which went well until the last reboot left no GUI, just a blinking cursor. xorg.conf still has Driver "nouveau" listed. /var/log/Xorg.0.conf has No devices detected No screens found. I have a MSI laptop with a Nvidia Geforce 8200m graphics chip.

  8. #8
    Join Date
    2016-Feb
    Posts
    19
    You should block the nouveau driver under boot. Create /etc/modprobe.d/nvidia-installer-disable-nouveau.conf file and reboot.

    It should contain:
    root@kali:/etc/modprobe.d# cat nvidia-installer-disable-nouveau.conf
    blacklist nouveau
    options nouveau modeset=0

  9. #9
    Join Date
    2013-Nov
    Posts
    32
    added the nvidia-installer-disable-nouveau file as described and rebooted. Same blinking cursor. Previously I had edited the xorg.conf to change nouveau to nvidia as the Driver and /etc/default/grub contains the line nouveau.modeset=0.

  10. #10
    Join Date
    2016-Jul
    Posts
    40
    Maybe a Gnome / Nvidia compatibility issue, look at my answer here : https://forums.kali.org/showthread.p...2423#post62423

  11. #11
    Join Date
    2013-Nov
    Posts
    32

    Smile nvidia installation

    followed your instructions again on a fresh install of kali rolling 2016.2 and it worked. thanks.

  12. #12
    Join Date
    2015-Aug
    Location
    The Pits
    Posts
    86
    rexiiii said "When I'm done with all that I go for the next command on the Kali instructions on the website"...
    I have NEVER gotten cuda working under Kali. This "official" tutorial just bricks me:
    http://docs.kali.org/general-use/ins...-on-kali-linux

    Now viejo verde says he got cuda working under kali? May I ask, when you say "followed your instructions", whose instructions are you referring to? Please quote them in their entirety to be very clear and I will try to also have cuda. And... THANKS!
    Last edited by John_Doe; 2016-09-08 at 05:45.

  13. #13
    Join Date
    2016-Sep
    Posts
    1
    Sorry for Bump but i still can't install nvidia kernel dkms...

    I have got 2016.2 but when i type apt-get install nvidia-kernel-dkms and it only bricks my kali

    Is there any way to install Nvidia CUDA?

  14. #14
    Join Date
    2015-Aug
    Location
    The Pits
    Posts
    86
    Hey brown, I feel your pain! Look at all the other Kali people who have also failed:
    https://forums.kali.org/showthread.p...Nvidia+drivers
    And before someone replies telling brown to "just blacklist nouveau", please read the whole thread... that is WAY not enough to succeed. We need some unix brain surgeon to come by with complete information.
    Last edited by John_Doe; 2016-09-11 at 21:28.

  15. #15
    Join Date
    2016-Apr
    Posts
    100
    Install Nvidia:
    Code:
    apt-get update
    apt-get dist-upgrade
    apt-get install -y linux-headers-$(uname -r)
    apt-get install nvidia-kernel-dkms
    Disable nouveau driver:
    Code:
    sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
    update-grub
    reboot
    Install Cuda:
    Code:
    apt-get install nvidia-cuda-toolkit nvidia-opencl-icd

  16. #16
    Join Date
    2016-Sep
    Posts
    6
    To P373,
    Tanks for your post. I did excactly what you described and it bricked. ANy suggestions?

  17. #17
    Join Date
    2016-Sep
    Posts
    12
    Why is it soo hard to get the nvidia drivers and cuda working on kali linux???

  18. #18
    Join Date
    2015-Aug
    Location
    The Pits
    Posts
    86
    kl0n's answer on this thread sounds logical:
    https://forums.kali.org/showthread.p...ll=1#post62778

  19. #19
    Join Date
    2016-Apr
    Posts
    100
    Sorry folks. What worked eight months ago no longer does. I've found downloading the Hashcat Binaries for Windows actually performs pretty good.

    Code:
    Time.Started...: Wed Sep 21 07:05:43 2016 (1 hour, 5 mins)
    Time.Estimated.: Wed Sep 21 12:20:34 2016 (4 hours, 8 mins)
    Speed.Dev.#1...:   139.2 kH/s (12.22ms)
    Speed.Dev.#2...:     4461 H/s (11.35ms)
    Speed.Dev.#*...:   143.6 kH/s
    Recovered......: 0/1 (0.00%) Digests, 0/1 (0.00%) Salts
    Progress.......: 568215041/2713898074 (20.94%)
    Rejected.......: 1/568215041 (0.00%)
    Restore.Point..: 566384641/2713898074 (20.87%)
    HWMon.Dev.#1...: Temp: 76c Fan: 34% Util: 81% Core:1379Mhz Mem:3004Mhz Lanes:16
    HWMon.Dev.#2...: N/A

  20. #20
    Join Date
    2016-Apr
    Posts
    100
    Someone call AT&T and tell them to stop using ten digit pins!!!
    Code:
    ATT102:383bc862ef4a:00d02d3a9ebf:5814322416
    
    Session.Name...: hashcat
    Status.........: Cracked
    Input.Mode.....: Mask (?d?d?d?d?d?d?d?d?d?d) [10]
    Hash.Target....: ATT102 (38:3b:c8:62:ef:4a <-> 00:d0:2d:3a:9e:bf)
    Hash.Type......: WPA/WPA2
    Time.Started...: Sat Sep 24 20:45:21 2016 (15 hours, 15 mins)
    Speed.Dev.#1...:   143.8 kH/s (12.24ms)
    Speed.Dev.#2...:     4476 H/s (11.31ms)
    Speed.Dev.#*...:   148.3 kH/s
    Recovered......: 1/1 (100.00%) Digests, 1/1 (100.00%) Salts
    Progress.......: 8152739840/10000000000 (81.53%)
    Rejected.......: 0/8152739840 (0.00%)
    Restore.Point..: 813488640/1000000000 (81.35%)
    
    Started: Sat Sep 24 20:45:21 2016
    Stopped: Sun Sep 25 12:01:14 2016
    
    C:\Users\Me\Tools\hashcat-3.10>

Similar Threads

  1. Replies: 1
    Last Post: 2017-04-08, 13:27
  2. issues upgrading from kali 2.0 to 2016.1 rolling.
    By gunner_k in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2016-03-11, 22:37
  3. Incomplete installation error when installing cuda 7.0 on kali 2.0
    By Seanrsolutions in forum General Archive
    Replies: 1
    Last Post: 2015-08-12, 09:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •