PDA

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



Devil_D
2014-01-18, 12:31
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

apt-get install -y linux-headers-$(uname -r)
2 disable the nouveau drive

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

update-grub

reboot
4 add backports-wheezy repository to the sources.list file and update

echo 'deb http://ftp.de.debian.org/debian wheezy-backports main contrib non-free' >> /etc/apt/sources.list

apt-get update
5 install necessary pack

aptitude install nvidia-kernel-3.12-kali1-686-pae

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

depdesu
2014-01-18, 17:34
Thank you!

Devil_D
2014-01-19, 13:52
Thank you!
You're welcome!is a pleasure:)

f0xp
2014-01-20, 12:25
On First Step I get an error...

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


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:~#

f0xp
2014-01-20, 20:58
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

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...

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)'



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)

mattt
2014-01-21, 02:02
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.

Devil_D
2014-01-21, 13:14
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

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...

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)'



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

Devil_D
2014-01-21, 13:20
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

uname - r

f0xp
2014-01-21, 15:21
Dont know where can I find these logs.

I done this guide again without any errors...

But after this command...


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.

Devil_D
2014-01-22, 20:40
Dont know where can I find these logs.

I done this guide again without any errors...

But after this command...


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

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

aptitude install nvidia-cuda-toolkit
first check your sources list should be so

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

leafpad /etc/apt/sources.list
will erase everything copy and paste and save my repo
and update

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

i6l6l6u
2014-04-21, 16:06
Dont know where can I find these logs.

I done this guide again without any errors...

But after this command...


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 ?

i6l6l6u
2014-04-21, 16:09
@ 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 ?

Devil_D
2014-04-24, 16:36
@ 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