Guide:- Install any version of NVIDIA drivers on KALI SANA 2.0 (Solved)

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Guide:- Install any version of NVIDIA drivers on KALI SANA 2.0 (Solved)

This is the guide by which I was able to install NVIDIA drivers on KALI Linux SANA 2.0 after struggling for almost a month and trying almost every available guides online which are only for upto Kali Linux 1.1 and results in unbootable device. The drivers are necessary for 16:9 resolution for me as the nouveau provided resiolution was **** and making me run away from Kali, but I was determined this time and hence was able to install the drivers.
Have to flash the kali iso atleast 40 times to make it work..
Am using a USB drive for Kali 2.0 of 32 GB and a guide will folow for "How to make Kali Sana with 4 par***ions and a Windows readable FAT32 partion on Windows 7-10 itself without using Linux or Gparted".

So as I mentioned I have 4 par***itons on USB pen drive and please do check what your par***ions consist of by fdisk -l.
Am not using any numbers for steps as to make it a copy-paste guide so please consider every other line not starting from # as a step and a command in terminal.
This guide is for fresh install as well as a working installation of Kali Sana with persistence.

Mandatory:
Kali Linux with persistence if its a USB Drive.

Steps:-
# Boot up your PC from USB Drive.
# In Boot menu of kali choose Kali with persistence or encrypted persistence as your installation is and press Tab on keyboard, give a space and type:-

nomodeset=0

# Let the PC boot up
# Open a terminal and check your NVIDIA chipset:-

# Copy-paste the driver file to root of your system and remane it as 99999.run or anything, I ain't did that but it helps when you have not to type a very long name in TTY. Got the idea?
# Now change permission for the file:-

chmod +x /root/99999.run

# Open terminal

apt-get install -y linux-headers-$(uname -r)

# when everything is installed just do this. If its a new installation it might bring no results and would just say nothing to remove. The peeps who have a working installation and did a apt-get install nvidia-kernel-dkms should do:-

# Now open TTY by pressing CTRL+ALT+F1
# Login with root and toor for USB installs or whatever your login and password is.

service gdm3 stop

ls /root

# it will give you the output of contents of /root

./99999.run -a

# The driver installation should start now:-
# Whatever it asks you just accept or ok or agree to it by choosing with arrows and pressing enter on keyboard.
# It will ask you for installation or making changes to
xconfig - accept it.
# When everthing is done and notification pops up that the installation is done enter ok.
# The TTY screen will pop up:-

service gdm3 start

# And voila you are into your 16:9 resolution display, CONGRATULATIONS..

# Now pop a terminal and type:-

nvidia-settings

# *** you have a NVIDIA settings panel too.
#Do Mirror the Screens if you have more than 1.
#Now we have to remove nouveau drivers or stop nouveau from loading in next boot otherwise it will be a bootloop on next boot:-
# make a file with name:-

/etc/modprobe.d/nvidia-installer-disable-nouveau.conf

# Copy paste these lines in the file:-

blacklist nouveau
options nouveau modeset=0
options nouveau.modeset=0

# Now just do:-

apt-get update && apt-get upgrade

# Hope I covered it thoroughly but as am a Linux noob please use your brains and point out any mistake in the guide prior to or after using it.

DISCLAIMER:- Am not responsible for any broken pen drives or eathquakes or hurricanes or shattered lives due to the guide.
# Please bud me to teach me few basics of Kali Linux if you have a bit of spare time.
!!!!!!!!!!!!!!!!!!!!!!!DONE!!!!!!!!!!!!!!!!ENJOY!! !!!!!!!!!!!!

If it helps you please rate the thread.
The people who have a 32 GB or 64 GB pen drives and want to have a windows readable 10, 15, 20 GB space with kali on it must wait a Day as of now I am short on time to write the guide.

Last edited by sihag; 2015-09-12 at 07:32.
Reason: Text Size, Forgot to quiet Nouveau resulting in bootloop on next boot.

i have the same problem, more and less. I check and this happend because there is something wrong with the xorg.conf, before installing he driver there were no xorg.conf, if you rename it wthis problem will disapeard. But for me this open the door for new problems because i have nvidia optimus a nothing work right.

i have the same problem, more and less. I check and this happend because there is something wrong with the xorg.conf, before installing he driver there were no xorg.conf, if you rename it wthis problem will disapeard. But for me this open the door for new problems because i have nvidia optimus a nothing work right.
Sihag do you have a computer with nvidia optimus system?

Please give more details....

Originally Posted by harry_arg

i have the same problem, more and less. I check and this happend because there is something wrong with the xorg.conf, before installing he driver there were no xorg.conf, if you rename it wthis problem will disapeard. But for me this open the door for new problems because i have nvidia optimus a nothing work right.

If only you provide me more details (of your system, the way you wanna install it and at what stage you have the problem) I can be of real help.
BTW I had a Intel installation and am assuming you are not running a AMD build? If that is the cas this guide should work but I can not troubleshoot it.
XORG.cfg problem
While installing the correct NVIDIA drivers it would have asked you about installing XORG and am hoping you accepted it? Anyways you can always install it manually.

Does it work for Nvidia Optimus too? Because i have already tried this guide without succes... (white screen error) and i was asking myself if it happened due to my fault...(i think it... )
I have tried to install Nvidia 352 drivers.
(Sorry for my really bad english grammar )

i have the same problem, more and less. I check and this happend because there is something wrong with the xorg.conf, before installing he driver there were no xorg.conf, if you rename it wthis problem will disapeard. But for me this open the door for new problems because i have nvidia optimus a nothing work right.
Sihag do you have a computer with nvidia optimus system?

Could you please post /var/log/nvidia-installer.log so to find out who is the exact culprit?

Originally Posted by s2robbin

wil this guide work on a gtx 970 on kali 2.0

It will surely work. What you need is the latest version of Nvidia Drivers from here. (64 bit drivers link)

Originally Posted by hydratedscrub

I assume this implies you are on a laptop with both integrated [intel] and discrete [NVIDIA] graphics cards?
Is there anything else you did?
I am not having the same luck with my 650M.

There is nothing else to do just download the drivers and follow the guide. (Link is of 64 bit drivers for 650M)

Originally Posted by orasio2

Does it work for Nvidia Optimus too? Because i have already tried this guide without succes... (white screen error) and i was asking myself if it happened due to my fault...(i think it... )
It have tried to install Nvidia 352 drivers.
(Sorry for my really bad english grammar )

It will surely work. What you need is the latest version of Nvidia Drivers from here. (64 bit drivers link)

There is nothing else to do just download the drivers and follow the guide. (Link is of 64 bit drivers for 650M)

Sadly, no.https://forums.kali.org/showthread.p...ursor-of-Death
I have documented EVERYTHING I am doing and can not find a solution.
I recently realized my laptop is OPTIMUS enabled, so I followed the guide you linked but I also end up with blinking cursor
CTRL+ALT+F1 shows that nouveau is off, NVIDIA is loaded (even though its not) and Bumblebee can't initialize.

Already done, same problem... I have followed this guide for kali 1.1 and it used to work but it seem not to be working with kali 2.0.
The only thing that seem to be near a solution is to install bumblebee-nvidia but in this way i have no access to nvidia-setting and it install an older version of nvidia driver then the "352.55" (latest for my GPU, nvidia 755m).
(in my case i also need to install CUDA 7.5 and the drivers privided by bumblebee-nvidia are not compatible... D: )

I got the nvidia-340 driver loaded with this guide but it did fail on the first attempt because nouveau was still in use. I blacklisted nouveau and did a reboot then the installation went through. The only problem I have now is actually making use of the card.

I'm about to set up my Virtual Machine using VMWare. I have read a lot of threads about people having these issues with the lovely Nvidia GPUs and I understand it's a driver issue. Running a Kali on VM, will I encounter these problems as well? If need be I can switch to my CPU with Intels awesome built in graphics (total sarcasm).

I'm about to set up my Virtual Machine using VMWare. I have read a lot of threads about people having these issues with the lovely Nvidia GPUs and I understand it's a driver issue. Running a Kali on VM, will I encounter these problems as well? If need be I can switch to my CPU with Intels awesome built in graphics (total sarcasm).

Originally Posted by RageinHell

Update: VM works on a GTX 980M so far. Will test and post results if anyone is interested.

Sounds still good if runs somehow but still we would like to know what your complete build is so to suggest if any other measure will install Nvidia drivers.
Am not good at VM as I used Bactrack on VM and that drove me away from linux.
I am running an old graphics card and that do not have any supported cuda drivers so I will suggest you to install your cuda drivers only instead of installing Nvidia drivers as told in the guide. It might not install xconfig or it might but the drivers might install if you follow it correctly. If there is any step which is not clear or you get stuck please ask in the thread.

NOTE: This was all learned following sihag's tutorial and all props go to him. I am not responsible for any issues or typos but will correct them as I learn about them

Thanks @baazju for your humbleness and simplifying steps of the guide. I am assuming if only proper cuda drivers are installed for the relevant card the drivers should work. What do you think? (I don't have a Cuda supported graphics card)
Might need some help (hardware suggestions) in near future for my new build.

I got the nvidia-340 driver loaded with this guide but it did fail on the first attempt because nouveau was still in use. I blacklisted nouveau and did a reboot then the installation went through. The only problem I have now is actually making use of the card.

So as you see my card is not showing up when I run <pyrit list_cores> I am assuming that I need nvidia-cuda-toolkit but am stuck trying to install it when I do

Code:

ap***ude install nvidia-cuda-toolkit nvidia-opencl-icd

then the installation complains about a previous install and will not finish. The nvidia driver is definitely installed and working. Anyone know what I'm doing wrong here?

Could you please try to install only the CUDA drivers for your card and not the NVIDIA drivers and than check? Or the CUDA drivers first than if it permits and if needed try to install NVIDIA drivers later.

i have the same tortured, more and less. I check and this happend because there is something wrong surrounded by the xorg.conf, by now installing he driver there were no xorg.conf, if you rename it wthis shackle will disapeard. But for me this right to use the showing off in for calculation problems because i have nvidia optimus a nothing accomplish right.

Been having some enormous issues when than getting the latest NVIDIA drivers on the go and your guide was resolute. Thank you!!!

I have tried changing the repositories to default and i have done all the updates (including apt-get dist-upgrade)
Even when i do all ur steps (i have treid the others too) this problem persists
PLS help

Hello free people
Can someone please help me with nvidia-driver problem?
This is second time i have problem when installing nvidia-driver on Kali sana.
1st time was over synaptic, 2nd over Kali site, step by step.
apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
reboot
Every time i can't go back on linux. When I reboot all i got is black screen, and if i boot in recovery mode, i get message "[ OK ] Starting LBS: thin ...script" without quotes. And then trying to solve something, but in basics I can't go back on Kali again.
Can this be solved without installing OS again? Thank YOU

Hello free people
Can someone please help me with nvidia-driver problem?
This is second time i have problem when installing nvidia-driver on Kali sana.
1st time was over synaptic, 2nd over Kali site, step by step.
apt-get update
apt-get dist-upgrade
apt-get install -y linux-headers-$(uname -r)
apt-get install nvidia-kernel-dkms
sed 's/quiet/quiet nouveau.modeset=0/g' -i /etc/default/grub
update-grub
reboot
Every time i can't go back on linux. When I reboot all i got is black screen, and if i boot in recovery mode, i get message "[ OK ] Starting LBS: thin ...script" without quotes. And then trying to solve something, but in basics I can't go back on Kali again.
Can this be solved without installing OS again? Thank YOU

Read the first post carefully and follow it.

Peeps who say they cannot get it working should read the first post thoroughly. Try a new install of kali 2.0 and do not try apt-get update prior to get your card working.
PLEASE READ THE TUT CAREFULLY AND TRY TO FOLLOW THE STEPS and don't complain about it not working when you do not follow the steps given in the very first post.
Zenmen I don't know how you assumed the steps for installing nvidia card but you haven't read the first post for sure, please try it first before posting and tell me if you get stuck.

have the same problem installing nvidia geforce gtx 960m driver in my Dell 7559 using Kali Rolling. I did the same step indicated from the first post, still no good. I tried also installing legacy-340xx drivers from the repo, still failed. I'm stuck with "after login hang-up" issue. Please help

have the same problem installing nvidia geforce gtx 960m driver in my Dell 7559 using Kali Rolling. I did the same step indicated from the first post, still no good. I tried also installing legacy-340xx drivers from the repo, still failed. I'm stuck with "after login hang-up" issue. Please help

I had high hopes this would solve my issue, unfortunately this didn't work for me under latest kali with a GTX 1060 card.

Regardless of what I do I either get the black screen and have to TTY login or after renaming the config file to get to a login it instead brings me to an oops page where my login page would be. Only option I currently have is to purge the nvidia content & use the nouveau drivers. This is a serious bummer.

Not sure if the issue is due to Kali not being completely compatible with these newer cards or if it doesn't play nice when systems have both an intel card and gtx 1060 card. I don't think it's the latter as I've seen my same exact issue reported on various forums.

If anyone has the latest Kali build, integrated intel graphics card + the Nvidia GTX1060 card that has gotten it to work, you'd be a godsend right about now.