matsutake_memo @ ウィキ

グラボ

kernelはuname -aコマンドで
Linux dhrobot-13 2.6.26-2-686 #1 SMP Wed Nov 4 20:45:37 UTC 2009 i686 GNU/Linux
とでた

lspci -vで接続されているデバイス情報を見ると、接続されているグラボはこれみたい(lspci | grep -i nv)
01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1) (prog-if 00 [VGA controller])
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 10
Memory at de000000 (32-bit, non-prefetchable) [size=16M]
Memory at c0000000 (32-bit, prefetchable) [size=256M]
Expansion ROM at dfde0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel modules: nvidiafb

やったことリスト

NVIDIA-Linux-x86-173.14.24-pkg1.runをダウンロード
% chmod +x NVIDIA-Linux-x86-173.14.24-pkg1.run
% sudo ./NVIDIA-Linux-x86-173.14.24-pkg1.run
linuxヘッダーを更新しないとダメってググったらでてきたから、
% sudo apt-get install linux-headers-2.6.26-1-686
% sudo apt-get build-dep linux-headers-2.6.26-1-686
やっぱり、エラったので、gccのリンクをgcc-4.1にしないとダメっぽい
なので
rm /usr/bin/gcc
ln -s /usr/bin/gcc-3.1 /usr/bin/gcc
sh NVIDIA-Linux-x86-173.14.24-pkg1.run --kernel-source-path='/usr/src/kernelhogehoge --kernel-name='2.6.26.hogehoge'
てな感じでドライバをインストール
自動更新しますか?って聞かれるのでYesってやったら、
startxもgdm startも使えなくなってし-まった。
startxを実行すると
(==)Log file: "var/log/Xorg.0.log", Time:wed jan 13 12:05:10:2010
(==)Using config file: "/etc/X11/xorg.conf"
(EE)failed to load module "type1" (module does not exist, 0)
(II)Module "ramdac" already bulit-in
FATAL: could not open
'/lib/modules/2.6.26-2-686/kernel/drivers/video/nvidia.ko': No such file or directory
(EE)NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE)NVIDIA(0): *** Aborting ***
(EE)Screen(s) found, but none have a usable configuration>>

Fatal server error:
no screens found

waiting for x server to begin accepting connections
giving up.
xinit: Connection rest y peer(errno 104): unable to connect to X server
xinit: No such process(errno 3): server error
こんなメッセージが…

http://ubuntuforums.org/showthread.php?t=598780を参考に、
/etc/udev/rules.d/90-modprobe.rulesに
RUN+="/sbin/modprobe nvidia"
を追加した。

あと、/etc/X11/xorg.confのSection "Device"に
Driver "nvidia"
を追加

もう一度、ドライバを入れ直し xorg.confの自動更新をせずに、元のファイルのままで
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder75) Sun Nov 8 21:50:38 PST 2009

Section "ServerLayout"
   Identifier     "Layout0"
   Screen      0  "Screen0"
   InputDevice    "Keyboard0" "CoreKeyboard"
   InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Files"
EndSection

Section "Module"
   Load           "dbe"
   Load           "extmod"
   Load           "type1"
   Load           "freetype"
   Load           "glx"
EndSection

Section "InputDevice"
   # generated from default
   Identifier     "Mouse0"
   Driver         "mouse"
   Option         "Protocol" "auto"
   Option         "Device" "/dev/psaux"
   Option         "Emulate3Buttons" "no"
   Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
   # generated from default
   Identifier     "Keyboard0"
   Driver         "kbd"
EndSection

Section "Monitor"
   Identifier     "Monitor0"
   VendorName     "Unknown"
   ModelName      "Unknown"
   HorizSync       30.0 - 110.0
   VertRefresh     50.0 - 150.0
   Option         "DPMS"
EndSection

Section "Device"
   Identifier     "Device0"
   Driver         "nvidia"
   VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
   Identifier     "Screen0"
   Device         "Device0"
   Monitor        "Monitor0"
   DefaultDepth    24
   SubSection     "Display"
       Depth       24
   EndSubSection
EndSection

ーーーーーーーーーーーーーーーーーーー


startxを実行したら、今度は/home/matsutake3/.ICEauthorityがよみこめないとのコメントが…
しかし、nvidiaのロゴは出たのであと一歩っぽい
めんどくさいのでchmodで777にして、もう一度起動させたら、起動したー!!
グラボを認識しているようだ!!
ちょーめんどくさかった。
10時間以上は浪費した…。



その他(結果的に必要なし)

http://ubuntuforums.org/showthread.php?t=213409を参考に
このコマンドを実行すると、startxを起動できるようになるが、再起動するとまた、使えない。
sudo dpkg-reconfigure xserver-xorg
sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDM)

Debianで、ディストリビューションのバージョンを確認するには、/etc/debian_versionの内容を確認する。
debian:~# cat /etc/debian_version
4.0
ちなみに、カーネルのバージョンは、以下のコマンドで確認できる。
debian:/etc# uname -a
Linux debian 2.6.11-co-0.6.4 #1 Mon Jun 19 05:36:13 UTC 2006 i686 GNU/Linux