Centos 6: Difference between revisions

From Cheatsheet
Jump to navigation Jump to search
m moved Cento 6 to Centos 6
m 3 revisions
 
(No difference)

Latest revision as of 23:51, 23 October 2014

How to install Nvidia drivers in centos 6.

First disable nouveau, switch to root.

su -
echo "blacklist nouveau options nouveau modeset=0" > /etc/modprobe.d/disable-nouveau.conf
vim /etc/grub.conf

Remove the quiet if you like to watch your system load everything, and add the following to the end of your current kernel.

rdblacklist=nouveau

So

kernel /vmlinuz-2.6.32-71.14.1.el6.x86_64 ro root=UUID=209502fb-f4f0-4755-a275-de807916fb76 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=128M rhgb

Would become

kernel /vmlinuz-2.6.32-71.14.1.el6.x86_64 ro root=UUID=209502fb-f4f0-4755-a275-de807916fb76 rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=128M rhgb rdblacklist=nouveau

Reboot your machine.


Now open another terminal as root and add the following.

yum install gcc-c++ kernel-devel
yum update kernel*
yum update

Now once this has completed (after you have downloaded your nvidia drive from here Nvidia Driver page) run "init 3" as root to shut down X.

navigate to /home/user/Downloads after you login, and run your driver package as follows. (correct the name to your package however.)

sh nvidia-x86_64-260.19.44.run

Finish installing it and run init 5 to restart X.