I spent a lot of time trying to get a desktop environment working with VNC when setting up Jetson Nano 2GB in headless mode. The instructions in README-vnc.txt don’t work since vino-server launches only if the desktop environment starts, which it doesn’t if we’re in headless mode. Finally stumbled across these instructions for Raspberry Pi using TightVNC that got it to work:
You can perform the above instructions after the usual console-based headless mode setup. Before starting the VNC server, add the following line to ~/.vnc/xstartup (launch a throwaway VNC server to create this file if it doesn’t exist.):
The above will start the LXDE desktop environment when VNC starts.
Also, in the instructions above to configure VNC to launch at boot, replace ‘pi’ with your username on Jetson nano. E.g.
@reboot su - <username> -c '/usr/bin/tightvncserver -geometry 1280x720'