Jetson nano備忘録6

VNCを設定する。セットアップ後、一度もHDMI等で外部ディスプレイに接続したことがない本体を使用。

参考(https://qiita.com/iwatake2222/items/a3bd8d0527dec431ef0f)

  1. nanoをインストール
sudo apt-get instal nano
  1. 設定ファイルを編集
sudo nano /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
  • schemaタグ内に以下を追加
<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>
  1. 設定を有効化
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino enabled true
  1. 環境変数を設定
export DISPLAY=:0.0
  1. vino-serverを起動
/usr/lib/vino/vino-server
  • 起動中のみVNCクライアントでの接続を受け付ける。