Start VNC Server on OSX from Commandline

The builtin VNC server can be started using commandline (i.e. with ssh). As root do:

cd /Library/Preferences echo enabled > com.apple.ScreenSharing.launchd touch /etc/ScreenSharing.launchd