Install Scim Pinyin Input for Chinese under Ubuntu 7.04 English Desktop environment

1. install Scim Pinyin using System/Administration/Synaptic Package Manager
Type Scim to search, select Scim Pinyin to install

2. Set up Scim to run automatically when your desktop starts

Create a file called 75custom-scim_init in /etc/X11/Xsession.d
From terminal,

sudo gedit etc/X11/Xsession.d/75custom-scim_init

Paste the following and save

export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE="scim"
export XIM_PROGRAM="scim -d"

Note: the above instruction is for Ubuntu Gnome desktop, for other desktop, see:

<I found the solution here: http://www.thanhsiang.org/faqing/node/50>