Basic
Change the locales in console mode by typing this commnad :
# dpkg-reconfigure locales
and select several locales for your machine, mine are
- en_US.UTF-8
- ja_JP.EUC-JP
- ja_JP.UTF-8
And for default I picked “en_US.UTF-8“
Console
If you using Debian GNU/Linux in console mode type this command :
# dpkg-reconfigure console-data
And then “Select keymap from arch list” –> “qwerty” –> “japanese” –> “Standard”
Then linux will install “jp106” keyboard type
X Windows (GNOME)
Keyboard layout
For changing the keyboard layout using GNOME, click on :
- System –> Preferences –> Keyboard
- On “Keyboard Preferences” select “Layouts” tab and click “+Add…” and select “Japan” layout.
- Test your keyboard layout
Japanese Fonts
We need to install japanese fonts, so do this command :
# apt-get install ttf-kochi-gothic ttf-kochi-mincho xfonts-intl-japanese
Input Method (SCIM)
To change from English <-> Japanese input, we need SCIM, and to change the layout use “CTRL+SPACE”, to install SCIM do this command :
# apt-get install uim anthy scim-gtk2-immodule scim-uim scim-tables-ja uim-anthy scim-anthy
After installing all applications that we need, we want to run scim when we login to Gnome X Window, so create “.xsession” file on your home directory and fill it with this :
export XMODIFIERS=”@im=SCIM”
export GTK_IM_MODULE=”scim”
export XIM_PROGRAM=”scim -d”
export QT_IM_MODULE=”scim”
gnome-session
After that make it executable by doing this command :
$ chmod +x .xsession
And we configure the scim using your own user account, do this by typing command :
$ scim-setup


To reload SCIM application, right click on the SCIM tray and select “exit”, and run the command from terminal :
$ scim -d
Thats it, I hope this tutorial will work for you.
Thank you
References
- For windows XP – http://www.greggman.com/japan/xp-ime/xp-ime.htm
- Fonts – http://dspnet.fr.eu.org/~lonewolf/LinuxJapan/Howto_English_Japanese.html
- SCIM – http://beeznest.wordpress.com/2005/12/16/howto-install-japanese-input-on-debian-sarge-using-scim/