PRODUCTS AND SUPPORT


How to get CentOS GUI Linux on GCP (Google Cloud Platform)




  1. Open CentOS GUI Linux marketplace listing on GCP Marketplace.



  2. Click Launch .
    • Select a zone where you want to launch the VM(such as us-east1-)
    • Optionally change the number of cores and amount of memory. (This defaults to 1 vCPUs and 3.75 GB ram.)
    • Optionally change the boot disk type and size. (This defaults to "Standard Persistent Disk" and 20 GB respectively)
    • Optionally change the network name and subnetwork names. Be sure that whichever network you specify has ports 22 (for ssh) and 3389 (for RDP) exposed.
    • Click Deploy when you are done. CentOS Desktop Linux VM will begin deploying.



  3. A summary page displays when the compute engine is successfully deployed. Click on the Instance link to go to the instance page .

  4. On the instance page, click on the "SSH" button, select "Open in browser window".



  5. This will open SSH window in a browser.
  6. Run below command to update the password for centos user
  7. sudo passwd centos

    /img/gcp/desktop-linux-centos/centos-passwd.png

  8. Then From your local windows machine, goto "start" menu , in the search box type and select "Remote desktop connection"

  9. In the "Remote Desktop connection" wizard, copy the external ip and click connect.Accept the certificate warning.

  10. /img/gcp/desktop-linux/desktop-linux-rdp.png

  11. This will connect you to the VM's desktop environment. Provide username as centos and password you set above to authenticate. Click OK



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



  13. 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".
  14. Note:: If you don't have Remmina installed on your Linux machine, first Install Remmina as per your linux distribution.

    /img/gcp/common/remmina-search.png


  15. In the "Remmina Remote Desktop Client" wizard, select the RDP option from dropdown and paste the external ip and click enter

  16. /img/gcp/common/remmina-external-ip.png


  17. Click yes on certificate warning.


  18. This will connect you to the VM's desktop environment. Provide username as centos and password set in above step to authenticate. Click OK

  19. /img/gcp/desktop-linux-centos/remmina-centos-login.png

  20. Now you are connected to out of box CentOS GUI Linux environment via Linux Machine.



  21. Run below command to create new user

  22. sudo adduser username

    /img/gcp/desktop-linux-centos/adduser.png

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

    /img/gcp/desktop-linux-centos/passwd.png

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

    /img/gcp/desktop-linux-centos/wheel-group.png

  27. New user setup is completed.You can acces CentOS GUI Linux with this user.