Install and set the FCITX Input Method in Fedora9

Source: Internet
Author: User
Install FCITX Input Method in Fedora9, download; source package: fcitx-3.2-050827.tar.bz2RPM package: fcitx-3.2.050827-fc4.noarch.rpm Please download to the http://www.fcitx.org download area; or

Install the FCITX input method under Fedora 9

1. Download;

Source code package:
Fcitx-3.2-050827.tar.bz2

RPM package: fcitx-3.2.050827-fc4.noarch.rpm

Please go to the http://www.fcitx.org Download Area;
Or http://mirrors.redv.com/fcitx/download:

2. Install fcitx. Select either of the two;

1. Install the RPM package;

[Root @ localhost beinan] # rpm-ivh fcitx-3.2.050827-fc4.noarch.rpm

For configuration, see the third point;


2. Install the source code package;

[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

3. configuration of Fcitx 3.x;

Enable fcitx to automatically run on the desktop. There are two methods;

Method 1:

Check the file zh_CN in the/etc/X11/xinit/xinput. d/directory. If not, create one. Change the content to the following;


XIM = fcitx
XIM_PROGRAM = fcitx
GTK_IM_MODULE = fcitx
Gnome-im-settings-daemon>/dev/null

Method 2:

Create the file zh_CN in $ HOME/. xinput. d/, which contains the following content;

XIM = fcitx
XIM_PROGRAM = fcitx
GTK_IM_MODULE = fcitx
XMODIFIERS = "@ im = fcitx"
Gnome-im-settings-daemon>/dev/null

If there is no. xinput. d directory in the current user directory, create one. Then create a zh_CN file with the content above.


[Root @ localhost beinan] # mkdir ~ /. Xinput. d

This is almost usable. Run the command directly;

[Root @ localhost beinan] # fcitx

If you cannot use fcitx, you may need to set the variable;

You have to set the environment variables of the current user, that is, the. bashrc file under the Home Directory of the user you want to use.

The. bashrc file is hidden. You can use vi or gedit to edit it. You are used to it.

Add two lines to the table, as shown in the following figure:

Export LC_CTYPE = "zh_CN"
Export XMODIFIERS = "@ im = fcitx"

Save it, otherwise it cannot be used;

I have just installed the system, and everything is new. Let's take a look at the configuration of. bashrc under my beinan user.


#. Bashrc

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

# Source global definitions
If [-f/etc/bashrc]; then
./Etc/bashrc
Fi


Existing problems;

If you use a Chinese desktop environment, you can start fcitx, but you cannot enter it. Most of them are caused by inconsistent locale on the console and locale on the desktop.

Add a line in. bashrc under the user's home directory;

Export LANG = "zh_CN.UTF-8"

A. i18n file is also created. The content is as follows:

LANG = "zh_CN.UTF-8"

Restart. Press CTRL + ALT + BACKSPACE to restart the system.

FCITX input method setting in Fedora 9

A. Create the fcitx. conf file under/etc/X11/xinit/xinput. d. (Change scim. conf to use it)

For example:

CXIM = FCITX
XIM_PROGRAM =/usr/local/bin/fcitx
XIM_ARGS = "" d
SHORT_DESC = "FCITX"

Gtkimm_exists (){
# Check if any immodules installed
For dir in/usr/lib */gtk-2.0/immodules; do
[-X $ {dir}/im-$ 1.so] & return 0
Done
Return 1
}

If gtkimm_exists fcitx-bridge; then
GTK_IM_MODULE = fcitx
Elif gtkimm_exists fcitx; then
GTK_IM_MODULE = fcitx
Else
GTK_IM_MODULE = xim
Fi

Qtimm_exists (){
# Check if any immodule installed
For dir in/usr/lib */qt4/plugins/inputmethods; do
[-X $ {dir}/$ 1.so] & return 0
Done
Return 1
}

If qtimm_exists im-fcitx-bridge; then
QT_IM_MODULE = fcitx
Elif qtimm_exists libw.citx; then
QT_IM_MODULE = fcitx
Else
QT_IM_MODULE = xim
Fi


B. Modify ~ /. Add the bashrc File

Export LC_CTYPE = "zh_CN.utf8"
Export XMODIFIERS = "@ im = fcitx"

C. Finally, select FCITX in the input method switch program. log out and log on again to use the FCITX input method.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.