LinuxSir.cn,穿越时空的Linuxsir!

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

Testing下成功安装Nvidia显卡驱动

[复制链接]
发表于 2008-3-2 17:33:01 | 显示全部楼层 |阅读模式
关于驱动的安装时常有些人问,但这里的高手似乎对这个问题已经麻木了。这次我刚刚安装成功,仅供在安装过程中遇到问题的朋友参考。

Linux下的驱动安装还是比较麻烦的,这回重装系统又把这个过程重复了一遍。我的系统是Debian Testing,内核2.6.22-3-686。
首先要到Nvidia官方网站上下载驱动,地址是:http://www.nvidia.cn/Download/index.aspx?lang=cn
页面能检测出我的Linux系统,我的显卡是Geforce Go 6200,在“产品序列”一项选6系列(好像只有一个通用驱动,但9系列的没有),进入下载界面,目前的版本是169.12。
点击下载后进入许可协议界面,在下面的“接受”按钮就是下载地址,不知为什么我在点击接受后流览器没有关联到下载,而是直接打开了一个文本文件,后来手工连接才用D4x下载成功。

此驱动只能在桌面管理器未运行的情况下安装,所以需要重启动进入单用户的文本界面安装。

第一次安装,失败!(提示信息没有记下来,大概是)提示Gcc的版本不对,忽略后又提示没有Kernel source,最后退出。

在本论坛上搜了一下,置项贴里的相关贴子岁数大了点,没看明白。到Nvidia官方论坛上看了一下,在置项贴里有一个相关贴,地址是:http://www.nvnews.net/vbulletin/showthread.php?t=72490

相关解释如下:
Debian GNU/Linux or [K]Ubuntu with Xorg 7.x

If you wish to install the NVIDIA Linux graphics driver on a Debian GNU/Linux or Ubuntu system that ships with Xorg 7.x, please ensure that your system meets the following requirements:

    * development tools like make and gcc are installed
    * the linux-headers package matching the installed Linux kernel is installed
    * the pkg-config and xserver-xorg-dev packages are installed
    * the nvidia-glx package has been uninstalled with the --purge option and the files /etc/init.d/nvidia-glx and /etc/init.d/nvidia-kernel do not exist

按照说明,在新立得管理器下安装了Gcc4.1、linux-headers-2.6.22-3-686(用uname -r查出的版本号)、pkg-config、xserver-xorg-dev等。

第二次安装,成功:
1、进入单用户模式,运行驱动安装程序
sh NVIDIA-Linux-x86-169.12-pkg1.run

2、跳过Skipping the runlevel check提示;

3、接受协议(第一次光标移到Accept回车后竟退出,第二次在光标移到Accept后又用向下键将协议显示完全后回车就好了);

4、对于此提示选No:“No precompiled kernel interface was found to match your kernel; would you like the installer to attempt to download a kernel interface for your kernel from the NVIDIA ftp site (ftp://download.nvidia.com)?”

5、对于此提示选Yes:“No precompiled kernel interface was found to match your kernel; this means that the installer will need to compile a new kernel interface.”

6、对于此提示选No:“The CC version check failed:
                                  ........................”

7、这一步的提示大概是问是否要编译kernel module,选Yes。

8、最后自动运行nvidia-xconfig utility,程序更改显示设置,生成新的设置,并将原设置及文件备份;

重启后,在“系统工具”菜单里已经有了“NVIDIA X Server Settings”项,驱动已安装成功。


有两个问题:
1、安装驱动后,系统的桌面字体都变大了(终端里的字体也有变化),因为习惯了原来的字大,所以将系统的所有字高变为“9”后才基本和以前的一致;
2、我的驱动设置里显示的颜色数是65536,手工改为16.7 Milloin的。注意:在改动后要点“Save to X Configuration files”重新登录后才能应用新的设置。

补充
请注意:因安装时未记录相关提示信息,上面是根据安装日志“/var/log/nvidia-installer.log”总结的,有可能有遗漏。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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