

You will lose connection to your VM instance immediately. You just need to reboot your Ubuntu VM instance. Sudo bash -c ‘echo “exec /etc/X11/Xsession /usr/bin/gnome-session” > /etc/chrome-remote-desktop-session’ģ. Set your Chrome Remote Desktop session to use Gnome, which is the default desktop environment for Ubuntu: In the SSH window connected to your VM instance, install Ubuntu desktop environment:Ģ. Now we need to install a desktop environment and window manager for Chrome Remote Desktop to communicate with the VM instance.ġ. chrome-remote-desktop_current_b Set up a Ubuntu desktop environment in the VM instance Download and install the Debian Linux Chrome Remote Desktop installation package: wget Sudo apt install -assume-yes wget taskselĢ.

Tasksel is a Debian/Ubuntu tool that installs multiple related packages as a co-ordinated “task” onto your system. Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS, the most widely used Internet protocols. In the SSH window connected to your VM instance, update the package manager data and install wget and tasksel. The next step is to install Chrome Remote Desktop on the VM instance.ġ. If you prefer to start a VM through Google Cloud Shell, you can use this command to achieve the same result: gcloud compute instances create ubuntu-desktop -zone=us-central1-a -machine-type=e2-medium -image=projects/ubuntu-os-pro-cloud/global/images/ubuntu-pro-2004-focal-v20210720 Install Chrome Remote Desktop on the VM instance You can click the SSH button in the instance list to connect to your new instance. In less than one minute, you will be able to see your Ubuntu instance in RUNNING status. In the Google Cloud Console, go to the VM Instances page:Ĩ. If you want a more performant machine, there are a variety of choices in Google Cloud.ġ. The default e2-medium (2 vCPU, 4 GB memory) machine type works fine for the tutorial purpose. In this step, we will launch a VM instance in Google Cloud.

Install and configure the Chrome Remote Desktop service on the VM instance.Create a Ubuntu VM instance on Google Cloud.If you need a graphic interface to your virtual desktop on the cloud, this tutorial will teach you how to set up a desktop environment just like what you can get on your own computer. This tutorial shows you how to set up a Ubuntu Desktop on Google Cloud.
