This took some working out but this checks if the SSH server and VNC are running, it starts the ssh...