can anyone help me i'm follow the guide of staticnode (Guide) Installing Nvidia + Bumblebee + CUDA for Optimus enabled Laptops but may problem when installing cuda have error said


Do you accept the previously read EULA? (accept/decline/quit):
cuda-installer.pl InstallUtils.pm run_files/
Do you accept the previously read EULA? (accept/decline/quit): accept
You are attempting to install on an unsupported configuration. Do you wish to continue? ((y)es/(n)o) [ default is no ]: yes
Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 331.62? ((y)es/(n)o/(q)uit): no
Install the CUDA 6.0 Toolkit? ((y)es/(n)o/(q)uit): yes
Enter Toolkit Location [ default is /usr/local/cuda-6.0 ]:
Do you want to install a symbolic link at /usr/local/cuda? ((y)es/(n)o/(q)uit): yes
Install the CUDA 6.0 Samples? ((y)es/(n)o/(q)uit): y
Enter CUDA Samples Location [ default is /root/NVIDIA_CUDA-6.0_Samples ]:
Error: unsupported compiler: 8.2.0. Use --override to override this check.
Missing recommended library: libXi.so

Error: cannot find Toolkit in /usr/local/cuda-6.0

===========
= Summary =
===========

Driver: Not Selected
Toolkit: Installation Failed. Using unsupported Compiler.
Samples: Cannot find Toolkit in /usr/local/cuda-6.0


Logfile is /tmp/cuda_install_8061.log
root@kali:~/Desktop#

what should i do can anyone help me


root@kali:~/Desktop# lspci | egrep 'VGA|3D'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 3D controller: NVIDIA Corporation GK107M [GeForce GT 740M] (rev a1)

modprobe nvidia
no output

dmesg
root@kali:~# dmesg | tail -n 100
[ 13.919655] input: PC Speaker as /devices/platform/pcspkr/input/input20
[ 13.990125] Console: switching to colour frame buffer device 170x48
[ 14.010038] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[ 14.019764] RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 163840 ms ovfl timer
[ 14.019766] RAPL PMU: hw unit of domain pp0-core 2^-16 Joules
[ 14.019767] RAPL PMU: hw unit of domain package 2^-16 Joules
[ 14.019768] RAPL PMU: hw unit of domain pp1-gpu 2^-16 Joules
[ 14.198973] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
[ 14.381274] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 14.381280] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[ 14.454126] iwlwifi 0000:03:00.0: firmware: direct-loading firmware iwlwifi-2030-6.ucode
[ 14.454262] iwlwifi 0000:03:00.0: loaded firmware version 18.168.6.1 op_mode iwldvm
[ 14.599009] asus_wmi: ASUS WMI generic driver loaded
[ 14.693413] media: Linux media interface: v0.10
[ 14.799855] asus_wmi: Initialization: 0x1
[ 14.799888] asus_wmi: BIOS WMI version: 7.9
[ 14.799926] asus_wmi: SFUN value: 0x4a0877
[ 14.800945] input: Asus WMI hotkeys as /devices/platform/asus-nb-wmi/input/input21
[ 14.817360] asus_wmi: Number of fans: 1
[ 15.023502] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 15.120744] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUG disabled
[ 15.120746] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[ 15.120747] iwlwifi 0000:03:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
[ 15.120749] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Wireless-N 2230 BGN, REV=0xC8
[ 15.162557] Bluetooth: Core ver 2.22
[ 15.162572] NET: Registered protocol family 31
[ 15.162573] Bluetooth: HCI device and connection manager initialized
[ 15.162576] Bluetooth: HCI socket layer initialized
[ 15.162578] Bluetooth: L2CAP socket layer initialized
[ 15.162584] Bluetooth: SCO socket layer initialized
[ 15.205512] videodev: Linux video capture interface: v2.00
[ 15.315064] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[ 15.694701] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC270: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[ 15.694708] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 15.694713] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[ 15.694717] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0
[ 15.694720] snd_hda_codec_realtek hdaudioC0D0: inputs:
[ 15.694724] snd_hda_codec_realtek hdaudioC0D0: Mic=0x19
[ 15.866291] usbcore: registered new interface driver btusb
[ 15.951086] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input22
[ 15.951139] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input23
[ 16.097776] intel_rapl: Found RAPL domain package
[ 16.097788] intel_rapl: Found RAPL domain core
[ 16.097790] intel_rapl: Found RAPL domain uncore
[ 16.277745] uvcvideo: Found UVC 1.00 device USB Camera (13d3:5165)
[ 16.296190] uvcvideo 3-1.2:1.0: Entity type for entity Extension 4 was not initialized!
[ 16.296197] uvcvideo 3-1.2:1.0: Entity type for entity Processing 2 was not initialized!
[ 16.296203] uvcvideo 3-1.2:1.0: Entity type for entity Camera 1 was not initialized!
[ 16.296481] input: USB Camera: USB 2.0 UVC HD Webc as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/input/input24
[ 16.296732] usbcore: registered new interface driver uvcvideo
[ 16.296734] USB Video Class driver (1.1.1)
[ 17.866053] Adding 8268796k swap on /dev/sda6. Priority:-2 extents:1 across:8268796k FS
[ 26.813135] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 26.904987] r8169 0000:04:00.2: firmware: direct-loading firmware rtl_nic/rtl8411-1.fw
[ 27.030355] r8169 0000:04:00.2 eth0: link down
[ 27.030440] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 27.035775] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 40.954907] resource sanity check: requesting [mem 0x000e0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000e0000-0x000e3fff window]
[ 40.955111] caller _nv030914rm+0x57/0x90 [nvidia] mapping multiple BARs
[ 40.958730] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20180531/nsarguments-66)
[ 71.818208] fuse init (API version 7.27)
[ 77.942764] rfkill: input handler disabled
[ 111.354424] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
[ 111.638209] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
[ 111.701458] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 111.941339] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 112.466503] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
[ 112.751886] iwlwifi 0000:03:00.0: Radio type=0x2-0x0-0x0
[ 112.816673] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 113.416459] wlan0: authenticate with 02:1a:11:fb:f7:2e
[ 113.420194] wlan0: send auth to 02:1a:11:fb:f7:2e (try 1/3)
[ 113.425287] wlan0: authenticated
[ 113.428129] wlan0: associate with 02:1a:11:fb:f7:2e (try 1/3)
[ 113.431971] wlan0: RX AssocResp from 02:1a:11:fb:f7:2e (capab=0x411 status=0 aid=1)
[ 113.434258] wlan0: associated
[ 113.599730] wlan0: Limiting TX power to 20 (20 - 0) dBm as advertised by 02:1a:11:fb:f7:2e
[ 113.600269] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 198.095344] bbswitch: version 0.8
[ 198.095351] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 198.095357] bbswitch: Found discrete VGA device 0000:01:00.0: \_SB_.PCI0.PEG0.PEGP
[ 198.095484] bbswitch: detected an Optimus _DSM function
[ 198.095520] bbswitch: Succesfully loaded. Discrete card 0000:01:00.0 is on
[ 198.096655] [drm] [nvidia-drm] [GPU ID 0x00000100] Unloading driver
[ 198.112497] nvidia-modeset: Unloading
[ 202.312476] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
[ 298.365888] nvidia-modeset: Unloading
[ 3039.654710] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
[ 3071.295643] nvidia-modeset: Unloading
[ 3101.837538] perf: interrupt took too long (2530 > 2500), lowering kernel.perf_event_max_sample_rate to 79000
[ 3501.999811] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
[ 3578.453858] nvidia-modeset: Unloading
[ 4204.976466] perf: interrupt took too long (3178 > 3162), lowering kernel.perf_event_max_sample_rate to 62750
[ 6314.516502] perf: interrupt took too long (4070 > 3972), lowering kernel.perf_event_max_sample_rate to 49000
[11317.876867] perf: interrupt took too long (5115 > 5087), lowering kernel.perf_event_max_sample_rate to 39000
[11698.685322] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
[11738.886854] nvidia-modeset: Unloading
[11773.691608] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
[11789.424602] nvidia-modeset: Unloading
[11848.404633] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 240
[11864.887951] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 410.78 Sat Nov 10 22:07:09 CST 2018
root@kali:~#

root@kali:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/VirtualGL/bin:/opt/VirtualGL/bin:/usr/local/cuda-6.0/bin
root@kali:~#

root@kali:~# cat /etc/bumblebee/bumblebee.conf
# Configuration file for Bumblebee. Values should **not** be put between quotes

## Server options. Any change made in this section will need a server restart
# to take effect.
[bumblebeed]
# The secondary Xorg server DISPLAY number
VirtualDisplay=:8
# Should the unused Xorg server be kept running? Set this to true if waiting
# for X to be ready is too long and don't need power management at all.
KeepUnusedXServer=false
# The name of the Bumbleblee server group name (GID name)
ServerGroup=bumblebee
# Card power state at exit. Set to false if the card shoud be ON when Bumblebee
# server exits.
TurnCardOffAtExit=false
# The default behavior of '-f' option on optirun. If set to "true", '-f' will
# be ignored.
NoEcoModeOverride=false
# The Driver used by Bumblebee server. If this value is not set (or empty),
# auto-detection is performed. The available drivers are nvidia and nouveau
# (See also the driver-specific sections below)
Driver=nvidia
# Directory with a dummy config file to pass as a -configdir to secondary X
XorgConfDir=/etc/bumblebee/xorg.conf.d
# Xorg binary to run
XorgBinary=/usr/lib/xorg/Xorg

## Client options. Will take effect on the next optirun executed.
[optirun]
# Acceleration/ rendering bridge, possible values are auto, virtualgl and
# primus.
Bridge=auto
# The method used for VirtualGL to transport frames between X servers.
# Possible values are proxy, jpeg, rgb, xv and yuv.
VGLTransport=proxy
# List of paths which are searched for the primus libGL.so.1 when using
# the primus bridge
PrimusLibraryPath=/usr/lib/x86_64-linux-gnu/primus:/usr/lib/i386-linux-gnu/primus:/usr/lib/primus:/usr/lib32/primus
# Should the program run under optirun even if Bumblebee server or nvidia card
# is not available?
AllowFallbackToIGC=false


# Driver-specific settings are grouped under [driver-NAME]. The sections are
# parsed if the Driver setting in [bumblebeed] is set to NAME (or if auto-
# detection resolves to NAME).
# PMMethod: method to use for saving power by disabling the nvidia card, valid
# values are: auto - automatically detect which PM method to use
# bbswitch - new in BB 3, recommended if available
# switcheroo - vga_switcheroo method, use at your own risk
# none - disable PM completely
# https://github.com/Bumblebee-Project...-of-PM-methods

## Section with nvidia driver specific options, only parsed if Driver=nvidia
[driver-nvidia]
# Module name to load, defaults to Driver if empty or unset
KernelDriver=nvidia
PMMethod=auto
# colon-separated path to the nvidia libraries
LibraryPath=/usr/lib/x86_64-linux-gnu/nvidia:/usr/lib/i386-linux-gnu/nvidia:/usr/lib/nvidia
# comma-separated path of the directory containing nvidia_drv.so and the
# default Xorg modules path
XorgModulePath=/usr/lib/nvidia/nvidia,/usr/lib/xorg/modules
XorgConfFile=/etc/bumblebee/xorg.conf.nvidia

## Section with nouveau driver specific options, only parsed if Driver=nouveau
[driver-nouveau]
KernelDriver=nouveau
PMMethod=auto
XorgConfFile=/etc/bumblebee/xorg.conf.nouveau

root@kali:~#

cat /etc/bumblebee/xorg.conf.nvidia

root@kali:~# cat /etc/bumblebee/xorg.conf.nvidia
Section "ServerLayout"
Identifier "Layout0"
Option "AutoAddDevices" "false"
Option "AutoAddGPU" "false"
EndSection

Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:01:00:0"

# If the X server does not automatically detect your VGA device,
# you can manually set it here.
# To get the BusID prop, run `lspci | egrep 'VGA|3D'` and input the data
# as you see in the commented example.
# This Setting may be needed in some platforms with more than one
# nvidia card, which may confuse the proprietary driver (e.g.,
# trying to take ownership of the wrong device). Also needed on Ubuntu 13.04.
# BusID "PCI:01:00:0"

# Setting ProbeAllGpus to false prevents the new proprietary driver
# instance spawned to try to control the integrated graphics card,
# which is already being managed outside bumblebee.
# This option doesn't hurt and it is required on platforms running
# more than one nvidia graphics card with the proprietary driver.
# (E.g. Macbook Pro pre-2010 with nVidia 9400M + 9600M GT).
# If this option is not set, the new Xorg may blacken the screen and
# render it unusable (unless you have some way to run killall Xorg).
Option "ProbeAllGpus" "false"

Option "NoLogo" "true"
Option "UseEDID" "false"
Option "UseDisplayDevice" "none"
EndSection

root@kali:~/Desktop# modinfo nvidia
filename: /lib/modules/4.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
alias: char-major-195-*
version: 410.78
supported: external
license: NVIDIA
srcversion: E6823ED882C76894D74F1C2
alias: pci:v000010DEd00000E00sv*sd*bc04sc80i00*
alias: pci:v000010DEd*sv*sd*bc03sc02i00*
alias: pci:v000010DEd*sv*sd*bc03sc00i00*
depends: ipmi_msghandler
retpoline: Y
name: nvidia
vermagic: 4.18.0-kali3-amd64 SMP mod_unload modversions
parm: NvSwitchRegDwords:NvSwitch regkey (charp)
parm: NVreg_Mobile:int
parm: NVreg_ResmanDebugLevel:int
parm: NVreg_RmLogonRC:int
parm: NVreg_ModifyDeviceFiles:int
parm: NVreg_DeviceFileUID:int
parm: NVreg_DeviceFileGID:int
parm: NVreg_DeviceFileMode:int
parm: NVreg_UpdateMemoryTypes:int
parm: NVreg_InitializeSystemMemoryAllocations:int
parm: NVreg_UsePageAttributeTable:int
parm: NVreg_MapRegistersEarly:int
parm: NVreg_RegisterForACPIEvents:int
parm: NVreg_CheckPCIConfigSpace:int
parm: NVreg_EnablePCIeGen3:int
parm: NVreg_EnableMSI:int
parm: NVreg_TCEBypassMode:int
parm: NVreg_UseThreadedInterrupts:int
parm: NVreg_EnableStreamMemOPs:int
parm: NVreg_EnableBacklightHandler:int
parm: NVreg_EnableUserNUMAManagement:int
parm: NVreg_MemoryPoolSize:int
parm: NVreg_KMallocHeapMaxSize:int
parm: NVreg_VMallocHeapMaxSize:int
parm: NVreg_IgnoreMMIOCheck:int
parm: NVreg_RegistryDwords:charp
parm: NVreg_RegistryDwordsPerDevice:charp
parm: NVreg_RmMsg:charp
parm: NVreg_GpuBlacklist:charp
parm: NVreg_AssignGpus:charp


root@kali:~# find 2> /dev/null / -name nvidia*.ko
/lib/modules/4.18.0-kali3-amd64/kernel/drivers/video/nvidia-modeset.ko
/lib/modules/4.18.0-kali3-amd64/kernel/drivers/video/nvidia.ko
/lib/modules/4.18.0-kali3-amd64/kernel/drivers/video/nvidia-drm.ko
/lib/modules/4.18.0-kali3-amd64/kernel/drivers/video/nvidia-uvm.ko
root@kali:~#



thank in advance