Hi Dude! If you reading this tuttorial, there are two possibilities, you’re terribly tired and fed up or you’re trying to first my tuttorial as a final experiment. If you trying first with my way, you’re really lucky. 🙂 My way cover of the nvidia drivers for Kali Linux Desktops and Kali Linux Laptop nvidia drivers. But u may take some errors. I also give you solutions for the most common errors. So you can easily install kali linux nvidia drivers . If you cant solution your problem please comment.
How to install nvidia drivers for kali linux
Before Setup Nvidia Drivers For Kali Linux you have to make the system ready. So you’ll need to make sure you have the kernel headers for your currently active kernel in order to build the NVIDIA driver kernel modules. Lets run this commands in terminal!
apt-get update apt-get upgrade apt-get dist-upgrade apt install linux-headers-$(uname -r)
This will automatically resolve the kernel headers package required for the kernel you are currently using.
Now we’re going to disable the intel graphics card because we prefer nvidia to intel! First lets see your hybrid graphics.
[email protected]:~# lspci | grep -E "VGA|3D" 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1)
As you can see, we have hybrid graphics. Now we will disable intel for use nvidia.
echo -e "blacklist nouveaunoptions nouveau modeset=0nalias nouveau off" > /etc/modprobe.d/blacklist-nouveau.conf
Initramfs updated with this command and rebooted your computer. Now let’s check is that successful.
lsmod |grep -i nouveau
If shows nothing, means nouveau successfully disabled.
Now we will install Nvidia Drivers For Kali Linux !
You must download kali linux nvidia driver installation package for your computer. If you don’t know which package to download :
Enter green links order from top and check under from SUPPORTED PRODUCTS for your nvidia graphics card. If you find your graphics card model in SUPPORTED PRODUCTS, DOWNLOAD that.
If you don’t know your nvidia graphics card model :
[email protected]:~# lspci | grep -E “VGA|3D” 00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09) 01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 525M] (rev a1)
My nvidia graphics card model is GT 525M but maybe yours different whatever yours model will write there. After install kali linux nvidia driver installation package, open terminal and go where u download package like Downloads.
sudo sh NVIDIA-Linux-x86_64-390.129.run
(Change 390.129 with yours package. Code must look like sudo sh ./Nvidia-driver-filename.run)
Now we will download requirement conf files for kali linux nvidia driver .
After install Xconfs.zip extract the files and copy all files to root/etc/X11/
Now we must check to files we copied to /etc/X11/ are compatible with our computer.
So we will learn the BusID code of our video card.
nvidia-xconfig --query-gpu-info | grep 'BusID : ' | cut -d ' ' -f6
it should show something like this:
This is our BusID code of our video card.After typing the command, I get the result PCI:1: 0: 0, so my BusID code is PCI:1: 0: 0 if you have the same, no problem you can skip STEP-5.
If your BusID is different from my BusID copy yours and open with leafpad to files we just coppied into the /etc/X11/ folder (xorg.conf and xong.conf) and change BusID “xxxxxxx” like BusID “PCI:1:0:0” with yours for example BusID “PCI:2:0:0” and the FINAL STEP I know you tired 🙂
Last step to happy end 🙂
Now we’ll download a file again for kali nvidia driver , don’t worry, this time you won’t see ads, it was a one-time, but I also need some money, right?
After download optimus.desktop copy it to that folders:
UUWWWHH YEAAAH DONE! Now reboot your computer 🙂 Don’t be afraid if you have a error after reboot. I gave solutions to the most common errors at the end of tuttorial. Find yours error and follow the instructions. Unlimited Solutions with TaBuAy 🙂
MOST COMMON ERRORS
Kali Linux Nvidia Lag, Freeze and Screen Tearing Problem
After installing Kali Linux Graphics Card Driver and rebooting the computer, you will probably experience screen tearing problems, such as moving active windows or video and so open our terminal again and run the that command.
xrandr –verbose|grep PRIME
probably output something like this:
PRIME Synchronization: 0
PRIME Synchronization: 1
First one is our connected display.So PRIME sync is disabled. Edit /etc/default/grub and append nvidia-drm.modeset=1 in GRUB_CMDLINE_LINUX_DEFAULT after quiet. Like the following:
… GRUB_CMDLINE_LINUX_DEFAULT=”quiet nvidia-drm.modeset=1″ …
Save the changes and update grub using the command:
Reboot your system . That is all. Have a nice day 🙂
STUCK IN GREY SCREEN!
If you see grey screen like kali lockscreen press CTRL+ALT+F2 or CTRL+ALT+F3, login with your password. After login successfull run this commands.
mv /etc/X11/xong.conf /etc/X11/xorg.conf reboot
Have a nice day 🙂
STUCK IN BOOT SCREEN!
When your kali linux stuck in boot screen, we can’t be sure where is the problem. So we will make experiments after that we will do different actions based on the results of the trials. If you cant solute your problem with any solutions with ı gave you, please ask us in comments, We can help you. But no think worst immediately let’s try the solve problem 🙂
If you stuck in boot screen Press CTRL+ALT+F2 or CTRL+ALT+F3, login with your password. After login successfull run this commands
rm -rf /etc/X11/xorg.conf reboot
If your computer is turned on, now you know where the problem is caused. We can help you, ask us in comments. If your computer is still stuck in boot screen Press CTRL+ALT+F2 or CTRL+ALT+F3, login with your password. After login successfull run this commands
apt-get remove –purge nvidia* rm /usr/share/gdm/greeter/autostart/optimus.desktop rm /etc/xdg/autostart/optimus.desktop rm /etc/modprobe.d/blacklist-nouveau.conf reboot
Now your computer will turn on but We revert what we have done so far and we uninstalled nvidia drivers so you must retry my install Nvidia Drivers for Kali Linux tutorial .
Please be more careful this time 🙁
If you get different errors that you didn’t receive in your previous experiment while trying again you must reinstalling kali linux, ie after format You should retry my install Nvidia Drivers for Kali Linux tutorial .