💾 Archived View for stma.is captured on 2020-11-07 at 01:25:26. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

Gemini

This is a gemini page. Drew DeVault told me to do it, and he wrote a server.

@sir@cmpwn

gmnisrv

It is what it is.

Here's the procedure to install and run `gmnisrv` on Alpine Linux:

# apk add gcc libc-dev openssl openssl-dev scdoc
$ git clone https://git.sr.ht/~sircmpwn/gmnisrv
$ mkdir gmnisrv/build && cd gmnisrv/build
$ ../configure --prefix=/usr
$ make
# make install

If you want to use OpenRC to manage the server, here's a working `/etc/init.d/gmnisrv`:

#!/sbin/openrc-run

description="Gemini Server"

pidfile=/run/gmnisrv.pid
command_background=true
command_user=gmnisrv
command=/usr/bin/gmnisrv

It expects that there is a `gmnisrv` system user; this user will need to own the `/var/lib/gemini/` directory to write certs. It will also need to read `/srv/gemini/` to get content.

# adduser --system gmnisrv
# mkdir -p /var/lib/gemini
# chown gmnisrv /var/lib/gemini

At this point, you can start the service.

# rc-service gmnisrv start

To check the status:

# rc-service gmnisrv status

To run the service on boot:

# rc-update add gmnisrv

---------------------------------------------------------------------------

©2020 Stick