lk/networking/servers/agate.md
2022-02-05 18:20:55 +01:00

974 B

title tags
agate
Documentation
Networking

Make sure your dns is in order. My domain name is malinfreeborn.com, so put your own in there.

Install agate by placing the binary somewhere or (on Arch):

yay -S agate


sudo mkdir -p /usr/share/gemini/{certs,gemini}

sudo useradd gemini -d /usr/share/gemini

sudo chown -R gemini:gemini /usr/share/gemini

sudo su gemini

cd

echo 'Hello Gemworld!' > gemini/index.gmi

Make a service file.

sudo vim /etc/systemd/system/multi-user.target.wants/agate.service

Start agate once to make the certificates.

agate --content /usr/share/gemini/gemini --hostname malinfreeborn.com --lang en-GB

[Unit]
Description=agate
After=Network.target

[Service]
User=gemini
Type=simple
ExecStart=/usr/bin/agate --content /usr/share/gemini/gemini --hostname malinfreeborn.com --lang en-GB

[Install]
WantedBy=default.target

sudo systemctl daemon-reload

sudo systemctl enable --now agate