Added logging, and set vnc password by overwriting passwd file