Jetson NanoにVNCをインストールする

公式
developer.nvidia.com

cd /usr/lib/systemd/user/graphical-session.target.wants
sudo ln -s ../vino-server.service ./.
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n 'thepassword'|base64)

解像度を変える
www.fatalerrors.org
/etc/X11/xorg.conf
の末尾に以下を追加

    Section "Screen"
       Identifier    "Default Screen"
       Monitor       "Configured Monitor"
       Device        "Tegra0"
       SubSection "Display"
           Depth    24
           Virtual 1280 800 # Modify the resolution by editing these values
       EndSubSection
    EndSection

再起動してVNC Viewerで接続したらOpenGLが動いた
f:id:seinzumtode:20220107162316p:plain