In this tutorial, you will learn how to set up desktop environment and get Remote Desktop connection for RDP google cloud platform virtual machine. You want to know how to get RDP GCP cloud console access via Turbo VNC Viewer (a rdp client) and it’s set up process. Watch the previous video down below.
Setting up IP Address
After set up virtual machine, you should have static the IP address to ensure it is not change during restart. In the menu, under VPC Network select External IP addresses. Then change IP type to Static, in the pop-up window give any name and click “Reserve”. button.
Install RDP server and Ubuntu Desktop Enviroment
Then get back to compute engine page (VM instances page), click “SSH” button a command line will open. To update list of packages, follow this command. You can find all the command and guideline at the link in the description. I recommend to follow the link for better understanding.
sudo apt-get update
To install RDP server. Use this line.
sudo apt-get install -y xrdp
Specifically, we will install packages for the latest Xfce desktop environment. Enter the following command.
sudo apt-get install -y xfce4
Now restart the server.
sudo service xrdp restart
Then get root access to enter a password. Use following steps.
Enter a password and verify it. It is not visible on the terminal. Don’t worry, just type. The password must be between six and eight characters long. Passwords more than 8 characters will be truncated automatically.
Connect VM Instance though RDP
Now you are ready to remotely access the VPS. Close the terminal. Then please check the firewall rules is there any block to connect server public IP address.
In the windows search bar, type remote desktop connection and Open the app. Copy your external IP address and paste it as server name then click “connect” button.
Select session as “XORG” and username type “root” then enter your password. Enjoy the VPS with RDP assess.