Last active
February 2, 2023 08:07
-
-
Save jdmedeiros/d6050023c6196f67502f09207fdf06d8 to your computer and use it in GitHub Desktop.
Graphical User Interface (GUI) on AWS EC2 Linux-2
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
Installing a Graphical User Interface (GUI) on AWS EC2 Linux-2 | |
sudo amazon-linux-extras install mate-desktop1.x | |
sudo amazon-linux-extras install epel | |
sudo amazon-linux-extras install chromium filezilla | |
sudo yum -y install xrdp chromium filezilla | |
sudo systemctl enable --now xrdp | |
# This will make the graphic interface available to all users | |
sudo bash -c 'echo PREFERRED=/usr/bin/mate-session > /etc/sysconfig/desktop' | |
# If the user already exists, login as that user and run: | |
echo "/usr/bin/mate-session" > ~/.Xclients && chmod +x ~/.Xclients | |
# Assign a password to the user in case he does not have a password | |
sudo passwd ec2-user | |
# Make sure you you access it over an SSH tunnel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment