我尝试设置VNC服务器"vino“,而不是在我的Raspberry Pi上命令行设置X会话。我不想在SSH上使用共享的X11Session等等。
因此,目前我陷入这样一个事实:我不知道工具"vino- preferences“在哪里存储它的首选项。我知道该工具正在使用"gconf“读取和设置配置属性。
如果我在创建的X窗口内执行工具"vino-preferences“(是的,我有一个输出设备,Pi上有一个插入键盘和鼠标),然后更改一些设置并运行。
find / -not -path "/proc/*" -not -path "/sys/*" -printf '%TY-%Tm-%Td %TT %p\n' | sort要找出哪些文件已经更改,没有任何关系。
那么,读取其属性的工具到底在哪里呢?应用set属性是因为如果我禁用“允许其他用户使用此桌面”选项,则无法再与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>
...所以也许这个文件一定是用在什么地方了?
发布于 2016-05-06 02:43:17
Yo可以尝试使用gsettings,如果您想通过shell访问。如果您没有安装它,则它们在libglib2.0-bin包中。
新设置将在重新启动vino后工作。
https://stackoverflow.com/questions/28383770
复制相似问题