Disclaimer: This article was moved from my 51cto blog as regards this.
Ubuntu under SCIM should be the best Chinese input method, it is similar to Sogou, the following describes its installation method:
1) Terminal input:
sudo apt-get remove Scim
This step is to remove the installation of the system when the SCIM, the actual is a fake, I can not use here
2)
sudo apt-get install SCIM
This step downloads the installation Scim IME. Download the system will be installed on their own, there will be hints, direct y on the line
3) sudo apt-get install Scim-chinese
This step is to download the installation of Chinese input method, the previous step is to download a can run the input method of the platform,
Now it's time to install Chinese input on this specific platform.
4) sudo gedit/etc/x11/xsession.d/95xinput
This step is to create a new 95xinput file, the specific content of the file is as follows:
/usr/bin/scim-d xmodifiers= "@im =scim" export xmodifiers export GTK_IM_MODULE=SCIM
Copy the above into the new 95xinput file, and then, after you confirm the error, save and exit the Gedit editor
5) exit terminal
6) Logout, login again, then use Ctrl+space to activate Chinese input method
=======================================
Reference the following: Finally put Google Pinyin installed as Ubuntu 10.04 toss for a long time!!
=======================================
A. Get code:
(no git first installs Git:sudo apt-get install git-core)
$ git clone git://github.com/tchaikov/scim-googlepinyin.git
$ cd scim-googlepinyin
B. Compiler Prerequisites:
The link above gives a description of how to compile, but less mention a few required components, here:
* autotools-dev * libgtk2.0-dev * libscim-dev * libtool * AUTOMAKE  
Use the following command to see if it is installed, if not, will automatically help you install:  
$ aptitude Install Autotools-dev Libgtk2.0-dev Libscim-dev libtool automake
C. Compile: Remember that the system must first exist SCIM (no sudo apt-get install SCIM) & nbsp
$./autogen.sh
$ make $ sudo make install
now restart scim:
Close Scim:pkill scim
then start: scim-d
Google Pinyin Input method (end version) under Ubuntu