|
非常感谢大家的帮助.
fcitx的问题已经解决,就是安装的时候没有进行完locale-gen所致.....
locale-gen时就会
- Generating locales...
- zh_CN.GB18030...
复制代码
这一步确实会等很久很久.....最终还是Done了 ....
---------------------------------------------------------------------------------------------
折腾了快一天了,还是没有能输入汉字...
由于机器比较老的原因,安装了archlinux-2008.06-core-i686.的base包,然后pacman安装了Fluxbox,firefox,gvim和fcitx输入法.
fcitx可以正常启动,但是总是无法激活.
这是几个配置文件,请大伙帮忙看看.
~/.bashrc
- alias ls='ls --color=auto'
- PS1='[\u@\h \W]\$ '
- export LANG=zh_CN.UTF-8
- export LC_CTYPE="zh_CN"
- export XMODIFIERS="@im=fcitx"
- export XIM=fcitx
- export XIM_PROGRAM=fcitx
复制代码
/etc/profile
- #
- # /etc/profile
- #
- # This file is intended to be used for ALL common
- # Bourne-compatible shells. Shell specifics should be
- # handled in /etc/profile.$SHELL where $SHELL is the name
- # of the binary being run (discounting symlinks)
- #
- # Sections taken from SuSe's /etc/profile
- # Note the explicit use of 'test' to cover all bases
- # and potentially incompatible shells
- #Determine our shell without using $SHELL, which may lie
- shell="sh"
- if test -f /proc/mounts; then
- case $(/bin/ls -l /proc/$$/exe) in
- *bash) shell=bash ;;
- *dash) shell=dash ;;
- *ash) shell=ash ;;
- *ksh) shell=ksh ;;
- *zsh) shell=zsh ;;
- esac
- fi
- # Load shell specific profile settings
- test -f "/etc/profile.$shell" && . "/etc/profile.$shell"
- #Set our umask
- umask 022
- # Set our default path
- PATH="/bin:/usr/bin:/sbin:/usr/sbin"
- export PATH
- # Some readline stuff that is fairly common
- HISTSIZE=1000
- HISTCONTROL="erasedups"
- INPUTRC="/etc/inputrc"
- LESS="-R"
- LC_COLLATE="C"
- export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
- # Load profiles from /etc/profile.d
- if test -d /etc/profile.d/; then
- for profile in /etc/profile.d/*.sh; do
- test -x $profile && . $profile
- done
- unset profile
- fi
- # Termcap is outdated, old, and crusty, kill it.
- unset TERMCAP
- # Man is much better than us at figuring this out
- unset MANPATH
复制代码
/etc/X11/xinit/xinitrc
- #!/bin/sh
- # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
- userresources=$HOME/.Xresources
- usermodmap=$HOME/.Xmodmap
- sysresources=/etc/X11/xinit/.Xresources
- sysmodmap=/etc/X11/xinit/.Xmodmap
- # merge in defaults and keymaps
- if [ -f $sysresources ]; then
- xrdb -merge $sysresources
- fi
- if [ -f $sysmodmap ]; then
- xmodmap $sysmodmap
- fi
- if [ -f "$userresources" ]; then
- xrdb -merge "$userresources"
- fi
- if [ -f "$usermodmap" ]; then
- xmodmap "$usermodmap"
- fi
- # start some nice programs
- #twm &
- #xclock -geometry 50x50-1+1 &
- #xterm -geometry 80x50+494+51 &
- #xterm -geometry 80x20+494-0 &
- #exec xterm -geometry 80x66+0+0 -name login
- export LC_CTYPE=zh_CN.UTF-8
- export XIM=fcitx
- export XIM_PROGRAM=fcitx
- export XMODIFIERS="@im=fcitx"
- export GTK_IM_MODULE=xim
- exec fcitx &
- exec startfluxbox
复制代码 |
|