Build and install kmod-nvidia
From Shrubbery
- Building and installing kmod-nvidia using the NVidia installation script on FC6
[edit] Preparation
Make sure you have the correct kernel and kernel-devel. On some machines, the FC6 version of yum will install the wrong architecture (e.g. i586 instead of i686). Check this using the following commands:
# yum list kernel
or
# rpm -qa --qf '%{name}\t%{arch}\n' 'kernel*'
kernel i686
kernel-devel i686
kernel-headers i386
The kernel and kernel-devel packages should have the same architecture. If they don't (e.g. kernel-devel is i586 and kernel is i686), then remove and install the packages:
# yum remove kernel-devel # yum install kernel-devel
[edit] Download and build
Downloading is easy, just go to http://www.nvidia.com and download the right version of the driver.
Shut down X as root:
# telinit 3
Before running the installer, make sure you uninstall kmod-nvidia. Otherwise the installer won't be able to use the hardware:
# yum remove kmod-nvidia
As root, make the NVIDIA-Linux...run file executable, then run it. For example:
# chmod +x NVIDIA-Linux-x86-100.14.11-pkg1.run # ./NVIDIA-Linux-x86-100.14.11-pkg1.run
If the installer complains about sources not being available, you should check if you have kernel-devel installed. If you don't, install it with:
# yum install kernel-devel
You may need to give the installer a hint as to where to look for the sources if it can't seem to find them. To do this, launch the installer with the --kernel-source-path ...path... command line option. For example:
# ./NVIDIA-Linux-x86-100.14.11-pkg1.run --kernel-source-path /usr/src/kernels/2.6.20-1.2962.fc6-i586

