VNC service start and stop with a script in Mac OS X
Create a file called, for example, startVNC and fill it with:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy…