Skip to content

Instantly share code, notes, and snippets.

@benny-shotvibe
Last active August 29, 2015 14:08
Show Gist options
  • Save benny-shotvibe/4e7894d2e306381def21 to your computer and use it in GitHub Desktop.
Save benny-shotvibe/4e7894d2e306381def21 to your computer and use it in GitHub Desktop.
Mac OS X VNC
#!/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
#!/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