💾 Archived View for t-900.flounder.online › gemlog › 2021-03-20-hosting-gemmit.gmi captured on 2024-02-05 at 09:22:41. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
. ' , __G͟E͟M͟M͟I͟T͟__ _ /_|_____|_\ _ '. \ / .' '.\ /.' .'
These are general guidelines on how to stand-up your own Gemmit instance.
Go 1.16
If 1.16 is not available in your repo (as is with ubuntu)
git clone https://github.com/t-900-a/gemmit.git
cd gemmit
go build .
chmod +x gemmit
sudo cp gemmit /usr/local/bin
cd cmd/fetchentries
go build .
chmod +x fetchentries
sudo cp fetchentries /usr/local/bin
cd ../fetchmonero
go build .
chmod +x fetchmonero
sudo cp fetchmonero /usr/local/bin
You may need to chmod and/or adjust chown certs, so that the server can read the certs.
mkdir /var/lib/gemini/
mkdir /var/lib/gemini/certs
cd /var/lib/gemini/certs
openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem -days 99999 -nodes
Shell scripts are intended to be ran via a cron job
Example crontab
*/5 * * * * /home/gemmit/gemmit_babysitter.sh
*/13 * * * * /home/gemmit/fetchmonero.sh
0 5,17 * * * /home/gemmit/fetchentries.sh
gemmit_babysitter.sh : ensures gemmit server is running, if not it will start it
fetchmonero.sh : Refreshes the Monero transactions for all feeds
fetchentries.sh : Refreshes the entries for each feed