LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2182|回复: 1

How to install Nvidia Driver for Fedora 7

[复制链接]
发表于 2007-6-2 21:19:41 | 显示全部楼层 |阅读模式
Install Nvidia Driver
31 May 2007

Fedora recommends users install a 3rd-party RPM packaged driver instead of using the installer from Nvidia's website. Currently Livna provides a well packaged driver.

For yum only:

First, setup Livna Repository

[mirandam@charon ~]$ sudo rpm -ivh http://rpm.livna.org/livna-release-7.rpm
[mirandam@charon ~]$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna

Install the nvidia driver through Livna:

[mirandam@charon ~]$ sudo yum install kmod-nvidia

If a kernel update is installed at the same time, then a reboot will be required. If not, then simply log out completely of Gnome or KDE and the Nvidia driver should load. The Nvidia logo will flash quickly once.

For users without yum

Download the http://rpm.livna.org/livna-release-7.rpm RPM and run:

[mirandam@charon ~]$ sudo rpm -ivh livna-release-7.rpm
[mirandam@charon ~]$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-livna

Navigate to http://rpm.livna.org/fedora/7/ and select your architecture: i386, x86_64 or ppc. You will need 3 components: xorg driver, nvidia kernel module and a livna display configuration utility.

For xorg driver, select the one matching the latest Nvidia driver (1.0.9755). For example:
xorg-x11-drv-nvidia-1.0.9755-2.lvn7.i386.rpm.

For nvidia kernel driver you MUST MATCH YOUR KERNEL. Use the uname command for the proper match. For example:

[mirandam@charon ~]$ uname -rm
2.6.21-1.3194.fc7 i686

Selected: kmod-nvidia-1.0.9755-3.2.6.21_1.3194.fc7.i686.rpm

The display configuration utility should be named livna-config-display (example: livna-config-display-0.0.11-1.lvn7.noarch.rpm).

Install all files at the same time:

[mirandam@charon downloads]$ sudo rpm -ivh kmod-nvidia-1.0.9755-3.2.6.21_1.3194.fc7.i686.rpm \
xorg-x11-drv-nvidia-1.0.9755-2.lvn7.i386.rpm \
livna-config-display-0.0.11-1.lvn7.noarch.rpm
Preparing...                ########################################### [100%]
   1:livna-config-display   ########################################### [ 33%]
   2:kmod-nvidia            ########################################### [ 67%]
   3:xorg-x11-drv-nvidia    ########################################### [100%]

If you had a previous version of these files before, remove them first with rpm -e.

If you cannot find a perfect match you may will have to update to a kernel that matches from Fedora 7 Updates.

NOTE: SELinux Problems SELinux seems to prevent the Nvidia Driver from properly loading after a reboot. I am uncertain of the correct fix. The following is a TEMPORARY fix until the correct solution is presented:

[mirandam@charon ~]$ sudo /usr/bin/chcon -cv system_ubject_r:xserver_misc_device_t /etc/udev/devices/nvidia*

Top Resources
发表于 2007-6-2 22:10:36 | 显示全部楼层
我从fc6升上来一开始也是无法加载nvidia驱动,但后来又装上了seedit包后,让它自动设置了一下selinux,就好了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表