jetson에 설치된 ubuntu 18.04에서는 desktop sharing이 제대로 동작하지 않는다. VNC 접속을 위해 desktop sharing 설정이 필요한데 제대로 동작하지 않아 다음과 같은 수정 작업을 했다.
$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>
위 내용을 추가할 때 주의할 것은 schema 안에 key 값들과 마찬가지 위치에 추가해야한 다는 것이다. 위 내용 추가 후 다음과 같은 명령을 수행한다.
$ sudo glib-compile-schemas /usr/share/glib-2.0/schemas $ gsettings set org.gnome.Vino require-encryption false $ /usr/lib/vino/vino-server
이렇게 설정해주고 desktop sharing 설정을 하면 VNC가 정상 동작한다.
참고
- https://devtalk.nvidia.com/default/topic/1045906/is-jetson-compatible-with-ubuntu-18-04-1-desktop-sharing-appears-broken-/
- https://extrememanual.net/12210
Nice info here