Skip to content

Instantly share code, notes, and snippets.

@fraank
Last active August 29, 2015 14:01
Show Gist options
  • Save fraank/60683421bbcb0aab7d3e to your computer and use it in GitHub Desktop.
Save fraank/60683421bbcb0aab7d3e to your computer and use it in GitHub Desktop.
VNC on Ubuntu with GUI via AWS - EC2
Easy Install VNC on Ubuntu with GUI via EC2 (I used a Ubuntu 64 Precise 12.04 HVM Instance, daily)
$ sudo apt-get update
$ sudo apt-get install ubuntu-desktop
$ sudo apt-get install vnc4server
Add correct permissions for the Securty-Group of the Instance and grant access for port 5901
Start the VNC-Server on Port :1 (or 5901) and set Password for connection
$ vncserver :1
Now you can use you client (I'm using http://www.realvnc.com/ on OSX) and conenct to your instance (use the Public DNS Name, for example: ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com).
You should connect to: ec2-xx-xx-xx-xx.us-west-2.compute.amazonaws.com:1
If you're done you can kill the VNC-Sever with
$ vncserver -kill :1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment