一.環境介紹
Jetson nano官方鏡像(JetPack 4.2),已更新軟件下載源,已更新系統。
- 更新軟件源命令:
sudo apt update
- 更新系統命令:
sudo apt upgrade
二. 開啟桌面共享設置
1. 打開Desktop-sharing設置
- 打開設置
點擊桌面右上角的設置按鈕,進入設置頁面。
- 打開遠程桌面設置
進一步點擊設置中的Desktop-Sharing來進入到遠程桌面設置。
打開圖示:
此時很有可能會打開失敗!!
2. 修復Desktop-sharing
如果打開失敗,參照以下內容來進行修復。如果打開Desktop-sharing成功,請直接跳到下一節。
- 安裝 Vino :
sudo apt install vino
- 編輯 org.gnome.Vino:
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>
- compile the schemas for Gnome:
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
- 啟動 Vino-server
/usr/lib/vino/vino-server
三.安裝配置dconf-editor
- dconf-editor安裝命令:
sudo apt-get install dconf-editor
- dconf-editor配置
注意一定要用當前用戶來運行,不能加sudo 。
打開 dconf-editor 命令:dconf-editor
選擇:org > gnome > desktop > remote-access
去掉prompt-enabled 和 require-encryption 的勾。
圖示:
五. VNC Viewer
- 到網站下載安裝VNCViewer, https://www.realvnc.com/en/connect/download/viewer/
- 登錄效果如下:
- 如果是ssh下進入系統開啟遠程控制
/usr/lib/vino/vino-server --display=:0
六.Windows遠程桌面連接
終端xrdp安裝命令:
sudo apt-get install xrdp vnc4server xbase-clients
打開Windows遠程桌面,輸入Jetson的IP地址,進行遠程連接。
七.用vnc遠程控制tx2,因為重啟以后檢測不到顯示器,默認的分辨率很低,無法正常使用,在終端中修改分辨率:
xrandr --fb 1280x720
分辨率越高延遲越高 不建議設置太高。