Last active
August 29, 2015 14:08
-
-
Save benny-shotvibe/4e7894d2e306381def21 to your computer and use it in GitHub Desktop.
Mac OS X VNC
This file contains 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
#!/bin/sh | |
# Source: | |
# http://apple.stackexchange.com/a/30239 | |
# http://technotes.twosmallcoins.com/?p=279 | |
/bin/echo -n 'Need sudo access, ' | |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off |
This file contains 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
#!/bin/sh | |
# Source: | |
# http://apple.stackexchange.com/a/30239 | |
# http://technotes.twosmallcoins.com/?p=279 | |
read -s -p 'Choose a VNC Password:' password | |
echo | |
/bin/echo -n 'Need sudo access, ' | |
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw $password -restart -agent -privs -all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment