尽管opensuse软件包管理里有一键安装,但这里一键安装老是有问题,老是启动不了,出现X-server not running的提示,然后 就弹出一大串错误。查遍整个google终于找到解决方法:
安装环境 :
OS:OPENSUSE 10.2
机器:Dell vostro 1310
显卡:NVIDIA Geforoce 8400
内存:3G
硬盘:250G
主板:INTEL 965
传统方法
法一:
使用系统自带的软件管理器,一键安装。
There are several reasons for this.
First, it's simple.
Check out your operator system veersion;
execute:
leno@Vostro-1310:~> uname -r
2.6.18.2-34-bigsmp
是bigsmp,安装时不要选择default ,不然会出错哦!
Second, and this is the most important one, you won't need to recompile the nvidia kernel
module after a kernel update.Update your Kernel via YOU (YaST Online Update). Use
YaST -> Software -> Installation Source -> Add
Protocol: HTTP
Server Name: : download.nvidia.com
Directory on Server: /opensuse/10.2
注意:有时可能连不上
to add the NVIDIA http server as additional installation source.
Third:
Now use
YaST -> Software -> Software Management
to install the NVIDIA driver. Select the following packages:
x11-video-nvidiaG01-bigsmp 可能不是这版本的,关键按操作系统版本对应安装;
x11-video-nvidia
Excute:
sax2 -r -m 0=NVIDIA(是零)
配置显卡;
法二:
直接下载显卡驱动,笔者多次试验,屡试不爽;建议不要使用
People who aren't afraid of recompiling the nvidia kernel module or even reinstalling the
nvidia driver each time the kernel has been updated and want or need to use the latest and
greatest nvidia driver can use the following steps 1-3. The others should use the
instructions above using YaST and skip the steps below.
在nvidia网站下载 173.14.12.版本的显卡驱动;
1) Kernel sources must be installed and configured. Usually this means
installing the 'kernel-source', 'make' and 'gcc' packages with YaST2.
2) Use the nvidia installer for 173.14.12.
sh NVIDIA-Linux-x86-173.14.12-pkg1.run -q
3) Configure X.Org with
sax2 -r -m 0=nvidia (0 is a digit, not a letter!)
NOTE: There is no need to try to enable 3D support. It's already
enabled, when the nvidia driver is running.
IMPORTANT: You need to recompile and install the nvidia kernel module
after each kernel update.
sh NVIDIA-Linux-x86-173.14.12-pkg1.run -q
法三:手功安装NVIDIA显卡驱动
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
安装成功;
参考:
http://www.linuxsir.org/bbs/thread341291.html
http://en.opensuse.org/NVIDIA#openSUSE_10.2