SUN Solaris for Intel の X サーバ (Xorg) 設定
X サーバには XFree86 と、その後継の X.Org Server (Xorg) がある。
XFree86 は最終版 4.8.0(2008年)で開発が終了しており、現在の X サーバは Xorg である。
Solaris 10 以降の x86 版には Xorg が同梱されているため、X サーバを別途入手する必要はない。
Solaris 8/9 for Intel に同梱されている X サーバは Xsun である。
コマンドやファイルの位置はバージョンにより異なる。
- Solaris 10: X サーバは /usr/X11/bin/Xorg、設定ファイルは /etc/X11/xorg.conf
- Solaris 11: Xorg のみをサポートし、X サーバは /usr/bin/Xorg。Xsun は含まれない
Xorg の設定手順 (Solaris 10 x86)
- 設定ファイルのひな形を生成する。
/usr/X11/bin/Xorg -configure
/root/xorg.conf.new が生成される。対話形式で設定する場合は /usr/X11/bin/xorgconfig を使う。 - マウスの設定を確認する。Solaris では、マウス入力に VUID プロトコルを使う。
生成された /root/xorg.conf.new の InputDevice セクションを次のように設定する。
Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "VUID" Option "StreamsModule" "vuid3ps2" Option "Device" "/dev/mouse" EndSectionPS/2 マウスを直接指定する場合は、Device に /dev/kdmouse を指定する。 - 色深度を設定する。Screen セクションの DefaultDepth に 24、16、8 のいずれかを指定する。
Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1280x1024" "1024x768" EndSubSection EndSection - 生成した設定ファイルでサーバの動作を確認する。
/usr/X11/bin/Xorg -config /root/xorg.conf.new
- 設定ファイルを配置する。既存の設定ファイルは退避しておく。
cd /etc/X11 mv xorg.conf xorg.conf.old cp /root/xorg.conf.new /etc/X11/xorg.conf
- フォントパスを設定する。/etc/X11/xorg.conf の Files セクションに、Solaris 同梱フォントのパスを追加する。
Section "Files" FontPath "/usr/openwin/lib/X11/fonts/F3bitmaps/" FontPath "/usr/openwin/lib/X11/fonts/Type1/" FontPath "/usr/openwin/lib/X11/fonts/Speedo/" FontPath "/usr/openwin/lib/X11/fonts/misc/" FontPath "/usr/openwin/lib/X11/fonts/75dpi/" FontPath "/usr/openwin/lib/X11/fonts/100dpi/" EndSection - ログイン画面 (dtlogin) が使う X サーバを選ぶ。
kdmconfig で Xorg と Xsun のどちらを使うかを選択できる。
明示的に指定する場合は、Solaris の既定の設定ファイルをコピーして編集する。
mkdir -p /etc/dt/config cp /usr/dt/config/Xservers /etc/dt/config
/etc/dt/config/Xservers で、Xsun の行をコメントアウトし、Xorg の行を記述する。# :0 Local local_uid@console root /usr/openwin/bin/Xsun :0 -nobanner :0 Local local_uid@console root /usr/X11/bin/Xorg :0
- 動作を確認する。ログイン画面を再起動する場合は次を実行する。
/usr/dt/bin/dtconfig -reset
システム全体を再起動する場合は次を実行する。/usr/sbin/reboot