Changes

Jump to navigation Jump to search

Run relax at Google Cloud Computing

47 bytes removed, 19:34, 28 November 2015
no edit summary
ZONE=us-central1-f
PRID=relax
GCC=gcc
gcloud compute --project $PROJ ssh --zone $ZONE $PRID
</source>
# Use sed to change value of your local computes ssh config file
grep "$PRID.$ZONE.$PROJ" $HOME/.ssh/config
sed "s/$PRID.$ZONE.$PROJ/gcc_relax$GCC/g" $HOME/.ssh/configsed -i.bak "s/$PRID.$ZONE.$PROJ/gcc_relax$GCC/g" $HOME/.ssh/config
ls -l $HOME/.ssh/config*
grep 'gcc_relax' "$GCC" $HOME/.ssh/configssh gcc_relax$GCC
exit
</source>
#First fast check
touch test2.txt
scp test2.txt gcc_relax$GCC:ssh gcc_relax$GCC
ls
exit
# Or use rsync
mkdir dirtest
rsync --progress -avzhe ssh ./dirtest gcc_relax$GCC:ssh gcc_relax$GCC
ls
rmdir dirtest
# Start it, it takes 30 seconds.
gcloud compute --project $PROJ instances start --zone $ZONE $PRID
ssh gcc_relax$GCC
exit
gcloud compute --project $PROJ instances stop --zone $ZONE $PRID
# This should now not work
ssh gcc_relax$GCC
</source>
<source lang="bash">
gcloud compute --project $PROJ instances start --zone $ZONE $PRID
ssh gcc_relax$GCC
</source>

Navigation menu