blob: ed725dc29c101aae2858cb59b00936b25006913b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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>
|