I'm using an amazon Ubuntu EC2 instance which is only has a command line interface. I want to setup UI for that server to access using remote desktop tools. Is there any way to apply GUI to the EC2 instance?
Amazon-web-services – How To Set Up GUI On Amazon EC2 Ubuntu server
amazon-ec2amazon-web-servicesubuntuvnc
Best Solution
This can be done. Following are the steps to setup the GUI
Create new user with password login
Setting up ui based ubuntu machine on AWS.
In security group open port 5901. Then ssh to the server instance. Run following commands to install ui and vnc server:
Then run following commands and enter the login password for vnc connection:
Then hit the Insert key, scroll around the text file with the keyboard arrows, and delete the pound (#) sign from the beginning of the two lines under the line that says "Uncomment the following two lines for normal desktop." And on the second line add "sh" so the line reads
When you're done, hit Ctrl + C on the keyboard, type :wq and hit Enter.
Then start vnc server again.
You can download
xtightvncviewer
to view desktop(for Ubutnu) from here https://help.ubuntu.com/community/VNC/ClientsIn the vnc client, give public DNS plus ":1" (e.g. www.example.com:1). Enter the vnc login password. Make sure to use a normal connection. Don't use the key files.
Additional guide available here: http://www.serverwatch.com/server-tutorials/setting-up-vnc-on-ubuntu-in-the-amazon-ec2-Page-3.html
Mac VNC client can be downloaded from here: https://www.realvnc.com/en/connect/download/viewer/
Port opening on console
If the grey window issue comes. Mostly because of ".vnc/xstartup" file on different user. So run the vnc server also on same user instead of "awsgui" user.