Ubuntu18.04 自帶桌面共享配置

本人PC上安裝的Ubuntu爲18.04.3,具體桌面共享配置步驟如下。

Step1: 安裝dconf-editor

sudo apt install dconf-editor

Step2: dconf-editor配置

dconf write /org/gnome/desktop/remote-access/require-encryption false

Step3: 重啓屏幕共享:
settings-> Sharing->Screen Sharing,設置:
在這裏插入圖片描述
Step4: 使用vnc遠程連接
在這裏插入圖片描述
當然,還有些Ubuntu 18.04版本採用上述方法設置還是無法實現桌面共享。這裏以Nvidia Jetson系列嵌入式開發板上安裝的Ubuntu18.04桌面系統爲例,介紹這類桌面系統配置桌面共享的方法。
Step1: 安裝dconf-editor

sudo apt-get install vino dconf-editor

Step2: 配置dconf-editor

dconf write /org/gnome/desktop/remote-access/prompt-enabled false
dconf write /org/gnome/desktop/remote-access/require-encryption false

Step3: 配置 org.gnome.Vino.gschema.xml

sudo vi /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml

在第二行後,增加如下內容

<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>

Step4: 重新編譯

sudo glib-compile-schemas /usr/share/glib-2.0/schemas

Step5: 啓動服務

方法1:在Ubuntu桌面系統中開啓服務

/usr/lib/vino/vino-server

方法2:ssh下進入系統開啓遠程控制

/usr/lib/vino/vino-server --display=:0

Step6: 使用vnc遠程連接

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章