Skip to content

Instantly share code, notes, and snippets.

@jdmedeiros
Last active February 2, 2023 08:07
Show Gist options
  • Save jdmedeiros/d6050023c6196f67502f09207fdf06d8 to your computer and use it in GitHub Desktop.
Save jdmedeiros/d6050023c6196f67502f09207fdf06d8 to your computer and use it in GitHub Desktop.
Graphical User Interface (GUI) on AWS EC2 Linux-2
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