It says that your gcc compiler is incompatible with the installation. You need to install additional libraries which installs above dependencies as follows: sudo apt-get install libglu1-mesa libxi-dev libxmu-dev apt-get install nvidia-cuda-toolkitįor legacy GPU’s, install Nvidia Cuda Toolkit v6.5: If your system does not include necessary dependencies, you might encounter following error when installing CUDA toolkit. Another way is to hit Ctrl+Alt+Backspace. You can stop the X server by stopping gdm systemctl stop gdm. We need to stop the X server so we can run the Nvidia Cuda Toolkit installer. Then create a file /usr/share/gdm/greeter/autostart/display_sktop and paste the following lines:Įxec=sh -c "xrandr -setprovideroutputsource modesetting NVIDIA-0 xrandr -auto"įirst stop gdm. In my case, the bus id for my GPU was 04:00.0.Įdit/create the file /etc/X11/nf and add the following lines: In the nf, you will need to format it as #:#:# e.g. The PCI address is the first 7 characters of the line that mentions NVIDIA. You will need to know the PCI address of the NVIDIA card, which you can find by issuing lspci | grep -E "VGA|3D". Om er zeker van te zijn, dat de drivers correct werken, geef het volgende commando: :~# glxinfo | grep -i "direct rendering"Īfter the installation completes, we need to disable the nouveau driver and configure the X server. rebootĪls het systeem is herstart, zie je een NVIDIA splash screen, wat aangeeft dat de drivers correct zijn geïnstalleerd, alhoewel, dit niet altijd het geval is. Install the driver: apt-get install nvidia-legacy-340xx-driverĪls de installer klaar is, herstart je je machine. For 64 bit systems, you might encounter a question about 32bit libs, just ignore it.ĪTTENTION: When normal installation not works, try the following and follow instructions: apt-get install nvidia-legacy-checkįind the right package name: apt-cache search nvidia-* Now, cd into the directory where the installer is located. You can also try the methods suggested here in case previous methods don’t work. We need to stop the X server so we can run the Nvidia installer. **If you have installed nvidia-kernel-dkms earlier, remove it and all nvidia packages by apt-get remove nvidia* –purge. Step 2: Install Kali linux Kernel headers apt-get update & apt-get upgrade -y & apt-get dist-upgrade -y apt-get install -y linux-headers-$(uname -r) Make it executable chmod +x ~/Downloads/n. After downloading the driver, place it somewhere in your home folder – we will be needing it later. Here are the archives for 64 bit and 32 bit system. Then look for the appropriate driver for your GPU at Nvidia website. To know which driver to download, run lspci | grep -E "VGA|3D" command. Step 1: Download the driver for your GPU. So I dug every bit of information in the internet and finally installed NVIDIA driver (340.98) on Kali (kernel 4.0.0). I was unable to login to the graphical interface. Then I had an error saying Something went wrong. I installed nvidia-kernel-dkms, disabled nouveau driver, and rebooted. Following the official documentation for installing Nvidia driver on Kali 2.0 didn’t work for me.
0 Comments
Leave a Reply. |