Created
December 29, 2020 15:19
-
-
Save mtrimarchi/dbabc16fd53a1dc2c6233b0784dd721c to your computer and use it in GitHub Desktop.
Revisions
-
mtrimarchi revised this gist
Dec 29, 2020 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,9 +8,12 @@ Follow these steps to enable Screen Sharing via Terminal. The command above will work most of the time, as it uses the kickstart method of enabling remote management, which in turn enables Screen Sharing as well for all users of the device. This isn't the most secure method and it's not recommended to be used like this for long periods of time due to the potential security risks of unauthorized access, but it should serve you well as a temporary workaround for the problem. If maintaining security is a requirement, then entering the command below will only enable Screen Sharing. `sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false` `sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist` Your Mac now has Screen Sharing enabled, and it should be accessible remotely from another Apple computer by launching the Screen Sharing app and entering the host Mac's computer name or IP address. -
mtrimarchi revised this gist
Dec 29, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Follow these steps to enable Screen Sharing via Terminal. 2. Enter the following command into Terminal and press Enter to execute it. You will be prompted to provide admin credentials prior to processing the command. `sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers` The command above will work most of the time, as it uses the kickstart method of enabling remote management, which in turn enables Screen Sharing as well for all users of the device. This isn't the most secure method and it's not recommended to be used like this for long periods of time due to the potential security risks of unauthorized access, but it should serve you well as a temporary workaround for the problem. If maintaining security is a requirement, then entering the command below will only enable Screen Sharing. -
mtrimarchi created this gist
Dec 29, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ Follow these steps to enable Screen Sharing via Terminal. 1. Navigate to Applications | Utilities and launch Terminal. If you're working from a keyboard only, press Command+Space Bar to launch Spotlight, and then enter Terminal in the search box to launch the app. 2. Enter the following command into Terminal and press Enter to execute it. You will be prompted to provide admin credentials prior to processing the command. `sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers` The command above will work most of the time, as it uses the kickstart method of enabling remote management, which in turn enables Screen Sharing as well for all users of the device. This isn't the most secure method and it's not recommended to be used like this for long periods of time due to the potential security risks of unauthorized access, but it should serve you well as a temporary workaround for the problem. If maintaining security is a requirement, then entering the command below will only enable Screen Sharing. `sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false` `sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist` Your Mac now has Screen Sharing enabled, and it should be accessible remotely from another Apple computer by launching the Screen Sharing app and entering the host Mac's computer name or IP address.