Install the ibus Input Method in Ubuntu

Source: Internet
Author: User
Tags gtk

Method 1: 1. Add an ibus Source

Join:
Deb http://ppa.launchpad.net/ibus-dev/ppa/ubuntu jaunty main

Deb http://ppa.launchpad.net/ibus-dev/ibus-1.2-intrepid/ubuntu intrepid main

Deb http://ppa.launchpad.net/ibus-dev/ibus-1.2-jaunty/ubuntu jaunty main

Deb http://ppa.launchpad.net/ibus-dev/ibus-1.2-karmic/ubuntu karmic main

 

This source is enough
Sudo apt-Get update
Update it.

Then install ibus

Sudo apt-Get install ibus-Table ibus-pinyin Python-IBM ibus-qt4 ibus-GTK

Install all of these. The first three are required.
Python-ibus, the version that comes with Python 8.04 is too low, so you need to add a new source to install it and install it in Python 9.04, just in case?
Ibus-qt4, ibus-GTK these two packages can prevent problems that cannot be followed by the cursor

After installation,
Im-switch-s ibus
Switch to ibus. You can use it after logging out.

Qt cannot be used by default.ProgramTo be modified

Sudo gedit/etc/X11/xinit/xinput. d/ibus
Xim = ibus
Xim_program =/usr/bin/ibus
Xim_args = ""
Gtk_im_module = ibus
Qt_im_module = xim
Xmodifiers = "@ im = ibus"
Depends = "ibus"

Now, you can use ibus normally. For ibus, it has quite a perfect function, which is no inferior to scim. However, ibus is developed in Python and guaranteedCodeWhile also sacrificing some performance, the performance may be somewhat delayed during program switching, but it does not feel obvious. You can try it out.

 

Method 2: manual Installation

1. Install dependencies:

 
# Aptitude install Git-core python-gtk2-dev libtool automake Python-Enchant libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev Python-xdg Python-plugin

2. Compile the Deb package from the source code:

 
$ Git clone git: // github.com/phuang/ibus.git ibus
$ CD ibus
$./Autogen. Sh
$ Chmod + x Debian/Rules
$ Dpkg-buildpackage
$ CD ..
$ Git clone git: // github.com/phuang/ibus-pinyin.git ibus-pinyin
$ CD ibus-pinyin
$./Autogen. Sh
$ Chmod + x Debian/Rules
$ Dpkg-buildpackage

If the public key of the oneleaf@gmail.com (Originally packed with leaves) is not added as trusted, a warning is reported, ignoring it.

Alternatively, if you use Debian Sid on powerpc, you canDownload the compiled package directly

.

Iii. installation:

 
# Dpkg-I ibus _Rev_Arch. Deb
# Dpkg-I ibus-pinyin _Rev_Arch. Deb

Iv. Configuration:

 
# Gtk-query-immodules-2.0>/etc/gtk-2.0/GTK. immodules.32
$/Usr/bin/ibus-Setup

In ~ /. Add the following to bashrc:

 
Export gtk_im_module = ibus
Export xmodifiers = @ im = ibus
Export qt_im_module = ibus

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.