Japanese configuration (Debian/FreeBSD)

This posts shows how to configure your Debian system for Japanese input and output.

Debian

First, we will need some fonts. You can install :

$ apt-get install otf-ipafont-mincho

Note : I first installed ttf-kochi-gothic, then ttf-takao-mincho. The takao mincho is more beautiful in my opinion but the characters are rather small and difficult to read. For readability, I chose otf-ipafont-mincho.

Now we will add Anthy for managing our Japanese input :

$ apt-get install ibus ibus-anthy ibus-qt4 kasumi

Then we start the configuration : start im-config and choose ibus in the options. Logout, login and start ibus (either with the menu or with ibus-daemon).

If you cannot input circumlex accents after that, you will need to install another package :

$ apt-get install ibus-gtk

In the .bashrc file, you may have to add :

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus

FreeBSD

The procedure is the same on FreeBSD. Here is a link for the complete configuration.