如何通过 VNC 将本地输入的修饰键或快捷键传输到远程桌面?以某种方式屏蔽或转义它们?

如何通过 VNC 将本地输入的修饰键或快捷键传输到远程桌面?以某种方式屏蔽或转义它们?

我已连接到 xmonad 桌面,但只能使用第一个工作区。如何切换到其他工作区?

此外:如果最后一个终端关闭了,我就什么也做不了了。我该如何打开一个新终端?问题是,我的本地 xmonad 捕获了按键。

一般来说

  • 是否有一些神奇的组合键(快捷键)可以绕过本地吸收的击键,即退出本地快捷键以便能够将它们发送到远程 VNC 桌面?我的意思是类似于屏幕的东西,您可以按Ctrl+将简单的+a a提交给屏幕的子进程。Ctrla

  • 或者有没有办法启用和禁用 kbd 捕获,就像从虚拟机的可视化界面中知道的那样?我的意思是像Ctrlvirtualbox 中的右键一样。

如果您感兴趣的话:我使用x11vnc作为服务器,vncviewer使用 tigervnc (tightvnc) 作为客户端/查看器。但如果有帮助的话,我会更改它们两者。

答案1

好的,我偶然发现了手册页中的一个提示,我以前似乎忽略了它。F8关键是魔术键:F8打开一个弹出窗口,您可以在其中选择要锁定的 Ctrl 或 Alt 修饰键。然后我可以按一个数字来选择不同的工作区,然后再次按一次F8以解锁 Alt 修饰键。

不幸的是,其他修饰符不可选择。但这已经有帮助了。


引用 Tiger Vncviewer 的手册页,该手册页在 Red Hat、CentOS、Fedora 等中很常见:

POPUP MENU
       The viewer has a popup menu containing entries which perform various actions.  It is usually
       brought up by pressing F8, but this can be configured with the MenuKey  parameter.   Actions
       which the popup menu can perform include:

         * switching in and out of full-screen mode

         * quitting the viewer

         * generating key events, e.g. sending ctrl-alt-del

         * accessing the options dialog and various other dialogs

       By  default, key presses in the popup menu get sent to the VNC server and dismiss the popup.
       So to get an F8 through to the VNC server simply press it twice.

引用 Debian、Ubuntu 等常用的 tight vncviewer 的手册页(更简短的描述):

You  can  use  F8 to display a pop-up utility menu. Press F8 twice to pass single F8 to the
remote side.

答案2

我遇到过类似的情况。运行 tigervnc 连接到 windows 笔记本电脑上的删除 linux 服务器。获取等...键以保留在 tigervnc 会话中,以切换通过 tigervnc 连接到的主机上的工作区。对我有用的是将 linux 系统键盘首选项更改为使用 -N 表示 N=1..4 以切换到该工作区。这些击键现在保留在 tigervnc 会话中,无论在 tigervnc 菜单中选中了哪些框(默认按 F8)。我仍然无法让 --arrow 之类的东西留在 tigervnc 中,但上述解决方法已满足我的主要用例。

相关内容