Ubuntu 20.x Japanese support

  1. Keyboard layout First, set the keyboard layout
$ sudo dpkg-reconfigure keyboard-configuration

When the screen changes, set the keyboard according to the following procedure

Generic 105-key PC (intl.)JapaneseJapaneseThe default for the keyboard layoutNo compose keyYes

  1. Japanese language Install a language set that supports Japanese input
$ sudo apt install ibus-mozc

Then do the following to add the input source (Settnigs can be opened from Ubuntu search)

SettingsRegion & LanguageInput sources +JapaneseJapanese (Mozc)

  1. MOZC Specify the layout used in MOZC
$ sudo vi /usr/share/ibus/component/mozc.xml

Change as follows

<layout>default</layout><layout>jp</layout>

  1. X Desktop
$ gnome-session-properties

Addsetxkbmap jpSave

For Name, put set xkbmap jp in Command and save it.

If you reboot at the end, you should be able to switch the input source with the Windows key and the space key, and switch between romaji and hiragana with half-width/full-width.

Recommended Posts

Ubuntu 20.x Japanese support
Japanese localization of Ubuntu20.04
Japanese input on Ubuntu20.04 Desktop
How to build SquashTM and how to support Japanese