Facebook Twitter Gplus RSS
 
 
Home » CentOS 5.5 Tutorials » Installing NVIDIA display drivers on CentOS 5.5
formats

Installing NVIDIA display drivers on CentOS 5.5

Published on June 1st, 2010

After you have installed CentOS, you see that your Desktop is running quite a bit slower than you expected, everything is jerky and your pretty ticked off at this point in time. What you need is not a psychiatrist, but to install the drivers for your graphics card. This will solve the jerky issues you are having and save you some frustration. This post will show you how to install the NVIDIA drivers on CentOS.

CentOS does not have these drivers available in its default yum repository, so you will first need to add a repository to make the drivers available for installation.

Firstly you will need to update your CentOS distribution, to do this simply type the following into your console/terminal:

# su -c ‘yum update’

Enter your root password and follow the prompts that follow to complete the update.

Next we need to install the RPMForge repository so that we can download and install the NVIDIA display drivers. The repository comes in two flavors, namely 64-bit and 32-bit. Make sure you select the correct repository to install. When in doubt, select 32-bit.

For 32-bit installations (i.e. CentOS 5.x 32-bit installed):

# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# su -c ‘rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm’

Enter your root password to complete the installation.

For 64-bit installations (i.e. CentOS 5.x 64-bit installed):

# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
# su -c ‘rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm’

Enter your root password to complete the installation.

Once the repository has been installed, we can finally install the NVIDIA display driver. To do this simply enter the following into your terminal/console:

For 32-bit installations (i.e. CentOS 5.x 32-bit installed):

# su -c ‘yum install dkms-nvidia-x11-drv.i386′

Enter your root password and follow the prompts that follow.

For 64-bit installations (i.e. CentOS 5.x 64-bit installed):

# su -c ‘yum install dkms-nvidia-x11-drv.x86_64′

Enter your root password and follow the prompts that follow.

Once the drivers have been installed, you can reboot your machine and experience CentOS without the jerky after effects. If you would like to customize your settings after you have rebooted, you can do so by using the NVIDIA settings applications. To open the application you can simply type the following into a console/terminal:

# su -c ‘nvidia-settings’

Enter your root password, a dialog will appear where you can customize your display settings. If you change anything, please remember to click the SAVE Configuration button.

If you get the following error “You do not appear to be using the NVIDIA X driver…..”, then you have not rebooted your machine, so do so now to enjoy the benefits of your NVIDIA display. If you are experiencing any problems, then please post a reply and I will help you sort it out.

Thanks for taking the time to read this post. Please share it with your friends.

 
  • http://elrepo.org Phil Perry

    The dkms driver at rpmforge is now deprecated in favour of a kmod driver maintained at elrepo.org:

    http://elrepo.org/
    http://elrepo.org/tiki/kmod-nvidia

    The latest version is kmod-nvidia-195.36.24-1.el5.elrepo

  • Scraggy The Cat

    Thanks – this post certainly got me started.

  • Ludovic23

    Ran the commands:

    rpm -Uvh http://elrepo.org/elrepo-release-0.1-1.el5.elre…
    rpm –import http://elrepo.org/RPM-GPG-KEY-elrepo.org (external link)

    yum –disablerepo=* –enablerepo=elrepo install kmod-nvidia-PAE

    logged out to go to command line (XServer is not working here)

    ran the commands:
    nvidia-xconfig
    nvidia-settings

  • Ahmed Arafaa

    hello , sorry i can’t speak english very well
    i need a help please and im beginer in linux
    my problem is
    when i tybe this command
    su -c ‘yum install dkms-nvidia-x11-drv.i386′

    my output is
    [root@SOURCES Arafa]# yum install dkms-nvidia-x11-drv.i386
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: http://ftp.dgn.net.tr
    * extras: http://ftp.dgn.net.tr
    * rpmforge: fr2.rpmfind.net
    * updates: http://ftp.dgn.net.tr
    Setting up Install Process
    No package dkms-nvidia-x11-drv.i386 available.
    Nothing to do

    what can i do

  • http://carrytheone.com.au/ Pete Royle

    Follow Phil Perry’s comment below

© [How2CentOS]
credit