Life of a Geek Admin

The Daily adventures of a true geek administrator

Life of a Geek Admin - The Daily adventures of a true geek administrator

How to install NIVIDIA drivers on Fedora 17

Recently i felt the need to upgrade the video card to an NVIDIA GT610 on my Fedora 17 system and with that thought installing the proprietary drivers might be a good idea. Lucky for me rpmfusion provides the drivers I am looking for installation.

First step is to make sure your are at the latest kernel, so run

$ sudo yum update kernel\* selinux-policy\*

and reboot after completed.

Second step is to make sure rpmfusion repository is on your system which it should be if you followed any other posts, but if not then run.

$ sudo yum --nogpgcheck install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

Third step is to make sure you card is on the supported list here.

Fourth step is to install the drivers, now I am currently running x64 version of Fedora so the syntax is

sudo yum install akmod-nvidia xorg-x11-drv-nvidia-libs.x86_64

For 32 bit:

sudo yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i686

For PAE enabled kernel

$ sudo yum install kmod-nvidia-PAE

Fifth step is to remove Open Source driver (nouveau)

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

Final step is to reboot and enjoy the NVIDIA driver!

 

Installing NVIDIA Drivers Fedora 14

Recently I was rebuilding a system with Fedora 14 which has an Nvidia GeForce 9500 GT chipset and ran into an issue in which the nouveau driver supplied by the distribution could not support some of the features I was needing. With a bit of digging in multiple places I was able to find pieces to accomplish the task at hand.

In this post I will attempt to show the process I used to get Fedora 14 to use the latest Nvidia drivers (280.13) and or RPMFusion to install on the system.

Using Nividia Driver
1. Download nvidia linux driver

http://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/XFree86/Linux-x86/280.13/NVIDIA-Linux-x86-280.13.run

2. Next, edit /etc/inittab and change runlevel to 3 and save the file.
$ sudo vi /etc/inittab
3. Edit /boot/grub/grub.conf and add “rdblacklist=nouveau” to the end of the kernel line, this will stop the system from loading nouveau driver. save and reboot.

4. System restarts, log in as root, go to your download folder where you downloaded Nvidia driver and install GCC and kernel-devel*
$ sudo yum -y install gcc kernel-devel*

5. Run nvidia installer.
$ sudo sh ./NVIDIA-Linux-x86_64-260.19.12.run

If you get an error you may need to change the

if everything goes ok, edit /etc/inittab runlevel to 5 (X11) , save and reboot. Remember doing this is NOT advisable, it will break your fedora installation and you may need to reinstall your fedora in order to use a stable nvidia driver from fedora/rpmfusion..

Using RPMFusion
1. Add this to the end of the kernel line (without quotes) in /etc/grub.conf ->
“rdblacklist=nouveau vga=0×318″

2. Download and install rpmfusion repository RPM’s for free and non-free to your system.
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm

http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

3. Update yum repository.
$ sudo yum update

4. For 64bit Users,
sudo yum install kmod-nvidia xorg-x11-drv-nvidia-libs.i686 xorg-x11-drv-nvidia-libs.x86_64

5. For 32bit Users
sudo yum install kmod-nvidia

For 32bit Users using the PAE kernel,
sudo yum install kmod-nvidia-PAE

Installing NVIDIA drivers on CentOS 5.5

After you have installed CentOS, you see that your Desktop is running quite a bit slower than you expected, resolution is 800×600 and a bit jerky. What is needed is to install the drivers for your graphics card.

CentOS does not have these drivers available in its default yum repository, so you will first need to add a repository to make the drivers available for installation.

First, you will need to update your CentOS distribution, to do this simply type the following into your console/terminal:
# su -c 'yum update'
Enter your root password and follow the prompts that follow to complete the update.
Next we need to install the RPMForge repository so that we can download and install the NVIDIA display drivers. The repository comes in two flavors, namely 64-bit and 32-bit. Make sure you select the correct repository to install. When in doubt, select 32-bit.

For 32-bit installations
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
# su -c 'rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm'

For 64-bit installations
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
# su -c 'rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm'

Once the repository has been installed, we can finally install the NVIDIA display driver. To do this simply enter the following into your terminal/console:
For 32-bit installations
# su -c 'yum install dkms-nvidia-x11-drv.i386'

For 64-bit installations
# su -c 'yum install dkms-nvidia-x11-drv.x86_64'

Once the drivers have been installed, you need to fix xorg configuration
# su -
# nvidia-xconfig

Now you can reboot your machine. If you would like to customize your settings after you have rebooted, you can do so by using the NVIDIA settings applications. To open the application you can simply type the following into a console/terminal:
# su -c 'nvidia-settings'

Enter your root password, a dialog will appear where you can customize your display settings. If you change anything, please remember to click the SAVE Configuration button.

Switch to our mobile site