Running a Gemini server on a first-gen Raspberry Pi

Here records the trials and tribulations of a lost weekend.

Most of these steps presumably work equally well on any device, minus the build of the server software.

Setup instructions

  1. Download Adrian Hesketh's server software.

=> Adrian Hesketh | GitHub repo

  1. Certificate Generation

openssl ecparam -genkey -name secp384r1 -out server.key
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650

  1. Create a hello world Gemini file, for testing purposes

mkdir content
echo "# Hello, World!" > content/index.gmi

  1. Run the server, and make sure it all works

gemini serve --domain=example.com --certFile=server.crt --keyFile=server.key --path=content

  1. Create a script to simplify running

  1. Tell cron to run it at startup

Run

crontab -e

And append the following

@reboot bash run-server.sh

And that's it, you're done.

Last Updated: 2020-11-29

=> ..

Proxy Information
Original URL
gemini://gemini.rlamacraft.uk/techGuides/geminiRaspPi.gmi
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
142.060225 milliseconds
Gemini-to-HTML Time
1.341029 milliseconds

This content has been proxied by September (3851b).