{"id":13014,"date":"2019-03-30T02:41:25","date_gmt":"2019-03-30T02:41:25","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=13014"},"modified":"2019-03-30T02:41:25","modified_gmt":"2019-03-30T02:41:25","slug":"install-nvidia-drivers-in-rhel-centos-fedora-and-debian-ubuntu-linux-mint","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/30\/install-nvidia-drivers-in-rhel-centos-fedora-and-debian-ubuntu-linux-mint\/","title":{"rendered":"Install NVIDIA Drivers in RHEL\/CentOS\/Fedora and Debian\/Ubuntu\/Linux Mint"},"content":{"rendered":"<p>During an interview, in Finland\u00a0<strong>Linus Torvalds<\/strong>\u00a0the man behind the exceptional idea of\u00a0<strong>Linux<\/strong>\u00a0and git source code management, gave his \u2018<strong>Middle Finger Salute<\/strong>\u2018 to\u00a0<strong>NVIDIA<\/strong>\u00a0in frustration with the support provided by the company for the Linux platform.<\/p>\n<p><strong>Torvalds<\/strong>\u00a0is depressed with the fact that\u00a0<strong>NVIDIA<\/strong>\u00a0is not supporting\u00a0<strong>Linux<\/strong>, enough. It gets even more worse with the truth that\u00a0<strong>NVIDIA<\/strong>\u00a0is getting hot with every passing day in\u00a0<strong>Android<\/strong>\u00a0based mobile handset market which literally means that\u00a0<strong>NVIDIA<\/strong>\u00a0is not supporting\u00a0<strong>Linux<\/strong>.<\/p>\n<div id=\"attachment_4099\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/install-nvidia-drivers-in-linux\/install-nvidia-driver-in-linux\/\" rel=\"attachment wp-att-4099\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4099\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/09\/Install-NVIDIA-Driver-in-Linux.png\" alt=\"Install NVIDIA Drivers in Linux\" width=\"350\" height=\"258\" aria-describedby=\"caption-attachment-4099\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-4099\" class=\"wp-caption-text\">Install NVIDIA Drivers in Linux<\/p>\n<\/div>\n<p>The outburst of anger and frustration was the result of the question asked by a\u00a0<strong>Linux<\/strong>\u00a0user. The question was \u2018<strong>Optimus<\/strong>\u2018 feature of\u00a0<strong>NVIDIA<\/strong>\u00a0which lets the user to switch\u00a0<strong>On<\/strong>\/<strong>Off<\/strong>\u00a0Graphics Processing Unit (<strong>GPU<\/strong>) to save power came late for\u00a0<strong>Linux<\/strong>, as compared to other Operating Systems.\u00a0<strong>NVIDIA<\/strong>\u00a0was very much clear when asked about this, and clearly stated that\u00a0<strong>NVIDIA<\/strong>\u00a0is not going to support\u00a0<strong>Linux<\/strong>\u00a0to the point,\u00a0<strong>Windows<\/strong>\u00a0and\u00a0<strong>Mac<\/strong>\u00a0would get.<\/p>\n<p>This issue of\u00a0<strong>NVIDIA<\/strong>\u00a0is not new and the users have been complaining for years regarding this. The\u00a0<strong>Advanced Micro Devices<\/strong>\u00a0(<strong>AMD<\/strong>) has tried to fill this with its own open source driver.\u00a0<strong>NVIDIA<\/strong>\u00a0refused to release\u00a0<strong>Open Source<\/strong>\u00a0driver saying that it can not make critical informations publicly available.<\/p>\n<p>On the other hand, the act of\u00a0<strong>Linus Torvalds<\/strong>\u00a0of 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.<\/p>\n<p>Most of the today\u2019s distro comes with an open source\u00a0<strong>NVIDIA<\/strong>\u00a0alternative called \u2018<strong>Nouveau<\/strong>\u2018.\u00a0<strong>Nouveau<\/strong>\u00a0render graphics perfectly, however it lacks\u00a0<strong>3D<\/strong>\u00a0support. Hence to Install Proprietary\u00a0<strong>NVIDIA<\/strong>\u00a0driver.\u00a0<strong>Nouveau<\/strong>\u00a0must be stopped from starting automatically, which we will be calling as blacklisting throughout the article.<\/p>\n<h3>Installation of NVIDIA Drivers in RHEL\/CentOS and Fedora<\/h3>\n<p>First, install needed \u201c<strong>Development<\/strong>\u201d packages using\u00a0<strong>YUM<\/strong>\u00a0command as shown.<\/p>\n<pre># yum groupinstall \"Development Tools\"\r\n# yum install kernel-devel kernel-headers dkms<\/pre>\n<p>Before installing\u00a0<strong>NVIDIA<\/strong>\u00a0drivers, you need to know your driver product type by using following command.<\/p>\n<pre># lspci -nn | grep VGA<\/pre>\n<h5>Sample Output<\/h5>\n<pre>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108GL [Quadro 600] [10de:0df8] (rev a1)<\/pre>\n<p>Once you know your driver name, then go to\u00a0<strong>NVIDIA<\/strong>\u00a0official website and download required drivers for your system. Download drivers using following link.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.nvidia.com\/Download\/index.aspx\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/www.nvidia.com\/Download\/index.aspx<\/a><\/li>\n<\/ol>\n<h5>Disable Nouveau Driver<\/h5>\n<p>open \u201c<strong>\/etc\/modprobe.d\/blacklist.conf<\/strong>\u201d in your favourite editor and add \u201c<strong>blacklist nouveau<\/strong>\u201d, ofcourse without double-quotes.<\/p>\n<pre>blacklist nouveau<\/pre>\n<p>Next create a new \u201c<strong>initramfs<\/strong>\u201d file and taking backup of existing.<\/p>\n<pre># mv \/boot\/initramfs-$(uname -r).img \/boot\/initramfs-$(uname -r).img.bak  \r\n# dracut -v \/boot\/initramfs-$(uname -r).img $(uname -r)<\/pre>\n<p><strong>Reboot<\/strong>\u00a0the machine. Login into command mode using\u00a0<strong>Alt+F4<\/strong>\u00a0\/\u00a0<strong>ALT+F5<\/strong>\u00a0as root.<\/p>\n<pre># reboot<\/pre>\n<p>Once you in command line mode, next go to the folder where you\u2019ve downloaded\u00a0<strong>NVIDIA<\/strong>\u00a0driver and run the script as show. If any dependency, you need to\u00a0<strong>Yum<\/strong>\u00a0the required packages.<\/p>\n<pre>.\/NVIDIA-Linux*.run<\/pre>\n<p>Once installation is complete, generate\u00a0<strong>xorg.conf<\/strong>\u00a0file using following command.<\/p>\n<pre># X -configure<\/pre>\n<p>Copy\u00a0<strong>xorg.conf.new<\/strong>\u00a0as\u00a0<strong>\/etc\/X11\/xorg.conf<\/strong>.<\/p>\n<pre># cp \/root\/xorg.conf.new \/etc\/X11\/xorg.conf<\/pre>\n<p>Now switch to\u00a0<strong>X Window<\/strong>\u00a0as\u00a0<strong>root<\/strong>\u00a0user by typing.<\/p>\n<pre># init 5<\/pre>\n<p>Launch\u00a0<strong>NVIDIA<\/strong>\u00a0configuration window and set the Resolution, manually, and at last click on\u00a0<strong>\u2018Save to X Configuration File<\/strong>\u2018 and quit. For reference, follow the screen shot added below.<\/p>\n<h3>Installation of NVIDIA Drivers Debian\/Ubuntu\/Linux Mint<\/h3>\n<p>First, check the information about your supported<strong>\u00a0Graphics Card<\/strong>\u00a0by issuing following command.<\/p>\n<pre># lspci -nn | grep VGA<\/pre>\n<h5>Sample Output<\/h5>\n<pre>01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF108GL [Quadro 600] [10de:0df8] (rev a1)<\/pre>\n<p>Next add a repository under \u201c<strong>\/etc\/apt\/sources.list<\/strong>\u201d file at the bottom. Save and close it.<\/p>\n<pre>deb http:\/\/ftp.debian.org\/debian\/ wheezy main contrib non-free<\/pre>\n<h5>Disable Nouveau Driver<\/h5>\n<p>Open \u201c<strong>\/etc\/modprobe.d\/blacklist.conf<\/strong>\u201d file and add the following line. Save and close the file.<\/p>\n<pre>blacklist nouveau<\/pre>\n<p>Next, do a system\u00a0<strong>update<\/strong>\u00a0and then install\u00a0<strong>NVIDIA<\/strong>\u00a0drivers and required\u00a0<strong>Kernel<\/strong>\u00a0packages using \u201c<strong>apt-get<\/strong>\u201d command.<\/p>\n<pre># apt-get update\r\n# apt-get install nvidia-kernel-dkms nvidia-glx nvidia-xconfig nvidia-settings \r\n# apt-get install nvidia-vdpau-driver vdpau-va-driver<\/pre>\n<p>Stop the\u00a0<strong>X<\/strong>\u00a0service (<strong>gdm3<\/strong>).<\/p>\n<pre># service gdm3 stop<\/pre>\n<p>Generate new\u00a0<strong>xorg.conf<\/strong>\u00a0file using following command.<\/p>\n<pre># X -configure<\/pre>\n<p>Copy\u00a0<strong>xorg.conf.new<\/strong>\u00a0as\u00a0<strong>\/etc\/X11\/xorg.conf<\/strong>.<\/p>\n<pre># cp \/root\/xorg.conf.new \/etc\/X11\/xorg.conf<\/pre>\n<p>Now switch to\u00a0<strong>X<\/strong>\u00a0Window as root user by typing.<\/p>\n<pre># startx<\/pre>\n<p>Open\u00a0<strong>NVIDIA<\/strong>\u00a0configuration wizard and set the Resolution, manually, and at last click on \u2018<strong>Save to X Configuration File<\/strong>\u2018 and quit.<\/p>\n<div id=\"attachment_4098\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/install-nvidia-drivers-in-linux\/nvidia-settings\/\" rel=\"attachment wp-att-4098\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-4098\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/09\/NVIDIA-Settings-620x350.jpg\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/09\/NVIDIA-Settings-620x350.jpg 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/09\/NVIDIA-Settings-1024x578.jpg 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2013\/09\/NVIDIA-Settings.jpg 1360w\" alt=\"Install NVIDIA Driver in Linux\" width=\"620\" height=\"350\" aria-describedby=\"caption-attachment-4098\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-4098\" class=\"wp-caption-text\">NVIDIA Driver Settings<\/p>\n<\/div>\n<p><strong>Congrats!<\/strong>\u00a0Your installation and configuration of\u00a0<strong>NVIDIA Graphics Driver<\/strong>\u00a0is complete.<\/p>\n<p>That\u2019s all for now, If you gets stuck at a place during installation and could not fix it yourself, you can always ask for guidance in comment section. Do a favor for us by sharing the article.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/install-nvidia-drivers-in-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During an interview, in Finland\u00a0Linus Torvalds\u00a0the man behind the exceptional idea of\u00a0Linux\u00a0and git source code management, gave his \u2018Middle Finger Salute\u2018 to\u00a0NVIDIA\u00a0in frustration with the support provided by the company for the Linux platform. Torvalds\u00a0is depressed with the fact that\u00a0NVIDIA\u00a0is not supporting\u00a0Linux, enough. It gets even more worse with the truth that\u00a0NVIDIA\u00a0is getting hot with &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/30\/install-nvidia-drivers-in-rhel-centos-fedora-and-debian-ubuntu-linux-mint\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install NVIDIA Drivers in RHEL\/CentOS\/Fedora and Debian\/Ubuntu\/Linux Mint&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-13014","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=13014"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13014\/revisions"}],"predecessor-version":[{"id":13015,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/13014\/revisions\/13015"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=13014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=13014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=13014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}