• 当前位置:首页>>FreeBSD系统教程>>FreeBSD中文环境>>FreeBSD 4.10 汉化总结
  • 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了!  
  • 上一篇:安装输入法原来可以这么简单
    下一篇:VI中汉字显示成\xc8\xf0字样的解决办法