Jetson Nano vnc/headless connections

Hi, I got vnc4server running on Jetson Nano. How do I need to change the xstartup file so that I can get the desktop rather than the gray screen? Also, on NoMachine only if a HDMI cable is plugged in the display slot it loads the desktop even without being connected to a monitor.