Forked from sebsto/gist:6af5bf3acaf25c00dd938c3bbe722cc1
Created
May 10, 2021 03:48
-
-
Save libin/1c6c2c88c159fa0f9c716aef0918b962 to your computer and use it in GitHub Desktop.
Start VNCServer on Mac1 EC2 Instance
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
| # 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