I followed this guide to try to connect to my Ubuntu 20.04 machine from my Windows machine; installed tightVNC, changed the xstartup file to show the default Gnome desktop. I start the server with vncserver -geometry 1920x1080 -depth 24.
When I try to connect with VNC viewer however, I see only a blank grey screen. The logs have this line:
/home/username/.vnc/xstartup: 2: def: not found
How can I fix this?
edit: I removed the def on line 2 of the xstartup file and that 'not found' message has gone from the logfile, but I still see a grey screen...