Created
January 14, 2023 07:16
-
-
Save betillogalvanfbc/be649fc454f3c6c22ddec6db64213e5c to your computer and use it in GitHub Desktop.
gcp.txt
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
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