Remote control of TX2

Posted by Chen Jinyu on December 27, 2020

For convenience, We need remote control of TX2. Method 1 for command line, method 2 for desktop sharing.

Method 1 use ssh

Use ifconfig to know ip address of device.

For example, the ip address is 192.168.11.14. And username is namiki. Then the connect process is

ssh namiki@192.168.11.14

Input password to login.

Use command logout to log out.

Method 2 use display sharing

The L4T has compatible problems with desktop sharing settings. Open terminal and input

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

After the last <key> before </schema> add

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

Then

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

Create a new .sh file.

#!/bin/bash
export DISPLAY=:0
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
/usr/lib/vino/vino-server &

Or you can use dconf-editor to change settings.

sudo apt install dconf-editor

If want to change resolution use $ xrandr --fb 1920x1080