Installation of NVIDIA driver on Fedora 13

Phân loại:

The official driver from http://www.nvidia.com for my Geforece 310M (on Acer Aspire 5745g laptop running Fedora Core 13 x86_64) does not work:

- X Windows does not work

- Opening /dev/nvidia0 brings error "Input/output error".

Trying another way: Unofficial Nvidia driver. Be sure to remove the official Nvidia driver before running step 1.

Step 1: Running the following command: rpm -Uvh http://rpm.livna.org/livna-release.rpm http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Step 2: yum install kmod-nvidia

Step 3: Rebuild your kernel configuration (otherwise it may try to load a conflicting driver during boot): new-kernel-pkg --mkinitrd --dracut --update $(rpm -q --queryformat="%{version}-%{release}.%{arch}\n" kernel | tail -n 1)

Step 4: reboot

After step 4, if the X windows still does not work, let's check nouveau kernel:

lsmod|grep nouveau

if the above command print out something then your kernel support nouveau. In order to keep compatibility with nouveau, you either need to recreate the initrd manually after the driver has been installed, or add a command line option to the kernel. Fore Fedora 13, to recreate the initrd:

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

To use the default initrd, but disable the nouveau driver, edit /etc/grub.conf and add the following to the end of the line(s) starting with 'kernel':

  rdblacklist=nouveau nomodeset

Before using the driver, you need to lower your system protection so SElinux doesn't prevent the driver to load.

setsebool -P allow_execstack on