linux - "vino-preferences"在哪里存储其配置属性

标签 linux command-line raspberry-pi vnc

我尝试在我的 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

找出哪些文件已更改没有任何关系。

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

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

最佳答案

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

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

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

    gsettings set org.gnome.Vino view-only true
    

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

关于linux - "vino-preferences"在哪里存储其配置属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28383770/

相关文章:

linux - BlueZ:不使用 sdptool 命令添加服务、属性和配置文件

linux - ksh 将命令结果存储到变量

function - 在 C-Shell 中的 .cshrc 中添加函数

command-line - 错误 psql : warning: extra command-line argument

ssh - 具有物联网动态设置的 Wireguard

ffmpeg - RTSP流的轻量级编码方法?

java - 在 Linux 中执行一个 jar 文件

linux - 检查是否存在文件名包含空格的文件

mysql - Linux/mysql 将 mysql 表输出写入文件并保持 mysql 格式。

python - Paramiko ssh linux 命令执行没有结果