经过网上资料的收集,终于把FreeBSD 4.10中文配置完成。特写出来供大家参考。
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了!