Dec 08, 2016 [left][color='orange']i have exhausted all attempts and the installation fails I want the right way to define the graphics card Note: I use Kali Linux system platform Default I'm trying to install proprietary nvidia graphics driver I downloaded from nvidia website.
During an interview, in Finland Linus Torvalds the man behind the exceptional idea of Linux and git source code management, gave his ‘ Middle Finger Salute‘ to NVIDIA in frustration with the support provided by the company for the Linux platform. Torvalds is depressed with the fact that NVIDIA is not supporting Linux, enough. It gets even more worse with the truth that NVIDIA is getting hot with every passing day in Android based mobile handset market which literally means that NVIDIA is not supporting Linux. Install NVIDIA Drivers in Linux The outburst of anger and frustration was the result of the question asked by a Linux user. The question was ‘ Optimus‘ feature of NVIDIA which lets the user to switch On/ Off Graphics Processing Unit ( GPU) to save power came late for Linux, as compared to other Operating Systems. NVIDIA was very much clear when asked about this, and clearly stated that NVIDIA is not going to support Linux to the point, Windows and Mac would get.
This issue of NVIDIA is not new and the users have been complaining for years regarding this. The Advanced Micro Devices ( AMD) has tried to fill this with its own open source driver.
NVIDIA refused to release Open Source driver saying that it can not make critical informations publicly available. On the other hand, the act of Linus Torvalds of showing middle finger on camera was criticized, some said that it does not suit an intellectual like him, other said it was not professional at all, while some said that even Torvalds is a human and it was just an outburst. Most of the today’s distro comes with an open source NVIDIA alternative called ‘ Nouveau‘. Nouveau render graphics perfectly, however it lacks 3D support. Hence to Install Proprietary NVIDIA driver. Nouveau must be stopped from starting automatically, which we will be calling as blacklisting throughout the article.
Installation of NVIDIA Drivers in RHEL/CentOS and Fedora First, install needed “ Development” packages using YUM command as shown. # yum groupinstall 'Development Tools' # yum install kernel-devel kernel-headers dkms Before installing NVIDIA drivers, you need to know your driver product type by using following command.
# lspci -nn grep VGA Sample Output 01:00.0 VGA compatible controller 0300: NVIDIA Corporation GF108GL Quadro 600 10de:0df8 (rev a1) Once you know your driver name, then go to NVIDIA official website and download required drivers for your system. Download drivers using following link. Disable Nouveau Driver open “ /etc/modprobe.d/blacklist.conf” in your favourite editor and add “ blacklist nouveau”, ofcourse without double-quotes. Blacklist nouveau Next create a new “ initramfs” file and taking backup of existing. # mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak # dracut -v /boot/initramfs-$(uname -r).img $(uname -r) Reboot the machine. Login into command mode using Alt+F4 / ALT+F5 as root. # reboot Once you in command line mode, next go to the folder where you’ve downloaded NVIDIA driver and run the script as show.
![Install nvidia driver disable nouveau Install nvidia driver disable nouveau](/uploads/1/2/5/3/125391520/954433333.jpg)
If any dependency, you need to Yum the required packages./NVIDIA-Linux.run Once installation is complete, generate xorg.conf file using following command. # X -configure Copy xorg.conf.new as /etc/X11/xorg.conf. # cp /root/xorg.conf.new /etc/X11/xorg.conf Now switch to X Window as root user by typing. # init 5 Launch NVIDIA configuration window and set the Resolution, manually, and at last click on ‘Save to X Configuration File‘ and quit.
For reference, follow the screen shot added below. Installation of NVIDIA Drivers Debian/Ubuntu/Linux Mint First, check the information about your supported Graphics Card by issuing following command. # lspci -nn grep VGA Sample Output 01:00.0 VGA compatible controller 0300: NVIDIA Corporation GF108GL Quadro 600 10de:0df8 (rev a1) Next add a repository under “ /etc/apt/sources.list” file at the bottom. Save and close it. Deb wheezy main contrib non-free Disable Nouveau Driver Open “ /etc/modprobe.d/blacklist.conf” file and add the following line. Save and close the file. Blacklist nouveau Next, do a system update and then install NVIDIA drivers and required Kernel packages using “ apt-get” command.
# apt-get update # apt-get install nvidia-kernel-dkms nvidia-glx nvidia-xconfig nvidia-settings # apt-get install nvidia-vdpau-driver vdpau-va-driver Stop the X service ( gdm3). # service gdm3 stop Generate new xorg.conf file using following command. # X -configure Copy xorg.conf.new as /etc/X11/xorg.conf. # cp /root/xorg.conf.new /etc/X11/xorg.conf Now switch to X Window as root user by typing. # startx Open NVIDIA configuration wizard and set the Resolution, manually, and at last click on ‘ Save to X Configuration File‘ and quit.
I recently updated Kali rolling to 2017.1 and fetched the latest kernel headers from the repo however after the upgrade I noticed that everything was fine except for Nvidia drivers not working(e.g. Gpu not detected in hashcat). So I went ahead did some research on the matter and it turns out that Nvidia drivers don't work with newer Linux kernels(due to Realtime Preemption patches). So I decided to recompile the Linux kernel that I was on (version 4.9.25) from source and with success I managed to get the latest Nvidia drivers working, however I'm faced with one issue. I get the 'oh no something has gone wrong' error with every boot. How do I get my login screen back?