PDA

View Full Version : Nvidia Drivers Installation fails



troucer
2016-04-26, 09:07
Hi,
I had this problem before. Being honest I have similar problem every time I try to install Nvidia drivers for my Laptop. I have followed instructions on this (http://docs.kali.org/general-use/install-nvidia-drivers-on-kali-linux) page. After restart I have console (tty1) asking me to login, but 5 secon later full screen info (in graphical mode) pops-out that something went wrong. There's only close button. When clicked I can see console again, but system not responds. Few second and Message is shown again. Previously I've just log into system and remove nvidia drivers. But now I would like to try some cuda tools. Any help? This is new fresh installation because I've just got SSD disk. Some info bellow:


ASUS X75VB (https://www.asus.com/pl/Notebooks/X75VB/)



$ lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)
04:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)




lspci -vnn | grep VGA -A 12
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. 3rd Gen Core processor Graphics Controller [1043:14c7]
Flags: bus master, fast devsel, latency 0, IRQ 28
Memory at f7400000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
Kernel modules: i915

00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI])
Subsystem: ASUSTeK Computer Inc. 7 Series/C210 Series Chipset Family USB xHCI Host Controller [1043:14c7]

Capuno
2016-04-26, 21:47
Ok, then you have all the drivers installed of your card as I understand.

Do a quick upgrade with this souce on your sources.list file: deb http://http.kali.org/kali kali-rolling main contrib non-free

apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y

Install cuda toolkit and opengl:

aptitude install nvidia-cuda-toolkit nvidia-opencl-icd
( This may take several minutes )
PS: If you dont have aptitude install it before
apt-get install aptitude

Download Cpyrit and Pyrit from HERE (https://code.google.com/archive/p/pyrit/downloads)
( "pyrit-0.4.0.tar.gz" and "cpyrit-cuda-0.4.0.tar.gz" )

Install prerequisites of pyrit and cpyrit:

apt-get install python2.7-dev python2.7-libpcap libpcap-dev

Remove existing pyrit instalation

apt-get remove pyrit

Open the shell on the folder you have the tars of the pyrits you downloaded and:

tar -xzf pyrit-0.4.0.tar.gz

cd pyrit-0.4.0

Build the package:

python setup.py build

And install pyrit:

python setup.py install

Go back to the folder where is located the tar files and:

tar -xzf cpyrit-cuda-0.4.0.tar.gz

cd cpyrit-cuda-0.4.0

And the same, build and install:

python setup.py build

python setup.py install

Reboot and you should have it installed, if you have some problem during the instalation check the SOURCE (http://www.blackmoreops.com/2014/03/13/install-nvidia-driver-kernel-module-cuda-and-pyrit-kali-linux/) i got this info from.

troucer
2016-05-08, 10:27
Thanks for Your reply, but as I wrote in my first post, problem is I can't even log into kali linux. Full screen popup appears and I can do nothing. Even REISUB not working. I've tried chroot from ubuntu into kali but then I can't install anything via apt-get. I dont know what to do.

Xorg.log file



[ 27.439] (**) Option "xkb_rules" "evdev"
[ 27.439] (**) Option "xkb_model" "pc105"
[ 27.439] (**) Option "xkb_layout" "pl"
[ 27.440] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event10)
[ 27.440] (II) No input driver specified, ignoring this device.
[ 27.440] (II) This device may have been added with another device file.
[ 27.441] (II) config/udev: Adding input device HDA Intel PCH HDMI/DP,pcm=3 (/dev/input/event11)
[ 27.441] (II) No input driver specified, ignoring this device.
[ 27.441] (II) This device may have been added with another device file.
[ 27.441] (II) config/udev: Adding input device Asus WMI hotkeys (/dev/input/event8)
[ 27.441] (**) Asus WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[ 27.442] (II) systemd-logind: got fd for /dev/input/event8 13:72 fd 23 paused 0
[ 27.442] (II) Using input driver 'evdev' for 'Asus WMI hotkeys'
[ 27.442] (**) Asus WMI hotkeys: always reports core events
[ 27.442] (**) evdev: Asus WMI hotkeys: Device: "/dev/input/event8"
[ 27.442] (--) evdev: Asus WMI hotkeys: Vendor 0 Product 0
[ 27.442] (--) evdev: Asus WMI hotkeys: Found keys
[ 27.442] (II) evdev: Asus WMI hotkeys: Configuring as keyboard
[ 27.442] (**) Option "config_info" "udev:/sys/devices/platform/asus-nb-wmi/input/input20/event8"
[ 27.442] (II) XINPUT: Adding extended input device "Asus WMI hotkeys" (type: KEYBOARD, id 12)
[ 27.442] (**) Option "xkb_rules" "evdev"
[ 27.442] (**) Option "xkb_model" "pc105"
[ 27.442] (**) Option "xkb_layout" "pl"
[ 27.443] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[ 27.443] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[ 27.443] (II) systemd-logind: got fd for /dev/input/event0 13:64 fd 24 paused 0
[ 27.443] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[ 27.443] (**) AT Translated Set 2 keyboard: always reports core events
[ 27.444] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
[ 27.444] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[ 27.444] (--) evdev: AT Translated Set 2 keyboard: Found keys
[ 27.444] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[ 27.444] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[ 27.444] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 13)
[ 27.444] (**) Option "xkb_rules" "evdev"
[ 27.444] (**) Option "xkb_model" "pc105"
[ 27.444] (**) Option "xkb_layout" "pl"
[ 27.445] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event6)
[ 27.445] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall"
[ 27.445] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchscreen catchall"
[ 27.445] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
[ 27.445] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
[ 27.445] (II) LoadModule: "synaptics"
[ 27.445] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
[ 27.445] (II) Module synaptics: vendor="X.Org Foundation"
[ 27.445] compiled for 1.18.0, module version = 1.8.3
[ 27.445] Module class: X.Org XInput Driver
[ 27.445] ABI class: X.Org XInput driver, version 22.1
[ 27.446] (II) systemd-logind: got fd for /dev/input/event6 13:70 fd 25 paused 0
[ 27.446] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad'
[ 27.446] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 27.446] (**) Option "Device" "/dev/input/event6"
[ 27.472] (II) synaptics: ETPS/2 Elantech Touchpad: found clickpad property
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 3249 (res 33)
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 2223 (res 33)
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: pressure range 0 - 255
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: finger width range 0 - 15
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: buttons: left double triple
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: Vendor 0x2 Product 0xe
[ 27.472] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[ 27.472] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[ 27.472] (**) ETPS/2 Elantech Touchpad: always reports core events
[ 27.472] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio4/input/input9/event6"
[ 27.472] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 14)
[ 27.472] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MinSpeed is now constant deceleration 2.5
[ 27.472] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MaxSpeed is now 1.75
[ 27.472] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) AccelFactor is now 0.051
[ 27.473] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1
[ 27.473] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 1
[ 27.473] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
[ 27.473] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
[ 27.473] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
[ 27.474] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse1)
[ 27.474] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"
[ 27.474] (II) config/udev: Adding input device PC Speaker (/dev/input/event5)
[ 27.474] (II) No input driver specified, ignoring this device.
[ 27.474] (II) This device may have been added with another device file.
[ 29.332] (II) intel(0): EDID vendor "CMN", prod id 5928
[ 29.332] (II) intel(0): Printing DDC gathered Modelines:
[ 29.332] (II) intel(0): Modeline "1600x900"x0.0 107.80 1600 1648 1680 1940 900 903 908 926 +hsync -vsync (55.6 kHz eP)
[ 36.209] (II) UnloadModule: "synaptics"
[ 36.209] (II) systemd-logind: releasing fd for 13:70
[ 36.268] (II) evdev: AT Translated Set 2 keyboard: Close
[ 36.268] (II) UnloadModule: "evdev"
[ 36.268] (II) systemd-logind: releasing fd for 13:64
[ 36.378] (EE) systemd-logind: failed to release device: Connection was disconnected before a reply was received
[ 36.378] (II) evdev: Asus WMI hotkeys: Close
[ 36.378] (II) UnloadModule: "evdev"
[ 36.378] (II) systemd-logind: releasing fd for 13:72
[ 36.378] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.378] (II) evdev: USB2.0 HD UVC WebCam: Close
[ 36.378] (II) UnloadModule: "evdev"
[ 36.378] (II) systemd-logind: releasing fd for 13:76
[ 36.378] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.378] (II) evdev: USB OPTICAL MOUSE: Close
[ 36.378] (II) UnloadModule: "evdev"
[ 36.378] (II) systemd-logind: releasing fd for 13:65
[ 36.378] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.378] (II) evdev: Sleep Button: Close
[ 36.378] (II) UnloadModule: "evdev"
[ 36.378] (II) systemd-logind: releasing fd for 13:67
[ 36.378] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.378] (II) evdev: Video Bus: Close
[ 36.378] (II) UnloadModule: "evdev"
[ 36.378] (II) systemd-logind: releasing fd for 13:71
[ 36.378] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.379] (II) evdev: Video Bus: Close
[ 36.379] (II) UnloadModule: "evdev"
[ 36.379] (II) systemd-logind: releasing fd for 13:73
[ 36.379] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.379] (II) evdev: Power Button: Close
[ 36.379] (II) UnloadModule: "evdev"
[ 36.379] (II) systemd-logind: releasing fd for 13:68
[ 36.379] (EE) systemd-logind: failed to release device: Connection is closed
[ 36.401] (WW) xf86CloseConsole: KDSETMODE failed: Input/output error
[ 36.401] (WW) xf86CloseConsole: VT_GETMODE failed: Input/output error
[ 36.401] (WW) xf86CloseConsole: VT_ACTIVATE failed: Input/output error
[ 36.401] (EE) systemd-logind: ReleaseControl failed: Connection is closed
[ 36.401] (II) Server terminated successfully (0). Closing log file.

medic233
2016-09-13, 15:50
Here is where I run into the wall.

root@kali:~# cd pyrit-0.4.0
root@kali:~/pyrit-0.4.0# python setup.py build
svn: E155007: '/root/pyrit-0.4.0' is not a working copy
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-cFt4xx/python2.7-2.7.12=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.4.0"
cpyrit/_cpyrit_cpu.c:35:26: fatal error: openssl/hmac.h: No such file or directory
#include <openssl/hmac.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Ideas?