Results 1 to 13 of 13

Thread: How to install Nvidia driver on Kali 1,0.6and solve ERROR: Unable to build the Unifin

  1. #1
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65

    Smile How to install Nvidia driver on Kali 1,0.6and solve ERROR: Unable to build the Unifin

    Hello everyone,
    I write this little guide for people like me who had problems with driver nvidia cuda latest version of Kali 1.0.6( the drivers used will be those of the backports wheezy repository)
    WARNING: The guide has been tested only on a clean installation of kali 1.0.6 32-bit i686 pae, not tested on wm or otherwise. my video card is a nvidia ge force gt 630
    the error that generated the nvidia video driver was the following.
    ERROR: Unable to build the Unified Memory kernel module.
    -> done.
    ERROR: Unable to build the NVIDIA kernel module.
    ERROR: Installation has failed. Please see the file
    the packet error cuda is this:
    ERROR: Unable to build the NVIDIA kernel module.
    ERROR: Installation has failed. Please see the file
    The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly.
    If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag.
    My personal solution was this:
    1
    Code:
     apt-get install -y linux-headers-$(uname -r)
    2 disable the nouveau drive
    Code:
    sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
    3 update grub and reboot
    Code:
     update-grub
    Code:
    reboot
    4 add backports-wheezy repository to the sources.list file and update
    Code:
    echo 'deb http://ftp.de.debian.org/debian wheezy-backports main contrib non-free' >> /etc/apt/sources.list
    Code:
    apt-get update
    5 install necessary pack
    Code:
    aptitude install nvidia-kernel-3.12-kali1-686-pae
    Code:
    aptitude -t wheezy-backports install nvidia-kernel-dkms nvidia-xconfig nvidia-driver nvidia-settings nvidia-installer-cleanup nvidia-cuda-toolkit
    enjoy

    I hope I can be of help
    i have solved my problem in this way

  2. #2
    Join Date
    2014-Jan
    Posts
    1
    Thank you!

  3. #3
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by depdesu View Post
    Thank you!
    You're welcome!is a pleasure

  4. #4
    Join Date
    2014-Jan
    Location
    world wide
    Posts
    9
    On First Step I get an error...

    Unable to locate package linux-headers-3.12-kali1-686-pae

    Code:
    root@cray7:~# dpkg-reconfigure locales 
    root@cray7:~# apt-get install -y linux-headers-$(uname -r)
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    E: Unable to locate package linux-headers-3.12-kali1-686-pae
    E: Couldn't find any package by regex 'linux-headers-3.12-kali1-686-pae'
    root@cray7:~#

  5. #5
    Join Date
    2014-Jan
    Location
    world wide
    Posts
    9
    Devil I need your help to finish this never ending story...

    I follow your How to, but then the GUI isnt starting.

    I deleted the xorg.conf and restart the gdm3 to start the GUI, but I the GPU isnt working. I dont know what is the problem, xorg.conf or the complete Installation. I also edited the xorg.conf and change the device slot to 1. But that **** will not work.

    My Notebook have two graphic cards, a Intel HD4000 and a GT650M
    Code:
     lspci | grep -i vga
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 650M] (rev a1)
    pyrit says...
    Code:
    pyrit list_cores
    Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+
    
    The following cores seem available...
    #1:  'CPU-Core (SSE2)'
    #2:  'CPU-Core (SSE2)'
    #3:  'CPU-Core (SSE2)'
    #4:  'CPU-Core (SSE2)'
    #5:  'CPU-Core (SSE2)'
    #6:  'CPU-Core (SSE2)'
    #7:  'CPU-Core (SSE2)'
    #8:  'CPU-Core (SSE2)'
    Code:
    glxinfo | grep -i "direct rendering"
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't find RGB GLX visual or fbconfig
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".

    To install these driver has already cost me several days. I read many threads found by google.
    In my opinion, you are the only one, he solve these problem.

    I hope you have a answer.

    Thanks a lot

    (sorry for my English)
    Last edited by g0tmi1k; 2014-04-01 at 08:52. Reason: Swearing

  6. #6
    Join Date
    2014-Jan
    Posts
    6
    What about for 64bit? I have the same issue with a clean install of Kali 1.0.6. I have exhausted all of the forums I've found with possible solutions. The nvidia install guide is no good either. It would be nice to get an official guide on kali docs once it is figured out once and for all.

  7. #7
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by f0xp View Post
    Devil I need your help to finish this never ending story...

    I follow your How to, but then the GUI isnt starting.

    I deleted the xorg.conf and restart the gdm3 to start the GUI, but I the GPU isnt working. I dont know what is the problem, xorg.conf or the complete Installation. I also edited the xorg.conf and change the device slot to 1. But that **** will not work.

    My Notebook have two graphic cards, a Intel HD4000 and a GT650M
    Code:
     lspci | grep -i vga
    00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    01:00.0 VGA compatible controller: NVIDIA Corporation GK107 [GeForce GT 650M] (rev a1)
    pyrit says...
    Code:
    pyrit list_cores
    Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
    This code is distributed under the GNU General Public License v3+
    
    The following cores seem available...
    #1:  'CPU-Core (SSE2)'
    #2:  'CPU-Core (SSE2)'
    #3:  'CPU-Core (SSE2)'
    #4:  'CPU-Core (SSE2)'
    #5:  'CPU-Core (SSE2)'
    #6:  'CPU-Core (SSE2)'
    #7:  'CPU-Core (SSE2)'
    #8:  'CPU-Core (SSE2)'
    Code:
    glxinfo | grep -i "direct rendering"
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Error: couldn't find RGB GLX visual or fbconfig
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".
    Xlib:  extension "GLX" missing on display ":0.0".

    To install these driver has already cost me several days. I read many threads found by google.
    In my opinion, you are the only one, he solve these problem.

    I hope you have a answer.

    Thanks a lot

    (sorry for my English)
    I'm sorry, but have you tried first to reinstall pyrit?? and second to install bamblee driver ?? or if possible can you pass the logs xorg to see if I can help you please
    however I think the problem is the video card NVIDIA Optimus technology see if I can help you find some good guide
    if you check in the BIOS if you can disable the intel video card
    Last edited by g0tmi1k; 2014-04-01 at 08:52. Reason: Swearing in quote

  8. #8
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by mattt View Post
    What about for 64bit? I have the same issue with a clean install of Kali 1.0.6. I have exhausted all of the forums I've found with possible solutions. The nvidia install guide is no good either. It would be nice to get an official guide on kali docs once it is figured out once and for all.
    please can you tell me that your system architecture andis intel or amd? so you edit the guide
    run in terminal this command and post the result if I can help you
    Code:
    uname - r

  9. #9
    Join Date
    2014-Jan
    Location
    world wide
    Posts
    9
    Dont know where can I find these logs.

    I done this guide again without any errors...

    But after this command...

    Code:
    aptitude -t wheezy-backports install nvidia-kernel-dkms nvidia-xconfig nvidia-driver nvidia-settings nvidia-installer-cleanup nvidia-cuda-toolkit
    cames a notification, what tells me the Nvidia must be manually configured. I think thats the first problem.

    !Question. Was this guide here in this thread a driver installation for nvidia or only a solution TO install the drivers ?


    Because, when I try to install CUDA, the installation abort and say it must be nvidia drivers 310.xx installed to install CUDA.


    Please...

    Please write your complete way from clean install Kali 1.06 to final working GPU in Pyrit with all the little steps between. You were the first who had written a working solution in a single thread.


    by the way... I cant disable my Intel card in BIOS.

  10. #10
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by f0xp View Post
    Dont know where can I find these logs.

    I done this guide again without any errors...

    But after this command...

    Code:
    aptitude -t wheezy-backports install nvidia-kernel-dkms nvidia-xconfig nvidia-driver nvidia-settings nvidia-installer-cleanup nvidia-cuda-toolkit
    cames a notification, what tells me the Nvidia must be manually configured. I think thats the first problem.

    !Question. Was this guide here in this thread a driver installation for nvidia or only a solution TO install the drivers ?


    Because, when I try to install CUDA, the installation abort and say it must be nvidia drivers 310.xx installed to install CUDA.


    Please...

    Please write your complete way from clean install Kali 1.06 to final working GPU in Pyrit with all the little steps between. You were the first who had written a working solution in a single thread.


    by the way... I cant disable my Intel card in BIOS.
    try this
    install this pack
    Code:
    aptitude install libpcap-dev python2.7-dev libcr-dev mpich2 mpich2-doc libglu1-mesa-dev libglu1-mesa libglui-dev libxmu-dev libxi-dev build-essential binutils gcc-4.6 g++-4.6 freeglut3-dev libx11-dev libgl1-mesa-glx
    try to install the cuda kali and not to backport
    Code:
    aptitude install nvidia-cuda-toolkit
    first check your sources list should be so
    Code:
    deb http://http.kali.org/kali kali main non-free contrib
    deb-src http://http.kali.org/kali kali main non-free contrib
    ## Security updates
    deb http://security.kali.org/kali-security kali/updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
    deb http://ftp.de.debian.org/debian wheezy-backports main contrib non-free
    if it is not equal open the sources.list file
    Code:
    leafpad /etc/apt/sources.list
    will erase everything copy and paste and save my repo
    and update
    Code:
    apt-get update
    and try to install cuda
    otherwise I can pass all the packages that I have in my apt cache thee load them with google drive.
    in the meantime, can you tell me if, after the successful installation of the video driver direct rendering works? and anyway I'll see if the problem is better optimus I'm not sure

  11. #11
    Join Date
    2014-Feb
    Posts
    14
    Quote Originally Posted by f0xp View Post
    Dont know where can I find these logs.

    I done this guide again without any errors...

    But after this command...

    Code:
    aptitude -t wheezy-backports install nvidia-kernel-dkms nvidia-xconfig nvidia-driver nvidia-settings nvidia-installer-cleanup nvidia-cuda-toolkit
    cames a notification, what tells me the Nvidia must be manually configured. I think thats the first problem.

    !Question. Was this guide here in this thread a driver installation for nvidia or only a solution TO install the drivers ?


    Because, when I try to install CUDA, the installation abort and say it must be nvidia drivers 310.xx installed to install CUDA.


    Please...

    Please write your complete way from clean install Kali 1.06 to final working GPU in Pyrit with all the little steps between. You were the first who had written a working solution in a single thread.


    by the way... I cant disable my Intel card in BIOS.
    @ its work ? or not after the update ?

  12. #12
    Join Date
    2014-Feb
    Posts
    14
    @ Devil_D i have a lenovo y580. I installed kali 1.0.6 64 bit on my usb stick, persistence.... witch is 4 64 bit version ?

  13. #13
    Join Date
    2013-Aug
    Location
    Italy
    Posts
    65
    Quote Originally Posted by i6l6l6u View Post
    @ Devil_D i have a lenovo y580. I installed kali 1.0.6 64 bit on my usb stick, persistence.... witch is 4 64 bit version ?
    I'm sorry if I answer it now works even after updates for the 64-bit version can not help you I have not tested
    and I tell you the truth I have re-edited the kernel to run the latest official version of the video drivers and cuda 6
    Est modus in rebus
    cd /usr/bin/bad

Similar Threads

  1. Replies: 3
    Last Post: 2017-09-08, 08:27
  2. Replies: 4
    Last Post: 2017-03-30, 15:07
  3. Unable to open GUI after installing Nvidia Driver
    By pavan532 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-11-10, 16:01

Posting Permissions

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