首页 > 系统相关 >Quick install Chinese input method on Ubuntu

Quick install Chinese input method on Ubuntu

时间:2023-03-28 14:04:25浏览次数:57  
标签:key Chinese Ubuntu fcitx export install Enter press Type


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

标签:key,Chinese,Ubuntu,fcitx,export,install,Enter,press,Type
From: https://blog.51cto.com/u_2650279/6154719

相关文章

  • ubuntu12.04安装QQ2012教程
    Ubuntu(乌班图)是基于DebianGNU/Linux,支持x86、amd64(即x64)和ppc架构,由全球化的专业开发团队(CanonicalLtd)打造的开源GNU/Linux操作系统,为桌面虚拟化提供支持平台。Ubuntu系统......
  • Linux install mysql 在Linux安裝Mysql
    1.0installmysqlsudoaptpurgemysql-servermysql-commonsudoaptautoremovemysql-servermysql-commonsudoapt-getupdatesudoapt-getinstallmysql-server......
  • ubuntu vnc xstartup 解決vnc不能顥示icon
    1.0 xstartup#!/bin/sh#Uncommentthefollowingtwolinesfornormaldesktop:#unsetSESSION_MANAGER#exec/etc/X11/xinit/xinitrc[-x/etc/vnc/xstartup......
  • MobaXterm 远程登录 Ubuntu
    以下指令默认都是在非root用户下使用,在root用户下使用把sudo去掉即可1安装ssh,并启动ssh服务安装:sudoapt-getinstallopenssh-server启动:sudoapt-getinstallope......
  • sogou_install
    搜狗输入法安装在系统设置里面讲键盘系统输入法改为fcitx。若无,则执行sudoaptupdatesudoapt-getinstallfcitx设置fcitx开机自启sudocp/usr/share/application......
  • Ubuntu下DataX安装教程
    datax和datax-web安装教程DataX是阿里开源的一个异构数据源离线同步工具,致力于实现包括关系型数据库(MySQL、Oracle等)、HDFS、Hive、ODPS、HBase、FTP等各种异构数据源......
  • Ubuntu开启root远程登录
    1.使用普通用户登录后切换rootsudo-i2.修改root的密码echoroot:123123|sudochpasswdroot3.如果没有开启sshd就需要安装open-ssh并开启sudoaptupdatesudoap......
  • #Python基础 利用Pyinstaller 模块对python代码进行打包exe
    一般我们都用 Python 的 Pyinstaller 模块进行打包,这里记录Pyinstaller 模块进行打包。一:安装 Pyinstaller 模块pipinstallPyInstaller二:打开cmd(win+R) ......
  • Installing Windows 7 on VirtualBox. Error status: 0xc0000225?
    Today,afterfinallytakingtheplungeintotheLinuxworld(I'mtryingtorefocusmyworktotheRailsecosystem),IinstalledVirtualBoxonLinuxMint13. Si......
  • Boa服务器 | Ubuntu下编译、安装Boa
    目录1.系统2.下载3.编译、安装4.测试5.参考1.系统[fly@fly-vmboa]$uname-aLinuxfly-vm4.15.0-142-generic#146~16.04.1-UbuntuSMPTueApr1309:27:15UTC2021x8......