Difference between revisions of "Installing Nvidia proprietary drivers on CentOS & RedHat"

From The System Administrator Zone
(New page: Category:CentOS This is copied from [http://linux.xvx.cz/2011/01/nvidia-proprietary-drivers-and-rhel6/ Petr’s blog about Linux] to ensure it doesn't get lost. I followed his instruc...)
(No difference)

Revision as of 11:10, 29 October 2011

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
reboot

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
reboot

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

init 3
chmod +x NVIDIA-Linux-x86-260.19.29.run
 ./NVIDIA-Linux-x86-260.19.29.run

Enjoy :-)