Table of Contents

Configuring a NVIDIA graphics chip for CentOS and RHEL 5

Author(s)

Bill Giannikos (Home Page)

Introduction

This guide will help you configure the proprietary nvidia module under CentOS and Red Hat Enterprise Linux 5. For those that don't know, CentOS 5 and Red Hat Enterprise Linux 5 are basically the same thing just with a different name so this guide applies to both. I will not be covering the open source nv module included with Xorg because its configuration is normally handled automatically by most Linux distributions.

Licensing Issues

NVIDIA provide their own license for their driver. You will need to read and accept this license before proceeding. You can read this license here.

Notes

We will be using 'nano' as our text editor of choice but you can use whatever you wish.

While this guide is mainly focused to laptop users there isn't any difference for desktop users.

Prerequisites

You should run a full update for your installation to ensure you have all the latest packages installed.

Installing the NVIDIA driver

The nvidia driver is not included with CentOS/RHEL 5 so we will need to use a 3rd party repository. Here we will be using the ATrpms repository.


1. Load up a terminal window if you are in the graphic interface.

2. Switch to the root user by entering the command “su -” (without the quotes) and typing in your root password

3. Edit the file /etc/yum.conf. Using nano we type the command “nano -w /etc/yum.conf”

4. If you have already configured yum to use the ATrpms repository then append “*nvidia-graphics*” to the end of the “includepkgs” line and skip the next setup. Otherwise continue on.

5. Add the following to the bottom of this file:

[atrpms]
name=EL $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
enabled=1
exclude=*kmdl*i586*
includepkgs=*nvidia-graphics*

6. Save the file. In nano you press Ctrl-X, answer yes to the “Save modified buffer” question and then press enter on the file name to write.

7. If you have not previously setup ATrpms execute the following command:

rpm --import http://ATrpms.net/RPM-GPG-KEY.atrpms

8. Now execute the following command:

yum install nvidia-graphics169.07 nvidia-graphics169.07-kmdl-`uname -r`

9. Reboot your system and you will be using the nvidia driver.

Troubleshooting

Normally after installing the nvidia driver with the steps above your xorg.conf file should have automatically been updates to use the newer driver. If this did not happen or for some reason it has reverted then, as root, enter the following command:

nvidia-xconfig


This will switch you back to the nvidia driver.





Discussion

Rajesh Roshan, Sunday 04 of April, 2010 [15:27:11]

my graphic mode is not supported in rhel 5 but supported in rhel3 what i do?

Alexander, Sunday 28 of February, 2010 [15:13:08]

Centos + Nvidia
http://frit.su/index.php/CentOS%2BNvidia

mithun, Monday 03 of August, 2009 [21:01:06]

I followed these instructions step by step but they did not work. When I start x, I get a message that says the nvidia kernel module cannot be found. When I type in “modprobe nvidia”, I get the following:

FATAL: Module nvidia_185_18_31 not found.

Any help is appreciated.

linux geek, Friday 15 of January, 2010 [05:51:26]

the install will install a non PAE aware kernel, in your grub startup, you probably have to pick the non PAE one.

Wow, Saturday 07 of March, 2009 [18:32:28]

nVidia drivers are for nvidia.com, fglrx is for amd.com, and intels usually come installed by default.. there is NO nvidia for “entel” -_- I don't think he should be using Linux at all.

kamlesh, Friday 06 of February, 2009 [13:25:36]

Hai I want Nvidia For my entel 945GCNL .

Enter your comment
WVWKH
 
configuring+a+nvidia+graphics+chip+for+centos+and+rhel+5.txt · Last modified: Saturday 19 of September, 2009 [07:52:23] by billg
Contact Us Sister Sites Privacy Policy Terms of Use
Copyright © 2006-2010 Linwik.com and other authors