LinuxSir.cn,穿越时空的Linuxsir!

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

cool 搜尋發現四個方法可以安裝 nvidia 顯示卡的驅動程式

[复制链接]
发表于 2005-11-14 19:49:32 | 显示全部楼层 |阅读模式
cool 搜尋一些文章候發現四個方法可以安裝 nvidia 顯示卡的驅動程式
但是我試過之後都是螢幕變黑接著當機
我把我找到的四種方法列出?

方法一:
在2.6核心中讓X-window支援nvidia模組

方法二:
請問 nvidia 5336 的dirver

方法三:
B2D vs nVidia on kernel 2.6.8

方法四:
到nvidia的網站下載最新的驅動程式,然後執行 sh NVIDIA-Linux-x86-1.0-7676-pkg1.run



sarge 目前預設核心是 kernel-image-2.4.27-1-386

I. kernel2.4*,安裝nvidia模組很簡單:

aptitude install nvidia-kernel-source
aptitude module-assistant nvidia-kernel-common
module-assistant auto-install nvidia
然後參考底下step4,完成!

II. kernel2.6*,安裝nvidia模組,有點煩麻:

Step1
新增testing(etch) 的apt source,之後執行aptitude update更新apt database.

Step2
用aptitude安裝以下套件:
1.nvidia-kernel-source
2.nvidia-kernel-common
3.nvidia-glx
4.gcc
5.kernel-package(因為之後會使用到make-kpkg此工具)
6.kernel-headers-2.6.x(視你使用的核心版本而定)

PS:使用apptitude 安裝,第1、2、3、4、6項,不管那一項先安裝,預設是全部一起抓下?恚╧ernel-headers-2.4.27-1-386,kernel-headers2.6*386。
如果使用apt-get,那就是一項一項安裝,比較精簡。

Step3
cd /usr/src
tar zxvf nvidia-kernel-source.tar.gz
cd /usr/src/kernel-headers-2.6.x
make-kpkg modules_image
cd /usr/src
dpkg -i nvidia-kernel-2.6.x_i386.deb

Step4
vi /etc/X11/XF86Config-4
將其中"nv"字串換成"nvidia"字串。
別忘了參考 http://wiki.debian.org.tw/index.php/DebianFonts
註解:FontPath "unix/:7100" ,# Load "GLcore"、"dri"、"freetype"。
註解掉"freetype",請檢查有沒有"xtt" !
可以的話,請加上底下這兩行,免得有些軟體找不到中文字型。
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"

範例:

Section "Files"
# FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
# Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
# Load "dri"
Load "extmod"
# Load "freetype"
Load "xtt"
Load "glx"
Load "int10"
Load "record"
Load "speedo"
Load "type1"
Load "vbe"
EndSection

Step5:核心2.4*,可以忽略下面這兩項。
vi /etc/modules加上
nvidia

step6:請檢查是否安裝了正確的nvidia-glx,最簡單的方式,就是再安裝乙次。

結束!!
发表于 2005-11-14 20:43:35 | 显示全部楼层
Installationn of nvidia driver is actually quite straight forward and its original NVIDIA-Linux-x86-xxx-xxxx-pkg1.run file already gives you enough instructions.

One very important thing that you must be taken into account is that your gcc version must be the same as the one being used to compiled your kernel, i.e. if your kernel is compiled with gcc-4.0, then you must use gcc-4.0 to compile the nvidia driver, otherwise, the nivida kernel module cannot be installed.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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