Vnc viewer安装
Vnc viewer安装(远程图形界面工具,目前此工具需要连接显示器才能正常使用)
在jetson上搭建一个vnc服务器,从而允许其他设备通过网络访问jetson的linux图形界面进行远程工作,如下时搭建vnc服务器的过程,搭建完成后即可通过viewvnc进行远程访问:
步骤一、安装vino
sudo apt update
sudo apt install vino
步骤二、enable vnc 服务 (此时手动可打开vnc server)
每次登陆时使能vnc server:
sudo ln -s ../vino-server.service /usr/lib/systemd/user/graphical-session.target.wants
配置vnc server:
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
额外添加并手动启动vnc service:-1) edit the org.gnome.vino schema to restore the missing "enabled" parameter
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>
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
/usr/lib/vino/vino-server
步骤三、设置vnc登陆密码('12345678' 修改为自己的密码)
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n '12345678'|base64)
步骤四、重启机器,验证是否设置vnc 成功
sudo reboot