TightVNC with desktop environment on Jetson Nano 2GB in headless mode

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.):

startlxde &

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'

Nice! Thanks for sharing to community!

Hi, when i do this the vncviewer says “The connection refused by the computer”

Yes, worked for me. Thanks!

While doing launch at boot by ‘sudo crontab -e’ am getting ’ bad time specifier errors in crontab file, can’t install.

Any suggestions?

Update : We are able to edit the crontab file from putty and not from terminal inside the JN desktop.