Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save libin/1c6c2c88c159fa0f9c716aef0918b962 to your computer and use it in GitHub Desktop.
Save libin/1c6c2c88c159fa0f9c716aef0918b962 to your computer and use it in GitHub Desktop.
Start VNCServer on Mac1 EC2 Instance
# Set a password for ec2-user
sudo passwd ec2-user
# Enable VNC Server
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \
-activate -configure -access -on \
-configure -allowAccessFor -specifiedUsers \
-configure -users ec2-users \
-configure -restart -agent -privs -all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment