Agate Setup

In the time-honoured tradition of "blog which only has a post about setting it up," here's some notes for my future self to come back to when I've forgotten what I did a few years down the line and I'm migrating it to another server or something.

gemini://qwertqwefsday.eu/agate.gmi

It's easy enough to run, but I've got it on a server and want it to run at boot. I also want to be able to edit locally and push to the server.

I have a single folder with everything needed called `gemini`. The location isn't important, I've put it in a folder synced by syncthing, but it could just as easily be a git repository.

Let's get it to run locally first. Download the latest agate release, and decompress it into the `gemini` folder. In this folder, run:

It'll generate self-signed certificates in a new directory called `.certificates` in the current directory.

Here's the systemd unit file.

In start.sh, we'll include a line to make sure we're in the right directory so it can find our certificates.

We can sync all this to the server using rsync. I've put this in a script so I don't have to type it out. This will copy the whole folder, sync script, systemd unit, gmi files, certificates (if you've already generated them), the whole lot.

Once the files are all on the server, we can log in to the server and set up the service.

And lastly, if you use ufw, don't forget to allow traffic on port 1965.

This page in other languages

Esperanto

Proxied content from gemini://livk.dev/agate-setup.gmi (external content)

Gemini request details:

Original URL
gemini://livk.dev/agate-setup.gmi
Status code
Success
Meta
text/gemini
Proxied by
kineto

Be advised that no attempt was made to verify the remote SSL certificate.