Quick install Chinese input method on Ubuntu

本文提供三种在Ubuntu上安装Fcitx中文输入法的方法:通过网络更新安装、通过预编译包安装及从源码安装。同时介绍了如何通过类似步骤安装其他中文输入法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Quick install Chinese input method on Ubuntu 7.04

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 default

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值