sk2*_*212 5 linux command-line vnc raspberry-pi
我尝试在 Raspberry Pi 上从命令行设置 VNC 服务器“vino”,而无需使用 X-Session。我不想通过 SSH 等使用共享 X11Session。
因此,目前我陷入这样一个事实:我不知道工具“vino-preferences”在哪里存储其首选项。我知道该工具正在使用“gconf”来读取和设置配置属性。
如果我在创建的 X-Window 中执行工具“vino-preferences”(是的,我有一个输出设备、Pi 上插入的键盘和鼠标)并在那里更改一些设置并运行
find / -not -path "/proc/*" -not -path "/sys/*" -printf '%TY-%Tm-%Td %TT %p\n' | sort
Run Code Online (Sandbox Code Playgroud)
要找出哪些文件已更改,没有任何相关内容。
那么,读取其属性的工具到底在哪里呢?应用设置的属性是因为如果我停用“允许其他用户使用此桌面”选项,我将无法再与 VNC 客户端连接。
下载“vino”的源代码时,我发现了一个名为“org.gnome.Vino.gschema.xml”的文件,其中包含以下内容:
<schemalist>
<schema id='org.gnome.Vino' path='/org/gnome/desktop/remote-access/'>
<key name='enabled' type='b'>
<summary>Enable remote access to the desktop</summary>
<description>
If true, allows remote access to the desktop via the RFB
protocol. Users on remote machines may then connect to the
desktop using a VNC viewer.
</description>
<default>false</default>
</key>
...
Run Code Online (Sandbox Code Playgroud)
那么也许这个文件必须在某个地方使用?
gsettings如果你想通过 shell 访问,可以尝试使用。如果您还没有安装,它们在libglib2.0-bin软件包中。
您可以使用以下命令查看所有配置键:
gsettings list-recursively org.gnome.Vino
Run Code Online (Sandbox Code Playgroud)如果您想更改选项,可以执行以下操作:
gsettings set org.gnome.Vino view-only true
Run Code Online (Sandbox Code Playgroud)重新启动 vino 后,新设置将生效。
| 归档时间: |
|
| 查看次数: |
7629 次 |
| 最近记录: |