ChinaUnix.net 首页 | 博客 | Linux | 论坛 | 人才 | 培训 | 知识库 | 资料 | 读书 | 手册 | 精华 | 下载 | 沙龙 | 搜索
Linux首页 | Linux论坛 | 论坛精华 | 开源新闻 | 技术文章 | 专题专栏 | 新手指南 | 迁移方案 | 产品方案 | 开源项目 | 开源图书 | 软件下载 | 人才招聘 | Linux博客
  搜索

  产品与方案
·中科红旗全面打造现代化邮政体系
·红旗助力“网上审批服务” 推动电子政务
·红旗正版化开创呼和浩特网吧建设新起点
·红旗Linux助信息产业部邮件服务器“快跑”
·中标普华Linux 为电子政务信息化保驾护航
·中标普华Linux助力基金产业
·中标普华Office率先支持UOF标准
·中标普华邮件系统助力西藏政府信息化建设
·红旗Linux助力国库集中支付系统改革
·红旗助中信卫星 掀起GIS通信应用风暴
·红旗软件助力烟草总局 全面建设“数字烟草”
·红旗助力“信访阳光工程”打造畅通信访渠道
·红帽联合FIS发布下一代实时核心银行平台
·红旗助力金盾 打造全无忧出入境信息系统
·红旗Linux全力打造中国邮政总局名址信息库
·爱尔兰证交所从Unix迁移到红帽企业Linux
·一流的意大利银行选择使用红帽企业Linux
·PLUS Finanzservice选择使用红帽企业Linux
·红帽助力TransACT Communications 公司
·法国零售业巨头Lapeyre采用Redhat Linux
·旅游预订网站选择使用红帽企业Linux
·马哈拉施特拉邦政府的红帽解决之道
·美国联邦政府案例
·红帽为慕尼黑展览会提供现代化集群系统
·Yuba郡用开源软件和红帽产品提高了效率
·红帽企业Linux助印度理工建立高性能计算中心
·采用红帽Linux 将系统维护时间缩短了65%
·从UNIX迁移到Linux使Peñoles公司获益非浅
·Hikal公司用红帽企业Linux开展任务关键的ERP项目
·KDE3.5.4新版本发布
·芝加哥商业交易所从Unix向Linux迁移
·南方基金管理有限公司成功案例 Red Hat Linux
·广东北电通讯设备有限公司成功案例
·挪威国家石油公司从UNIX迁移到红帽Linux,成本减半
·中央电视台CCTV动画部案例 Red Hat Linux

  图书

鸟哥的Linux私房菜基础学..


Linux程序设计.第3版


Linux设备驱动开发详解


  下载
·Endian Firewall
·linux kernel(Linux 内核)
·CentOS
·Fedora Core 6
·Scientific Linux
·Slackware 11.0
·Gentoo Linux
·ubuntu-6.10-i386服务器版本
·ubuntu-6.10-amd64服务器版
·ubuntu-6.10-i386桌面版
·ubuntu-6.10-amd64桌面版
·Engarde Linux
您的位置: Linux时代 > 技术文档 > 桌面应用 >

Ubuntu 6.06上的Nvidia设置笔记

日期:2006-10-31 作者:Ray 来自:ubuntu.org.cn


测试环境:

系统:Ubuntu 6.06 Desktop LTS
CPU: P4 2.4C
内存:1G
显卡:艾而莎 MX440
ray@ray-desktop:~$ lspci | grep nVidia
0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 440] (rev a3)

=====================================================
有的同学说了,系统装上以后显示非常正常,分辨率也足够高。而且查看系统配置的时候发现显卡已经正确识别了。那为啥还要再安装一遍显卡驱动乜?因为:

1. 你有没有注意到系统屏幕保护启动以后所显现出的惨不忍睹的3D加速性能。相信我,配置完以后你会发现那些粗糙的、转动缓慢的3D物体其实相当的漂亮。简直太漂亮了。
2. 为玩游戏做准备。 Smile

=====================================================

首先找到了Wiki上面的这两篇指南:
[url]http://wiki.ubuntu.org.cn/安装NVIDIA?highlight=%28nvidia%29[/url]
[url]http://wiki.ubuntu.org.cn/NVIDIA显卡安装配置指南?highlight=%28nvidia%29[/url]

按照第一篇进行设置。经过几次失败以后按照第二篇设置,虽然步骤不完全一致但是成功了。这里把实际的操作过程写出来,因为wiki上面的比我的实际操作步骤要多。而且结果也不太一样。下面仅仅是我自己安装过程的一个记录,不是标准流程。高人们看看,为啥和标准步骤不一样?

Wiki上面就是在图形化界面下面配置的,这里也按照上面的步骤来说。

首先wiki上说先要“允许 restricted 软件包”但是我看了半天也没有找到,所以这步骤没有做。我用的源是“快速设置指南”里面那个台%湾某大学的源。

我安装一个不知道有没有用的东西,

点击[系统]——>[系统管理]——>[新立得软件包管理器] (这个名字谁起的?)
系统要求输入密码,完成后在界面里点击“搜索”在里面输入“linux-restricted-modules”
找到一堆东西,在里面找到“nvidia-kernel-source”点击右键“标记以便安装”然后点击应用。装完以后按照系统要求重新启动。这个步骤 wiki里面没有,我之所以装它是要确认我的“restricted 软件包”已经被允许了。所以究竟有用没用我也不知道。

再次打开“新立得软件包管理器”搜索“nvidia-glx”点击右键“标记以便安装”然后点击应用。

注意!!我好几次失败就在这里:千万不要安装nvidia-settings 和 nvidia-xconfig这两个包。因为网上有的大虾们要求安装他们。实际情况是“ 在 Ubuntu 6.06 LTS中 不要安装其他软件包因为其会删除 nvidia-glx 软件包。”我开始没有看到这句,所以做了几次都不成功。

然后点屏幕上方的[应用程序]”菜单,然后选择[附件]——> [终端],在终端里面运行这个命令:

$sudo nvidia-xconfig

这个命令实际上做了两件事情:
1. 备份 /etc/X11/xorg.conf ,系统在同一个文件夹下创建xorg.conf.backup文件。如果设置不成功导致无法进入Xwindow,可以用这个文件恢复回来。
2. 重新写一个xorg.conf。最主要的变化在下面这里

--------------
Section "Device"
Identifier "NVIDIA Corporation NV17 [GeForce4 MX 440]"
Driver "nvidia"
EndSection
--------------

这个部分原来的内容是这样的:

--------------
Section "Device"
Identifier "NVIDIA Corporation NV17 [GeForce4 MX 440]"
Driver "nv"
BusID "PCI:1:0:0"
EndSection
--------------

到此配置完毕,按照wiki中的说法重新启动x后会看到一个Nvidia的画面。这个画面在我用Mandriva的时候见过,但是在配置完毕的Ubuntu中的确是没见着。所以wiki中“删除 nVidia 标志”这一步也就没有必要了。

重新启动x后,运行一个屏保。比如国际象棋那个,能清楚的看到棋盘上的倒影。棋盘转动流畅,棋子滑动和吃子的动画流畅。爽!!

如果有人愿意可以尝试在命令行模式下安装:
代码:

$sudo apt-get install nvidia-kernel-source
$sudo apt-get install nvidia-glx
$sudo nvidia-xconfig

应该也是一样的。
下面附上我的 /etc/X11/xorg.conf 内容

代码:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Mon May 15 13:23:42 PDT 2006

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "stylus" "SendCoreEvents"
    InputDevice    "cursor" "SendCoreEvents"
    InputDevice    "eraser" "SendCoreEvents"
EndSection

Section "Files"

   # path to defoma fonts
    FontPath        "/usr/share/X11/fonts/misc"
    FontPath        "/usr/share/X11/fonts/cyrillic"
    FontPath        "/usr/share/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/share/X11/fonts/Type1"
    FontPath        "/usr/share/X11/fonts/100dpi"
    FontPath        "/usr/share/X11/fonts/75dpi"
    FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
    Load           "i2c"
    Load           "bitmap"
    Load           "ddc"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
    Load           "int10"
    Load           "type1"
    Load           "vbe"
EndSection

Section "InputDevice"
    Identifier     "Generic Keyboard"
    Driver         "kbd"
    Option         "CoreKeyboard"
    Option         "XkbRules" "xorg"
    Option         "XkbModel" "pc104"
    Option         "XkbLayout" "us"
EndSection

Section "InputDevice"
    Identifier     "Configured Mouse"
    Driver         "mouse"
    Option         "CorePointer"
    Option         "Device" "/dev/input/mice"
    Option         "Protocol" "ExplorerPS/2"
    Option         "ZAxisMapping" "4 5"
    Option         "Emulate3Buttons" "true"
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier     "stylus"
    Driver         "wacom"
    Option         "Device" "/dev/wacom"          # Change to
    Option         "Type" "stylus"
    Option         "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier     "eraser"
    Driver         "wacom"
    Option         "Device" "/dev/wacom"          # Change to
    Option         "Type" "eraser"
    Option         "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "InputDevice"

                                                      # /dev/input/event
                                                      # for USB
    Identifier     "cursor"
    Driver         "wacom"
    Option         "Device" "/dev/wacom"          # Change to
    Option         "Type" "cursor"
    Option         "ForceDevice" "ISDV4"               # Tablet PC ONLY
EndSection

Section "Monitor"
    Identifier     "P95f+"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "NVIDIA Corporation NV17 [GeForce4 MX 440]"
    Driver         "nvidia"
EndSection

Section "Screen"
    Identifier     "Default Screen"
    Device         "NVIDIA Corporation NV17 [GeForce4 MX 440]"
    Monitor        "P95f+"
    DefaultDepth    24
    SubSection     "Display"
        Depth       1
        Modes      "2048x1536" "1920x1440" "1792x1344" "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "2048x1536" "1920x1440" "1792x1344" "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "2048x1536" "1920x1440" "1792x1344" "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "2048x1536" "1920x1440" "1792x1344" "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "2048x1536" "1920x1440" "1792x1344" "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "2048x1536" "1920x1440" "1792x1344" "1600x1200" "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
EndSection

本文被浏览



 相关新闻

NVIDIA Linux显卡驱动中存在严重漏洞2006-10-17 08:49:25
nVIDIA显卡驱动程序安装问题2005-01-25 14:43:32
NVIDIA显卡的新版驱动发布1.0-4363及安装方法2005-01-19 13:52:21


 相关评论
关于我们 | 联系方式 | 广告合作 | 诚聘英才 | 网站地图 | 免费注册

Copyright © 2001-2006 ChinaUnix.net All Rights Reserved

感谢所有关心和支持过ChinaUnix的朋友们

京ICP证041476号