Skip to content

Instantly share code, notes, and snippets.

@goldsborough
Last active October 6, 2017 20:07
Show Gist options
  • Save goldsborough/4a53ba5007185e3c6d0c3619500faa57 to your computer and use it in GitHub Desktop.
Save goldsborough/4a53ba5007185e3c6d0c3619500faa57 to your computer and use it in GitHub Desktop.
Google Cloud Setup Notes

Setting Up Google Cloud

Installing GCloud

Install Google Cloud's CLI, gcloud, on your machine: https://cloud.google.com/sdk/downloads Just grab a version and wget it. Then run instructions on the website to install.

Install gsutil: pip install gsutil. Authenticate: gsutil config.

Setting up VM

  1. On Google Cloud, go to "Compute Engine", then "VM Instances". Click on "Create Instance".
  2. Select us-east1-c or us-east1-d region (have GPUs),
  3. For Machine Type, click customize and set number of GPUs and CPUs,
  4. For Disk Type, choose Ubuntu 16.04 with e.g. 40 GB SSD drive,
  5. Create the instance and wait for it to boot up,
  6. Setup the correct firewall rules on your own machine: gcloud compute firewall-rules create default-allow-ssh --allow tcp:22,
  7. SSH into the machine with your browser (easiest) or connect from your machine with gcloud compute ssh --zone <zone> <instance>.

To set up port forwarding between your local machine and the VM, use these flags for the gcloud compute ssh flags:

--ssh-flag='-L' --ssh-flag='8000:127.0.0.1:6006'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment