当前位置:Linux教程 - Linux资讯 - Ubuntu 6.06上的Nvidia设置笔记

Ubuntu 6.06上的Nvidia设置笔记

测试环境: 系统: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. 为玩游戏做准备。  ===================================================== 首先找到了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

(出处:http://www.sheup.com)