💾 Archived View for daima.fr › tech › 2021-02-15_Capsule_server_setup.gmi captured on 2024-06-16 at 12:18:32. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

Capsule server setup

Install the Agate server

Download the Agate server

Add content

mkdir ~/gemini && cd ~/gemini
echo "# Hello World" > index.gmi

Install a TLS certificate and a private key

mkdir -p ~/certs/gemini && cd ~/certs/gemini
openssl req -new -subj "/CN=domain-name.com" -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -days 3650 -nodes -keyout key.pem -out cert.pem 

Add an Agate service to systemd

cd /etc/systemd/system
sudo wget -O agate.service https://codeberg.org/etienne/gemini/raw/branch/main/agate-template.service

# Once downloaded, make sure you update your agate.service with correct values

Launch the Agate service

sudo systemctl start agate
sudo systemctl enable agate

You're done ! Try now to reach your Gemini capsule with a browser like Lagrange:

Lagrange browser

This guide was based on Chris Were's instructions to get an Agate server setup. Check out his capsule!

Chris Were's capsule

Troubleshooting

(back to 💻 Tech)

(back to homepage)