Debian8.3VNC连接后输入法无法使用

最大的社区版本,Ubuntu的发源地
回复
losdab
帖子: 11
注册时间: 2016-03-02 11:57
系统: Win8.1

Debian8.3VNC连接后输入法无法使用

#1

帖子 losdab » 2016-03-03 18:10

Debian8.3 DVD安装 Xfce环境
安装的 vnc4server
xstartup

代码: 全选

#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
xfce4-session
感觉是不是要加个什么输入法的启动命令标准登录环境输入法是没问题的就是系统默认的fcitx。
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: Debian8.3VNC连接后输入法无法使用

#2

帖子 vickycq » 2016-03-03 18:38

代码: 全选

export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE="fcitx"
export QT_IM_MODULE="fcitx"
手机不方便打字,无法详细回复。将以上内容加入 xstartup 试试

若还不行 运行 fcitx-diagnose 将结果全副复制贴上来
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
losdab
帖子: 11
注册时间: 2016-03-02 11:57
系统: Win8.1

Re: Debian8.3VNC连接后输入法无法使用

#3

帖子 losdab » 2016-03-03 19:00

代码: 全选


losdab@bis-losdab-debian:~$ fcitx-diagnose

# 系统信息:
1.  `uname -a`:

        Linux bis-losdab-debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux

2.  `lsb_release -a`:

        No LSB modules are available.
        Distributor ID: Debian
        Description:    Debian GNU/Linux 8.3 (jessie)
        Release:        8.3
        Codename:       jessie

3.  `lsb_release -d`:

        Description:    Debian GNU/Linux 8.3 (jessie)

4.  `/etc/lsb-release`:

    `/etc/lsb-release` 未找到.

5.  `/etc/os-release`:

        PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
        NAME="Debian GNU/Linux"
        VERSION_ID="8"
        VERSION="8 (jessie)"
        ID=debian
        HOME_URL="http://www.debian.org/"
        SUPPORT_URL="http://www.debian.org/support"
        BUG_REPORT_URL="https://bugs.debian.org/"

6.  桌面环境:

    桌面环境为 `xfce`。

# 环境:
1.  DISPLAY:

        DISPLAY=':1.0'

2.  键盘布局:

    1.  `setxkbmap`:

            XKB extension not present on :1.0

    2.  `xprop`:

            _XKB_RULES_NAMES:  no such atom on any window.

3.  Locale:

    1.  全部可用 locale:

            C
            C.UTF-8
            POSIX
            zh_CN.utf8

    2.  当前 locale:

            LANG=zh_CN.UTF-8
            LANGUAGE=zh_CN:zh
            LC_CTYPE="zh_CN.UTF-8"
            LC_NUMERIC="zh_CN.UTF-8"
            LC_TIME="zh_CN.UTF-8"
            LC_COLLATE="zh_CN.UTF-8"
            LC_MONETARY="zh_CN.UTF-8"
            LC_MESSAGES="zh_CN.UTF-8"
            LC_PAPER="zh_CN.UTF-8"
            LC_NAME="zh_CN.UTF-8"
            LC_ADDRESS="zh_CN.UTF-8"
            LC_TELEPHONE="zh_CN.UTF-8"
            LC_MEASUREMENT="zh_CN.UTF-8"
            LC_IDENTIFICATION="zh_CN.UTF-8"
            LC_ALL=

4.  目录:

    1.  主目录:

            /home/losdab

    2.  `${XDG_CONFIG_HOME}`:

        环境变量 `XDG_CONFIG_HOME` 没有设定。

        `XDG_CONFIG_HOME` 的当前值是 `~/.config` (`/home/losdab/.config`)。

    3.  Fcitx 设置目录:

        当前 fcitx 设置目录是 `~/.config/fcitx` (`/home/losdab/.config/fcitx`)。

5.  当前用户:

    脚本作为 losdab (1000) 运行。

# Fcitx 状态:
1.  可执行文件:

    在 `/usr/bin/fcitx` 找到了 fcitx.

2.  版本:

    Fcitx 版本: `4.2.8.5`

3.  进程:

    **Fcitx 没有在运行.**
    **请访问 [入门指南](http://fcitx-im.org/wiki/Beginner%27s_Guide/zh-cn) 页面上对应您发行版的配置链接查看如何配置 fcitx 的自动启动.**

# Fcitx 配置界面:
1.  配置工具封装:

    在 `/usr/bin/fcitx-configtool` 找到了 fcitx-configtool。

2.  用于 GTK+-2.0 的配置界面:

    **未找到 gtk2 的配置界面.**

3.  用于 GTK+-3.0 的配置界面:

    在 `/usr/bin/fcitx-config-gtk3` 找到了 `fcitx-config-gtk3`。

4.  KDE 的配置界面:

    **`kcmshell4` 未找到.**

# 前端设置:
## Xim:
1.  `${XMODIFIERS}`:

    **XMODIFIERS 没有设置**

    **请使用您发行版提供的工具将环境变量 XMODIFIERS 设为 "@im=fcitx" 或者将 `export XMODIFIERS=@im=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: XMODIFIERS](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#XMODIFIERS).**
    从环境变量中获取的 Xim 服务名称为 fcitx.

2.  根窗口上的 XIM_SERVERS:

    Xim 服务的名称与环境变量中设置的相同.

## Qt:
1.  qt4 - `${QT4_IM_MODULE}`:

    **请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE).**

2.  qt5 - `${QT_IM_MODULE}`:

    **请使用您发行版提供的工具将环境变量 QT_IM_MODULE 设为 "fcitx" 或者将 `export QT_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: QT_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#QT_IM_MODULE).**

3.  Qt 输入法模块文件:
    找到了 Qt5 的输入法模块: `/usr/lib/x86_64-linux-gnu/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so`.
    找到了 Qt4 的输入法模块: `/usr/lib/x86_64-linux-gnu/qt4/plugins/inputmethods/qtim-fcitx.so`.

## Gtk:
1.  gtk - `${GTK_IM_MODULE}`:

    **请使用您发行版提供的工具将环境变量 GTK_IM_MODULE 设为 "fcitx" 或者将 `export GTK_IM_MODULE=fcitx` 添加到您的 `~/.xprofile` 中. 参见 [输入法相关的环境变量: GTK_IM_MODULE](http://fcitx-im.org/wiki/Input_method_related_environment_variables/zh-cn#GTK_IM_MODULE).**

2.  `gtk-query-immodules`:

    1.  gtk 2:

        **无法找到 gtk 2 的 `gtk-query-immodules`.**

        **无法找到 gtk 2 的 fcitx 输入法模块.**

    2.  gtk 3:

        **无法找到 gtk 3 的 `gtk-query-immodules`.**

        **无法找到 gtk 3 的 fcitx 输入法模块.**

3.  Gtk 输入法模块缓存:

    1.  gtk 2:

        在 `/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules.cache` 找到了 gtk `2.24.25` 的输入法模块缓存.
        版本行:

            # Created by /usr/lib/x86_64-linux-gnu/libgtk2.0-0/gtk-query-immodules-2.0 from gtk+-2.24.25

        已找到 gtk `2.24.25` 的 fcitx 输入法模块.

            "/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-fcitx.so"
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"

    2.  gtk 3:

        在 `/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules.cache` 找到了 gtk `3.14.5` 的输入法模块缓存.
        版本行:

            # Created by /usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0 from gtk+-3.14.5

        已找到 gtk `3.14.5` 的 fcitx 输入法模块.

            "/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-fcitx.so"
            "fcitx" "Fcitx (Flexible Input Method Framework)" "fcitx" "/usr/share/locale" "ja:ko:zh:*"

4.  Gtk 输入法模块文件:

    1.  gtk 2:

        找到的全部 Gtk 2 输入法模块文件均存在.

    2.  gtk 3:

        找到的全部 Gtk 3 输入法模块文件均存在.

# 配置:
## Fcitx 插件:
1.  插件配置文件目录:

    找到了 fcitx 插件配置目录: `/usr/share/fcitx/addon`.

2.  插件列表:

    1.  找到了 28 个已启用的插件:

            fcitx-autoeng
            fcitx-chttrans
            fcitx-classic-ui
            fcitx-clipboard
            fcitx-dbus
            fcitx-freedesktop-notify
            fcitx-fullwidth-char
            fcitx-googlepinyin
            fcitx-imselector
            fcitx-ipc
            fcitx-keyboard
            fcitx-kimpanel-ui
            fcitx-lua
            fcitx-notificationitem
            fcitx-pinyin
            fcitx-pinyin-enhance
            fcitx-punc
            fcitx-quickphrase
            fcitx-remote
            fcitx-spell
            fcitx-sunpinyin
            fcitx-table
            fcitx-unicode
            fcitx-vk
            fcitx-x11
            fcitx-xim
            fcitx-xkb
            fcitx-xkbdbus

    2.  找到了 0 个被禁用的插件:

3.  插件库:

    **无法找到插件 `fcitx-xkbdbus` 的文件 $ {1}。**

    **无法找到插件 `fcitx-keyboard` 的文件 $ {1}。**

    **无法找到插件 `fcitx-vk` 的文件 $ {1}。**

    **无法找到插件 `fcitx-autoeng` 的文件 $ {1}。**

    **无法找到插件 `fcitx-x11` 的文件 $ {1}。**

    **无法找到插件 `fcitx-classic-ui` 的文件 $ {1}。**

    **无法找到插件 `fcitx-notificationitem` 的文件 $ {1}。**

    **无法找到插件 `fcitx-sunpinyin` 的文件 $ {1}。**

    **无法找到插件 `fcitx-quickphrase` 的文件 $ {1}。**

    **无法找到插件 `fcitx-lua` 的文件 $ {1}。**

    **无法找到插件 `fcitx-fullwidth-char` 的文件 $ {1}。**

    **无法找到插件 `fcitx-unicode` 的文件 $ {1}。**

    **无法找到插件 `fcitx-googlepinyin` 的文件 $ {1}。**

    **无法找到插件 `fcitx-spell` 的文件 $ {1}。**

    **无法找到插件 `fcitx-pinyin` 的文件 $ {1}。**

    **无法找到插件 `fcitx-xim` 的文件 $ {1}。**

    **无法找到插件 `fcitx-freedesktop-notify` 的文件 $ {1}。**

    **无法找到插件 `fcitx-kimpanel-ui` 的文件 $ {1}。**

    **无法找到插件 `fcitx-clipboard` 的文件 $ {1}。**

    **无法找到插件 `fcitx-dbus` 的文件 $ {1}。**

    **无法找到插件 `fcitx-punc` 的文件 $ {1}。**

    **无法找到插件 `fcitx-xkb` 的文件 $ {1}。**

    **无法找到插件 `fcitx-imselector` 的文件 $ {1}。**

    **无法找到插件 `fcitx-ipc` 的文件 $ {1}。**

    **无法找到插件 `fcitx-chttrans` 的文件 $ {1}。**

    **无法找到插件 `fcitx-remote` 的文件 $ {1}。**

    **无法找到插件 `fcitx-table` 的文件 $ {1}。**

    **无法找到插件 `fcitx-pinyin-enhance` 的文件 $ {1}。**

4.  用户界面:

    找到了 2 个已启用的用户界面插件:

        fcitx-classic-ui
        fcitx-kimpanel-ui

## 输入法:
1.  找到了 5 个启用的输入法:

        fcitx-keyboard-cn
        sunpinyin
        pinyin
        shuangpin
        googlepinyin

2.  默认输入法:

    您已经正确的将一个键盘输入法 "fcitx-keyboard-cn" 设为默认.

# 日志:
1.  `date`:

        2016年 03月 03日 星期四 18:59:44 CST

2.  `~/.config/fcitx/log/`:

        总用量 4
        -rw-r--r-- 1 losdab losdab 63 3月   3 16:24 crash.log

3.  `~/.config/fcitx/log/crash.log`:

        fcitx: BadValue (integer parameter out of range for operation)

头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: Debian8.3VNC连接后输入法无法使用

#4

帖子 vickycq » 2016-03-03 19:14

环境变量未设置

代码: 全选

export XMODIFIERS=@im=fcitx
export QT_IM_MODULE=fcitx
export QT4_IM_MODULE=fcitx
export GTK_IM_MODULE=fcitx
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
zhangjint5
帖子: 304
注册时间: 2011-01-02 12:31

Re: Debian8.3VNC连接后输入法无法使用

#5

帖子 zhangjint5 » 2016-03-03 19:41

这个问题我试了很多遍,最终卸载了 fcitx ,改用 IBUS ,一切就OK!
回复