SCIM was the most wide-spread Input Method when Crunchbang was based on Ubuntu. Since Statler, iBus is recommended. The installation of iBus is covered in this article
This howto details the steps required to enable Chinese input (Japanese, Arabic, and other languages) on a English (or other language) interface in #!CrunchBang Linux.
For details on installing applications and the terminal, see here.
Please also check:
LOCALES Configure IBus-anthy or Scim-anthy to enable Japanese input
In the terminal enter:
sudo apt-get install ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ttf-arphic-bsmi00lp ttf-arphic-bkai00mp xfonts-wqy
To install the relevant fonts.
In the terminal enter:
sudo apt-get install scim scim-pinyin scim-qtimm
To install Scim and scim-pinyin.
In the terminal enter:
sudo touch /etc/X11/Xsession.d/74custom-scim_startup
To create a file, then to modify the permissions for it:
sudo chmod 646 /etc/X11/Xsession.d/74custom-scim_startup
Then:
sudo echo 'export XMODIFIERS="@im=SCIM"' >> /etc/X11/Xsession.d/74custom-scim_startup
sudo echo 'export GTK_IM_MODULE="xim"' >> /etc/X11/Xsession.d/74custom-scim_startup
sudo chmod 644 /etc/X11/Xsession.d/74custom-scim_startup
In the terminal enter:
sudo nano /etc/scim/global
and check the line:
SupportedUnicodeLocales
if:
SupportedUnicodeLocales = en_US.UTF-8
then in the terminal enter:
sudo echo 'export LANG="en_US.UTF-8"' >> /etc/profile
In the terminal enter:
echo 'scim -d' >> ~/.config/openbox/autostart.sh
or see this page on autostarting applications.
In the terminal enter:
locale | grep LANG=
The answer would be something like
LANG=en_US.UTF-8
Type in the terminal:
im-switch -z YOUR_LOCALE -s scim # replace "YOUR_LOCALE" by something like "en_US.UTF-8"
Log off or reboot the computer for the modifications to take hold. Log back into the newly-configured user account. Note the keyboard icon that appears in the system tray.
Right-click on it to access the SCIM Setup menu and configured as preferred.
Open up Firefox. Hit Control+Space to toggle scim on/off.
Evidence of this howto is working : 谢谢