Forked from marcelstoer/enable-os-x-screen-sharing.sh
Created
December 22, 2017 19:02
-
-
Save PhilETaylor/37365c821d7e54ca3d080cb94e405a12 to your computer and use it in GitHub Desktop.
Enable OS X screen sharing from the command line, http://frightanic.com/apple-mac/enable-os-x-screen-sharing-command-line/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh <user>@<mac-without-screen> | |
$ sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false | |
$ sudo launchctl load /System/Library/LaunchDaemons/com.apple.screensharing.plist | |
/System/Library/LaunchDaemons/com.apple.screensharing.plist: Service is disabled | |
$ sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment