Posted By

alvarezrilla on 10/25/09


macosx ssh terminal leopard vnc screensharing snowleopard

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Enable / Disable Screen Sharing in Terminal

 / Published in: Bash

Useful when logged in the server via ssh. In Leopard, the file would be /Library/Preferences/

  1. # To enable screen sharing:
  2. sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"
  4. # To disable screen sharing:
  5. sudo sh -c "/bin/rm /private/etc/ScreenSharing.launchd"

Report this snippet  

You need to login to post a comment.