AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-1055598

Tanburi Ney's questions

Martin Hope
Tanburi Ney
Asked: 2020-03-21 09:02:10 +0800 CST

特殊字符键带有 noname 而不是 xev 上的字母

  • 1
KeyRelease event, serial 37, synthetic NO, window 0x2600001,
    root 0x269, subw 0x0, time 25839746, (517,242), root:(622,350),
    state 0x0, keycode 254 (keysym 0x11f, (no name)), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x2600001,
    root 0x269, subw 0x0, time 25840405, (517,242), root:(622,350),
    state 0x0, keycode 255 (keysym 0x15f, (no name)), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x2600001,
    root 0x269, subw 0x0, time 25840514, (517,242), root:(622,350),
    state 0x0, keycode 255 (keysym 0x15f, (no name)), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

我在 dex 上使用 Linux。Ubuntu 16.0.4.5 LTS。我只需要一些特殊字符,例如şğİı。我在对 Linux 零知识的情况下对网络进行了一些研究(为期 2 天),但我的最后一站是这里。问题是当我打开时——这是我/usr/share/x11/xkb/symbols/tr系统上的当前键盘布局——我可以看到 gbreve(ğ)、scedilla(ş) 等。如果我的键被系统识别并显示 0x11f,我还尝试了 ibus 首选项。gbreve(ğ) 的表示是:UTF-16 :0x11f UTF-8 : 0xC4, 0x9F 当我按下它时。另外,当我键入时,我得到了这个:

$ locale -a 
C
C.UTF-8
en_US.utf8
POSIX
tr_CY.utf8
tr_TR.utf8

所以..我看到它是不同的 utf8 和 utf-16 但我能做些什么来输入这些字母?我只需要它用于 LibreOffice。

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8

$ sudo dpkg-reconfigure keyboard-configuration
[sudo] password for dextop: 
grep: /proc/bus/input/devices: Permission denied
grep: /proc/bus/input/devices: Permission denied
Your console font configuration will be updated the next time your system
boots. If you want to update it now, run 'setupcon' from a virtual console.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
insserv: warning: script 'int_container.sh' missing LSB tags and overrides
insserv: warning: script 'vnc.sh' missing LSB tags and overrides
insserv: warning: script 'init_container.sh' missing LSB tags and overrides

当我键入该命令时,没有像您这样的界面

在此处输入图像描述

我选择通用 105 int 并在那里选择语言布局。正如你提到的没有死键,我将 compose 设置为 alt gr 但这没有帮助。

我在以前的 Ubuntu img 设置上修复了 LSB 标签问题。所以问题不在于。另外,我听说一些错误是由 python 错误引起的。例如,我可以调出语言选择菜单,但是当我在系统设置上单击它时,什么也没有出现。我也尝试更改语言环境 tr 但它没有给我任何输出。我知道 dex 上的 Linux 设置起来并不可靠,但我的目标只是通过编辑 xkb x11 符号文件等生成几个字母。

好吧,我开始明白真正的问题是什么了。

  1. grep: /proc/bus/input/devices: Permission denied这个错误暗示了一些事情。需要许可。我也不能以任何方式改变布局。即使我选择英文键盘,它也会给我这个错误。所以我什么都改变不了。因此,由于它仍然是默认的英文键盘,它在 xev 输出中显示为 noname。因为它在 EN 布局中不存在。

  2. 我搜索了为什么它给了我这个错误。首先我看到proc文件夹被注册为nobody组。所以,只读。

首先,我使用 root 用户运行相同的 dkpg 命令。No protocol specified Cannot open display ":1"update-initramfs: deferring update (trigger activated)这次它给出了 3 个额外的错误。

然后尝试sudo adduser dextop /proc/bus/input/devices并得到 adduser: The group /proc/bus/input/devices' 不存在`

chown -R dextop /proc/bus/input/devices然后这次试了chown: changing ownership of '/proc/bus/input/devices': Permission denied

此时,根据此https://serverfault.com/questions/60711/chown-operation-not-permitted-for-root 我正在使用 FAT 文件系统,也许是我在 Linux dex 上使用的 Linux 映像。它不会也永远不会让我更改键盘布局。这很有趣。但感谢您的努力。

最后编辑:问题是 dex 应用程序中内置于 Linux 中的 Vnc 查看器,而不是 img 本身。因为当我以终端模式打开 Ubuntu 并连接到另一个 vnc 服务器时,我可以生成我想要的所有字符。(顺便说一句,连接到它没有用。当您全屏显示该 vnc 查看器应用程序时,连接会暂停)但我想我找到了一种使用我的母语使用 LibreOffice 的方法。我在reddit中解释过,这里:

https://www.reddit.com/r/LinuxonDex/comments/fuycwj/the_reason_of_why_i_cant_type_special_characters/

keyboard keyboard-layout locale ibus xev
  • 1 个回答
  • 271 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve