歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> Ubuntu 6.06上的Nvidia設置筆記

Ubuntu 6.06上的Nvidia設置筆記

日期:2017/2/27 9:24:04   编辑:更多Linux

測試環境: 系統: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




Copyright © Linux教程網 All Rights Reserved