GoogleCloud: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<pre> https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid </pre>") |
m (update sendgrid email relay link) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | == Download gcloud sdk == | ||
* https://cloud.google.com/sdk/downloads#versioned | |||
== Running gcloud == | |||
<syntaxhighlight lang=bash> | |||
# if needed $ export PATH=$PATH:~/google-cloud-sdk/bin | |||
$ gcloud auth list | |||
$ gcloud auth login | |||
$ gcloud config set project drew-1298 | |||
$ gcloud compute instances list | |||
$ gcloud compute ssh | |||
$ gcloud compute ssh user@instance-1 --zone us-central1-a | |||
</syntaxhighlight> | |||
== Setup sendgrid email relay == | |||
https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid | https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid | ||
</ | |||
== Install heirloom-mailx == | |||
Needed to attach files via mailx, i.e. | |||
<syntaxhighlight lang=bash> | |||
$ sudo apt-get install heirloom-mailx | |||
$ echo "sqlite db drew.invadelabs.com" | mailx -a drew_wiki.sqlite.xz -s "sqlite db drew.invadelabs.com" [email protected] | |||
</syntaxhighlight> |
Latest revision as of 12:22, 26 February 2018
Download gcloud sdk
Running gcloud
# if needed $ export PATH=$PATH:~/google-cloud-sdk/bin
$ gcloud auth list
$ gcloud auth login
$ gcloud config set project drew-1298
$ gcloud compute instances list
$ gcloud compute ssh
$ gcloud compute ssh user@instance-1 --zone us-central1-a
Setup sendgrid email relay
https://cloud.google.com/compute/docs/tutorials/sending-mail/using-sendgrid
Install heirloom-mailx
Needed to attach files via mailx, i.e.
$ sudo apt-get install heirloom-mailx
$ echo "sqlite db drew.invadelabs.com" | mailx -a drew_wiki.sqlite.xz -s "sqlite db drew.invadelabs.com" [email protected]