GUI for Amazon EC2

Installing GUI Components

1. Update the server using the following command.

sudo yum -y update

2. Install the gnome GUI components using the following command.

sudo yum groupinstall -y "Server with GUI"

3. Issue the following commands to start the GUI during boot.

sudo systemctl set-default

sudo systemctl default

Setting Up XRDP

1. Add the xrdp repository to your instance using the following command.

sudo rpm -Uvh

2. Install xrdp and tiger VNC server.

sudo yum install -y xrdp tigervnc-server

3. Setup SELINUX security using the following commands.

chcon --type=bin_t /usr/sbin/xrdp

chcon --type=bin_t /usr/sbin/xrdp-sesman

4. Start and enable the xrdp service.

sudo systemctl start xrdp

sudo systemctl enable xrdp

5. Enable RDP port on the instance using the following firewall commands.

sudo firewall-cmd --permanent --add-port=3389/tcp

sudo firewall-cmd --reload

6. Set a password for ec2-user . This password will be used to connect

to the RDP session.

sudo passwd ec2-user

7. Set password for root as you will be prompted for cloud user

password for network proxy and color. Login as root and set the


sudo passwd


Popular posts from this blog