I had already setup a startup script for vnc like the one you've got, and it starts up fine, but unless I login manually after the startup routine finishes I can't connect. Do I need to pass in the login details to vnc somehow? Can't see anywhere for them to go.