好(0) 差(0) 阅读(2821) 评论(0)
安装Xorg
以root身份执行
cd /usr/ports/x11/xorg/
make install clean这种安装方法需要硬盘有4G的剩余空间放编译过程的临时文件。
配置Xorg
以root身份执行
cd ~
Xorg -configure将会在/root/生成xorg.conf.new,然后copy至配置文件目录并编辑,执行
cp xorg.conf.new /etc/X11/xorg.conf为了使图形界面显示Windows的宋体,把Windows下Fonts目录下的simsun.ttc复制至/usr/X11R6/lib/X11/fonts/TrueType/。然后安装ttfm并添加宋体到系统,执行
cd /usr/ports/chinese/ttfm
make install clean
ttfm.sh --add simsun.ttc
ee /etc/X11/xorg.conf在Files的Section里加上
FontPath "/usr/X11R6/lib/X11/fonts/TrueType"顺便在鼠标的Section里加上
Option "ZAxisMapping" "4 5"以支持鼠标滚轮。
安装窗口管理软件,我装的是fvwm
以root身份执行
cd /usr/ports/x11-wm/fvwm2/
make install clean为了支持中文,还要安装fvwm2-i18n,执行
cd /usr/ports/x11-wm/fvwm2-i18n/
make install clean其实fvwm配置好了非常好用,推荐一个配置的教程:http://learn.tsinghua.edu.cn:8080/2001315450/fvwm_frame.html
安装中文输入法fcitx
以root身份执行
cd /usr/ports/chinese/fcitx/
make install clean
echo "setenv LANG zh_CN.eucCN" >> /etc/csh.cshrc
echo "setenv LC_CTYPE zh_CN.eucCN >> /etc/csh.cshrc
echo "setenv XMODIFIERS @im=fcitx" >> /etc/csh.cshrc为了使图形界面启动时自动启动fvwm,并且加载中文输入法,以日常账号执行
echo "fcitx &" >> ~/.xinitrc
echo "exec fvwm2" >> ~/.xinitrc至此图形界面安装完毕,只需以正常用户身份登陆后执行
startx即可进入图形界面
最后修改:Wen 于 2006-02-27 15:25:21
用户登录



