freebsdLinux学习|Gentoo/Arch/FreeBSD技术文

FreeBSD安装桌面环境

2015-04-20  本文已影响2313人  孤逐王

安装Xorg

cd /usr/ports/x11/xorg-minimal
make install clean

pkg install xorg-minimal

如果最小化安装xorg-server,startx启动测试X,需要安装twm、xclock、xterm等。

配置Xorg

快速启动测试X

By default, Xorg usesHAL to autodetect keyboards and mice. The sysutils/hal and devel/dbus ports are automatically installed as dependencies of x11/xorg, but must be enabled by adding these entries to/etc/rc.conf:

pkg info xorg-server | grep HAL

hald_enable="YES"
dbus_enable="YES"

service hald start 
service dbus start
mv /etc/X11/xorg.conf ~/xorg.conf.etc
mv /usr/local/etc/X11/xorg.conf ~/xorg.conf.localetc
Xorg -configure
startx
cp xorg.conf.new /etc/X11/xorg.conf
使用字体
pkg install wqy-fonts

FontPath "/usr/local/lib/X11/fonts/wqy"

安装awesome

pkg install awesome
cp /usr/local/etc/xdg/awesome/rc.lua .config/awesome/
echo "exec awesome" > .xinitrc

安装输入法

pkg install zh-fcitx
pkg install zh-fcitx-configtool

设置XMODIFIERS变量,gtk、qt支持:

setenv XMODIFIERS @im=fcitx
setenv GTK_IM_MODULE fcitx
setenv GTK3_IM_MODULE ximcp

export XMODIFIERS='@im=fcitx'
export GTK_IM_MODULE=fcitx
export GTK3_IM_MODULE=xim

For Qt4 programs, we recommend you to use:
qtconfig-qt4: /usr/ports/misc/qt4-qtconfig
instead of to manually set QT4_IM_MODULE.

To start fcitx with your desktop, just

cp /usr/local/share/applications/fcitx.desktop ~/.config/autostart/

或在.xinitrc中添加

fcitx &

参考:http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config-quick-start.html

上一篇下一篇

猜你喜欢

热点阅读