Install NVIDIA Drivers in RHEL/CentOS/Fedora and Debian/Ubuntu/Linux Mint

Download all articles in PDF format with our TecMint Content Subscription and Linux Support Services starting at $10 per month.

Support TecMint: Did you find this tutorial helpful?. Please help to keep it alive by donating. Every cent counts! - Donate Now

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Introduction to Linux - A Hands on Guide

You may also like...

53 Responses

  1. Rod says:

    I had same problem with my Thinkpad T520. But instead of hacking away at kernel I did something more simple. First off I am using Centos7 I installed base system all worked fine. I then added GNOME GUI later which is when I started getting the problems mentioned above.

    I notice that a lot of manufacturers set up for Windows installs. The graphics card is setup usually for Win7 (NVIDIA OPTIMUS) I reset it to integrated graphics mode and no more hanging/errors.

    How to do it? Reboot your Thinkpad hit F1 or blue thinkvantage button to get into BIOS. Go to graphics select integrated graphics then F10 to save and exit. There are 3 setting for this card: Integrated,Discrete and NVIDIA OPTIMUS(Win7 only?)

    Hope this saves someone some time?

  2. Cicero says:

    Thank you, man! Your tutorial is very good and helped me a lot.

  3. Arash Tarafar says:

    I followed the guide to the point which I generate the X configuration file:

    Me: X -configure
    Linux: Number of created screens does not match number of detected devices.

    Looks like its a famous error – maybe because I have Nvidia Optimus selection locked in boot?!
    What do you think is the problem? Do you know any solutions?

    Thanks for the reply in advance!

  4. Arash Tarafar says:

    Hi!

    Most people say don’t disable Nouveau driver after installing Nvidia or the X-interface won’t come up.

    I haven’t tried this method yet (I have Bumblebee installed, but want to completely disable the Intel GPU)…

    Do you recommend it to me?

  5. Paul says:

    Hi
    Fedora 20 X64 with Fedora tools, i tried to install the development tools but there are no sources to install them. wtf?

    • Arash Tarafar says:

      You have to add the repositories.

      You can:

      Search the internet for say Java Development Tools and from the tutorials execute only the lines that add the repos.

      OR

      Install Yumex (Yum Extender – Has a GUI) and in Yumex check “Development Tools” and apply the changes.

  6. Slava says:

    Need some assist from you please. I’ve done all the steps, but when i start nvidia x server settings this pops up: “You do not appear to be using the NVIDIA X driver”. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server” . If i start nvidia-xconfig it creates config file but system never boots up saying “fatal error no screens found”. My laptop is lenovo y580 hd4000 + gtx660m + debian wheezy 7.6.0 , maybe this is due to the optimus? But in ubuntu 14.04 in additional drivers it installs and works out of the box. What could be the problem? Please, advise.

    • Slava says:

      “Debian 7.5 lenovo y580 nvidia optimus. I didn’t everthing as it is said and the system desn’t see nvidia it log in with gnome classic. I got an error while runing this command X -cinfigure. At the end it said “number of created screens does not match numer of detected devices. Configuration faild.” Any ideas? The second day I’m trying to install nvidia graphic card and nothing works (tried with bumblebee without success).”

      Same story! I can not understand, if this problem due to optimus, why everything works in ubuntu with proprietary driver as a result it’s possible to choose between intel and nvidia graphics without any optimus, but in debian it it said “Configuration

      As the nvidia driver is not autodetected by Xorg, a configuration file is required to be supplied. For example:

      /etc/X11/xorg.conf.d/20-nvidia.conf

      Section “Device”
      Identifier “My GPU”
      Driver “nvidia”
      EndSection

      Please note that this configuration will break Xorg on Optimus systems. For such hardware, see Bumblebee instead.”

  7. Ichad says:

    Hellooo .. how to install nvidia geforce gt 635m on oracle linux ? my laptop asus k55v, im a noob in linux .. could you guys help me ? pls

  8. LT says:

    Debian 7.5 lenovo y580 nvidia optimus. I didn’t everthing as it is said and the system desn’t see nvidia it log in with gnome classic. I got an error while runing this command X -cinfigure. At the end it said “number of created screens does not match numer of detected devices. Configuration faild.” Any ideas? The second day I’m trying to install nvidia graphic card and nothing works (tried with bumblebee without success).

  9. Wille says:

    It works, thanks! Few tips on RHEL 6.5 & Lenovo W520 (NVIDIA GF108GLM Quadro 1000M):
    – On BIOS set video mode to Discrete
    – Add kernel parameter noapic to prevent hang on boot when video mode is set to Discrete

  10. Lee says:

    Hi,

    Thankyou for writing this guide. I am new to Linux and I also folowed an other guide of you to install Mint the Dual Boot way.

    I followed every step, but I used service stop mdm. There was no gdm3. Now I can only run Mint in this safe mode.

    Is there any change I can change it back?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 95000+ Linux Users
  1. 77,543
  2. 4,213
  3. 35,218

Enter your email to get latest Linux Howto's