Return to Snippet

Revision: 19550
at October 25, 2009 16:54 by alvarezrilla


Updated Code
# To enable screen sharing:
sudo sh -c "/bin/echo -n enabled > /private/etc/ScreenSharing.launchd"

# To disable screen sharing:
sudo sh -c "/bin/rm /private/etc/ScreenSharing.launchd"

Revision: 19549
at October 25, 2009 16:47 by alvarezrilla


Initial Code
# To enable screen sharing:
$ cd /Library/Preferences
$ echo -n enabled > com.apple.ScreenSharing.launchd

# To disable screen sharing:
$ cd /Library/Preferences
$ rm com.apple.ScreenSharing.launchd

Initial URL

                                

Initial Description
Useful when logged in the server via ssh.
In Leopard, the file would be /Library/Preferences/com.apple.ScreenSharing.launchd

Initial Title
Enable / Disable Screen Sharing in Terminal

Initial Tags
ssh, terminal

Initial Language
Bash