A. To install Chinese input fcitx through web update
1. Click application program tab and then click root terminal, login to a root terminal
2. Type apt-get update and press Enter key
3. Type apt-get install fcitx and press Enter key (it may take a while to finish, be patient)
4. After finished, type cd /etc/X11/Xsession.d and press Enter key to get into this directory
5. Create a new file called 95xinput, add the following contents into file:
export XIM=fcitx
export XIM_PROGRAM=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx (kubuntu delete this line)
fcitx
Save the file and exit the edit mode.
6. Type chmod +755 95xinput and press Enter key
7. Type reboot and press Enter key to restart the pc
8 Login into X window and open a text editor or openoffice , press ctrl-space to active Chinese input. You can start to input in Chinese now.
B. Install Chinese input fcitx through pre-build package
1. Go to web site www.fcitx.org
2. Download the file fcitx-3.1.1-bin.tar.bz2
3. Click application program tab and then click root terminal, login root terminal.
4. Type cd /usr to get into /usr directory and copy the above file in /usr directory
5. Type tar jxvf citx-3.1.1-bin.tar.bz2 and press Enter key to extract the file
6. Type cd fcitx-3.1.1-bin and press Enter key and press Enter key to get into newly created directory
7. Type ./fcitx.install and press Enter key to install fcitx
8. After finished, type cd /etc/X11/Xsession.d and press Enter key to change current working directory
9. Create a new file name it as 95xinput, add the following contents into file:
export XIM=fcitx
export XIM_PROGRAM=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx (kubuntu delete this line)
fcitx
10. Save the file and exit the edit mode
11. Typechmod +755 95xinput and press Enter key
12. Type reboot and press Enter key to restart the pc
13. Login into X window and open a text editor or openoffice , press ctrl-space to active Chinese input, you can start to input Chinese now.
C . Install Chinese input fcitx from scratch
1. Go to web site www.fcitx.org
2. Download the file fcitx-3.1.1.tar.bz2
3. Type cd /usr and press Enter key to get into /usr directory and copy the above file in /usr directory
4. Type tar jxvf citx-3.1.1.tar.bz2 and press Enter key to extract the file
5. Type cd fcitx-3.1.1 to get into this newly created directory
6. Type apt-get install bulid-essential and press Enter key
7. Type apt-get install Xlibs-dev and press Enter key
8. Type apt-get install libxft-dev xfsdump gawk and press Enter key
9. Type ./configure and press Enter key
10. Type make and press Enter key to compile
11. Type make install and press Enter key to install fcitx
12. After finished, type cd /etc/X11/Xsession.d and press Enter key to change current working directory. Create a new file name it as 95xinput, add the following contents into file:
export XIM=fcitx
export XIM_PROGRAM=fcitx
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx (kubuntu delete this line)
fcitx
Save the file and exit the edit mode
13. Type chmod +755 95xinput and press Enter key
14. Type reboot and press Enter key to restart the pc
15. Login into X window and open a text editor or openoffice ,press ctrl-space to active Chinese input, you can start to input Chinese now.
D. Install other Chinese input
If you have a traditional Chinese Linux system and would like to install other Chinese input like scim, you can do so through approach A. You only need to change a few places.
In step 6 , you change fcitx to scim.
In step 8, you change all fcitx to scim
and the rest will be the same.
Although here we use stable version of fcitx as a sample, you can always use approach C to download and compile the latest version at any time you like. Good luck and enjoy the Linux!
!!!
安装Fcitx sudo apt-get install im-switch fcitx sudo im-switch -s fcitx -z defaultim-switch -s fcitx -z default #注意:不加sudo