Posted By

alvarezrilla on 10/25/09


Tagged

macosx ssh terminal leopard vnc screensharing snowleopard


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

opentuned


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/com.apple.ScreenSharing.launchd

  1. # To enable screen sharing:
  2. sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"
  3.  
  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.