How to Get Proprietary Nvidia Drivers Working in Fedora 16

As I’ve been slutting around trying out different distributions, I’m finding myself back in Fedora 16 tonight. Earlier I encountered a problem switching to the nvidia proprietary drivers for X in Fedora 16. It kept wanting to use the nouveau drivers instead.

I got it working by following these instructions, but I ignored their instructions on modifying the selinux configuration. I ignored it because, after researching the tickets related to the nvidia drivers in Fedora 16, selinux rpms have been recently patched, so you don’t need to do the modifications that site mentions.

So in the interest of convenience for whomever might wander by here, here is what I did to get the nvidia drivers working in Fedora 16 (be sure to run a software update first, to be sure you’re all current). Of course, be root for this. And rpmfusion is apparently an archive where Fedora places all its unsavory proprietary stuff, like nvidia. They don’t support it though. But they do. No, they don’t. (wink, wink)

Hook up with the rpmfusion repositories:

rpm -Uvh
rpm -Uvh

Install auto-rebuilding nvidia kernel modules:

yum install akmod-nvidia xorg-x11-drv-nvidia-libs

Move your old booty initramfs out of the way and make a new one without the pesky nouveau modules:

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