Skip to content

VJftw/cloud-desktops

Repository files navigation

Cloud Desktops

This repository presents various cloud virtual desktops suitable for shared or single use in Google Cloud Platform via OS Login and Chrome Remote Desktop.

Release

Quick Start

If you'd like to try this out without building your own Packer images and you trust me, feel free to use my public images in the vjp-cloud-desktops project and skip to step 3. e.g.

Debian Linux w/ XFCE4

DEBIAN_IMAGE="debian-xfce4-2024-05-17-73411bf"
gcloud compute instances create debian-ws \
    --machine-type=e2-standard-2 \
    --boot-disk-size=50GB \
    --boot-disk-type=pd-ssd \
    --metadata enable-oslogin=true \
    --no-service-account \
    --no-scopes \
    --image-project vjp-cloud-desktops \
    --image "$DEBIAN_IMAGE"

Kali Linux w/ XFCE4

KALI_IMAGE="kali-xfce4-2024-05-03-584a5dc"
gcloud compute instances create kali-ws \
    --machine-type=e2-standard-2 \
    --boot-disk-size=50GB \
    --boot-disk-type=pd-ssd \
    --metadata enable-oslogin=true \
    --no-service-account \
    --no-scopes \
    --image-project vjp-cloud-desktops \
    --image "$KALI_IMAGE"

Arch Linux w/ XFCE4

ARCH_IMAGE="arch-xfce4-2023-07-14-9270dfd"
gcloud compute instances create arch-ws \
    --machine-type=e2-standard-2 \
    --boot-disk-size=50GB \
    --boot-disk-type=pd-ssd \
    --metadata enable-oslogin=true \
    --no-service-account \
    --no-scopes \
    --image-project vjp-cloud-desktops \
    --image "$ARCH_IMAGE"

Getting Started

  1. Build your desired flavour by running its Please target (see below).
  2. Boot your new image in Google Compute Engine.
  3. SSH into your new instance via OS Login.
  4. Go to https://remotedesktop.google.com/headless and skip to through authorise to get the command to run on your new instance. Run the command and follow the instructions.
  5. The new instance will appear in https://remotedesktop.google.com/access.

Flavours

Debian

GCP_PROJECT_ID="my-project" ./pleasew run //flavours/debian:xfce4_build

Kali Linux

GCP_PROJECT_ID="my-project" ./pleasew run //flavours/debian/kali:xfce4_build

Kali Linux takes some time to build as it is based off Debian and replaces the Debian's sources with Kali's sources and thus replaces a lot of the existing packages.