My startup scripts for GCE

Before running create.sh

  • setup port 80 (HTTP) for Rstudio on GCE console
  • setup ssh keys on GCE console

Usage

sh create.sh instance-name machine-type
  • use google cloud shell
  • save create.sh in the cloud console
  • for example, sh create.sh hello e2-small creates an e2-small instance named hello.

cloud_console

Startup script log

  • CentOS and RHEL: /var/log/messages
  • Debian: /var/log/daemon.log
  • Ubuntu: /var/log/syslog
  • SLES: /var/log/messages

Related