在ubuntu12.04中安装中文输入法fcitx

来源:互联网 发布:档案管理 源码 编辑:程序博客网 时间:2024/05/22 17:04

原文:Quick install Chineseinput method on Ubuntu

A. To install Chineseinput 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 Chineseinput. You can start toinput in Chinese now.

B. Install Chineseinput 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 toinstall 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. Type chmod +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 Chineseinput, you can start toinput Chinese now.

C . Install Chineseinput 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 toinstall 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 Chineseinput, you can start toinput Chinese now.

D. Install other Chineseinput

If you have a traditional Chinese Linux system and would like toinstall other Chineseinput 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 theLinux!

!!!

安装Fcitx sudo apt-get install im-switch fcitx sudo im-switch -s fcitx -z default

im-switch -s fcitx -z default #注意:不加sudo

#Linux


摘自: Quickinstall Chineseinput method on Ubuntu_依玲_百度空间
网址:http://hi.baidu.com/yywgrhkthsekpqe/item/a2fbe06a2a8ed1156895e6a0

读后感
        我参照文中A. To install Chineseinput fcitx through web update的步骤
在ubuntu12.04中成功安装了中文输入法。说明文中的A方法是可行的。如果谁对A
方法有疑问,可以跟我联系。Email: xww810319@126.com

                                                                                                             20131206