How to install fcitx Wubi

  

Configure environment variable application to communicate with XIM through environment variable XMODIFIERS. Set XMODIFIERS as follows (take bash as an example): export XMODIFIERS="@im=<XIM registration name> ;" The above <XIM registration name> is the name registered in the system by the XIM program. The corresponding XIM server is looked up based on this variable when the application starts. Therefore, even if several XIM programs are running simultaneously in the system, an application can only use one XIM input method at a time. Sometimes you will encounter this situation, obviously XIM has been started, but the application is not available. This is often because the XMODIFIERS setting is incorrect (such as when you configure the system, XMODIFIERS is modified in a different script file, causing X to be inconsistent with the variable after startup). Fcitx The default registered XIM name is fcitx, but if XMODIFIERS is set when fcitx starts, fcitx will automatically register the appropriate name with the system settings. In addition, XIM also depends on the setting of system locale. If the locale started by XIM does not match the locale when the application starts, it may not be available. It should be noted that locale set to en_US will not be able to enter Chinese. If you want to use an English environment, use en_US.UTF-8. To set XMODIFERS, you can usually add a line to ~/.bashrc: export XMODIFIERS="@im=fcitx" Re-login to the current user, start X, and then manually run fcitx under X (in some environments, it may only be The program started after fcitx starts running enters Chinese). You can also add fcitx to the window manager's autostart. For details, see the description of the corresponding window manager. Configuration under Ubuntu (1) Install the im-switch package. Fcitx-4.0.0 This document is generated by LibreOffice 3.3.0beta2 (2) into the /etc/X11/xinit/xinput.d directory, create a new fcitx file with the following contents: ------------- - File start (excluding this line) --------- XIM=fcitx XIM_PROGRAM=/usr/local/bin/fcitx XIM_ARGS="" GTK_IM_MODULE=XIM QT_IM_MODULE=XIM DEPENDS="fcitx" - ------------- End of file (not including this line) --------- Note: <;XIM_PROGRAM=/usr/local/bin/fcitx” The content of this line is based on Fill in the installation path of fcitx. (3) Set the locale of the system to zh_CN.UTF-8, execute im-switch -s fcitx


Download address:

http://code.google .com/p/fcitx/downloads/list

Additional fcitx installation method for query use:

Second, install fcitx, choose one;
>

1, RPM package installation;
[root@localhost beinan]# rpm -ivh fcitx-3.2.050827-fc4.noarch.rpm

Configuration please see Third point;

2, source package installation;
[root@localhost beinan]# tar jxvf fcitx-3.2-050827.tar.bz2 [root@localhost beinan]# cd fcitx [root@localhost fcitx-3.1.1]# ./configure [root@localhost fcitx-3.1.1]# make [root@localhost fcitx-3.1.1]# make install

Fcitx 3.x configuration;

Let fcitx run automatically on the desktop; there are two methods; Method one:

Please in /etc/X11/xinit /xinput.d/View the file zh_CN in the directory, if not, create one; change the contents to the following;

XIM=fcitx XIM_PROGRAM=fcitx GTK_IM_MODULE=fcitx gnome-im-settings-daemon & Gt;/de v/null

Method 2:
Create a file zh_CN in $HOME/.xinput.d/, including the following, you can do it; XIM=fcitx XIM_PROGRAM=fcitx GTK_IM_MODULE=fcitx XMODIFIERS ="@im=fcitx" gnome-im-settings-daemon &gt;/dev/null If there is no .xinput.d directory in the current user directory, create one. Then build a zh_CN file, the content is the above paragraph.

[root@localhost beinan]# mkdir ~/.xinput.d

This is almost enough to use. Run the command directly; [root@localhost beinan]# fcitx

If you can't use fcitx, you may have to set the variable;

you have to set the current user's environment variable, that is, The .bashrc file in the home directory of the user you want to use.

.bashrc This file is hidden, you can edit it with vi or gedit. See you used to it.

Add two lines to it, as follows: export LC_CTYPE="zh_CN" export XMODIFIERS="@im=fcitx" Pay attention to save, otherwise you can't use it;

I am just Installed system, everything is new, take a look at the configuration of the .bashrc under my beinan user.

# .bashrc

# User specific aliases and functions export LC_CTYPE="zh_CN" export XMODIFIERS="@im=fcitx"

# Source global definitions if [ ,null,null,3],-f /etc/bashrc ]; then . /etc/bashrc fi

There are problems;

If you use the Chinese desktop environment, you can start fcitx but not Input, mostly caused by the inconsistency between the locale of the console and the locale of the desktop.

Please add a line to the .bashrc in the user's home directory;

export LANG="zh_CN.UTF-8"

Also build a .i18n File; the content is as follows:

LANG="zh_CN.UTF-8"

Restart X, just press CTRL+ALT+BACKSPACE; restart the system

Copyright © Windows knowledge All Rights Reserved