How to install a GUI on Amazon AWS EC2 or EMR with the Amazon AMI

0 votes

I have a need to run an application that requires a GUI interface to start and configure. I also need to be able to run this application on Amazon's EC2 service and EMR service. The EMR requirement means it has to run on Amazon's Linux AMI.

After extensive searching I've been unable to find any ready made solutions, in particular the requirement to run on Amazon's AMI. The closest match and most often referenced solution is here. Unfortunately it was developed on a RHEL6 instance which differs enough from Amazon's AMI that the solution does not work.

I'm posting my solution below. Hopefully it will save some others from the many hours of experimentation it took to come up with the right recipe.

Mar 8 in Others by Edureka
• 13,640 points
38 views

1 answer to this question.

0 votes
The top-level script for installing the GUI is listed below. The first thing it does after configuring a few variables is run the script from step 1 above. Because I developed it to function on a conventional ec2 instance, or emr, and as root or as ec2-user, it comes with some extra baggage. The necessary stages are as follows:

libXfont must be installed before tiger-vnc-server can be used.
the VNC server configuration file should be installed
in the user's home directory, make a.vnc directory
Install the xstartup file in the.vnc directory, as well as a dummy passwd file.
launch the VNC server
answered Mar 9 by gaurav
• 13,560 points

Related Questions In Others

0 votes
1 answer

how to install Amazon AWS Command Line Interface tools on Bamboo build agent.

Hi@Abhishek, You need to set the following parameters ...READ MORE

answered Apr 6, 2020 in Others by MD
• 95,360 points
716 views
0 votes
1 answer
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

Golang on Linux... How to install it?

Hey @Abhi, if you want to install ...READ MORE

answered Mar 1, 2019 in Others by Anvi
• 14,170 points
327 views
0 votes
1 answer
0 votes
1 answer

How to get password of the Amazon aws rds user?

Follow these procedures to update the master ...READ MORE

answered Mar 9 in Others by gaurav
• 13,560 points
465 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP