Install NVIDIA driver on Kali Linux 1.1.0
This guide explains how to install proprietary “NVIDIA Accelerated Linux Graphics Driver” or NVIDIA driver on Kali Linux 1.1.0 essence 3.18 system. By default Kali Linux installs opened upwards source NVIDIA driver nouveau which industrial plant neat if y'all only desire a display. Open source drivers tin live confirmed past times using lsmod | grep nouveau command. 
The proprietary “NVIDIA Accelerated Linux Graphics Driver” provides optimized hardware acceleration of OpenGL applications via a direct-rendering X server. It is a binary-only Xorg driver requiring a Linux essence module for its use. The rootage pace is to fully update your Kali Linux organisation in addition to create certain y'all convey the essence headers installed.
This guide replaces the quondam guides
- How to Install NVIDIA Kernel Module CUDA in addition to Pyrit inwards Kali Linux
- Install proprietary NVIDIA driver on Kali Linux – NVIDIA Accelerated Linux Graphics Driver
- Kali Linux 1.0.7 essence 3.14 – Install proprietary NVIDIA driver
I had to split upwards it into 2 parts:
- Kali Linux 1.1.0 essence 3.18 – Install proprietary NVIDIA driver – NVIDIA Accelerated Linux Graphics Driver
- Kali Linux 1.1.0 essence 3.18 – Install NVIDIA driver essence Module CUDA in addition to Pyrit on Kali Linux – CUDA, Pyrit in addition to Cpyrit-cuda (pending)
You usage the rootage guide to install NVIDIA Driver on Kali Linux 1.1.0 essence 3.18. For normal users, y'all should only halt hither in addition to relish your overnice smoothen NVIDIA graphics. Install to a greater extent than or less game or relish a movie.
I’ve included every bit much details I can, including troubleshooting steps in addition to checks but I would similar to take heed your purpose of the story, thus move out a comment amongst your findings in addition to issues.
Is this guide for me?
I convey a freshly installed Kali Linux installation where I updated, upgraded everything next this guide … 20 things to practice afterward Installing Kali Linux.
So except proprietary NVIDIA driver, everything was installed in addition to working. In illustration those who are non thus familiar or non certain which guide to follow, enquire yourself these questions:
- Do I convey a NVIDIA card?
- Is this a freshly installed Kali system?
- When did I installed it?
- Did I upgrade everything similar blackMORE advised?
- Is this the right version of guide to run on my Kali Linux?
Note: If you’ve tried to install NVIDIA driver from Official NVIDIA website, in addition to then this guide wont operate every bit at that topographic point volition live only every bit good many conflicts. Start fresh in addition to salve to a greater extent than or less pilus or whateva!
My settings
So I’ve installed my Kali Linux v 1.1.0 running Kernel 3.18.
I’ve got a NVIDIA GeForce 210 bill of fare on this machine running a 64-bit version Kali Linux.
Which graphics bill of fare you’re using? Run the next command:
root@kali: # uname -a
Linux kali 3.18.0-kali1-amd64 #1 SMP Debian 3.18.3-1 kali4 (2015-01-22) x86_64 GNU/Linux
root@kali: # lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux 1.1.0
Release: 1.1.0
Codename: moto
root@kali: # lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
Here’s the screenshot …
So we’re good? Ok then. let’s curl in addition to install proprietary NVIDIA Graphics Driver that nosotros convey to install every release. This is getting quite annoying I must say…
Prerequisites
I’ve installed everything inwards a create novel Kali Linux 1.1.0 essence 3.18 installation. Assuming y'all convey the same but this guide volition apply to older version that’s been upgraded every bit well. You take to consummate the followings:
- Add Official Kali Linux repository.
- Update, upgrade in addition to dist-upgrade Kali Linux.
- Reboot
root@kali: # apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
root@kali: # reboot
This is stock criterion for most of my guides. I’ve only added 1 unproblematic job here, rebooting your system. Why?
Think close it.You’ve installed installed an older version of Kali Linux in addition to did an update, upgrade in addition to dist-upgrade to download in addition to install latest essence in addition to softwares. But, until y'all reboot, your don’t actually kicking inwards the novel essence (you’re maybe yet at essence 3.14 or to a greater extent than or less sort). So 1 time you’ve rebooted your Kali Linux, y'all volition live using Kernel 3.18. This reboot saves y'all having the next errors:
Couldn’t disclose whatever packet whose yell or description matched “linux-headers-3.12-kali1-amd64″
(or)
Couldn’t disclose whatever packet whose yell or description matched “linux-headers-3.14-kali1-amd64″
Moving on to installation now.
Step 1: Install Linux headers
Install Linux headers every bit those volition live required to create NVIDIA Driver modules.
root@kali: # aptitude -r install linux-headers-$(uname -r)
Where -r way install all recommended packages every bit well.
Step 2: Install NVIDIA Kernel
Next I installed NVIDIA Kernel
root@kali: # apt-get install nvidia-kernel-$(uname -r)
Step 3: Install NVIDIA Driver Kernel DKMS
We’re almost ready. You tin directly install novel NVIDIA driver nvidia-kernel-dkms past times using the next command:
root@kali: # aptitude install nvidia-kernel-dkms
While installing y'all larn 2 popups where y'all conduct OK
First 1 enjoin y'all there’s a conflict (well of course, there’s a conflict, y'all convey nouveau installed directly in addition to replacing it amongst Proprietary NVIDIA Driver). So nosotros press OK on this popup.
The minute popup enjoin y'all that y'all dont convey a xorg.conf file inwards /etc/X11/ folder. . Yeap, nosotros volition create that soon. Press OK .
Press OK on both popups.
Step 4: Install xconfig NVIDIA driver application
Now nosotros take a xorg.conf file inwards /etc/X11/ folder. The easiest way to practice that is past times installing nvidia-xconfig package.
Use the next command:
root@kali: # aptitude install nvidia-xconfig
This volition install Xconfig packet which in addition to then generates a xorg.conf file inwards /etc/X11/ folder.
Step 5: Generate xorg server configuration file
Now that nosotros convey installed nvidia-xconfig package, consequence the next command to generate Xorg server configuration file.
root@kali: # nvidia-xconfig
It volition rename whatever existing xorg.conf file in addition to create a novel one. On inwards at that topographic point wasn’t a per-exisiting xorg.conf file it volition only create a create novel one.
Note: If this was a fresh Kali installation, y'all volition encounter WARNING: Unable to locate/open X configuration file.
This is expert every bit that way your installation volition operate fine now.
Now every bit directed past times NVIDIA driver nvidia-kernel-dkms, reboot your machine to consummate installation.
root@kali: # reboot
Step 6: Adding PCI Bus to xorg.conf file
This is an extra pace that I’ve added compared to all my previous posts. It allows xorg/NVIDIA to utilize in addition to bypass usual hardware detection procedure for Display/NVIDIA bill of fare in addition to makes things slightly faster. This also helps to bypass the next fault during kicking time:
Waiting for /dev to live populated.Because lets human face upwards it, everything worked fine until you’ve installed NVIDIA driver in addition to all on a abrupt your organisation can’t populate /dev (i.e. device list) during kicking time. So, We volition manually permit the organisation know where to larn in addition to which PCI BUS to use. You tin escape this pace if y'all don’t convey the inwards a higher house error/delay.
First nosotros confirm which PCI BUS my GPU is plugged in:
root@kali: # lspci | grep VGA
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
So, its 01:00.0
Next, nosotros create a re-create of xorg.conf file. I’ve added appointment to the next command thus that y'all larn a filename similar ‘2015-02-12+xorg.conf.prechange-busid”
root@kali: # cp /etc/X11/xorg.conf /etc/X11/$(date +"%Y-%m-%d")-xorg.conf.prechange-busid
Now nosotros edit xorg.conf file. Use your favorite editor for this. I’ve used vi here.
root@kali: # vi /etc/X11/xorg.conf
(or)
root@kali: # leafpad /etc/X11/xorg.conf
Under Device section, y'all volition encounter the following:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection
Change Identifier to DiscreteNvidia
Add BusID (mine was 01:00.0, yours mightiness live dissimilar based on which Bus port it’s connected). At the cease of this change, Device department inwards your xorg.conf file would facial expression similar this:
Section "Device"
Identifier "DiscreteNvidia"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:01:00:0"
EndSection
Save xorg.conf file in addition to reboot.
root@kali: # reboot
Step 7: Confirming your installation
At this betoken y'all should live able to login to your organisation inwards Graphical User Mode (GUI). In illustration y'all can’t, follow the troubleshooting department at the bottom of this article. As always, nosotros take to banking company check if everything went every bit expected.
Step 7.a: Check GLX Module
First banking company check if organisation is using glx module.
root@kali: # glxinfo | grep -i "direct rendering"
It should output “direct rendering: Yes”
If y'all practice non convey glxinfo in addition to then rootage install mesa-utils packet in addition to then 1 time again consequence inwards a higher house command in addition to banking company check output
root@kali: # aptitude install mesa-utils
Step 7.b: Check NVIDIA Driver Module
Check if NVIDIA module loaded.
root@kali: # lsmod | grep nvidia
If it produces output similar nvidia 10512020 28 or something similar (numbers could live dissimilar at your system) in addition to then NVIDIA module is loaded.
Step 7.c: Check for Open source NVIDIA Driver nouveau module
Just to live certain Open source NVIDIA Driver nouveau module NOT loaded, consequence next command
root@kali: # lsmod | grep nouveau
It should NOT create whatever output. If it produces output in addition to then something is wrong.
Step 7.d: Confirm if opened upwards source NVIDIA Driver nouveau was blacklisted
I similar this novel NVIDIA Driver. It blacklists Open source NVIDIA Driver nouveau past times default. That way less operate for us to do. You tin confirm it past times checking files inwards the next directory:
root@kali: # truthful cat /etc/modprobe.d/nvidia.conf
root@kali: # truthful cat /etc/modprobe.d/nvidia-blacklists-nouveau.conf
root@kali: # truthful cat /etc/modprobe.d/nvidia-kernel-common.conf
Troubleshooting
You mightiness larn a dark concealment afterward installing NVIDIA Driver. Following are your options to create it:
Troubleshooting pace A: Fixing dark concealment amongst a cursor problem
Simply press CTRL + ALT + F1 in addition to login. Type the following
root@kali: # nvidia-xconfig
root@kali: # reboot
You should directly live able to log inwards using the GDM3 GUI.
Troubleshooting pace B: Delete xorg.conf file
Press CTRL + ALT + F1 in addition to login. Type the following
root@kali: # rm /etc/X11/xorg.conf
root@kali: # reboot
After reboot, y'all should live able to log inwards using the GDM3 GUI.
Troubleshooting pace C: take away NVIDIA Driver
Press CTRL + ALT + F1 in addition to login. Type the following
root@kali: # apt-get take away nvidia-kernel-dkms
root@kali: # reboot
After reboot, y'all should live able to log inwards using the GDM3 GUI.
Step 8: Influenza A virus subtype H5N1 proposed solution for dark screen
Douglas Riese was sort plenty to postal service this inwards the comment section. This mightiness live applicable to those who had dark concealment afterward next this guide.
Conclusion
This concludes my full general instructions on how to install proprietary NVIDIA driver – NVIDIA Accelerated Linux Graphics Driver Kali Linux 1.1.0 essence 3.18 ono.
NVIDIA Optimus users, usage the guide on Kali forums provided past times staticn0de.
(Guide) Installing Nvidia + Bumblebee + CUDA for Optimus enabled Laptops
But practice non mix-match these 2 guides. You volition interruption things in addition to cease upwards reinstalling.
For those curious minds, attempt installing nvidia-settings in addition to encounter how that goes. NVIDIA Settings volition take away NVIDIA Driver but I did create out to arrive operate amongst to a greater extent than or less tinkering. NVIDIA Settings presents y'all amongst a GUI X Config Window in addition to y'all tin encounter GPU Temperature in addition to to a greater extent than info.
For normal users, guide ends here. If y'all desire to run applications that uses NVIDIA Kernel Module CUDA, Pyrit in addition to Cpyrit for GPU processing in addition to then y'all volition also take to install CUDA drivers, supersede official Pyrit in addition to install Cpyrit. Find out if your Graphics Card supports CUDA inwards the next page from NVIDIA
Next guide volition present y'all how to Install NVIDIA Kernel Module CUDA in addition to Pyrit inwards Kali Linux – CUDA, pyrit in addition to cpyrit.(pending)
Thanks for reading. Please share.












I spent close a calendar week trying to install the nvidia driver. Every pace worked for me upwards until I generated the xorg file. Once I generated that, I would larn a dark concealment amongst a blinking cursor.
If anyone else is having that problem, hither is how y'all create it:
Before y'all practice the really rootage pace of this guide, larn into “apt-get take away –purge nouveau,” in addition to it should lastly work. The argue it wasn’t working is because nouveau is a bitch to disable, in addition to blacklisting nouveau inwards every way I could recollect of wasn’t working, thus I had to completely take away it. Then it worked :)
I promise the same industrial plant for others who read this :)