10.5: Start screen sharing remotely in Terminal

If for any reason you don’t have screen sharing enabled in your Os X remote Mac, you still can enabled it distantly, (under the obvious condition you can ssh to it).

As the screen sharing system uses launchd to monitor its state, enabling and disabling is as simple as adding a file in the remote Mac’s /Libary/Preferences folder.

cd /Library/Preferences
echo -n enabled > com.apple.ScreenSharing.launchd

To disable screen sharing:

cd /Library/Preferences $ rm com.apple.ScreenSharing.launchd

If you have a Finder window open with the remote Mac selected in the Shared section, you’ll even note the icon for Screen Sharing coming and going as you do this.

Source : alblue on Os X hints.


Product and graphic designer turned to be a Mac SysAdmin.

Posted in Admin, Mac, tips tricks scripts Tagged with: , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>