xorg への nvidia-glx のインストール (2010/05/05)

私共の研究室では,ネットワークシミュレータ QualNet を利用しています.最近,バージョン 5 の提供が始まりましたが,そのインストールの際に,

This computer does not have hardware accelerated OpenGL drivers.
QualNet GUI may not function properly without this driver.
Contact the manufacturer of the graphics card installed on your system
for instructions to install the graphics driver.
というメッセージが出ました.グラフィックカードは nVIDIA GeForce 9500GT で,xserver-xorg-video-nv パッケージにて,'nv' ドライバを利用しています.apt-cache show xserver-xorg-video-nv で確認してみると,
This driver for the X.Org X server (see xserver-xorg for a further description)
provides support for NVIDIA Riva, TNT, GeForce, and Quadro cards.
Note that this is not the same as the binary-only 'nvidia' driver, which
adds 3D support, but is binary-only and not supported.
という情報が得られます.QualNet 5.0.2 をインストールするためには,'nvidia' バイナリドライバをインストールしなければなりません.'nvidia' バイナリドライバを提供しているのは,nvidia-glx パッケージです.apt-cache show nvidia-glx で確認すれば,
These binary drivers provide optimized hardware
acceleration of  OpenGL applications via a direct-rendering X Server.
nvidia-glx パッケージは nvidia-kernel-190.53 パッケージに依存し,nvidia-kernel-190.53 パッケージは nvidia-kernel-2.6.xx-x-amd64 パッケージの仮想パッケージです.バージョン番号は最新のもので置き換えて下さい.しかし,nvidia-kernel-2.6.xx-x-amd64 はインストールできませんでした.いろいろと調べたところ,次のページに nvidia-glx パッケージのインストール方法が書かれていました.

Debian Nvidia Driver Howto

さて,インストールの方法ですが,次の手順で行いました.

  1. Debian パッケージリストの更新
    # aptitude update
    
  2. linux-image-2.6.xx-x-amd64 のインストールとマシンの再起動

    linux-image-2.6.xx-x-amd64 をインストールします.このとき,linux-base もインストールされる可能性があります.linux-base のインストールの際に,disk device ids を更新するか,と聞かれますが,Yes で回答します.

    # aptitude install linux-image-2.6.xx-x-amd64
    # shutdown -r now
    
  3. nvidia-kernel-source のインストール
    # aptitude install nvidia-kernel-source nvidia-kernel-common module-assistant
    # m-a -i -t prepare
    
  4. nvidia kernel module のビルドとインストール
    # m-a clean,a-i -i -t -f nvidia-kernel-source
    # depmod -a
    

    このビルドの際に問題がなければ,nvidia-kernel-2.6.xx-x-amd64 パッケージが作成され,インストールされます.

  5. nvidia-glx のインストールと設定
    # aptitude install nvidia-glx nvidia-glx-dev
    # aptitude install nvidia-xconfig nvidia-settings
    # nvidia-xconfig
    

    nvidia-xconfig で /etc/x11/xorg.conf が作成されます.このファイル内で 'nvidia' ドライバが指定されていることを確認できます.ここで,注意しなくてはならないのでは,現状の xorg はハードウェア環境について HAL や udev から情報を取得して自らを構成するようになっていて,xorg.conf は不要となっていることです.デフォルトの設定とは異なる設定をしていることを意識しておくべきです.

  6. xorg の再起動,もしくは,マシンの再起動

以上の準備のもと,無事 QualNet 5.0.2 をインストールすることができました.


梅原 大祐 / UMEHARA Daisuke umehara@kit.ac.jp
Last modified: 2020/05/01 15:37
Total Access Count