X Window Systemの設定

実はまだX Window Systemが動いていませんでしたので、その設定です。

nVidiaのビデオカードを使っている人は「Kernelのアップグレード(2.4系列)」を見て、 nVidiaのDRIドライバを設定しておきましょう。

Amazonのベストセラー
(キーワード: Debian)

X Window Systemのインストール

なぜかX Window Systemが完全にインストールされていないのでインストールしました。 これが必要なのは私の環境だけかもしれません(X周りはセキュリティアップデートあったせいかも)。

# apt-get install x-window-system

Xserver-commonの設定

インストール中にXserverの設定についていろいろ聞かれます。

最初は、XserverをDebianのシステムで管理するかどうかを聞かれます。 これはYESを選びます。あとはデフォルトのままでENTERキーを押せばよいでしょう。

Debian Configuration

  -----------------------| Configuring Xserver-common |-----------------------
  |                                                                          |
  | The /etc/X11/Xwrapper.config file, which contains configuration          |
  | information controlling who is permitted to start the X server and how   |
  | it is invoked, can be handled automatically by debconf, or manually by   |
  | you.                                                                     |
  |                                                                          |
  | Note that only specific, marked sections of the configuration file will  |
  | be handled by debconf if you select this option; if those markers are    |
  | absent, you will have to update the file manually, or move or delete     |
  | the file.                                                                |
  |                                                                          |
  | Manage X server wrapper configuration file with debconf?                 |
  |                                                                          |
  |                    <Yes>                       <No>                      |
  |                                                                          |
  ----------------------------------------------------------------------------

Xserver-xfree86の設定

ここではXserverの設定が聞かれます。重要です。真剣に応えましょう。

まずは、Xserverの設定をDebianのシステムで管理するかどうかを聞かれます。 これにはYESを選びます。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  |                                                                          |
  | The /etc/X11/XF86Config-4 file, which contains the configuration         |
  | information for the XFree86 version 4 X server, can be handled           |
  | automatically by debconf, or manually by you.                            |
  |                                                                          |
  | Note that only specific, marked sections of the configuration file will  |
  | be handled by debconf if you select this option; if those markers are    |
  | absent, the configuration file will not be updated automatically, and    |
  | you will have to update the file manually, or move or delete the file.   |
  |                                                                          |
  | Manage XFree86 4.x server configuration file with debconf?               |
  |                                                                          |
  |                    <Yes>                       <No>                      |
  |                                                                          |
  ----------------------------------------------------------------------------

ビデオカードの設定

ここからが重要です。まずはどのX serverを使用するか聞かれます。 これはビデオカードのチップによって最適なX Serverが異なるからです。 大体のビデオカードは「vesa」でいけると思いますが、 専用のX Serverがある場合はそれを選択しましょう。 私は、nVidiaのGeForce2 MX400を使っているので、「nv」を選択します。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | For the X Window System graphical user interface to operate correctly,   |
  | it is necessary to select a video card driver for the X server.          |
  |                                                                          |
  | Drivers are typically named for the video card or chipset manufacturer,  |
  | or for a specific model or family of chipsets.                           |
  |                                                                          |
  | Select the desired X server driver.                                      |
  |                                                                          |
  |                            vesa                                          |
  |                            apm                                           |
  |                            ark                                           |
  |                            ati                                           |
  |                            atimisc                                       |
  |                            chips                                         |
  |                            cirrus                                        |
  |                            cyrix                                         |
  |                            fbdev                                         |
  |                            glide                                         |
  |                            glint                                         |
  |                            i128                                          |
  |                            i740                                          |
  |                            i810                                          |
  |                            imstt                                         |
  |                            mga                                           |
  |                            neomagic                                      |
  |                            nv                                            |
  |                            r128                                          |
  |                            radeon                                        |
  |                            rendition                                     |
  |                            s3virge                                       |
  |                            savage                                        |
  |                            siliconmotion                                 |
  |                            sis                                           |
  |                            tdfx                                          |
  |                            tga                                           |
  |                            trident                                       |
  |                            tseng                                         |
  |                            v4l                                           |
  |                            vga                                           |
  |                            vmware                                        |
  |                                                                          |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

次にビデオカードの名前を聞かれます。適当に入力しましょう。私は「GeForce2 MX400」としました。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |----------------------
  | The X server configuration file associates your video card with a name  |
  | that you may provide.  This is usually the vendor or brand name         |
  | followed by the model name, e.g., "3Dfx Voodoo3" or "ATI Rage Fury      |
  | Maxx".                                                                  |
  |                                                                         |
  | Enter an identifier for your video card.                                |
  |                                                                         |
  | GeForce2 MX400_________________________________________________________ |
  |                                                                         |
  |                                 <Ok>                                    |
  |                                                                         |
  ---------------------------------------------------------------------------

次はビデオカードが装着されているPCIバスの番号などを聞かれます。が、ここは空欄で大丈夫です。次に進みましょう。

(画面は省略します)

次にビデオカードのメモリ量を入力します。 ここは空欄でもよいようですが、私は念のため入力しています。 単位がキロバイト単位なので、メガバイトの値に1024をかけた値を入力します。

私の場合はビデオRAMが64MBなので、65536を入力します。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |----------------------
  | Typically, the amount of dedicated memory your video card has is        |
  | autodetected by the X server, but some integrated video chips (such as  |
  | the Intel i810) have little or no video memory of their own, and        |
  | instead borrow main system memory for their needs.                      |
  |                                                                         |
  | It is perfectly acceptable to leave this parameter blank; only if your  |
  | video card lacks RAM, or if the X server has trouble autodetecting the  |
  | amount, is it necessary to specify the amount of video RAM.             |
  |                                                                         |
  | Enter the amount of memory (in kB) to be used by your video card.       |
  |                                                                         |
  | 65536__________________________________________________________________ |
  |                                                                         |
  |                                 <Ok>                                    |
  |                                                                         |
  ---------------------------------------------------------------------------

その次は、Xの画面を描写するのに、直接ビデオカードのチップを操作するようにするか、 Linuxカーネルのフレームバッファという機能を介して操作するかを選択します。

デフォルトはフレームバッファを使うようになっていますが、私はNoを選択しました。 理由は今までもそうだったからということでそれほど自信はありません。

Debian Configuration

  -----------------------| Configuring Xserver-xfree86 |----------------------
  |                                                                          |
  | Rather than communicating directly with the video hardware, the X        |
  | server may be configured to perform some operations, such as video mode  |
  | switching, via the kernel's framebuffer driver.                          |
  |                                                                          |
  | In theory, either approach should work, but in practice, sometimes one   |
  | does and the other does not.  Enabling this option is the safe bet, but  |
  | feel free to turn it off if it appears to cause problems.                |
  |                                                                          |
  | Use kernel framebuffer device interface?                                 |
  |                                                                          |
  |                    <Yes>                       <No>                      |
  |                                                                          |
  ----------------------------------------------------------------------------

キーボードの設定

ここからはキーボードの設定です。まずは、XKB ruleというのを聞かれますが、 デフォルトのまま(xfree86)でOKです。

Debian Configuration

   ----------------------| Configuring Xserver-xfree86 |--------------------
   | For the X server to handle your keyboard correctly, an XKB rule set   |
   | must be chosen.                                                       |
   |                                                                       |
   | Users of most keyboards should enter "xfree86".  Users of Sun Type 4  |
   | and Type 5 keyboards, however, should enter "sun".                    |
   |                                                                       |
   | Advanced users can use any defined XKB rule set.  See the             |
   | /etc/X11/xkb/rules directory for available rule sets.                 |
   |                                                                       |
   | If you don't know what rule set to use, enter "xfree86".              |
   |                                                                       |
   | Please select the XKB rule set to use.                                |
   |                                                                       |
   | xfree86______________________________________________________________ |
   |                                                                       |
   |                                <Ok>                                   |
   |                                                                       |
   -------------------------------------------------------------------------

次はキーボードのモデルの指定です。普通の日本語キーボードの場合はjp106を指定します。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | For the X server to handle your keyboard correctly, a keyboard model     |
  | must be entered.  Available models depend on which XKB rule set is in    |
  | use.                                                                     |
  |                                                                          |
  | The "pc101" keyboard is a traditional IBM PC/AT style keyboard with 101  |
  | keys, historically common in the United States.  It does not have the    |
  | "logo" or "menu" keys.                                                   |
  |                                                                          |
  | The "pc104" keyboard is like the pc101 model, with additional keys.      |
  | These keys are usually engraved with a "logo" symbol (there is           |
  | typically a pair of these, between each set of control and alt keys),    |
  | and a "menu" key.                                                        |
  |                                                                          |
  | The "pc102" and "pc105" models are versions of the pc101 and pc104       |
  | keyboards, respectively, often found in Europe.                          |
  |                                                                          |
  | The "macintosh" model is for Macintosh keyboards where the kernel and    |
  | console tools use the new input layer which uses Linux keycodes;         |
  | "macintosh_old" is for Macintosh keyboard users who are not using the    |
  | new input layer.                                                         |
  |                                                                          |
  | All of the above models use the "xfree86" rule set.                      |
  |                                                                          |
  | The "type4" and "type5" models are for Sun Type4 and Type5 keyboards,    |
  | respectively.  These models can only be used if the "sun" XKB rule set   |
  | is in use.                                                               |
  |                                                                          |
  | Laptop keyboards often do not have as many keys as standalone models;    |
  | laptop users should select the keyboard model most closely approximated  |
  | by the above.                                                            |
  |                                                                          |
  | Advanced users can use any model defined by the selected XKB rule set.   |
  | See the /etc/X11/xkb/rules directory for available rule sets.            |
  |                                                                          |
  | Users of U.S. English keyboards should generally enter "pc104".          |
  |                                                                          |
  | Please select your keyboard model.                                       |
  |                                                                          |
  | jp106___________________________________________________________________ |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

次はキーボードのレイアウトの指定です。普通の日本語キーボードの場合はjpを指定します。

Debian Configuration

  -----------------------| Configuring Xserver-xfree86 |---------------------
  | For the X server to handle your keyboard correctly, a keyboard layout   |
  | must be entered.  Available layouts depend on which XKB rule set and    |
  | keyboard model were previously selected.                                |
  |                                                                         |
  | Advanced users can use any layout supported by the selected XKB rule    |
  | set. See the /etc/X11/xkb/rules directory for available rule sets, and  |
  | the /etc/X11/xkb/symbols directory for available layouts.               |
  |                                                                         |
  | Users of U.S. English keyboards should enter "us".  Users of keyboards  |
  | localized for other countries should generally enter their ISO 3166     |
  | country code.  E.g., France uses "fr", and Germany uses "de".           |
  |                                                                         |
  | Please select your keyboard layout.                                     |
  |                                                                         |
  | jp_____________________________________________________________________ |
  |                                                                         |
  |                                 <Ok>                                    |
  |                                                                         |
  ---------------------------------------------------------------------------

次はキーボードの細かい種類の指定です。普通は空欄でOKです。

(画面は省略します)

次はキーボードのオプションです。 一部の人には重要です。私はCaps Lockキーと左Ctrlキーを入れ替えたいので「ctrl:swapcaps」を指定します。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | For the X server to handle your keyboard as you desire, keyboard         |
  | options may be entered.  Available options depend on which XKB rule set  |
  | was previously selected.  Not all options will work with every keyboard  |
  | model and layout.                                                        |
  |                                                                          |
  | For example, if you wish the Caps Lock key to behave as an additional    |
  | Control key, you may enter "ctrl:nocaps"; if you would like to switch    |
  | the Caps Lock and left Control keys, you may enter "ctrl:swapcaps".      |
  |                                                                          |
  | Advanced users can use any options compatible with the selected XKB      |
  | model, layout and variant.  See the /etc/X11/xkb/symbols directory       |
  | available options files, which define only partial keyboard              |
  | translations.  (For example, /etc/X11/xkb/symbols/ctrl.)                 |
  |                                                                          |
  | If you don't know what options to use, leave this entry blank.           |
  |                                                                          |
  | Please select your keyboard options.                                     |
  |                                                                          |
  | ctrl:swapcaps___________________________________________________________ |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

マウスの設定

ここからはマウスの設定です。まずはマウスが接続されているデバイスが指定します。 マウスをPS/2で接続している人は/dev/psauxとなります。 USBは使ったことがないのでちょっとわかりません。/dev/input/miceのような気がします。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | For the X Window System graphical user interface to operate correctly,   |
  | certain characteristics of your mouse (or other pointing device, such    |
  | as a trackball) must be known.                                           |
  |                                                                          |
  | It is necessary to determine which port (connection type) your mouse     |
  | uses. Serial ports use D-shaped connectors with 9 or 25 pins (a.k.a.     |
  | DB-9 or DB-25); the mouse connector is female (has holes) and the        |
  | computer connector is male (has pins).  PS/2 ports are small round       |
  | connectors (DIN) with 6 pins; the mouse connector is male and the        |
  | computer side female. You may alternatively have a USB mouse, a          |
  | bus/inport (very old) mouse, or be using the gpm program as a repeater.  |
  |  If you need to attach or remove PS/2 or bus/inport devices from your    |
  | computer, please do so with the computer's power off.                    |
  |                                                                          |
  | Please choose your mouse port.                                           |
  |                                                                          |
  |                           /dev/psaux                                     |
  |                           /dev/ttyS0                                     |
  |                           /dev/ttyS1                                     |
  |                           /dev/ttyS2                                     |
  |                           /dev/ttyS3                                     |
  |                           /dev/input/mice                                |
  |                           /dev/atibm                                     |
  |                           /dev/sunmouse                                  |
  |                           /dev/gpmdata                                   |
  |                                                                          |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

次はマウスの種類を指定します。多くのスクロールマウスはマイクロソフトのインテリマウス互換なので、一番上のImPS/2を選択しました。

Debian Configuration

          --------------| Configuring Xserver-xfree86 |---------------
          |                                                          |
          |                                                          |
          | Please choose the entry that best describes your mouse.  |
          |                                                          |
          |                  ImPS/2                                  |
          |                  PS/2                                    |
          |                  GlidePointPS/2                          |
          |                  NetMousePS/2                            |
          |                  NetScrollPS/2                           |
          |                  ThinkingMousePS/2                       |
          |                  MouseManPlusPS/2                        |
          |                  ExplorerPS/2                            |
          |                                                          |
          |                                                          |
          |                          <Ok>                            |
          |                                                          |
          ------------------------------------------------------------

次は、マウスの左右ボタンの同時押しで真中ボタンをエミュレートするかどうかを聞いてきます。 スクロールマウスの場合はスクロールボタンが真中ボタンとなるのですが、念のためYesとしておきました。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  |                                                                          |
  | Most programs in the X Window System expect your mouse to have 3         |
  | buttons (left, right, and middle).  Mice with only 2 buttons can         |
  | emulate the presence of a middle button by treating simultaneous clicks  |
  | or drags of the left and right buttons as middle button events.          |
  |                                                                          |
  | This option may also be used on mice with 3 or more buttons; the middle  |
  | button will continue to work normally.                                   |
  |                                                                          |
  | Emulate 3 button mouse?                                                  |
  |                                                                          |
  |                    <Yes>                       <No>                      |
  |                                                                          |
  ----------------------------------------------------------------------------

次は、スクロールをするかどうかを聞かれます。当然Yesです。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  |                                                                          |
  | Events from a wheeled mouse's wheel can be treated as clicks of          |
  | additional buttons (buttons 4 and 5).  Some X applications treat         |
  | buttons 4 and 5 as scroll-up and scroll-down events, making the mouse    |
  | wheel work as expected. This is application-level behavior however, and  |
  | may not always work. Also, exotic mice with more than 3 buttons in       |
  | addition to a wheel may behave in an unexpected fashion if this option   |
  | is set.                                                                  |
  |                                                                          |
  | Enabling this option is harmless if your mouse has no scroll wheel.      |
  |                                                                          |
  | Enable scroll events from mouse wheel?                                   |
  |                                                                          |
  |                    <Yes>                       <No>                      |
  |                                                                          |
  ----------------------------------------------------------------------------

モニタの設定

ここからはモニタの設定です。まず名前を付けるように言われるので、適当な名前を入れます。

Debian Configuration

    --------------------| Configuring Xserver-xfree86 |---------------------
    | The X server configuration file associates your monitor with a name  |
    | that you may provide.  This is usually the vendor or brand name      |
    | followed by the model name, e.g., "Sony E200" or "Dell E770s".       |
    |                                                                      |
    | Enter an identifier for your monitor.                                |
    |                                                                      |
    | My Monitor__________________________________________________________ |
    |                                                                      |
    |                                <Ok>                                  |
    |                                                                      |
    ------------------------------------------------------------------------

次にモニタが液晶かどうか聞かれます。私は液晶ではないのでNoです。

Debian Configuration

    --------------------| Configuring Xserver-xfree86 |---------------------
    |                                                                      |
    | If your monitor is a liquid-crystal display (which is the case with  |
    | almost all laptops), you should set this option.                     |
    |                                                                      |
    | Users of traditional cathode-ray tube (CRT) monitors should not set  |
    | this option.                                                         |
    |                                                                      |
    | Is your monitor an LCD device?                                       |
    |                                                                      |
    |                   <Yes>                      <No>                    |
    |                                                                      |
    ------------------------------------------------------------------------

次からモニタの細かい設定を行うのですが、その前にどれくらい細かくユーザが指定するかを聞かれます。私はAdvancedを選択しました。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | For the X Window System graphical user interface to operate correctly,   |
  | certain characteristics of your monitor must be known.                   |
  |                                                                          |
  | For the "simple" option, you need only know the monitor's physical       |
  | size; this will set some configuration values appropriate for a typical  |
  | CRT of the corresponding size, but may be suboptimal for high-quality    |
  | CRT's. (This option is disabled for LCD panel users, since such          |
  | displays are configured for a particular resolution.)                    |
  |                                                                          |
  | The "medium" option will present you with a list of resolutions and      |
  | refresh rates, such as "800x600 @ 85Hz"; you should choose the best      |
  | mode you wish to use (and that you know your monitor is capable of).     |
  |                                                                          |
  | The "advanced" option will let you specify your monitor's horizontal     |
  | sync and vertical refresh tolerances directly.                           |
  |                                                                          |
  | Please choose a method for selecting your monitor characteristics.       |
  |                                                                          |
  |                               Advanced                                   |
  |                               Simple                                     |
  |                               Medium                                     |
  |                                                                          |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

Advancedを選択すると、モニタがサポートしている水平周波数と垂直周波数の範囲を聞かれますので、モニタの説明書をチェックしておきましょう。

最初は水平周波数の範囲を入れます。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | Please enter either a comma-separated list of discrete values (for       |
  | fixed-frequency displays), or a pair of values separated by a dash (all  |
  | modern CRT's).  This information should be available in your monitor's   |
  | manual.  Values lower than 30 or higher than 130 are extremely rare.     |
  |                                                                          |
  | Enter your monitor's horizontal sync range.                              |
  |                                                                          |
  | 31.5-64.3_______________________________________________________________ |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

次は垂直周波数です。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | Please enter either a comma-separated list of discrete values (for       |
  | fixed-frequency displays), or a pair of values separated by a dash (all  |
  | modern CRT's).  This information should be available in your monitor's   |
  | manual.  Values lower than 50 or higher than 160 are extremely rare.     |
  |                                                                          |
  | Enter your monitor's vertical refresh range.                             |
  |                                                                          |
  | 50-100__________________________________________________________________ |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

次は使用する解像度の指定です。必要なところにスペースでマークをつけていきましょう。

Debian Configuration

   ---------------------| Configuring Xserver-xfree86 |----------------------
   | If there are some resolutions you would not like the X server to use   |
   | even if your hardware is capable of them, remove them from the list    |
   | below. Removing all of them is effectively the same as removing none,  |
   | since in both cases the X server will attempt to use the highest       |
   | possible resolution.                                                   |
   |                                                                        |
   | Select the video modes you would like the X server to use.             |
   |                                                                        |
   |    [ ] 1920x1440                                                       |
   |    [ ] 1856x1392                                                       |
   |    [ ] 1792x1344                                                       |
   |    [ ] 1600x1200                                                       |
   |    [*] 1280x1024                                                       |
   |    [*] 1280x960                                                        |
   |    [*] 1152x864                                                        |
   |    [*] 1024x768                                                        |
   |    [*] 800x600                                                         |
   |    [*] 640x480                                                         |
   |                                                                        |
   |                                                                        |
   |                                 <Ok>                                   |
   |                                                                        |
   --------------------------------------------------------------------------

その次はデフォルトの色数です。十分なビデオRAMがあるならば一番大きな値にしておきましょう。私は24です。

Debian Configuration

  ----------------------| Configuring Xserver-xfree86 |-----------------------
  | Usually 24-bit color is desirable, but on graphics cards with limited    |
  | amounts of framebuffer memory, higher resolutions may be achieved at     |
  | the expense of higher color depth.  Also, some cards support hardware    |
  | 3D acceleration only for certain depths.  Consult your video card        |
  | manual for more information.                                             |
  |                                                                          |
  | (So-called "32-bit color" is actually 24 bits of color information plus  |
  | 8 bits of alpha channel or simple zero padding; the X Window System can  |
  | handle both.  If you want either, select 24 bits.)                       |
  |                                                                          |
  | Please select your desired default color depth in bits.                  |
  |                                                                          |
  |                                  24                                      |
  |                                  1                                       |
  |                                  4                                       |
  |                                  8                                       |
  |                                  15                                      |
  |                                  16                                      |
  |                                                                          |
  |                                                                          |
  |                                  <Ok>                                    |
  |                                                                          |
  ----------------------------------------------------------------------------

モジュールの指定

次にX Window Systemで使用するモジュールの設定行います。最初にいろいろ説明がでるので読んでおきましょう。

組み込むモジュールを選択するところではポイントは2つあります。

1つはTrueTypeフォントを使用するためのモジュールの指定です。 「freetype」と「xtt」の2つがあるので、このどちらかを指定します。両方はダメです。私はより高機能な「xtt」を使用します。

もう1つは、後でnVidiaのドライバを使用するための設定です。 nVidiaのドライバを使用する場合は、「glx」が必要となります。また、「GLcore」と「dri」を組み込んではいけません。

というわけで私は以下のような指定にしました。

Debian Configuration

    --------------------| Configuring Xserver-xfree86 |---------------------
    | Select the XFree86 server modules that should be loaded by default.  |
    |                                                                      |
    |    [ ] GLcore                                                        |
    |    [*] bitmap                                                        |
    |    [*] dbe                                                           |
    |    [*] ddc                                                           |
    |    [ ] dri                                                           |
    |    [*] extmod                                                        |
    |    [ ] freetype                                                      |
    |    [*] glx                                                           |
    |    [*] int10                                                         |
    |    [*] pex5                                                          |
    |    [*] record                                                        |
    |    [*] speedo                                                        |
    |    [*] type1                                                         |
    |    [*] vbe                                                           |
    |    [*] xie                                                           |
    |    [*] xtt                                                           |
    |                                                                      |
    |                                                                      |
    |                                <Ok>                                  |
    |                                                                      |
    ------------------------------------------------------------------------

設定ファイルの書き込み

最後に設定ファイルを保存するかを聞かれるので、Yesを選択して終了します。 その後にもDRIの設定やらを聞かれるのでこれもYesにしておきましょう。

動作確認

ではテストをしてみましょう。 一般ユーザでstartxコマンドを実行して、Xの画面(KDEの画面)になればOKです。 動くのを確認したらAltキー・Ctrlキー・BSキーを同時に押して、いったんX Window Systemを強制終了させましょう。

nVidiaドラバの使用

nVidiaから供給されているドライバを使うとより高速な描写が期待できます(多分)。 せっかくなのでそれを使いましょう。

nVidiaのカーネルドライバの設定

まず「Kernelのアップグレード(2.4系列)」を見てnVidiaのドライバモジュールを使用できるようにします。

nVidiaのXFree86ドライバの設定

次にXFree86用のnVidiaドライバのソースパッケージをインストールします。

# apt-get install nvidia-glx-src

その後に次のコマンドでバイナリパッケージを作成した後にインストールします。

# cd /usr/src/nvidia-glx-1.0.2880
# dpkg-buildpackage -us -uc
# cd /usr/src
# dpkg -i nvidia-glx_1.0.2880-3_i386.deb

XF86config-4の編集

次に先ほど作成した/etc/X11/XF86Config-4を編集します。変更するところは

Section "Device"
        Identifier      "GeForce2 MX400"
        Driver          "nv"
        VideoRam        65536
EndSection

というところを、

Section "Device"
        Identifier      "GeForce2 MX400"
        Driver          "nvidia"
        Option          "RenderAccel"           "on"
        Option          "HWCursor"              "on"
        Option          "CursorShadow"          "on"
        VideoRam        65536
EndSection

のように変更します。

これでstartxをしてみてください。X Window Systemの画面になったときに、一瞬nVidiaのロゴが見えれば成功です。

成功したらまたAlt+Ctrl+BSで一旦終了させてから、gdmを立ち上げましょう。

# /etc/init.d/gdm restart

サンプル

これが以上の設定による/etc/X11/XF86Config-4です。

## BEGIN DEBCONF SECTION
# XF86Config-4 (XFree86 server configuration file) generated by dexconf, the
# Debian X Configuration tool, using values from the debconf database.
#
# Edit this file with caution, and see the XF86Config-4 manual page.
# (Type "man XF86Config-4" at the shell prompt.)
#
# If you want your changes to this file preserved by dexconf, only make changes
# before the "### BEGIN DEBCONF SECTION" line above, and/or after the
# "### END DEBCONF SECTION" line below.
#
# To change things within the debconf section, run the command:
#   dpkg-reconfigure xserver-xfree86
# as root.  Also see "How do I add custom sections to a dexconf-generated
# XF86Config or XF86Config-4 file?" in /usr/share/doc/xfree86-common/FAQ.gz.

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/misc"
        FontPath        "/usr/lib/X11/fonts/cyrillic"
        FontPath        "/usr/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/lib/X11/fonts/Type1"
        FontPath        "/usr/lib/X11/fonts/Speedo"
        FontPath        "/usr/lib/X11/fonts/100dpi"
        FontPath        "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "extmod"
        Load    "glx"
        Load    "int10"
        Load    "pex5"
        Load    "record"
        Load    "speedo"
        Load    "type1"
        Load    "vbe"
        Load    "xie"
        Load    "xtt"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "keyboard"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xfree86"
        Option          "XkbModel"      "jp106"
        Option          "XkbLayout"     "jp"
        Option          "XkbOptions"    "ctrl:swapcaps"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "InputDevice"
        Identifier      "Generic Mouse"
        Driver          "mouse"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
        Option          "ZAxisMapping"          "4 5"
EndSection

Section "Device"
        Identifier      "GeForce2 MX400"
        Driver          "nvidia"
        Option          "RenderAccel"           "on"
        Option          "HWCursor"              "on"
        Option          "CursorShadow"          "on"
        VideoRam        65536
EndSection

Section "Monitor"
        Identifier      "My Monitor"
        HorizSync       31.5-64.3
        VertRefresh     50-100
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "GeForce2 MX400"
        Monitor         "My Monitor"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1280x1024" "1280x960" "1152x864" "1024x768" "80
0x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x1024" "1280x960" "1152x864" "1024x768" "80
0x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1280x1024" "1280x960" "1152x864" "1024x768" "80
0x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x1024" "1280x960" "1152x864" "1024x768" "80
0x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x1024" "1280x960" "1152x864" "1024x768" "80
0x600" "640x480"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1280x960" "1152x864" "1024x768" "80
0x600" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        InputDevice     "Generic Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection

### END DEBCONF SECTION
SEO [PR] おまとめローン Windows7 冷え性対策 動画 掲示板 レンタルサーバー ライブチャット SEO