Google Cloud Shell
Links
Cloud Shell Editor
Container image customization
Example Custom Sample Repository
Open in Cloud Shell
Tips and Tricks for using Google Cloud Shell as a Cloud IDE
Change the root password
sudo passwd $USER
Upgrade git
echo deb http://deb.debian.org/debian buster-backports main | sudo tee /etc/apt/sources.list.d/buster-backports.list
sudo apt update
sudo apt install -t buster-backports git
Environment customization
Cloud Shell automatically runs the script, $HOME/.customize_environment, when your instance boots up. Unlike .profile or .bashrc, this script runs once when Cloud Shell boots (rather than once for each shell login). Source
export APIS="googleapis.com www.googleapis.com storage.googleapis.com iam.googleapis.com container.googleapis.com cloudresourcemanager.googleapis.com"
for i in $APIS
do
echo "199.36.153.10 $i" >> /etc/hosts
done
People
Website | ||
---|---|---|