Creating Ubuntu 22 on Google Cloud: Free Trial Guide

Creating an Ubuntu 22 virtual machine (VM) on Google Cloud Platform (GCP) is a straightforward process.

In this detailed blog post, I’ll guide you through the step-by-step procedure to set up a VM using Google Cloud, taking advantage of the free credits that Google often provides for new users.

A Step-by-Step Guide to Creating a Free Ubuntu 22.04 LTS Virtual Machine on Google Cloud

Google Cloud Platform (GCP) offers a convenient and scalable infrastructure for deploying virtual machines in the cloud. In this guide, we’ll walk through the process of creating an Ubuntu 22 virtual machine on GCP, taking advantage of the free credits provided to new users.

Prerequisites:

  1. A Google Cloud Platform account. If you don’t have one, you can sign up for free at Google Cloud Console.
  2. Verify that your account is eligible for free trial credits.

Step 1: Accessing the Google Cloud Console:

  1. Open your web browser and navigate to Google Cloud Console.
  2. Sign in with your Google account.

Step 2: Activating Free Trial Credits:

  1. If you are eligible for free trial credits, you will see a notification prompting you to activate them. Follow the on-screen instructions to activate your free trial.

Step 3: Creating a New Project:

  1. In the Google Cloud Console, click on the project drop-down menu in the top navigation bar.
  2. Click on the “New Project” button.
  3. Enter a name for your project, and click “Create.”

Step 4: Enable Billing:

  1. In the Google Cloud Console, navigate to the “Billing” section.
  2. If prompted, select your project and enable billing.

Step 5: Navigate to Compute Engine:

  1. In the Google Cloud Console, click on the hamburger menu in the upper-left corner.
  2. Under the “Compute” section, select “Compute Engine.”

Step 6: Create a New Virtual Machine:

  1. Click on the “Create” button to create a new VM.
  2. In the “Name” field, enter a name for your VM.
  3. Select “Ubuntu” as the boot disk and choose the version (22.04 LTS, for example).
  4. Choose a machine type based on your requirements.
  5. Scroll down to the “Firewall” section and check the “Allow HTTP traffic” and “Allow HTTPS traffic” options.
  6. Click the “Create” button to create the VM.

Step 7: Accessing the VM:

  1. Once the VM is created, click on the VM instance name in the Compute Engine dashboard.
  2. Click on the “SSH” button to open a web-based SSH terminal.

Step 8: Configuring Ubuntu:

  1. In the SSH terminal, you have access to the command line of your Ubuntu VM.
  2. Update the package list: sudo apt update
  3. Upgrade installed packages: sudo apt upgrade
  4. Customize your VM as needed.

Step 9: Configure Windows Remote Desktop on the VM:

  1. In the Compute Engine dashboard, note the external IP address of your VM.
  2. Open the terminal in your SSH session.
  3. Install the Xfce desktop environment: sudo apt install xfce4
  4. Install Xfce’s terminal: sudo apt install xfce4-terminal
  5. Install xrdp: sudo apt install xrdp
  6. Start the xrdp service: sudo systemctl start xrdp
  7. Ensure that xrdp starts on boot: sudo systemctl enable xrdp

Step 10: Access the VM via Windows Remote Desktop:

  1. On your local Windows machine, search for “Remote Desktop Connection” in the Start menu.
  2. Open the Remote Desktop Connection application.
  3. Enter the external IP address of your VM in the “Computer” field.
  4. Click “Connect.”
  5. Enter your VM credentials when prompted.

Step 11: Configure Xfce Desktop Environment (Optional):

  1. After connecting via Remote Desktop, you’ll see the Xfce desktop environment.
  2. Customize your desktop environment as needed.

Congratulations! You have successfully created an Ubuntu 22 virtual machine on Google Cloud Platform using free trial credits. This VM can now be used for various purposes, such as web hosting, development, or testing. It has been configured for access via Windows Remote Desktop. This enhanced setup allows you to interact with your VM using a graphical interface, providing a more user-friendly experience.

Remember to monitor your usage to stay within the free trial limits. Google Cloud provides extensive documentation for further customization and optimization of your virtual machines. Explore the possibilities and make the most of your cloud computing experience!


Discover more from Kango Anywhere

Subscribe to get the latest posts sent to your email.

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Kango Anywhere

Subscribe now to keep reading and get access to the full archive.

Continue reading