<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Self-Host on Thanos Apollo</title>
    <link>https://thanosapollo.org/tags/self-host/</link>
    <description>Recent content in Self-Host on Thanos Apollo</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sun, 01 Feb 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://thanosapollo.org/tags/self-host/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cgit with GNU Guix</title>
      <link>https://thanosapollo.org/posts/cgit-guix/</link>
      <pubDate>Sun, 01 Feb 2026 00:00:00 +0000</pubDate>
      <guid>https://thanosapollo.org/posts/cgit-guix/</guid>
      <description>&lt;p&gt;Recently I switched my home server to &lt;a href=&#34;https://guix.gnu.org&#34;&gt;GNU Guix&lt;/a&gt;, this is a quick guide
on how I setup &lt;code&gt;cgit&lt;/code&gt;.  Hope this helps some of you.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Recently I switched my home server to <a href="https://guix.gnu.org">GNU Guix</a>, this is a quick guide
on how I setup <code>cgit</code>.  Hope this helps some of you.</p>
<h2 id="why-i-use-gnu-guix-for-my-server">Why I use GNU Guix for my server</h2>
<p>GNU Guix is my preferred system for every machine I use, recently I
even switched my home server (<em>back</em>) to Guix.  I use my home server to
host this blog as well as my <a href="https://git.thanosapollo.org">cgit instance</a>, so far I recommend using
Guix, as a hobbyist, for the following reasons:</p>
<ul>
<li><code>Roll backs</code>
<ul>
<li>I had tried both Gentoo and Debian before for my server, more than
once I had one or more of my self hosted services down because an
update broke my setup.  My time is limited and those breakages
would often occur at busy weeks where I didn&rsquo;t have the time to
fix them.  With Guix I can just roll back to a previous working
generation if an update or a misconfiguration of mine breaks something.</li>
</ul>
</li>
<li><code>Reproducibility</code>
<ul>
<li>Define your setup once, run anywhere.  I do not want to manually
setup anything.</li>
</ul>
</li>
<li><code>Simplicity</code>
<ul>
<li>The entirety of Guix code lives in <a href="https://codeberg.org/guix/guix">one repo</a> and is almost entirely
written in one language, guile scheme.  If you find any issues
with a service or a package you can redefine it as you like in
your configuration.</li>
</ul>
</li>
</ul>
<h2 id="why-self-host-a-git-server">Why self-host a git server?</h2>
<p>Why would you not self-host your own projects?  I find it antithetical
to the FOSS ethos, and perhaps even ironic, to rely on proprietary
platforms for distributing free software.</p>
<p>Hosting a Git server is straightforward and requires minimal resources.</p>
<h2 id="git-http-backend-uri-issue-and-fix">git-http-backend &ldquo;/&rdquo; uri issue and fix</h2>
<p>Guix has a separate configuration data type for serving Git
repositories over HTTP.  Currently, the regex it uses does not allow
the root <code>&quot;/&quot;</code> to be used a URI for serving (<a href="https://lists.gnu.org/archive/html/help-guix/2022-07/msg00002.html">ref archive</a>).</p>
<p>The issue is in the <code>(gnu services version-control)</code> module, specifically in this part:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(define* (git-http-nginx-location-configuration <span style="color:#e6db74">#:optional</span>
</span></span><span style="display:flex;"><span>                                                (config
</span></span><span style="display:flex;"><span>                                                 (git-http-configuration)))
</span></span><span style="display:flex;"><span>  (match config
</span></span><span style="display:flex;"><span>    (($ &lt;git-http-configuration&gt; package git-root export-all?
</span></span><span style="display:flex;"><span>                                 uri-path fcgiwrap-socket)
</span></span><span style="display:flex;"><span>     (nginx-location-configuration
</span></span><span style="display:flex;"><span>      <span style="color:#75715e">;; ISSUE here: regex won&#39;t allow for &#34;/&#34;</span>
</span></span><span style="display:flex;"><span>      (uri (string-append <span style="color:#e6db74">&#34;~ /&#34;</span> (string-trim-both uri-path <span style="color:#960050;background-color:#1e0010">#</span>\/) <span style="color:#e6db74">&#34;(/.*)&#34;</span>))
</span></span><span style="display:flex;"><span>      (body
</span></span><span style="display:flex;"><span>       (<span style="color:#a6e22e">list</span>
</span></span><span style="display:flex;"><span>        (<span style="color:#a6e22e">list</span> <span style="color:#e6db74">&#34;fastcgi_pass &#34;</span> fcgiwrap-socket <span style="color:#e6db74">&#34;;&#34;</span>)
</span></span><span style="display:flex;"><span>        (<span style="color:#a6e22e">list</span> <span style="color:#e6db74">&#34;fastcgi_param SCRIPT_FILENAME &#34;</span>
</span></span><span style="display:flex;"><span>              package <span style="color:#e6db74">&#34;/libexec/git-core/git-http-backend&#34;</span>
</span></span><span style="display:flex;"><span>              <span style="color:#e6db74">&#34;;&#34;</span>)
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;fastcgi_param QUERY_STRING $query_string;&#34;</span>
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;fastcgi_param REQUEST_METHOD $request_method;&#34;</span>
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;fastcgi_param CONTENT_TYPE $content_type;&#34;</span>
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;fastcgi_param CONTENT_LENGTH $content_length;&#34;</span>
</span></span><span style="display:flex;"><span>        (if export-all?
</span></span><span style="display:flex;"><span>            <span style="color:#e6db74">&#34;fastcgi_param GIT_HTTP_EXPORT_ALL \&#34;\&#34;;&#34;</span>
</span></span><span style="display:flex;"><span>            <span style="color:#e6db74">&#34;&#34;</span>)
</span></span><span style="display:flex;"><span>        (<span style="color:#a6e22e">list</span> <span style="color:#e6db74">&#34;fastcgi_param GIT_PROJECT_ROOT &#34;</span> git-root <span style="color:#e6db74">&#34;;&#34;</span>)
</span></span><span style="display:flex;"><span>        (<span style="color:#a6e22e">list</span> <span style="color:#e6db74">&#34;fastcgi_param GIT_CONFIG_GLOBAL &#34;</span>
</span></span><span style="display:flex;"><span>              (plain-file <span style="color:#e6db74">&#34;gitconfig&#34;</span>
</span></span><span style="display:flex;"><span>                          (string-append <span style="color:#e6db74">&#34;[safe]\n\tdirectory = &#34;</span> git-root <span style="color:#e6db74">&#34;/*\n&#34;</span>))
</span></span><span style="display:flex;"><span>              <span style="color:#e6db74">&#34;;&#34;</span>)
</span></span><span style="display:flex;"><span>        <span style="color:#e6db74">&#34;fastcgi_param PATH_INFO $1;&#34;</span>))))))
</span></span></code></pre></div><p>Thankfully, we can easily resolve this by redefining
<code>(gnu services version-control)</code>.</p>
<ul>
<li>My changes (diff) to fix this issue, as well as specify git actions:</li>
</ul>
<!--listend-->
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-diff" data-lang="diff"><span style="display:flex;"><span>diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm
</span></span><span style="display:flex;"><span>index a7f40812a6c..e33e5de21f0 100644
</span></span><span style="display:flex;"><span><span style="color:#f92672">--- a/gnu/services/version-control.scm
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+++ b/gnu/services/version-control.scm
</span></span></span><span style="display:flex;"><span><span style="color:#75715e">@@ -235,7 +235,11 @@ (define* (git-http-nginx-location-configuration #:optional
</span></span></span><span style="display:flex;"><span>     (($ &lt;git-http-configuration&gt; package git-root export-all?
</span></span><span style="display:flex;"><span>                                  uri-path fcgiwrap-socket)
</span></span><span style="display:flex;"><span>      (nginx-location-configuration
</span></span><span style="display:flex;"><span><span style="color:#f92672">-      (uri (string-append &#34;~ /&#34; (string-trim-both uri-path #\/) &#34;(/.*)&#34;))
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+      (uri (string-append &#34;~ &#34;
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+			  (if (string=? uri-path &#34;/&#34;)
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+                              &#34;&#34;
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+                              (string-append &#34;/&#34; (string-trim-both uri-path #\/)))
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+			  &#34;/(info/refs|git-upload-pack|git-receive-pack)&#34;))
</span></span></span><span style="display:flex;"><span>       (body
</span></span><span style="display:flex;"><span>        (list
</span></span><span style="display:flex;"><span>         (list &#34;fastcgi_pass &#34; fcgiwrap-socket &#34;;&#34;)
</span></span><span style="display:flex;"><span><span style="color:#75715e">@@ -254,7 +258,7 @@ (define* (git-http-nginx-location-configuration #:optional
</span></span></span><span style="display:flex;"><span>               (plain-file &#34;gitconfig&#34;
</span></span><span style="display:flex;"><span>                           (string-append &#34;[safe]\n\tdirectory = &#34; git-root &#34;/*\n&#34;))
</span></span><span style="display:flex;"><span>               &#34;;&#34;)
</span></span><span style="display:flex;"><span><span style="color:#f92672">-        &#34;fastcgi_param PATH_INFO $1;&#34;))))))
</span></span></span><span style="display:flex;"><span><span style="color:#a6e22e">+        &#34;fastcgi_param PATH_INFO $uri;&#34;))))))
</span></span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> ;;;
</span></span></code></pre></div><p>You can find the full module that I use <a href="https://git.thanosapollo.org/dotfiles/tree/guix/services/version-control.scm">here</a> in my dotfiles repo.</p>
<p>I&rsquo;d recommend creating your own module and load it by running the following command:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span>sudo guix system reocnfigure ~/dotfiles/guix/server-config.scm -L ~/dotfiles/guix
</span></span></code></pre></div><h2 id="configuring-cgit-service-type">Configuring <code>cgit-service-type</code></h2>
<p>Guix provides a cgit service module <code>(gnu services cgit)</code>.</p>
<blockquote>
<p>A couple things to note:</p>
<ul>
<li>You can provide <code>css</code> and <code>favicon</code> using an external url.  You can
find the css styling that I use <a href="https://thanosapollo.org/cgit.css">here</a>.</li>
</ul>
</blockquote>
<p>Example <code>cgit-service-type</code></p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-scheme" data-lang="scheme"><span style="display:flex;"><span>(<span style="color:#66d9ef">define </span>my/git-repos
</span></span><span style="display:flex;"><span>  (<span style="color:#a6e22e">list</span>
</span></span><span style="display:flex;"><span>   (<span style="color:#a6e22e">repository-cgit-configuration</span>
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">url</span> <span style="color:#e6db74">&#34;repo1&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">name</span> <span style="color:#e6db74">&#34;repo1&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">desc</span> <span style="color:#e6db74">&#34;Example Repo 1&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">path</span> <span style="color:#e6db74">&#34;/srv/git/repo1&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">section</span> <span style="color:#e6db74">&#34;Section 1&#34;</span>))
</span></span><span style="display:flex;"><span>   (<span style="color:#a6e22e">repository-cgit-configuration</span>
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">url</span> <span style="color:#e6db74">&#34;repo2&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">name</span> <span style="color:#e6db74">&#34;repo2&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">desc</span> <span style="color:#e6db74">&#34;Example Repo 2&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">path</span> <span style="color:#e6db74">&#34;/srv/git/repo2&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">homepage</span> <span style="color:#e6db74">&#34;https://myhomepage&#34;</span>)
</span></span><span style="display:flex;"><span>     (<span style="color:#a6e22e">section</span> <span style="color:#e6db74">&#34;Section 2&#34;</span>))))
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>(<span style="color:#a6e22e">service</span> cgit-service-type
</span></span><span style="display:flex;"><span>         (<span style="color:#a6e22e">cgit-configuration</span>
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">package</span> cgit)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">root-desc</span> <span style="color:#e6db74">&#34;Root Desc&#34;</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">repository-directory</span> <span style="color:#e6db74">&#34;&#34;</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">root-title</span> <span style="color:#e6db74">&#34;Root Title&#34;</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">repositories</span> my/git-repos)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">enable-index-owner?</span> <span style="color:#66d9ef">#f</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">enable-http-clone?</span> <span style="color:#66d9ef">#f</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">clone-prefix</span> <span style="color:#f92672">&#39;</span>(<span style="color:#e6db74">&#34;https://git.thanosapollo.org&#34;</span>)) <span style="color:#75715e">;; change this to your own url</span>
</span></span><span style="display:flex;"><span>           <span style="color:#75715e">;; Cache</span>
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-root</span> <span style="color:#e6db74">&#34;/var/cache/cgit&#34;</span>)
</span></span><span style="display:flex;"><span>           <span style="color:#75715e">;; 20000 = 5 hours.  Feel free to adjust this.</span>
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-size</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-static-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-dynamic-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-repo-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-root-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-scanrc-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-about-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">cache-snapshot-ttl</span> <span style="color:#ae81ff">20000</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">case-sensitive-sort?</span> <span style="color:#66d9ef">#f</span>)
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">css</span> <span style="color:#e6db74">&#34;https://thanosapollo.org/cgit.css&#34;</span>) <span style="color:#75715e">;; My personal css.</span>
</span></span><span style="display:flex;"><span>           (<span style="color:#a6e22e">nginx</span>
</span></span><span style="display:flex;"><span>            (<span style="color:#a6e22e">list</span>
</span></span><span style="display:flex;"><span>             (<span style="color:#a6e22e">nginx-server-configuration</span>
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">server-name</span> <span style="color:#f92672">&#39;</span>(<span style="color:#e6db74">&#34;git.thanosapollo.org&#34;</span>))
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">root</span> cgit)
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">try-files</span> (list <span style="color:#e6db74">&#34;$uri&#34;</span> <span style="color:#e6db74">&#34;@cgit&#34;</span>))
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;; I use cloudflare tunnel, which handles certs for me.</span>
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">listen</span> <span style="color:#f92672">&#39;</span>(<span style="color:#e6db74">&#34;80&#34;</span>))
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">ssl-certificate</span> <span style="color:#66d9ef">#f</span>)
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">ssl-certificate-key</span> <span style="color:#66d9ef">#f</span>)
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;; ;; If you use certbot try the following:</span>
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;; (listen &#39;(&#34;443 ssl&#34;))</span>
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;; (ssl-certificate</span>
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;;  &#34;/etc/certs/git.my-host.org/fullchain.pem&#34;)</span>
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;; (ssl-certificate-key</span>
</span></span><span style="display:flex;"><span>               <span style="color:#75715e">;;  &#34;/etc/certs/git.my-host.org/privkey.pem&#34;)</span>
</span></span><span style="display:flex;"><span>               (<span style="color:#a6e22e">locations</span>
</span></span><span style="display:flex;"><span>                (<span style="color:#a6e22e">list</span>
</span></span><span style="display:flex;"><span>                 (<span style="color:#a6e22e">nginx-location-configuration</span>
</span></span><span style="display:flex;"><span>                   (<span style="color:#a6e22e">uri</span> <span style="color:#e6db74">&#34;@cgit&#34;</span>)
</span></span><span style="display:flex;"><span>                   (<span style="color:#a6e22e">body</span> <span style="color:#f92672">&#39;</span>(<span style="color:#e6db74">&#34;fastcgi_param SCRIPT_FILENAME $document_root/lib/cgit/cgit.cgi;&#34;</span>
</span></span><span style="display:flex;"><span>                           <span style="color:#e6db74">&#34;fastcgi_param PATH_INFO $uri;&#34;</span>
</span></span><span style="display:flex;"><span>                           <span style="color:#e6db74">&#34;fastcgi_param QUERY_STRING $args;&#34;</span>
</span></span><span style="display:flex;"><span>                           <span style="color:#e6db74">&#34;fastcgi_param HTTP_HOST $server_name;&#34;</span>
</span></span><span style="display:flex;"><span>                           <span style="color:#e6db74">&#34;fastcgi_pass 127.0.0.1:9000;&#34;</span>)))
</span></span><span style="display:flex;"><span>                 (<span style="color:#a6e22e">git-http-nginx-location-configuration</span>
</span></span><span style="display:flex;"><span>                  (<span style="color:#a6e22e">git-http-configuration</span>
</span></span><span style="display:flex;"><span>                    (<span style="color:#a6e22e">uri-path</span> <span style="color:#e6db74">&#34;/&#34;</span>)
</span></span><span style="display:flex;"><span>                    (<span style="color:#a6e22e">export-all?</span> <span style="color:#66d9ef">#t</span>))))))))))
</span></span></code></pre></div><p>You can find my home server configuration <a href="https://git.thanosapollo.org/dotfiles/tree/guix/theodora.scm">here</a>.</p>]]></content:encoded>
    </item>
    <item>
      <title>XMPP: Getting started with the universal communication standard</title>
      <link>https://thanosapollo.org/posts/moving-to-xmpp/</link>
      <pubDate>Tue, 30 Apr 2024 00:00:00 +0000</pubDate>
      <guid>https://thanosapollo.org/posts/moving-to-xmpp/</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&#34;https://xmpp.org/&#34;&gt;XMPP&lt;/a&gt; is a libre decentralized collection of technologies, alternative
to closed communication services.  I&amp;rsquo;ve started self hosting my own
xmpp server, and begun moving people from my close circle there.  This
is a summary of my collection of notes that I made for XMPP thus far,
published as a short article.  If you are interested in learning more
on XMPP I recommend reading their official &lt;a href=&#34;https://xmpp.org/&#34;&gt;website&lt;/a&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;what-is-xmpp&#34;&gt;What is XMPP?&lt;/h2&gt;
&lt;p&gt;XMPP stands for eXtensible Messaging and Presence Protocol, it&amp;rsquo;s a set
of libre technologies that can be used for communication services,
such as instant messaging, voice &amp;amp; video calls as well as file
transfers.  This is done by routing &lt;code&gt;XML&lt;/code&gt; data.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<blockquote>
<p><a href="https://xmpp.org/">XMPP</a> is a libre decentralized collection of technologies, alternative
to closed communication services.  I&rsquo;ve started self hosting my own
xmpp server, and begun moving people from my close circle there.  This
is a summary of my collection of notes that I made for XMPP thus far,
published as a short article.  If you are interested in learning more
on XMPP I recommend reading their official <a href="https://xmpp.org/">website</a>.</p>
</blockquote>
<h2 id="what-is-xmpp">What is XMPP?</h2>
<p>XMPP stands for eXtensible Messaging and Presence Protocol, it&rsquo;s a set
of libre technologies that can be used for communication services,
such as instant messaging, voice &amp; video calls as well as file
transfers.  This is done by routing <code>XML</code> data.</p>
<p>XMPP operates similarly to HTTP, with the client initiating a
communication socket to an XMPP server and maintaining it open for the
entirety of the client&rsquo;s active session.</p>
<blockquote>
<p>XMPP was originally developed in the Jabber community to provide an
open decentralized alternative to closed messaging services.</p>
</blockquote>
<p>XMPP is used by a few popular platforms, these include <a href="https://medium.com/@rajendra_51543/how-whatsapp-works-197bfc6d6b95">WhatsApp</a>, Facebook
Messenger &amp; Jitsi.</p>
<h2 id="why-should-you-use-xmpp">Why should you use XMPP?</h2>
<p>For me, the primary appeal of XMPP lies in its interoperability,
versatility, and extensibility. Via transports or gateways, XMPP
enables a seamless connection with communities across various
platforms <em>including IRC, Matrix, WhatsApp, Telegram</em> all from a
single client.</p>
<p>Furthermore, the decentralized nature of XMPP is <strong>designed</strong> for self
hosting, <em>with minimal resources</em>.  This gives me the freedom to
establish and manage my own server, creating an ecosystem that
provides me with freedom &amp; respects my rights, to which I can bring my
family and friends.</p>
<h3 id="how-to-communicate-with-irc-and-matrix-using-xmpp">How to communicate with IRC &amp; Matrix using XMPP?</h3>
<p>You can use a gateway that connects to your desired
platform/protocol. For example, for IRC you&rsquo;d use <a href="https://github.com/louiz/biboumi">biboumi</a> or <a href="https://github.com/matrix-org/matrix-bifrost">btifrost</a>
for Matrix.</p>
<blockquote>
<p>There are publicly available gateways, for example you can use the the
biboumi gateway from <a href="https://jabberfr.org/">jabberfr.org</a> to connect to the emacs IRC channel
in libera.chat like this <code>#emacs%irc.libera.chat@irc.jabberfr.org</code></p>
</blockquote>
<h2 id="self-hosting-an-xmpp-server">Self hosting an XMPP server</h2>
<p>If you are not interested in self hosting an XMPP server, refer to
this <a href="https://list.jabber.at/">list</a> to find servers to register to.</p>
<h3 id="ejabberd">ejabberd</h3>
<p>I opted to use <a href="https://www.ejabberd.im/">ejabberd</a> server for my setup, which I found really
simple to setup with voice &amp; video calls.</p>
<p>Setting up an ejabberd server is that simple that it does not really
require instructions.  I&rsquo;d recommend you use their <a href="https://docs.ejabberd.im/admin/install/binary-installer/#linux-run-installer">RUN Installer</a> or if
you are on debian/fedora to check out their <a href="https://github.com/processone/ejabberd/releases">releases</a> for an rpm/deb
package.</p>
<p>Other server &amp; client options can be found <a href="https://xmpp.org/software/?platform=linux">here</a>.</p>
<h2 id="xmpp-clients">XMPP clients</h2>
<p>All in all, XMPP offers user friendly clients in all platforms, that
everyone can use, as always refer <a href="https://xmpp.org/software/?platform=linux">here</a> for up-to-date recommendations.</p>
<p>This is what I <em>personally</em> have been using this past week with XMPP &amp;
recommend.</p>
<h3 id="mobile">Mobile</h3>
<ul>
<li>For android, I&rsquo;d recommend to use <a href="https://f-droid.org/packages/com.cheogram.android/">cheogram</a>, it&rsquo;s based on
<a href="https://conversations.im/">conversations</a> with a few visual tweaks and additional features.</li>
<li>For iOS, I&rsquo;ve installed <a href="https://monal-im.org/">Monal</a> to my friends &amp; family.  I&rsquo;m not sure
if it&rsquo;s the best one available since the iOS ecosystem is foreign to
me, but the people I&rsquo;ve installed it on found it pleasant to use.</li>
</ul>
<h3 id="desktop">Desktop</h3>
<ul>
<li>I&rsquo;d recommend <a href="https://dino.im/">Dino</a>, it&rsquo;s been really easy to use with full
support of most xmpp features (<a href="https://en.wikipedia.org/wiki/OMEMO">OMEMO</a> encryption etc.)</li>
<li>There is also <a href="https://codeberg.org/emacs-jabber/emacs-jabber">emacs-jabber</a>, an emacs jabber extension, that
unfortunately does not support any kind of encryption.  It&rsquo;s decent
for public unencrypted channels.</li>
</ul>
]]></content:encoded>
    </item>
    <item>
      <title>Jellyfin: Powering the Self-Hosted Media Revolution</title>
      <link>https://thanosapollo.org/posts/jellyfin-setup/</link>
      <pubDate>Thu, 04 Apr 2024 00:00:00 +0000</pubDate>
      <guid>https://thanosapollo.org/posts/jellyfin-setup/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://jellyfin.org/&#34;&gt;Jellyfin&lt;/a&gt; is my favorite service to self host, I&amp;rsquo;ve been using it for
movies &amp;amp; books and I&amp;rsquo;d even consider using it for photos if not for
&lt;a href=&#34;https://thanosapollo.org/posts/immich-setup/&#34;&gt;Immich&lt;/a&gt;.  Jellyfin is really popular as a self hosted streaming service
for movies &amp;amp; TV shows, since those platforms suffer heavily from
&lt;a href=&#34;https://en.wikipedia.org/wiki/Enshittification&#34;&gt;enshittification&lt;/a&gt;.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Jellyfin can do much more than stream your favorite movies &amp;amp; TV
shows.  Whether you&amp;rsquo;re a movie enthusiast, music lover, or photo
fanatic, Jellyfin has got you covered.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><a href="https://jellyfin.org/">Jellyfin</a> is my favorite service to self host, I&rsquo;ve been using it for
movies &amp; books and I&rsquo;d even consider using it for photos if not for
<a href="/posts/immich-setup/">Immich</a>.  Jellyfin is really popular as a self hosted streaming service
for movies &amp; TV shows, since those platforms suffer heavily from
<a href="https://en.wikipedia.org/wiki/Enshittification">enshittification</a>.</p>
<blockquote>
<p>Jellyfin can do much more than stream your favorite movies &amp; TV
shows.  Whether you&rsquo;re a movie enthusiast, music lover, or photo
fanatic, Jellyfin has got you covered.</p>
</blockquote>
<h2 id="what-is-jellyfin">What is Jellyfin</h2>
<p>Jellyfin is a self-hosted multimedia service, which gives you full
control of <strong>your</strong> media.  It&rsquo;s one of the easiest and most useful
services to self host, refer to Jellyfin&rsquo;s <a href="https://jellyfin.org/docs/general/installation/">installation instructions</a>
for up-to-date information.</p>
<h3 id="why-jellyfin">Why Jellyfin</h3>
<p>Jellyfin&rsquo;s key strength is its multi-platform support.  Unlike other
media services like <a href="https://github.com/Dusk-Labs/dim">Dim</a>, a rust media manager, jellyfin supports a
wide range of platforms including iOS &amp; Android.  This make it easy to
access your content, from any device, at any time.</p>
<h3 id="accessing-jellyfin">Accessing Jellyfin</h3>
<p>Jellyfin will be available by default on your local network on
<code>&lt;host:8096&gt;</code>.  I recommend using a VPN service like <a href="https://tailscale.com/">tailscale</a> or
<a href="https://www.pivpn.io/">pivpn</a> to access your jellyfin instance when you are not on your local
network.</p>
<h2 id="jellyfin-as-a-movie-and-tv-show-streaming-service">Jellyfin As A Movie &amp; TV Show Streaming Service</h2>
<p>Streaming services are going through a weird phase, an era of service
specialization has begun, also know as <em>platform decay</em>.  Long gone
are the days when you subscribe to just one streaming service, it has
become a multi-platform journey.</p>
<p>With jellyfin you can bypass geo-restrictions &amp; have complete control
&amp; autonomy.  Today&rsquo;s commercial streaming services seem to offer a
deteriorating user experience, making it increasingly difficult to
justify their subscription fees.</p>
<blockquote>
<p>Depending on how you access your Jellyfin instance &amp; the hardware you
are using, you can have an improved performance, especially when
compared to <em>&ldquo;free&rdquo;</em> streaming services.</p>
</blockquote>
<h2 id="jellyfin-as-a-music-streaming-service">Jellyfin As A Music Streaming Service</h2>
<p>Everybody is making posts about Jellyfin as a Plex/Netflix
alternative, but it&rsquo;s also an even better music player on mobile than
Spotify as well, thanks to <a href="https://github.com/dkanada/gelli">Gelli</a>, which offers a native music player
for Android.</p>
<p>My music collection is precious to me, unfortunately with services
like Spotify you do not own it, you cede control over your collection.
Spotify, vast in its reach and scale, can alter its terms &amp; user
experience at will, such as removing your favorite artists albums or
adjusting it&rsquo;s algorithm recommendations to maximize their profit
while disregarding your own taste.</p>
<p>Jellyfin is self-hosted, thereby retaining all choices and decisions
lie squarely within your ambit of control.</p>
<h2 id="jellyfin-as-a-digital-library">Jellyfin As A Digital Library</h2>
<p>My digital library is <strong>crucial</strong> to me.  Accessibility is key, whether
at my university&rsquo;s library, coffee shop, or even at a lecture hall.
Jellyfin facilitates this seamlessly.  While the content viewer might
not cater to my preferences, I mitigate this by downloading the
required book and reading it in Emacs using <a href="https://github.com/vedang/pdf-tools">pdf-tools</a> or <a href="https://depp.brause.cc/nov.el/">nov.el</a>.</p>
<h2 id="downsides-of-using-jellyfin">Downsides Of Using Jellyfin</h2>
<p>Jellyfin&rsquo;s downside is the potential reliance it might inadvertently
create on file sharing services.  Depending on the communities you
visit, your experience might vary; you might come across toxic
individuals or friendly people that share your passion.</p>
<p>I recommend reading <a href="https://torrentfreak.com/">torrentfreak</a> to keep yourself up to date on recent
developments and suggestions.</p>
<h2 id="conclusion">Conclusion</h2>
<p>Jellyfin is a powerful self-hosting multimedia solution that allows
users to manage their movie library, music collection &amp; digital
library all within a single service across multiple platforms.</p>
<p>The main downside of using Jellyfin is the reliance on 3rd party file
sharing services.  Although, relying on a commercial streaming service
is an even worse option these days.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Immich: Self-hosted Photo &amp; Video Management</title>
      <link>https://thanosapollo.org/posts/immich-setup/</link>
      <pubDate>Mon, 25 Mar 2024 00:00:00 +0000</pubDate>
      <guid>https://thanosapollo.org/posts/immich-setup/</guid>
      <description>&lt;p&gt;I&amp;rsquo;ve recently transitioned to a pixel phone with GrapheneOS as my
primary device, moving from an iPhone.  The only thing that I was
missing is having my photos be in sync across all of my devices using
iCloud, but despite the convenience of Apple&amp;rsquo;s iCloud service for
syncing photos across devices, it frequently disregards user rights
and privacy.  Thankfully, &lt;a href=&#34;https://immich.app/&#34;&gt;Immich&lt;/a&gt; offers a self-hosted and
enhanced alternative while respecting my privacy &amp;amp; user rights.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I&rsquo;ve recently transitioned to a pixel phone with GrapheneOS as my
primary device, moving from an iPhone.  The only thing that I was
missing is having my photos be in sync across all of my devices using
iCloud, but despite the convenience of Apple&rsquo;s iCloud service for
syncing photos across devices, it frequently disregards user rights
and privacy.  Thankfully, <a href="https://immich.app/">Immich</a> offers a self-hosted and
enhanced alternative while respecting my privacy &amp; user rights.</p>
<p>Setting up immich is quite simple, just follow the official
<a href="https://immich.app/docs/overview/introduction">documentation</a>.  They even offer an <a href="https://immich.app/docs/install/script">installation script</a>.</p>
<h2 id="recommendations">Recommendations</h2>
<p>I advise against using services like Cloudflare Tunnel to make Immich
accessible publicly for security and privacy concerns. Instead,
consider using a VPN service such as tailscale/headscale for a more
secure &amp; convenient setup.</p>
<p>If you are using iCloud for your photos, there is a <a href="https://github.com/immich-app/immich/issues/3842#issuecomment-2008718176">memory leak bug</a>
that will cause the iOS app to crash when uploading large amounts of
media files.  Either first download all your photos from iCloud &amp; then
upload to them Imminch, or &ldquo;babysit&rdquo; your phone while it&rsquo;s uploading.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Cloudflare Tunnel: Bye Bye VPS Services!</title>
      <link>https://thanosapollo.org/posts/bye-bye-vps/</link>
      <pubDate>Sun, 10 Mar 2024 00:00:00 +0000</pubDate>
      <guid>https://thanosapollo.org/posts/bye-bye-vps/</guid>
      <description>&lt;p&gt;VPS services, the pinnacle of freedom in the digital world!  Nothing
quite beats the thrill of entrusting your data and services to a
mysterious cloud entity, all while relinquishing control over your
hardware.  And do not forget the joy of relying on a third-party
cloud provider for your hosting needs, that may send you a &lt;a href=&#34;https://old.reddit.com/r/webdev/comments/1b14bty/netlify_just_sent_me_a_104k_bill_for_a_simple/&#34;&gt;104K bill&lt;/a&gt;
for your static site.  Who needs to own their hardware anyway?&lt;/p&gt;
&lt;h2 id=&#34;my-new-setup&#34;&gt;My new setup&lt;/h2&gt;
&lt;p&gt;For the past ~6 months, I have been relying on a VPS service from
&lt;a href=&#34;https://www.ionos.com/&#34;&gt;Ionos&lt;/a&gt;, &lt;em&gt;which offers a decent service for it&amp;rsquo;s price plans&lt;/em&gt;, to host
this site &amp;amp; my git server, as well as to occasionally port forward
media services such as jellyfin using an ssh tunnel.  This weekend, I
opted to migrate to an old thinkpad that I had collecting dust plus
&lt;a href=&#34;https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/&#34;&gt;cloudflare tunnel&lt;/a&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>VPS services, the pinnacle of freedom in the digital world!  Nothing
quite beats the thrill of entrusting your data and services to a
mysterious cloud entity, all while relinquishing control over your
hardware.  And do not forget the joy of relying on a third-party
cloud provider for your hosting needs, that may send you a <a href="https://old.reddit.com/r/webdev/comments/1b14bty/netlify_just_sent_me_a_104k_bill_for_a_simple/">104K bill</a>
for your static site.  Who needs to own their hardware anyway?</p>
<h2 id="my-new-setup">My new setup</h2>
<p>For the past ~6 months, I have been relying on a VPS service from
<a href="https://www.ionos.com/">Ionos</a>, <em>which offers a decent service for it&rsquo;s price plans</em>, to host
this site &amp; my git server, as well as to occasionally port forward
media services such as jellyfin using an ssh tunnel.  This weekend, I
opted to migrate to an old thinkpad that I had collecting dust plus
<a href="https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/">cloudflare tunnel</a>.</p>
<p>Cloudflare tunnel is ideal for securely connecting a self hosted web
server to Cloudflare&rsquo;s global network.  But be aware that cloudflare
can decrypt your traffic.  I do not recommend using cloudflare
tunnel to host sensitive information, or to share large media files.</p>
<p>To share media with friends, I use <a href="https://tailscale.com/">tailscale</a>, I plan in the future to
host <a href="https://headscale.net/">headscale</a>, a self hosted implementation of tailscale.  Tailscale
is a zero config VPN, you can add your family &amp; friends to your
account or just &ldquo;funnel&rdquo; content to a public address to give someone
quick access.</p>
<h2 id="transition-tips">Transition Tips</h2>
<p>First of all, evaluate your current VPS usage and identify which
services can be easily self hosted.  I&rsquo;d recommend to start slowly
migrating your services to your own hardware &amp; use ssh tunnel for port
forwarding.</p>
<p>Test out cloudflare tunnel, tailscale and other similar services until you
find the one you like the most.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
