LinuxSir.cn,穿越时空的Linuxsir!

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

nvidia驱动安装方法[已经更新]──2004-12-25

[复制链接]
发表于 2002-12-12 13:34:02 | 显示全部楼层 |阅读模式
哪位兄弟有装过,讨论讨论吧

下载地址:最新版本(包括较新版本),您可以从中选一个版本下载安装。最新的可能也不是最好的,最老的肯定也不行。哈哈

http://download.linuxsir.cn/nvidia/Linux-x86/


1.0-4349/               28-Nov-2004 21:40    -   
1.0-4363/               28-Nov-2004 21:40    -   
1.0-4496/               28-Nov-2004 23:03    -   
1.0-5328/               28-Nov-2004 22:55    -   
1.0-5336/               28-Nov-2004 22:41    -   
1.0-6106/               28-Nov-2004 22:37    -   
1.0-6107/               28-Nov-2004 22:16    -   
1.0-6111/               30-Nov-2004 13:56    -   
1.0-6629/               30-Nov-2004 21:07    -

如果您系统中有的/etc/X11/xorg.conf  ,显示卡的配置文件是/etc/X11/xorg.conf 。 比如 Mandake 10 fedora 2 等。如果您的系统是的版本比较老,如下面的帖子,你可以编辑/etc/X11/XF86Config,有时可能版本更老,比如Redhat 7.2,您需要编辑 /etc/X11/XF86Config-4文件。


安装所需要的环境,要有编译和开发工具,以及内核源码包,见下面的帖子。都是类似的。

如果您下载的驱动文件名是pkg为后缀的,应该用下在面方法来安装

#sh  文件名  -x

举例:

#sh NVIDIA-Linux-x86-1.0-6111-pkg1.run -x
这样就能解压出来文件,然后进入解压出来的文件压,然后执行

#make install

如果是tar.gz包的,请见下面的帖子。



北南 加注
发表于 2002-12-14 00:25:52 | 显示全部楼层
我安装上了,没有感觉到有多大的区别。我把安装过程说一下:
如果用tar包安装,先解包,然后再
#make
要先make那个kerel的包。。然后才是GLX的。安装时,不能在Xwindows下进行,否则不能成功。。


这篇文章或许对新手弟兄有所帮助,系统应该把编译类工具,比如gcc make automake等工具安装上。系统的kernel-source可能得安装。如果您两种方法都不成功。可能是系统少编译类工具。或者是少kernel-source什么的。如果不知道自己的系统少什么。就要升级系统,把所有的东西都安装上。就OK了。。我的话总是这么多。呵。。。可能有的弟兄问,我如何升级系统呢??就象安装时一样,选[升级],如果是洋文的界面,应该是update吧。。




准备阶段:

要把安装包驱动包下载到linux的分区里,如果您下载到了windows的分区里,请先复制到linux的分区里。切记。。。


安装方法之一
我总共说的是两个方法,这两个方法的好处是,能适合不同的系统,不同的版本,不同的内核。我以Redhat 8.0以及9.0为例,来说明如何安装NVIDIA的驱动。


1。下载:总共有两个包

NVIDIA_GLX-1.0-4349.tar.gz

ftp://download.nvidia.com/XFree8 ... GLX-1.0-4349.tar.gz

NVIDIA_kernel-1.0-4349.tar.gz

ftp://download.nvidia.com/XFree8 ... nel-1.0-4349.tar.gz

2。解压和安装

[root@linuxsir01 root]# tar zxvf NVIDIA_kernel-1.0-4349.tar.gz

[root@linuxsir01 root]# cd NVIDIA_kernel-1.0-4349

[root@linuxsir01 NVIDIA_kernel-1.0-4349]#make  install

[root@linuxsir01 root]# tar zxvf NVIDIA_GLX-1.0-4349.tar.gz

[root@linuxsir01 root]# cd NVIDIA_GLX-1.0-4349

[root@linuxsir01 NVIDIA_GLX-1.0-4349]#make install

完成后,然后更改/etc/X11/XF86Config文件。参看下帖。




发表于 2002-12-14 00:34:43 | 显示全部楼层

这是Redhat 8.0的/etc/X11/XF86Config文件,请以自己的系统文件来更改,不要复制这个文件,因为机器环境不同。比如显示器,鼠 标,键盘等。。只能在你的系统上更改这个文件。仔细看一下,对于新手弟。本帖只做参考。

有些系统可能没有/etc/X11/XF86Config这个文件,比如Mandrake和Redhat 8.0以前的版本;红旗等发行版,我们可以更改/etc/X11/XF86Config-4文件。

具体问题,具体分析。这个文件大体在哪个发行版都差不多。试着改一下就行了。。

如果安装驱动成功了,但不能进入桌面,那就要把这个文件发上来,然后大家才能提供帮助。




# File generated by anaconda.
#

Section "ServerLayout"
        #
        Identifier     "Anaconda Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
# The location of the RGB database.  Note, this is the name of the
# file minus the extension (like ".txt" or ".db").  There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        如果汉化就把路径加在这里,如果不汉化,就不要加了
        FontPath     "unix/:7100"
EndSection

Section "Module"
        #Load  "type1"
        Load  "xtt"    如果汉化了,在加上这一句没有汉化就不要加了   
        #Load  "dbe"在这句的前面,要加一个#号
        Load  "extmod"
        Load  "fbdevhw"       
        #Load  "dri"在这句的前面,要加一个#号
        Load  "glx"
        Load  "record"        
       #Load  "freetype"   如果汉化了,也在这句的前面,要加一个#号;没有用汉化,就不要加#号了

EndSection

Section "InputDevice"
#        Option        "AutoRepeat"        "500 5"
# when using XQUEUE, comment out the above line, and uncomment the
# following line
#        Option        "rotocol"        "Xqueue"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#        Option        "Xleds"                "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#        Option        "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#        Option        "XkbModel"        "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#        Option        "XkbModel"        "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#        Option        "XkbLayout"        "de"
# or:
#        Option        "XkbLayout"        "de"
#        Option        "XkbVariant"        "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#        Option        "XkbOptions"        "ctrl:swapcaps"
        #Option        "XkbOptions"        ""
        Identifier  "Keyboard0"
        Driver      "keyboard"
        Option            "XkbRules" "xfree86"
        Option            "XkbModel" "pc105"
        Option            "XkbLayout" "us"        #Option        "XkbVariant"        ""
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option            "rotocol" "IMPS/2"
        Option            "Device" "/dev/input/mice"
        Option            "ZAxisMapping" "4 5"
        Option            "Emulate3Buttons" "no"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        HorizSync    30.0 - 71.0
        VertRefresh  50.0 - 160.0
        Option            "dpms"
EndSection

Section "Device"
        # no known options
        #BusID
        Identifier  "NVIDIA GeForce 2 MX (generic)"
        Driver      "nvidia"在这里,要把nv改成nvidia
        VendorName  "NVIDIA GeForce 2 MX (generic)"
        BoardName   "NVIDIA GeForce 2 MX (generic)"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "NVIDIA GeForce 2 MX (generic)"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Depth     24
                Modes    "1024x768" "800x600" "640x480"
        EndSubSection
EndSection

Section "DRI"
        Mode         0666
EndSection
发表于 2002-12-14 16:49:17 | 显示全部楼层
我一直都是直接从NVIDIA的主页提供的新驱动RPM包安装
没出现过什么大问题。只是有一次在用XWindow时出了问题(是我自己操作错误),,重装XFree86就是了。。。。。

驱程安装方法在下载的地址有提供下载的,,,(E文的)
 楼主| 发表于 2002-12-14 22:49:05 | 显示全部楼层
我3123的老是装不成功,最后还的重装
吓的我现在都不敢装驱动了
发表于 2002-12-15 16:26:20 | 显示全部楼层
最初由 北南南北 发布
我安装上了,没有感觉到有多大的区别。我把安装过程说一下:
如果用tar包安装,先解包,然后再
#make
要先make那个kerel的包。。然后才是GLX的。安装时,不能在Xwindows下进行,否则不能成功。。


这篇文章或许对新手弟兄有所帮助,系统应该把编译类工具,比如gcc make automake等工具安装上。系统的kernel-source可能得安装。如果您两种方法都不成功。可能是系统少编译类工具。或者是少kernel-source什么的。如果不知道自己的系统少什么。就要升级系统,把所有的东西都安装上。就OK了。。我的话总是这么多。呵。。。可能有的弟兄问,我如何升级系统呢??就象安装时一样,选[升级],如果是洋文的界面,应该是update吧。。




准备阶段:

1.要把安装包驱动包下载到linux的分区里,如果您下载到了windows的分区里,请先复制到linux的分区里。切记。。。

2.改一个文件:

改一个文件,/etc/inittab,把

id:3:initdefault:
改成
id:5:initdefault:
然后再重新启动机器。。。

安装方法之一
我总共说的是两个方法,这两个方法的好处是,能适合不同的系统,不同的版本,不同的内核。我以Redhat 8.0为例,来说明如何安装NVIDIA的驱动。


1。下载:总共有两个包

NVIDIA_GLX-1.0-4191.tar.gz


http://download.nvidia.com/XFree ... GLX-1.0-4191.tar.gz

NVIDIA_kernel-1.0-4191.tar.gz

http://download.nvidia.com/XFree ... nel-1.0-4191.tar.gz


2。解压和安装

[root@linuxsir01 root]# tar zxvf NVIDIA_kernel-1.0-4191.tar.gz

[root@linuxsir01 root]# cd NVIDIA_kernel-1.0-4191

[root@linuxsir01 NVIDIA_kernel-1.0-4191]#make

[root@linuxsir01 root]# tar zxvf NVIDIA_GLX-1.0-4191.tar.gz

[root@linuxsir01 root]# cd NVIDIA_GLX-1.0-4191

[root@linuxsir01 NVIDIA_GLX-1.0-4191]#make

完成后,然后更改/etc/X11/XF86Config文件。参看下帖。




方法之二:

1。下载:src.rpm包,总共有两个。

NVIDIA_GLX-1.0-4191.src.rpm

http://download.nvidia.com/XFree ... LX-1.0-4191.src.rpm

NVIDIA_kernel-1.0-4191.src.rpm

http://download.nvidia.com/XFree ... el-1.0-4191.src.rpm

2。编译:

[root@linuxsir01 root]# rpmbuild --rebuild NVIDIA_GLX-1.0-4191.src.rpm

[root@linuxsir01root ]# rpmbuild --rebuild NVIDIA_kernel-1.0-4191.src.rpm

3。安装

[root@linuxsir01 root]# cd /usr/src/redhat/RPMS/i386/

[root@linuxsir01 i386]# rpm -Uvh NVIDIA_* --nodeps --force

完成后,然后更改/etc/X11/XF86Config文件。参看下帖。



斑竹干吗不用rpm包直接装呢?还要编译?不解
发表于 2002-12-15 17:36:51 | 显示全部楼层
其实,什么东西还是自己编译的好啊~符合自己的机器的配置啊~
这叫量身定制~
发表于 2002-12-16 16:59:39 | 显示全部楼层

MX440,驱不上,以前的贴子没提到这个问题!

我用的是MDK9.0
我是按官方网站的上说明做的,可是出现下面的错误:
make install
ld -r -o nvidia.o nv-linux.o nv-kernel.o
size nvidia.o
  text     data      bss      dec      hex   filename
1248673   92760     32940    1374373  14f8a5 nvidia.o
Warning: loading /lib/modules/2.4.19-16mdk/kernel/drivers/video/nvidia.o will taint the kernel:non-
GPL license - NVIDIA
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
/lib/modules/2.4.19-16mdk/kernel/drivers/video/nvidia.o:init_module: No such device
Hint: insmod errors can be caused by incorrect module parameters,including invalid IO or IRQ paraters.
    You may find more information in syslog or the output from dmesg
modprobe: insmod /lib/modules/2.4.19-16mdk/kernel/drivers/video/nvidia.o
modprobe: insmod nvidia failed
make: *** [package-install] Error 255
发表于 2002-12-16 17:39:56 | 显示全部楼层
用uname -a
看一下内核的版本,如果是INTEL的CPU,我看一下能否编一个RPM放上来。
多谢
发表于 2002-12-16 18:02:33 | 显示全部楼层
内核版本是2.4.19,AMD Athlon 1800+
3Q
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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