I did a lot of work before my Ubuntu system was able to use the Chinese input method, and looked at the relevant data and finally solved the problem that was not complicated but annoying enough.
First of all, personally think that there is no need to replace the system default IBUs input method for FCITX. There are two reasons: one is to uninstall IBUs after the system operation will produce some unpredictable impact and trouble; the second is IBUs input method from the Sunpinyin is not good, but can download ibus-googlepinyin Chinese typing completely no problem.
The following is a complete solution to the Chinese input method, summing up the experience of the predecessors, into their own process, if there are deficiencies, I hope and the great God to exchange more.
1. If you cannot find the IBUs input method of the system, you can download the installation IBUs Input method to the Ubuntu Software Center.
2. Download and install Googlepinyin, command line input
sudo apt-get install Ibus-googlepinyin
3. If there is no keypad icon in the upper right corner of the desktop, enter the following command to restart IBUs
Ibus-daemon-d-x-r
4. Click on the upper right corner keypad-preferences-Input method, add Google Input method, adjust to the top (highest priority), you can delete sunpinyin, anyway it is not good to use. In Preferences-general, you can set your own custom shortcut keys.
5. At this time has been set up, try the input method can be normal input Chinese, if it is still only input English, need to modify system files. Enter command
sudo gedit/etc/profile,
Modify the last five elements (not directly added) in the open file as:
Export xmodifiers= @im =ibus
Export Gtk_im_module=ibus
Export Qt_im_module=ibus
xmodifiers= @im =ibus
Qt_im_module=xim
Reboot system
6. After the first five steps can be normal input Chinese. But after the boot found that the keyboard is missing the upper right corner, at this point, enter the 3rd command can manually open IBUs. But each time this is very troublesome, in order to once and for all, need to set IBUs to boot from start. The method is as follows:
System >> Preferences >>startup Applications (Find settings for boot application)
Click the Button:add
Name:ibus Daemon
Command:/usr/bin/ibus-daemon-d
Comment:start IBus Daemon When gnomestarts
7. Restart the system, the upper right corner keypad automatically appears, since the start of a successful setting, at this point if you want to switch the English input method only need to pass the IBUs input method of the switch control shortcut keys can (4th in their own settings, my settings are control+tab)
Turn off the IBUs in the upper-right corner of the keyboard: At this point, the default input English
Show Googlepinyin chart after opening IBUs: The Chinese input method is normal to use at this time