2011年3月 linux fedora13安装9600gt nvdia驱动

来源:互联网 发布:黑客牛还是程序员厉害 编辑:程序博客网 时间:2024/05/01 12:30
Software ElementMin RequirementCheck With...Linux kernel2.4.7cat/proc/versionXFree86/X.Org4.0.1/6.7XFree86 -version/Xorg-versionKernel modutils2.1.121insmod--version

If you need to build the NVIDIA kernel module:

Software ElementMin RequirementCheck With...binutils2.9.5size--versionGNU make3.77make--versiongcc2.91.66gcc--versionglibc2.0

ls/lib/libc.so.* > 6

上面是官网的依赖关系,另外的内核开发工具如下:

 

 

 

官网如下说明:意思是

内核包(kernel-PAE-...或者kernel-...包)

+devel开发包(kernel-PAE-devel-...包或者kernel-PAE-devel-...包)

 

根据自己的需求安装devel包,比如uname -r查看你当前内核版本,请注意,2个包版本必须一致


How do I tell if I have my kernel sources installed?


If you are running on a distro that uses RPM (Red Hat, Mandriva,SuSE, etc), then you can use rpm to tell you. At a shell prompt,type:

    % rpm -qa | grep kernel











and look at the output. You should see a package thatcorresponds to your kernel (often named something likekernel-2.6.15-7) and a kernel source package with the same version(often named something like kernel-devel-2.6.15-7 orkernel-source-2.4.18-3). If none of the lines seem to correspond toa source package, then you will probably need to install it. If theversions listed mismatch (e.g., kernel-2.6.15-7 vs.kernel-devel-2.6.15-10), then you will need to update thekernel-devel package to match the installed kernel. If you havemultiple kernels installed, you need to install the kernel-develpackage that corresponds to your running kernel (or make sure yourinstalled source package matches the running kernel). You can dothis by looking at the output of uname -r and matching versions.

(1)编辑 /etc/modprobe.d/blacklist.conf 文件
blacklist nvidiafb前面加#号注释掉
文件末添加blacklist nouveau
修改内核默认驱动加载

(2)也是阻止加载默认驱动

/boot/grub/grub.conf
添加rdblacklist=nouveau vga=792

每一行含有kernel的最后面  空格  添加这一句

(3)按 ESC 键进入 GRUB 界面,在选择内核,按 e 键进行编辑,在第二行 kernel 行未添加 3 这个参数。  意思是空格 + 3(加号不算),就是内核启动级别为3

 

这样子就能够避免内核自动加载(图形界面也能够启动驱动,但是不是内核级别的,这个我不懂,英文不行,modprobe -r nouveau卸载)

 

这样就安装基础搞定了: 系统包,工具包如上。可以重启开始安装

(4)一切顺利的话就ok,按shell提示,驱动是通过shell安装的

 

(5)可能出现的问题: security 问题,网上有人说,我照做了,官网确没说#### setsebool -P allow_execstack on

官网建议不要修改blacklist.conf 文件,而是新建立*.conf文件,然后添加

blacklist nouveau
options nouveau modeset=0

便于管理

 

内核开发包:head那个包可能需要,不过估计不存在版本问题,我的电脑就是这样成功了

 

fedora3D效果还不错 ctrl + alt + 鼠标  听说susu(忘记了)那个系统效果更号