ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > Debian

debian etch°²×°ÅäÖÃfcitxÊäÈë·¨

·¢²¼Ê±¼ä:2007-07-15 16:47:53À´Ô´:ºìÁª×÷Õß:Uaprjuy
ËäȻֹͣ¿ª·¢ÁË£¬²»¹ýÊäÈë·¨µÄÈ·²»´í¡£

ÎÒÓõÄÊÇdebian etch ÍêÈ«¿ÉÒÔÔÚlocaleΪen_USϵ÷³öfcitx
gnome×ÀÃæϵͳ¡£

°²×°fcitxºÍim-switch£ºapt-get install fcitx im-switch

Èç¹ûÄãÔËÐÐlocale½á¹ûÈçÏ£º
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8 ÕâÒ»ÐÐÈç¹ûÊÇzh_CN.UTF-8Ò²¿ÉÒÔ
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
ÄǾͲ»Òª¶¯ÁË£¬Èç¹û²»ÊÇÓÃÏÂÃæÕâ¸öÃüÁîÀ´¸Ä±äϵͳlocale
#dpkg-reconfigure locales

·Ö±ðÖ´ÐÐÏÂÃæµÄÃüÁî¸ø³ö½á¹ûÀ´·ÖÎöһϰÉ
$ ls -ahl /etc/alternatives/|grep input
$ ls -ahl /etc/X11/xinit/xinput.d/
$ ls -ahl ~/.xinput.d/
Èç¹û×îºóÒ»²½³öÏÖno such file or directory
Ôò
$cd $HOME µ½ÄãµÄÓû§Ö÷Ŀ¼ÏÂ
$mkdir .xinput.d
$cd .xinput.d
$ln -s /etc/X11/xinit/xinput.d/fcitx en_US
Ö±½Ó×öÁ´½Ó

ÐÞ¸ÄÎļþ£º
/etc/gtk-2.0/gtk.immodulesÎļþ£¬°ÑÓйØximµÄ²¿·Ö¸Ä³É£º
"/usr/lib/gtk-2.0/2.4.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh
·ñÔòµÄ»°£¬ÓÒ¼ü¿ÉÒÔ¿´µ½ÊäÈë·¨»¹ÊÇdefault

Èç¹ûÄãÉý¼¶ÏµÍ³ÁË£¬¿ÉÄÜÄãµÄ/etc/gtk-2.0ÏÂûÓж«Î÷µÄ»°¾Í¸ÄÕâ¸ö£º
/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules
°ÑÓйØximµÄ²¿·Ö¸Ä³É£º
"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so"
"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"
¼ÓÉÏ"en:"
ok,ÏÖÔÚlogoutÔٵǼ
ÔËÐÐ
im-switch -s fcitxÉèÖÃfcitxΪĬÈÏÊäÈë·¨£¬
ÏÖÔھͿÉÒÔÓÃctrl+spaceµ÷³öÊäÈë·¨ÁË£¬ÓÃÊó±êµã»÷fcitxͼ±ê¡°ÖÇÄÜÆ´Òô¡±¿ÉÒÔÇл»ÊäÈë
·¨£¨ÈçÎå±ÊµÈ£©£¬enjoy!

·ñÔòÈç¹û²»ÐÐ
ÔËÐÐ
$im-switch -c
¿ÉÒÔÏÔʾµ±Ç°ÏµÍ³¿ÉÓõÄÊäÈë·¨
Èç¹ûÓÐfcitx¾ÍÑ¡Ëü
Õâ¸ö¸úim-switch -s fcitxÊÇÒ»¸ö×÷Óá£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 2 ÌõÆÀÂÛ

  1. pros ÓÚ 2009-03-08 14:36:48·¢±í:

    keyile

  2. Uaprjuy ÓÚ 2007-07-15 16:48:21·¢±í:

    Ò²¿ÉÒÔÕâÑù×ö

    fcitxÖ»Òª±£Ö¤ÒÔÏÂÁ½¸ö»·¾³±äÁ¿¾Í¿ÉÒÔÁË
    LC_CTYPE="zh_CN.UTF-8" £¨Ò»¶¨ÒªÊÇzh_CN£©
    XMODIFIERS="@im=fcitx" (Ò»¶¨ÒªµÄ)

    /etc/X11/xinit/xinput.d/ Õâ¸öĿ¼ɾ³ý¶¼Ã»¹Øϵ
    Èç¹ûÖ»´òËãÓÃfcitxµÄ»°£¬im-switchÒ²¿ÉÒÔ²»ÓõÄ

    ÏÂÃæÊÇÎҵľ­Ñ飺
    1.
    ĬÈÏ°²×°
    sudo apt-get install fcitx
    2.
    echo 'LC_CTYPE="zh_CN.UTF-8"' >> /etc/environment
    echo 'export XMODIFIERS="@im=fcitx"' >> ~/.gnomerc
    echo 'fcitx&' >> ~/.gnomerc