1.通过ports安装chinput3
#cd /usr/ports/chinese/chinput3
#make #make install
#make clean
2.在~/.cshrc中加入以下内容:
setenv LC_ALL zh_CN.EUC
setenv LANG zh_CN.EUC
setenv LC_CTYPE zh_CN.EUC
setenv XMODIFIERS @im=Chinput
3.在~/.xinitrc中加入内容如下:
exec chinput &
exec gnome-session
4.最后在/etc/X11/XF86Config的内容可以参照如下:
Section "Files" ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "Module"
Load "xtt"
Load "extmod"
Load "glx"
Load "dri"
Load "dbe"
Load "record"
Load "xtrap"
Load "type1"
Load "speedo"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "Auto"
Option "Emulate3Buttons"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5"
EndSection
现在当你重新打开startx时会发现你图形界面都已经汉化完成了,不过还要换种字体.一切OK了!
推荐阅读
- 终极软件DIY之FreeBSD下USB打印机的安装经验谈
- FreeBSD handbook中文版 3 Unix 基础
- FreeBSD 4.0 Kernel Hacking Guide--vm/vm_init.c
- FreeBSD 5.3 ports 安装 AMP
- FreeBSD handbook中文版 9 配制FreeBSD 的内核
- FreeBSD命令ps介绍
- freebsd 配制文件
- FreeBSD的系统log日志
- FreeBSD对硬盘容量的要求
- FreeBSD handbook中文版 15 串口通讯