1. 安装Xorg
以root身份执行
1. cd /usr/ports/x11/xorg/
2. make install clean
这种安装方法需要硬盘有4G的剩余空间放编译过程的临时文件。
2.
配置Xorg
以root身份执行
1. cd ~
2. Xorg -configure
将会在/root/生成xorg.conf.new,然后copy至配置文件目录并编辑,执行
1. cp xorg.conf.new /etc/X11/xorg.conf
为了使图形界面显示Windows的宋体,把Windows下Fonts目录下的simsun.ttc复制至/usr/X11R6/lib/X11/fonts/TrueType/。然后安装ttfm并添加宋体到系统,执行
1. cd /usr/ports/chinese/ttfm
2. make install clean
3. ttfm.sh --add simsun.ttc
4. ee /etc/X11/xorg.conf
在Files的Section里加上
1. FontPath "/usr/X11R6/lib/X11/fonts/TrueType"
顺便在鼠标的Section里改为
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto" #协议最好选这个
Option "Buttons" "5" #我的是滚轮的
Option "Device" "/dev/sysmouse" #设备一定要这个要不容易出现问题
Option "ZAxisMapping" "4 5" #滚轮的
3. 安装窗口管理软件,我装的是fvwm
以root身份执行
1. cd /usr/ports/x11-wm/fvwm2/
2. make install clean
为了支持中文,还要安装fvwm2-i18n,执行
1. cd /usr/ports/x11-wm/fvwm2-i18n/
2. make install clean
其实fvwm配置好了非常好用,推荐一个配置的教程:
http://learn.tsinghua.edu.cn:8080/2001315450/fvwm_frame.html
4.
安装中文输入法fcitx
以root身份执行
1. cd /usr/ports/chinese/fcitx/
2. make install clean
3. echo "setenv LANG zh_CN.eucCN" >> /etc/csh.cshrc
4. echo "setenv LC_CTYPE zh_CN.eucCN >> /etc/csh.cshrc
5. echo "setenv XMODIFIERS @im=fcitx" >> /etc/csh.cshrc
为了使图形界面启动时自动启动fvwm,并且加载中文输入法,以日常账号执行
1. echo "fcitx &" >> ~/.xinitrc
2. echo "exec fvwm2" >> ~/.xinitrc
5.
至此图形界面安装完毕,只需以正常用户身份登陆后执行
1. startx
即可进入图形界面
FreeBSD图形界面安装
最新推荐文章于 2025-02-18 07:00:00 发布