4

我希望将树莓派开发成能够运行免费使用的公共网络终端的东西,该终端将被锁定到某个域。这是给我的雇主,一个乡镇,他想在乡镇周围设置终端,以便我们社区中不幸的人能够联系和互动乡镇提供的各种服务,而无需找到行政部门的方法中央。

我已经能够得到我想要的大部分工作,但我想禁用Alt键盘上的键。这将阻止用户Ctrl++或Alt+退出浏览器环境,以及智能用户可以用来破坏我的信息亭的 LXDE 的各种其他功能(如虚拟终端)。我以为我已经找到了使用 xmodmap 执行此操作的方法,但是当我运行此命令时DelAltF4

xmodmap -e "keycode 204 = " 

据我所知,应该将所有映射的正确Alt键设置为空,仍然让我Alt+F4铬和其他东西。

我还尝试编辑~/.config/openbox/lxde-rc.xml并更改其中的键盘绑定。我可以通过它禁用Ctrl++ ,但是当我更改或删除其中的其他键绑定时,什么也没有发生。所以我试图找出我必须禁用此应用程序上的密钥的其他选项。有任何想法吗?AltDelAlt

4

1 回答 1

2

Soo, I actually just answered my own question. Fixing the problem indeed lies in the ~/.config/openbox/lxde-rc.xml file, but I was not doing it right. To set the Ctrl Alt Delete option, you need to change the value between <command></command> to false (or a program that pops up a finger wag to the user).

The problem was, only four or so of the keys entries have a <command> field to them, and all of the other use an <action="whatever"></action> field to define the action that is being performed by the key. I was changing the value of "whatever" to false and was under the impression that would have the same effect as changing the command field.

But really, what you need to do is change the value of "whatever" to "Execute", and then nest a set of <command></command> with a value set to false and it will set the key's mapping to false. I guess there must be a set of default values that are used to override improper changes to the lxde-rc.xml files, and that's why things kept working after removing the entries.

于 2013-01-10T22:34:35.477 回答