Wednesday, February 19, 2014

Mac OS X - Enable Screen Sharing (VNC) via the command line

The following command should be typed as one line of text.
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw VNCPASSWORD -restart -agent -privs -all