diff options
Diffstat (limited to 'articles/2023/Gemini---The-protocol-not-the-AI.html')
| -rwxr-xr-x | articles/2023/Gemini---The-protocol-not-the-AI.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/articles/2023/Gemini---The-protocol-not-the-AI.html b/articles/2023/Gemini---The-protocol-not-the-AI.html new file mode 100755 index 0000000..ed725dc --- /dev/null +++ b/articles/2023/Gemini---The-protocol-not-the-AI.html @@ -0,0 +1,60 @@ +<!doctype html> +<html lang="EN"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" href="/style.css"> + <title>Bloggings</title> + </head> + <body> + <header> + <h1>Bloggings</h1> + <a href="/index.php">Back</a> + + </header> + +<main> +<article> +<h2>Gemini - The protocol not the AI</h2> +<h3>2023-12-09</h3> +<p>Playing with a Gemini server today. I'm not entirely convinced, but in the interest of research, here goes:</p> +<p>First I opened port 1965 on the server</p> +<code>ufw allow 1965 +</code> +<p>I created the user gemini on the server and created the folders bin, certs, and gemini in /var/gemini</p> +<p>I downloaded the x86_64 linux binary from <a href="https://github.com/mbrubeck/agate/releases">github</a> and moved it to /var/gemini/bin.</p> +<p>In /var/gemini/content I creatd the text file index.gmi with just "hello world" in it.</p> +<p>Then I did a first run of Gemini</p> +<code>/var/gemini/bin/agate --content /var/gemini/content/ --certs /var/gemini/certs --hostname wittamore.fr --lang en-GB</code> +<p>Agate Auto created it's required certificates, and using the gemini browser Amfora I saw the "hello world!" text.</p> +<p>So I added a systemd file to manage the execution of Agate:</p> +<code>[Unit] +Description=agate +After=network.target + +[Service] +User=gemini +Type=simple +ExecStart=/var/gemini/bin/agate --content /var/gemini/content/ --certs /var/gemini/certs --hostname wittamore.fr --lang en-GB + +[Install] +WantedBy=default.target +</code> +<p>And launched it</p> +<code>systemctl enable agate.service +systemctl start agate.service +</code> + +<p>Agate is a very simple Gemini server. It automatically creates self-signed certificates for TLS in the .der format, +which makes it clumsy if you have letsencrypt certificates in .pem format available.</p> +<code>openssl rsa -outform der -in privkey.pem -out key.der +openssl x509 -outform der -in cert.pem -out cert.der +</code> +<p>Unlike Gopher, none of the servers available appear to be mature yet, which is probably due to the relatively new protocol.</p> +<p>The <a href="https://admin.flounder.online/">Flounder</a> site shows some interesting possibilities for Gemini.</p> + +</article> +</main> +<footer> +<p> </p><p>ยง</p></footer> +</body></html> |
