【问题标题】:Where is "vino-preferences" storing its config properties“vino-preferences”在哪里存储其配置属性
【发布时间】:2015-04-07 15:47:15
【问题描述】:

我尝试在我的 Raspberry Pi 上从命令行设置没有 X-Session 的 VNC 服务器“vino”。我不想通过 SSH 等使用共享的 X11Session。

所以,目前我陷入了这样一个事实,即我不知道“vino-preferences”工具将其偏好存储在哪里。 我知道该工具正在使用“gconf”来读取和设置配置属性。

如果我在创建的 X 窗口中执行“vino-preferences”工具(是的,我有一个输出设备,在 Pi 上有一个插入的键盘和鼠标)并在那里更改一些设置并运行

find / -not -path "/proc/*" -not -path "/sys/*" -printf '%TY-%Tm-%Td %TT %p\n' | sort

要找出哪些文件已更改,没有什么相关的。

那么,读取其属性的工具到底在哪里?应用设置的属性是因为如果我停用“允许其他用户使用此桌面”选项,我将无法再与 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>
...

所以也许这个文件必须在某个地方使用?

【问题讨论】:

    标签: linux command-line raspberry-pi vnc


    【解决方案1】:

    如果你想通过 shell 访问,你可以尝试gsettings。如果你还没有安装,它们在libglib2.0-bin 包中。

    • 您可以通过以下方式查看所有配置键:

      gsettings list-recursively org.gnome.Vino
      
    • 如果您想更改选项,可以这样做:

      gsettings set org.gnome.Vino view-only true
      

    vino 重新启动后,新设置将生效。

    【讨论】:

      猜你喜欢
      • 2023-02-15
      • 1970-01-01
      • 1970-01-01
      • 2014-01-26
      • 2011-08-15
      • 1970-01-01
      • 1970-01-01
      • 2012-07-28
      • 2018-02-28
      相关资源
      最近更新 更多