Skip to content

Instantly share code, notes, and snippets.

@betillogalvanfbc
Created January 14, 2023 07:16
Show Gist options
  • Save betillogalvanfbc/be649fc454f3c6c22ddec6db64213e5c to your computer and use it in GitHub Desktop.
Save betillogalvanfbc/be649fc454f3c6c22ddec6db64213e5c to your computer and use it in GitHub Desktop.
gcp.txt
Installing GCP and Package ::
________________________________
apt install python2 openssh -y
export CLOUDSDK_PYTHON='python2.7'
echo "export CLOUDSDK_PYTHON='python2.7'" >> ~/.bashrc
echo "export PATH=$PATH:$PREFIX/google-cloud-sdk/bin"
curl -o sdk.sh sdk.cloud.google.com
chmod +x sdk.sh
./sdk.sh --install-dir=$PREFIX
_________________________________
Google Cloud authentication ::
_________________________________
gcloud auth login
_________________________________
Next launch gcloud shell ::
_________________________________
gcloud alpha cloud-shell ssh --authorize-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment