安装 Xorg
# cd /usr/ports/x11/xorg
# make install clean
并在 /etc/rc.conf 中加入X常用的两个模块:
hald_enable="YES"
dbus_enable="YES"
配置 xorg.conf
# Xorg -configure
# mv /boot/xorg.conf.new /etc/X11/xorg.conf
配置 Ctrl+Alt+Backspace 退出 X 的功能
Xorg 7.4 之后,需要配置这个。而 FreeBSD 8.0 ports 里面正好是 Xorg 7.4 以上版本
在目录 /usr/local/etc/hal/fdi/policy 下创建 x11-input.fdi
------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.x11_options.XkbOptions" type="string">terminate:ctrl_alt_bksp</merge>
</match>
</device>
</deviceinfo>
------------------
重启,让 hald 加载此配置。同时修改 /etc/x11/xorg.conf, 在 [ServerLayout] 中加上
Option "DontZap" "off"
配置宽屏
修改 xorg.conf 的 [Screen] 加上:
Section "Screen"
...
Monitor "Monitor0"
DefaultDepth 24
...
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x600"
EndSubSection
EndSection
中文字体
# cd /usr/ports/x11-fonts/wqy
# make install clean
修改 xorg.conf 的 [Files]:
FontPath "/usr/local/lib/X11/fonts/wqy/"
配置 IceWM
# cd /usr/ports/x11-wm/icewm
# make install clean
$ cp /usr/local/lib/X11/xinit/xinitrc ~/.xinitrc
把最后启动的 wm 改成 IceWM
exec icewm-session
常用 ports
/lang/python26
/lang/erlang-lite
/lang/lua
/x11-drivers/xf86-video-intel
/www/firefox35
/graphics/epdfview
/graphics/sdl_gfx
/graphics/sdl_image
/graphics/sdl_ttf
/net/sdl_net
/textproc/scim
/chinese/scim-pinyin
配置 glx
Section "Device"
Option "DRI" "True"
Option "XAANoOffscreenPixmaps" "True"
EndSection
Section "ServerLayout"
Option "AIGLX" "True"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
------------------------
To be continue ...
评论