Go back

How to get CentOS GUI Linux on AWS

This section describes how to launch and connect to CentOS GUI Linux in Amazon Web Services (AWS).

  1. Open CentOS GUI Linux VM listing on AWS marketplace.

/img/aws/centos-gui-linux/centos-9-marketplace.png

  1. Click on Continue to subscribe.
  • Login with your credentials and follow the instruction.
  • Subscribe to the product and click on Continue to configuration button.
  • Select a Region where you want to launch the VM(such as US East (N.Virginia))

/img/aws/centos-gui-linux/region.png

  • Click on Continue to Launch Button.
  • Choose Action: You can launch it through EC2 or from Website.(Let’s choose Launch from website)

/img/aws/centos-gui-linux/launch.png

  • Optionally change the EC2 instance type. (This defaults to t2.medium instance type, 2 vCPUs and 4 GB RAM)
  • Optionally change the network name and subnetwork names.

/img/aws/centos-gui-linux/vpc.png

  • Select the Security Group. Be sure that whichever Security Group you specify have ports 22 (for ssh) and 3389 (for RDP) exposed.
  • Be sure to download the key-pair which is available by default, or you can create the new key-pair and download it.

/img/aws/centos-gui-linux/SG.png

  • Click on Launch..
  • CentOS GUI Linux will begin deploying. 3. A summary page displays.To see this instance on EC2 Console click on EC2 Console link.

/img/aws/centos-gui-linux/deployed.png

  1. On the EC2 Console page, instance is up and running. To connect to this instance through putty, copy the IPv4 Public IP Address

/img/aws/centos-gui-linux/public-ip.png

  1. Open putty, paste the IP address and browse your private key you downloaded while deploying the VM, by going to **SSH- >Auth **, click on Open.

/img/aws/ethereum-fullnode/putty-01.png

/img/aws/ethereum-fullnode/putty-02.png

  1. login as ec2-user. Now you are connected as ec2-user user

/img/aws/centos-gui-linux/ssh-ec2-user-login.png

  1. Change the password for ec2-user user by running-
sudo passwd ec2-user

/img/aws/centos-gui-linux/ec2-user-passwd.png

  1. Now passwd is set for centos user, you can connect to the VM’s desktop environment from any local Windows Machine using RDP protocol or Linux Machine using Remmina.

From your local windows machine, goto “start” menu, in the search box type and select “Remote desktop connection”. In the “Remote Desktop connection” wizard, copy the public IP address and click connect

/img/aws/ethereum-fullnode/rdp.png

  1. This will connect you to the VM’s desktop environment.Click yes on certificate warning. Provide username as ec2-user and password set in the above step to authenticate. Click OK

/img/aws/centos-gui-linux/ec2-user-rdp-login.png

  1. Now you are connected to the out of box CentOS GUI Linux environment via Windows Machine.

/img/aws/centos-gui-linux/rdp-desktop-centos.png

  1. To connect using RDP via Linux machine, first note the external IP of the VM from VM details page,then from your local Linux machine, goto menu, in the search box type and select “Remmina”.

Note: If you don’t have Remmina installed on your Linux machine, firstInstall Remmina as per your linux distribution.

/img/gcp/common/remmina-search.png 12. In the “Remmina Remote Desktop Client” wizard, select the RDP option from dropdown and paste the external ip and click enter.

/img/gcp/common/remmina-external-ip.png 13. This will connect you to the VM’s desktop environment.Accept the certificate warning and provide username as ec2-user and password set in above step to authenticate. Click OK

/img/aws/centos-gui-linux/remmina-rdp-login-ec2-user.png

  1. Now you are connected to out of box CentOS GUI Linux environment via Linux machine.

/img/aws/centos-gui-linux/rdp-desktop-centos.png

  1. Run below command to create new user
sudo adduser username

/img/aws/centos-gui-linux/adduser.png

  1. Once user is added, set the password of that user by running-
   sudo passwd username

/img/aws/centos-gui-linux/passwd.png

  1. Now add newly created user to the wheel group to give the sudo access by running below command-
sudo usermod -aG wheel username

/img/aws/centos-gui-linux/wheel-group.png

  1. Now new user setup is completed. You can use this user to connect to the Centos GUI Dekstop environment. /img/aws/centos-gui-linux/rdp-login-newuser.png

  2. Now you are connected to out of box Centos GUI Dekstop environment with new user. /img/aws/centos-gui-linux/rdp-dekstop-newuser.png

  3. Right Click on Desktop icons and select Allow Launching /img/aws/centos-gui-linux/allow-launching.png

Go back