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, 2022 in Others by Edureka
• 13,690 points
932 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 AWS 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, 2022 by gaurav
• 23,260 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,460 points
1,784 views
0 votes
1 answer

How to run seed.rb file on Amazon ec2

To gain access to the Amazon instance, ...READ MORE

answered Mar 24, 2022 in Others by Edureka
• 13,690 points
624 views
0 votes
0 answers

How to find the username of the instance launched in amazon-ec2?

I m having trouble connecting to the ...READ MORE

Apr 4, 2022 in Others by Kichu
• 19,050 points
1,439 views
0 votes
0 answers

How to find the username of the instance launched in amazon-ec2?

I m having trouble connecting to the ...READ MORE

Apr 5, 2022 in Others by Kichu
• 19,050 points
466 views
0 votes
1 answer

How do I get it to select a single row based on the value?

Try this: Sub MoveBasedOnValue2() Dim ...READ MORE

answered Jan 20, 2023 in Others by narikkadan
• 63,720 points
553 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, 2022 in Others by gaurav
• 23,260 points

edited Jun 20, 2023 by Khan Sarfaraz 11,733 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP