Installing Nvidia proprietary drivers on CentOS & RedHat

From The System Administrator Zone

This is copied from Petr’s blog about Linux to ensure it doesn't get lost. I followed his instructions on a CentOS 6.0 system, whose screen was highly unstable with the Noveau drivers, and it worked perfectly.

From Petr's blog

Sometimes you need to run Nvidia proprietary drivers in various linux distributions. I was able to run it on standard RHEL 6.0 installed as “Desktop” with the following commands:

Update the system and install the necessary packages

yum update
yum install gcc kernel-devel

Blacklist the nouveau driver

sed -i '/root=/s|$| rdblacklist=nouveau vga=791|' /boot/grub/grub.conf
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf

Change the initrd image:

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname  -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)

Remove the nouveau driver and reboot:

yum remove xorg-x11-drv-nouveau

Stop the X server and run the Nvidia installation process from command line

init 3
chmod +x

Enjoy :-)