LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1210|回复: 7

fcitx无法随X一起自动启动,求助!

[复制链接]
发表于 2005-3-27 15:21:25 | 显示全部楼层 |阅读模式
用了各种办法都不行啊!配置文件越改越乱。

我把我改过的配置文件都贴一下,帮我看看什么地方出问题了。
btw:
下面把我曾经改过的配置文件贴上。好像还有一些改过的,不过忘了是哪个了找不到了。疑惑启动是由那个文件控制的?怎么有那么多得方法。

~/.bashrc

  1. # ~/.bashrc: executed by bash(1) for non-login shells.
  2. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
  3. # for examples
  4. export XMODIFIERS="@im=fcitx"

  5.       export XIM=fcitx

  6.       export XIM_PROGRAM=fcitx

  7. # If running interactively, then:
  8. if [ "$PS1" ]; then

  9.         # don't put duplicate lines in the history. See bash(1) for more options
  10.         # export HISTCONTROL=ignoredups

  11.         # check the window size after each command and, if necessary,
  12.         # update the values of LINES and COLUMNS.
  13.         #shopt -s checkwinsize

  14.         # enable color support of ls and also add handy aliases
  15.         if [ "$TERM" != "dumb" ]; then
  16.                 eval `dircolors -b`
  17.                 alias ls='ls --color=auto'
  18.                 alias dir='ls --color=auto --format=vertical'
  19.                 alias vdir='ls --color=auto --format=long'
  20.         fi

  21.         # some more ls aliases
  22.         alias ll='ls -l --color=auto'
  23.         alias la='ls -A --color=auto'
  24.         alias l='ls -CF --color=auto'
  25.         alias l.='ls -d .* --color=auto'

  26.         # set a fancy prompt
  27.         PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

  28.         # If this is an xterm set the title to user@host:dir
  29.         case $TERM in
  30.                 xterm*)
  31.                 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
  32.                 ;;
  33.                 *)
  34.                 ;;
  35.         esac

  36.         # enable programmable completion features (you don't need to enable
  37.         # this, if it's already enabled in /etc/bash.bashrc).
  38.         if [ -f /etc/bash_completion ]; then
  39.                 . /etc/bash_completion
  40.         fi
  41. fi
复制代码


~/.xinitrc

  1. #exec startxfce4
  2. exec startkde
  3. export LANG=zh_CN.utf8
  4. export GTK_IM_MODULE=xim
  5. export XMODIFIERS=@im=fcitx
  6. export XIM=fcitx
  7. export XIM_PROGRAM=fcitx
复制代码

/etc/profile

  1. #
  2. # /etc/profile
  3. #

  4. export PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin"

  5. export MANPATH="/usr/man:/usr/X11R6/man"
  6. export LESSCHARSET="latin1"
  7. export INPUTRC="/etc/inputrc"
  8. export LESS="-R"

  9. # Locale settings (find your locale with 'locale -a')
  10. export LC_CTYPE="zh_CN.gbk"
  11. export LANG="zh_CN.gbk"
  12. export LC_COLLATE="C"

  13. export COLUMNS LINES

  14. export PS1='[\u@\h \W]\$ '
  15. export PS2='> '

  16. umask 022

  17. if [ "$TERM" = "xterm" -o "$TERM" = "xterm-color" -o "$TERM" = "rxvt" ]; then
  18.   PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
  19. fi

  20. # load profiles from /etc/profile.d
  21. #  (to disable a profile, just remove execute permission on it)
  22. for profile in /etc/profile.d/*.sh; do
  23.   if [ -x $profile ]; then
  24.     . $profile
  25.   fi
  26. done
  27. unset profile

  28. # End of file
复制代码

/etc/X11/xinit/xinitrc

  1. #!/bin/sh
  2. # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

  3. userresources=$HOME/.Xresources
  4. usermodmap=$HOME/.Xmodmap
  5. sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
  6. sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
  7. export XMODIFIERS=@im=fcitx
  8. fcitx &
  9. # merge in defaults and keymaps

  10. if [ -f $sysresources ]; then
  11.     xrdb -merge $sysresources
  12. fi

  13. if [ -f $sysmodmap ]; then
  14.     xmodmap $sysmodmap
  15. fi

  16. if [ -f $userresources ]; then
  17.     xrdb -merge $userresources
  18. fi

  19. if [ -f $usermodmap ]; then
  20.     xmodmap $usermodmap
  21. fi

  22. # start some nice programs

  23. twm &
  24. xclock -geometry 50x50-1+1 &
  25. xterm -geometry 80x50+494+51 &
  26. xterm -geometry 80x20+494-0 &
  27. exec xterm -geometry 80x66+0+0 -name login
复制代码
发表于 2005-3-27 15:29:58 | 显示全部楼层
如果gdm的话 把fcitx -d和前面几句export放在~/.profile里 如果xdm的话就放在~/.xinitrc
回复 支持 反对

使用道具 举报

发表于 2005-3-27 15:31:50 | 显示全部楼层
~/.xinitrc

  1. export LANG=zh_CN.utf8
  2. export GTK_IM_MODULE=xim
  3. export XMODIFIERS=@im=fcitx
  4. export XIM=fcitx
  5. export XIM_PROGRAM=fcitx
  6. fcitx &
  7. exec startkde
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-27 16:11:30 | 显示全部楼层
Post by blursj
如果gdm的话 把fcitx -d和前面几句export放在~/.profile里 如果xdm的话就放在~/.xinitrc


我的gdm根本就启动不了
是不是我的inittab出错了?

  1. #
  2. # /etc/inittab
  3. #

  4. #  Runlevels:
  5. #    0    Halt
  6. #    1(S)        Single-user
  7. #    2    Not used
  8. #    3    Multi-user
  9. #    4    Not used
  10. #    5    X11
  11. #    6    Reboot

  12. id:5:initdefault:

  13. rc::sysinit:/etc/rc.sysinit
  14. rs:S1:wait:/etc/rc.single
  15. rm:2345:wait:/etc/rc.multi
  16. rh:06:wait:/etc/rc.shutdown
  17. su:S:wait:/sbin/sulogin -p

  18. c1:2345:respawn:/sbin/agetty 38400 vc/1 linux
  19. c2:2345:respawn:/sbin/agetty 38400 vc/2 linux
  20. c3:2345:respawn:/sbin/agetty 38400 vc/3 linux
  21. c4:2345:respawn:/sbin/agetty 38400 vc/4 linux
  22. c5:2345:respawn:/sbin/agetty 38400 vc/5 linux
  23. c6:2345:respawn:/sbin/agetty 38400 vc/6 linux

  24. ca::ctrlaltdel:/sbin/shutdown -t3 -r now

  25. x:5:respawn:/opt/gnome/bin/gdm -nodaemon

  26. # End of file
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-27 19:39:16 | 显示全部楼层
Post by tx-cary
~/.xinitrc

  1. export LANG=zh_CN.utf8
  2. export GTK_IM_MODULE=xim
  3. export XMODIFIERS=@im=fcitx
  4. export XIM=fcitx
  5. export XIM_PROGRAM=fcitx
  6. fcitx &
  7. exec startkde
复制代码


原来,顺序有影响,搞定了.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-30 21:16:21 | 显示全部楼层
晕,fcitx又不启动了
昨天安装了gdm,kde,gnome,也启动过好几次 ,都没有问题
今天在启动 fcitx又不听话了

konsole下启动有如下提示:

  1. root@zzs'host:~# fcitx
  2. 没有设置XMODIFIERS!
  3. root@zzs'host:~#
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-30 21:15:49 | 显示全部楼层
重复了 ,linuxsir在我发送回复的时候停顿了一下,我刷新了一下
回复 支持 反对

使用道具 举报

发表于 2005-3-31 08:58:54 | 显示全部楼层
如果使用gdm,则修改/etc/profile或者.profile;如果使用startx启动x,修改xinitrc。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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