FreeBSD 5.3-StableにXorgをインストールする
FreeBSD 5のウインドウシステムは、XFree86からXorgに変更されたようである。そこで、これは、FreeBSD 5.3-StableにXorgをインストールしたときのメモである。
portsからのインストール時の注意点
portsシステムのx11/xorgに移動し、そこでメイクインストールを実行すればインストールできるのだが、ディスクの空き容量が5GBほど必要である。これはメイクファイルの作成がいまいちで余計にディスク容量が必要なようであり、ディスク容量を抑えるためには個別に必要なportsをインストールすればよいようである。
参考URL :Xorg 6.7.0 環境の構築
x11/xorgのインストール
/etc/make.conf
ウインドウシステムがxorgであることをコンパイルシステムに教える設定を行う
# vi /etc/make.conf
[/etc/make.conf]
X_WINDOW_SYSTEM=xorg
インストールされているportsを全て削除
xorgは大きなシステムであるため、必要なプログラム群は複雑に絡み合っているため、途中必要なportsをインストールするときにエラーが出て止まった。そこで、現在インストールしていたportsを全て削除した。
x11/xorgのインストール
x11/xorgへ移動し、マイクインストールの実行。
# cd /usr/ports/x11/xorg
# make clean && make install && make clean
注)途中、問い合わせがあったかもしれませんが忘れてしまいました。
/etc/X11/xorg.confの作成
/etc/xorg.confのひな形を作成し、それを修正した。
# Xorg -configure
/rootにxorg.conf.newが作成されるので、Section “Screen"にModesを追加した。私が使用しているxorg.confを以下に示す
[/etc/xorg.conf]
ection "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/TTF/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/CID/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "extmod"
Load "glx"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
Load "freetype"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
EndSection
Section "Monitor"
#DisplaySize 300 230 # mm
Identifier "Monitor0"
VendorName "IBM"
ModelName "TFT Monitor"
### Uncomment if you don't want to default to DDC:
# HorizSync 0.0 - 0.0
# VertRefresh 1378694400.0 - 0.0
Option "DPMS"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "ColorKey" # <i>
#Option "CacheLines" # <i>
#Option "Dac6Bit" # [<bool>]
#Option "DRI" # [<bool>]
#Option "NoDDC" # [<bool>]
#Option "ShowCache" # [<bool>]
#Option "XvMCSurfaces" # <i>
#Option "PageFlip" # [<bool>]
Identifier "Card0"
Driver "i810"
VendorName "Intel Corp."
BoardName "82845G/GL [Brookdale-G] Chipset Integrated Graphics Device"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 1
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection