понедельник, 3 марта 2014 г.

Mac OS X: Enabling vnc remote management from console

If you have only ssh access, you can enable vnc server from shell, just run this:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all -allowAccessFor -allUsers -clientopts -setvncpw -vncpw 123pass -setvnclegacy -vnclegacy yes
this command will enable vnc with password 123pass