前言:NVIDIA Jetson TX2 处理器为 ARM 架构,不支持常规的远程桌面配置。
一、安装远程桌面(Ubuntu 18.04.4 LTS)
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: 启动服务
/usr/lib/vino/vino-server
至此配置完成!
二、报错及解决办法
前面可能报错:
Unable to init server: Could not connect: Connection refused Gtk-WARNING
解决办法:
sudo vim ~/.bashrc
在该文件最下面添加一行
xhost +
source ~/.bashrc
三、VNC 连接
要求 Windows 系统预装 VNC Viewer,官网链接:VNC Download
输入 IP 地址,开始愉快玩耍吧!
四、设置 vino-server 开机自启
为避免每次连接前都手动敲命令,直接设置服务开机自启。
终端输入:
gnome-session-properties
Add 输入相关启动命令保存即可~
/usr/lib/vino/vino-server