CentOS 5.3下 Nvidia显卡驱动的安装


1、我的显卡型号是Nvidia Geforce 6100 ,在官网 下载的驱动是 NVIDIA-Linux-x86-195.36.15-pkg1.run,放在了/usr/softwarw目录下,驱动的类型和下载的目录可根据自己的具体情况。

2、安装需要在文本模式下进行,打开终端,执行init 3命令,会进入文本模式,重新登录。

3、cd /usr/software 进入驱动所在目录。

4、执行 sh ./NVIDIA-Linux-x86_64-1.0.9746-pkg2.run -a

5、安装过程很简单,一直OK或者YES就行了。

6、手动修改/etc/X11/xorg.conf文件。

将Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

中 Driver "nv"或 Driver "vesa"或 Driver "fbdev"替换成Driver "nvidia"

将Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection
中Load "dri"或Load "GLCore"替换成Load "glx"

找到Modes选项,根据自己显示器的尺寸手工添加分辨率,如"1024x768"  "1280x800"  "1280x768"等

7、重启Linux。


[注]

安装过程中可能会出现的错误:

ERROR: Unable to find the kernel source tree for the currently running kernel.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux systems, cant.t
for example, be sure you have the ‘kernel-source’ RPM installed. If you
know the correct kernel source files are installed, you may specify the
kernel source path with the ‘–kernel-source-path’ command line option.


这说明引用了错误的kernel source,可以在安装命令后添加参数指定。

#sh  ./NVIDIA-Linux-x86-1.0-9755-pkg1.run --kernel-source-path=/usr/src/kernels/2.6.18-164.15.1.el5-i686/

原因在于nvidia installer默认会去/lib/modules/2.6.18-164.15.1.el5-i686/build寻找核源码,而该链接指向/usr/src /kernels/2.6.18-164.15.1.el5-i686,正确应为/usr/src/kernels/2.6.18-164.15.1.el5-i686。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值