64-bit RedHatEnterpriseLinux installation fcitx4.0 little penguin Input Method

Source: Internet
Author: User
First install Chinese support: surootyuminstall "@ ChineseSupport" exit logout and then login 2. Install dependent package yum-yinstallgtk2-immodule-ximgtk2-immodulesgcclibXrender-develcairo-develpango-develintltoolim-chooser 3. Download and install little penguin 4.0 from China

1. First install Chinese support:

Su root

Yum install "@ Chinese Support"

Exit

Log out and then log on
Ii. Install dependent packages
Yum-y install gtk2-immodule-xim gtk2-immodules gcc libXrender-devel cairo-devel pango-devel intltool im-chooser
3. Download and install penguin 4.0
Download from huajun Software Park.

Unzip fcitx-4.0.0.tar.zip

Tar zxf fcitx-4.0.0.tar.gz

Cd fcitx-4.0.0
Make & make install & echo $?


Test whether the installation is successful: Enter fcitx-h. If the installation is successful, you should be able to get the help file, as shown below:
 

[Root @ CentOS ~] # Fcitx-h

Usage: fcitx [OPTION]

-D run as daemon (default)

-D don't run as daemon

-C (re) create config file in home directory and then exit

-N [im name] run as specified name

-V display the version information and exit

-H display this help and exit
 

3. Configure Fcitx as the default input method

 


1. Create the configuration file vim/etc/X11/xinit/xinput. d/fcitx. conf with the following content:

XIM = fcitx

XIM_PROGRAM =/usr/local/bin/fcitx # note that this file must exist. Check its location.

XIM_ARGS = "-d" www.2cto.com

GTK_IM_MODULE = fcitx

QT_IM_MODULE = fcitx

2. In the/etc/alternatives/directory, delete the symbolic link xinputrc and recreate it:

Mv/etc/alternatives/xinputrc. bak

Ln-s/etc/X11/xinit/xinput. d/fcitx. conf/etc/alternatives/xinputrc
 

3. finally, log out and log in. In the menu system-preference-input method, select "enable Input Method feature", select "use fcitx", and then "log out ", after logging on, press ctrl + space to activate the fcitx input method. (In the middle of the top panel, you can see the small Toolbar of the input method)

 

NOTE: If your desktop is in an English environment, you must add the following content to the user's user directory. bashrc configuration file:

Export LANG = zh_CN.UTF-8 ″

Export LC_CTYPE = "zh_CN.UTF-8 ″

Export XIM = fcitx

Export XIM_PROGRAM = fcitx

Export GTK_IM_MODULE = xim

Export XMODIFIERS = "@ im = fcitx"

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.