2015-02-07 52 views
2

我嘗試在Raspberry Pi上沒有來自命令行的X-Session的情況下設置VNC服務器「vino」。我不想通過SSH等使用共享的X11Session。「vino-preferences」在哪裏存儲配置屬性

因此,目前我陷入了一個事實,即我不知道工具「vino-preferences」存儲其偏好的位置。 我知道該工具使用「gconf」來讀取和設置配置屬性。

如果我執行生成的X窗口內的工具「維諾喜好」(是的,我有一個輸出設備,插入鍵盤和鼠標在PI),並更改一些設置有和運行

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

找出哪些文件已經改變沒有什麼關係。

那麼,地獄是在哪裏閱讀其屬性的工具?設置的屬性是應用的,因爲如果我禁用「允許其他用戶使用此桌面」選項,我無法再與VNC客戶端連接。

下載的「葡萄酒」的消息,我發現了一個名爲「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> 
... 

所以,也許這個文件必須使用的地方?

回答

0

如果你想通過shell訪問,你可以試試gsettings。如果你還沒有安裝它,它們在libglib2.0-bin包中。

  • 喲可以看到所有的配置項:

    gsettings list-recursively org.gnome.Vino 
    
  • 如果你想更改的選項就可以這樣做的:

    gsettings set org.gnome.Vino view-only true 
    

新的設置將工作一旦葡萄酒重新啓動。