Sunday, October 9, 2011

Install Nvidia drivers on CentOS 6 and RHEL 6

This little HOW-TO shows you how to disable nouveau and install the Nvidia drivers on the 64 bit version of CentOS 6 and Red Hat Enterprise Linux 6 (x86_64)

Add ELrepo repository and key
Open a terminal and become root
su - root
rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm

Install NVIDIA drivers and blacklist nouveau
Edit /etc/grub.conf and add nomodeset rdblacklist=nouveau at the end of the kernel line
su - root
echo "blacklist nouveau options nouveau modeset=0" > /etc/modprobe.d/blacklist-nouveau.conf
yum install kmod-nvidia
vi /etc/grub.conf
Add nomodeset rdblacklist=nouveau at the end of the kernel line
Restart your machine
Web Analytics