Created
June 18, 2017 18:47
-
-
Save andrewfinnell/ddf66dc259e08bb69aa4dbf919b43d29 to your computer and use it in GitHub Desktop.
GCloud :: Ubuntu / Bash on Ubuntu for Windows :: Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create an environment variable for the correct distribution | |
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" | |
# Add the Cloud SDK distribution URI as a package source | |
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list | |
# Import the Google Cloud Platform public key | |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
# Update the package list and install the Cloud SDK | |
sudo apt-get update && sudo apt-get install google-cloud-sdk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment