How to install Ubuntu with gui on Google cloud
HTML-код
- Опубликовано: 4 фев 2025
- In this video are going to learn how to install Desktop (GUI) and Launch on an Ubuntu 22.04 LTS.
Usually GUI has been disabled by default on all Linux machines, so if you need desktop for some reasons this blog will help you.
We need below four steps to setup VM with graphical user interface mode.
Create Ubuntu instance in Google Cloud
Install and configure Chrome remote desktop service on the VM instance
Install Ubuntu desktop packages on the VM instance
Connect from your Chrome web browser to the desktop environment on the VM instance
Create Ubuntu VM instance:
We will launch VM instance in google cloud. The c2 medium (
c2-standard-8 (8 vCPU, 4 core, 32 GB memory))
In the console.cloud.... go to the VM instance under the Compute Engine.
Click create instance for the VM creation.
Set the instance name, region and zone.
4. Scroll down to boot disk and click change.
5. In the boot disk you should select Operation system, select ubuntu from the drop down window and select version ubuntu 22.04 LTS and keep the rest options as default.
6. Click to create the instance.
7. Instance will create 2–3 mins and come up with running state.
=================================== GUI Setup Steps ============================================
Install Chrome Remote Desktop on the VM instance
The next step is to install Chrome Remote Desktop on the VM instance which you created. Download and install the Debian Linux Chrome Remote Desktop installation package:
wget dl.google.com/...
sudo apt-get install --assume-yes ./chrome-remote-desktop_current_amd64.deb
Setup Ubuntu desktop environment in the VM instance:
Connect your instance using SSH, refresh the repository and package lists, perform the necessary upgrade using the below commands.
sudo apt update && sudo apt upgrade
2. Install and setup display manager. Here i used SLiM for its lightweight feature
sudo apt install slim
3. Install Ubuntu desktop environment (the installation process may need around 15-20 minutes):
sudo apt install ubuntu-desktop
this step gona take some time (just some time )
4. Once finishes the installation, reboot the machine.
sudo reboot
5. Once instance is back to online after the reboot, ssh the connection and start the slim using below command.
sudo service slim start
Configure the Chrome Remote Desktop service and Connect to your Ubuntu Desktop
To start the remote desktop connection, you need to have an authorization key for your Google account.
1. On your local computer, using the Chrome browser, go to the Chrome Remote Desktop command line setup page:
remotedesktop....
2. On the Set up another computer page, click Begin.
3. Click next. You already installed the Chrome Remote Desktop on the remote computer in STEP2.
4. Click Authorise
5. Now you get the command to set up and start the Chrome Remote Desktop service on your VM instance. Copy the command for Debian Linux.
6. Copy and Paste the command to the SSH window that connects to your VM instance. Run the command.
7. Enter a 6-digit PIN when prompted. This PIN will be used when you log into the VM instance from your Chrome.
8. On your local computer, go to the Chrome Remote Desktop web site. You will find your Ubuntu Desktop shows up in the portal.
9. Click the remote desktop instance. In this case, it is “worker-node1†. And you will be prompted to input the 6-digit PIN you set in step 7.
10. Now you can see the ubuntu desktop and fully functional.
hi do you have the full commands?
the commands in descriptions are cut off
github.com/M0nster0p/ubuntu_gui_gcloud/blob/main/README.md