Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update article about free home server using Oracle Cloud #1255

Merged
merged 1 commit into from
Feb 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 30 additions & 16 deletions gatsby/content/docs/free-small-matrix-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ Comparison of free cloud offerings (2021/09):
| [GCP] | no limit | 1 e2-micro | 1 | 30 | 1 |
| [Oracle] | no limit | 1-4 VM.Standard.A1.Flex | 24 | 200 | 10000 |

Note that the Oracle ARM instances may not be compatible with all available
software. Also, Oracle seems to shut down your always free cloud instances at
the end of your 30 day trial. They can not be started back up, but you can
create new ones by cloning the disk images, so no data should be lost. Keeping
backups is good practise in any case.

[AWS]: https://aws.amazon.com/free/
[Azure]: https://azure.microsoft.com/en-us/free/
[GCP]: https://cloud.google.com/free/
Expand Down Expand Up @@ -104,17 +110,6 @@ firewall in front, so let's remove the current firewall to avoid trouble:
apt purge netfilter-persistent iptables-persistent
```

## Remove useless stuff (optional)

Oracle cloud includes a somewhat heavy monitoring daemon. We have better use for
that memory since current versions of Synapse, the Matrix homeserver, can be
memory hungry.

```shell
snap remove oracle-cloud-agent
apt purge snapd open-iscsi lxd lxcfs
```

## Point domain at server

Assuming you're using a new domain only for this you need the following DNS
Expand Down Expand Up @@ -150,6 +145,12 @@ ansible-playbook -i inventory/hosts setup.yml --tags=self-check
ansible-playbook -i inventory/hosts setup.yml -e username=$user -e password=$pass -e admin=yes --tags=register-user
```

### Set playbook architecture to arm64 if using Oracle Cloud ARM instances

```yaml
matrix_architecture: 'arm64'
```

### Serve the base domain as well (unless you already have something serving it)

```yaml
Expand Down Expand Up @@ -182,8 +183,21 @@ but really, take a brief look at all the documentation.

[maintenance docs]: /~https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/maintenance-upgrading-services.md

Come join [#synapse:matrix.org](https://matrix.to/#/#synapse:matrix.org) to
discuss homeservers. Or say hi to
[@ptman:ptman.name](https://matrix.to/#/@ptman:ptman.name), who wrote this
guide (also <a
href="mailto:paul.totterman@gmail.com">paul.totterman@gmail.com</a>).
Keep backups! You never know when the providers decide the free resources won't
be offered anymore.

## Discussion

- [#free-matrix-server:matrix.org](https://gitlab.com/ptman/matrix-docs/-/tree/master/free-matrix-server)
to discuss this guide specifically
- [#matrix-docker-ansible-deploy:devture.com](https://matrix.to/#/#matrix-docker-ansible-deploy:devture.com)
to discuss the playbook used in this guide
- [#synapse:matrix.org](https://matrix.to/#/#synapse:matrix.org) to discuss
running synapse in general
- Email author at <a
href="mailto:paul.totterman@gmail.com">paul.totterman@gmail.com</a>.

Please contribute improvements to this guide via PRs ([github] or [gitlab])

[github]: /~https://github.com/ptman/matrix-docs
[gitlab]: https://gitlab.com/ptman/matrix-docs