找回密码
 注册
查看: 838|回复: 0

在 fc4中安装 fcitx 转贴

[复制链接]
发表于 2005-8-14 00:04:58 | 显示全部楼层 |阅读模式
Fcitx 3.x在 Fedora core 4的安装和配置

一、下载;

请下载最新稳定版本
fcitx-3.1.1.tar.bz2 03-24-2005 最新稳定版
请到下载区下载;

二、卸载 iiimf 所有的包;

iiimf-le-chinput-0.3-19
iiimf-qt-12.2-4
iiimf-x-12.2-4
iiimf-libs-devel-12.2-4
iiimf-gtk-12.2-4
iiimf-le-sun-thai-12.2-4
iiimf-le-xcin-0.1.10-1
iiimf-gnome-im-switcher-12.2-4
iiimf-libs-12.2-4
iiimf-le-unit-12.2-4
iiimf-server-12.2-4
iiimf-le-hangul-12.2-4
iiimf-le-canna-12.2-4
iiimf-emacs-12.2-4
iiimf-docs-12.2-4

方法是:
[root@localhost beinan]# rpm -e iiimf-le-chinput-0.3-19

一个一个的来,如果遇到卸不掉的,请加 --nodeps 参数;
比如
[root@localhost beinan]# rpm -e iiimf-le-chinput-0.3-19 --nodeps
[root@localhost beinan]# rpm -e iiimf-qt-12.2-4 --nodeps

注意命令行是有大小写区别的,请按上面的 rpm -e 软件包的名称 --nodeps 的格式来卸掉上面的列出的那些包;
再举个例子;要一个一个的来,慢点没有关系吧,呵。。。。我也懂不了多少。
[root@localhost beinan]# rpm -e iiimf-emacs-12.2-4

三、安装 fcitx-3.1.1.tar.bz2

[root@localhost beinan]# tar jxvf fcitx-3.1.1.tar.bz2
[root@localhost beinan]# cd fcitx-3.1.1
[root@localhost fcitx-3.1.1]# ./configure
[root@localhost fcitx-3.1.1]# make
[root@localhost fcitx-3.1.1]# make install
[root@localhost fcitx-3.1.1]#

如果没有什么大的问题,我看这就安装完成了。

四、Fcitx 3.x的配置;

请在 /etc/X11/xinit/xinput.d/ 目录中建一个 fcitx为名字的文件名;里面的内容如下:

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

然后改变这个文件的权限为 777;
[root@localhost beinan]# cd /etc/X11/xinit/xinput.d/
[root@localhost xinput.d]# chmod 777 fcitx
看一下,权限应该是 777 了吧。

[root@localhost xinput.d]# ls -lh fcitx
-rwxrwxrwx 1 root root 84 7月 24 10:11 fcitx
[root@localhost xinput.d]#

还得设置一下当前用户的环境变量,也就是在你想用的那个用户的家目录下的 .bashrc 文件。

bashrc这个文件是隐藏的,你可以用 vi 或者gedit编辑都行。看你习惯吧。

在里面加两行,如下:

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

注意保存一下,否则不起做用;

我是刚安装好的系统,一切都是新的,看一下我的beinan这个用户下的 .bashrc的配置吧。

# .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

如果让fcitx 开机自动运行, 请在 /etc/X11/xinit/xinitrc.d/目录中的文件 xinput.sh 中加一行。加在最后就行。

fcitx&

其它的好象也没有什么了,重新启动一下机器就行了

--
※ 来源:.天大求实BBS http://bbs.tju.edu.cn [FROM: 202.113.13.188]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2025-2-6 19:08 , Processed in 0.041422 second(s), 16 queries .

© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表