LinuxSir.cn,穿越时空的Linuxsir!

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

教OPENSUSE新手手动安装nvidia显卡驱动

[复制链接]
发表于 2008-12-19 13:26:37 | 显示全部楼层 |阅读模式
1.首先确保kernel-source、make、gcc已安装,没有就在YaST搜索安装。
2.安装好后以root身份在终端输入:cd /usr/src/linux
make cloneconfig
make prepare
3.在N卡官方网站下载相应的驱动http://www.nvidia.cn/object/unix_cn.html
4.以root身份登入终端再输入:init 3
5.cd /home/您的帐号/你的N卡驱动所在目录
6.在终端输入:sh  NVIDIA-Linux-<arch>-<version>-<build>-<pkg#>.run -q
例如 sh NVIDIA-Linux-x86-173.14.12-pkg1.run -q
7.设定X.org
终端输入:sax2 -r -m 0=nvidia  /*注意,0为数字,不是字母*/
8.再输:init 5
发表于 2008-12-19 13:48:37 | 显示全部楼层
占位学习
一直搞不定驱动,看有没有帮助了,感谢哦
回复 支持 反对

使用道具 举报

发表于 2008-12-19 13:56:36 | 显示全部楼层
请教一下:
2.安装好后在终端输入:cd /usr/src/linux
make cloneconfig
make prepare
这两个make语句的作用什么.
新版11.1系统,MS对N卡的支持(驱动安装)有点问题,我还没装,但有兄弟已发贴提及
回复 支持 反对

使用道具 举报

发表于 2008-12-19 14:46:26 | 显示全部楼层
查到如下信息:
---
Because a lot of articles, howtos, readmes and other sorts of text get it wrong, here's the stance:

It is often said to run

cd /usr/src/linux
make cloneconfig
make prepare

or something similar (like mrproper, oldconfig, prepare-all, etc.). This is not required for SUSE Linux (and perhaps other distros). When the binary kernel package and kernel-source is installed, the parts that would have to be configured are already present. A simple call to make (see below) is sufficient. Every external module package (that is sane) will do everything right automatically.

In fact, running `make cloneconfig` or any build operation inside /usr/src/linux will make it unclean so that (sane!) external modules' build process will abort with:

/usr/src/linux is not clean, please run 'make mrproper'
in the '/usr/src/linux' directory.

All of this is correct, since /usr/src/linux is ONLY a source directory, NOT the build directory. A few external module packages are, however, so broken that they fail to make this distinction and run into one of two problems: (1) they cannot find some header file, (2) says you have yet to configure your kernel (which is wrong of course).
-----

貌似是不需要
make cloneconfig
make prepare
回复 支持 反对

使用道具 举报

发表于 2008-12-19 15:44:07 | 显示全部楼层
为什么要这样安装呢?官方不是提供了nvdida的一键安装吗?
刚才看了下目前只有for 11.0的
回复 支持 反对

使用道具 举报

发表于 2008-12-19 15:55:35 | 显示全部楼层
我再试试把。
我的显卡是geforce6100的集成显卡。原来我在f9,f10.opensuse11.0里都试了装n卡的官方驱动,到sax2 -r -m 0=nvidia就不行了。但是在f8,opensuse10.3里装NVIDIA-Linux-x86-171.06.01-pkg1.run这个老驱动正常。只要比这个驱动新的,就到sax2 -r -m 0=nvidia就不行。NVIDIA-Linux-x86-171.06.01-pkg1.run这个老驱动又不支持新版本的linux
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-19 15:55:45 | 显示全部楼层
Post by wangping;1926338
查到如下信息:
---
Because a lot of articles, howtos, readmes and other sorts of text get it wrong, here's the stance:

It is often said to run

cd /usr/src/linux
make cloneconfig
make prepare

or something similar (like mrproper, oldconfig, prepare-all, etc.). This is not required for SUSE Linux (and perhaps other distros). When the binary kernel package and kernel-source is installed, the parts that would have to be configured are already present. A simple call to make (see below) is sufficient. Every external module package (that is sane) will do everything right automatically.

In fact, running `make cloneconfig` or any build operation inside /usr/src/linux will make it unclean so that (sane!) external modules' build process will abort with:

/usr/src/linux is not clean, please run 'make mrproper'
in the '/usr/src/linux' directory.

All of this is correct, since /usr/src/linux is ONLY a source directory, NOT the build directory. A few external module packages are, however, so broken that they fail to make this distinction and run into one of two problems: (1) they cannot find some header file, (2) says you have yet to configure your kernel (which is wrong of course).
-----

貌似是不需要
make cloneconfig
make prepare


如果少了这两句的话,在sh的时候就会提示ERROR,这两句应该是准备核心什么的,以前记得在哪里看过
回复 支持 反对

使用道具 举报

发表于 2008-12-19 15:56:21 | 显示全部楼层
Post by d4rkl0rd;1926367
为什么要这样安装呢?官方不是提供了nvdida的一键安装吗?
刚才看了下目前只有for 11.0的


ftp://download.nvidia.com/opensuse/   这里有11.1的源。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-19 15:58:06 | 显示全部楼层
Post by d4rkl0rd;1926367
为什么要这样安装呢?官方不是提供了nvdida的一键安装吗?
刚才看了下目前只有for 11.0的

不是每个人都有网的
回复 支持 反对

使用道具 举报

发表于 2008-12-19 19:09:55 | 显示全部楼层
中文wiki上NVIDIA的适用于11.1的一键安装已经添加
另外此页上也有详细的驱动安装说明(中文版):
http://cn.opensuse.org/NVIDIA
回复 支持 反对

使用道具 举报

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

本版积分规则

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