<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>linux on Cavelab</title>
    <link>https://www.cavelab.dev/tags/linux/</link>
    <description>Recent content in linux on Cavelab</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>Thomas Jensen</copyright>
    <lastBuildDate>Wed, 04 Mar 2026 21:53:31 +0100</lastBuildDate>
	  <atom:link href="https://www.cavelab.dev/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Upgrading the Proxmox VE server hosting my router</title>
      <link>https://www.cavelab.dev/posts/upgrade-proxmox-hosting-router/</link>
      <pubDate>Fri, 22 Nov 2024 11:39:34 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/upgrade-proxmox-hosting-router/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/upgrade-proxmox-hosting-router/cover.jpg&#34;/&gt;
         &lt;p&gt;I recently upgraded all my Proxmox VE servers from version 7 to 8 — which was a straight forward and easy process. But one server presented a challenge; the hypervisor running my router. How to &lt;code&gt;apt dist-upgrade&lt;/code&gt; with the router down?&lt;/p&gt;&#xA;&lt;p&gt;It turned out to be very easy, here is how &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Enabling touchpad tapping in X11 on my Linux laptop</title>
      <link>https://www.cavelab.dev/posts/laptop-touchpad-tapping/</link>
      <pubDate>Tue, 19 Nov 2024 23:50:15 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/laptop-touchpad-tapping/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/laptop-touchpad-tapping/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve been using my &lt;a href=&#34;https://www.cavelab.dev/computers/zbook-15-g5/&#34;&gt;HP ZBook 15 G5&lt;/a&gt; laptop a lot lately, but it annoyed me that I couldn&amp;rsquo;t tap the touchpad in i3. It does have physical buttons — but I&amp;rsquo;m used to tapping on the pad… My laptop is running Arch Linux BTW &amp;#x1f609;&lt;/p&gt;&#xA;&lt;p&gt;Luckily it was really easy to fix &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Arch Linux laptop power — suspend, battery, and charging</title>
      <link>https://www.cavelab.dev/posts/arch-linux-laptop-power/</link>
      <pubDate>Mon, 29 Jan 2024 08:30:02 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/arch-linux-laptop-power/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/arch-linux-laptop-power/cover.jpg&#34;/&gt;
         &lt;p&gt;I recently got a new laptop, (well — not new, but new to me), a &lt;a href=&#34;https://www.cavelab.dev/computers/zbook-15-g5/&#34;&gt;HP ZBook 15 G5&lt;/a&gt;. After installing &lt;a href=&#34;https://archlinux.org/&#34;&gt;Arch Linux&lt;/a&gt; and the &lt;a href=&#34;https://i3wm.org/&#34;&gt;i3 wm&lt;/a&gt; I spend some time setting up power management, suspend on idle, and figuring out the state of the battery.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Making my own NVR — with a streaming proxy and FFmpeg</title>
      <link>https://www.cavelab.dev/posts/diy-nvr-ffmpeg/</link>
      <pubDate>Thu, 25 Jan 2024 22:55:08 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/diy-nvr-ffmpeg/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/diy-nvr-ffmpeg/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve been thinking about getting some CCTV cameras for a while, and last summer I purchased two &lt;a href=&#34;https://reolink.com/&#34;&gt;Reolink&lt;/a&gt; PoE cameras. The footage is stored on a SD card, and uploaded to a local FTP server.&lt;/p&gt;&#xA;&lt;p&gt;But I also wanted to record continuously, without getting a dedicated Reolink NVR. I&amp;rsquo;ve seen some YouTube videos by &lt;a href=&#34;https://www.youtube.com/@TallPaulTech&#34;&gt;Tall Paul Tech&lt;/a&gt; where he uses &lt;a href=&#34;https://ffmpeg.org/&#34;&gt;FFmpeg&lt;/a&gt; to record CCTV footage — so let&amp;rsquo;s do that! &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Arch Linux — local caching repository and AUR build server</title>
      <link>https://www.cavelab.dev/posts/arch-linux-local-repo/</link>
      <pubDate>Sat, 25 Feb 2023 12:51:24 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/arch-linux-local-repo/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/arch-linux-local-repo/cover.png&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve set up a local Arch repository, a &lt;a href=&#34;https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Dynamic_reverse_proxy_cache_using_nginx&#34;&gt;dynamic reverse proxy cache using nginx&lt;/a&gt; — and a local &amp;ldquo;build server&amp;rdquo; for &lt;a href=&#34;https://aur.archlinux.org/&#34;&gt;AUR&lt;/a&gt; packages, using &lt;a href=&#34;https://github.com/AladW/aurutils&#34;&gt;aurutils&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Here is how, and why &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Knot Resolver — with ad blocking</title>
      <link>https://www.cavelab.dev/posts/knot-resolver-ad-blocking/</link>
      <pubDate>Tue, 27 Dec 2022 22:25:45 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/knot-resolver-ad-blocking/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/knot-resolver-ad-blocking/cover.png&#34;/&gt;
         &lt;p&gt;I stumbled onto &lt;a href=&#34;https://nextdns.io/&#34;&gt;NextDNS&lt;/a&gt; recently — it&amp;rsquo;s like a cloud hosted &lt;a href=&#34;https://pi-hole.net/&#34;&gt;Pi-hole&lt;/a&gt;. I tried it for a few days, but this post isn&amp;rsquo;t about that.&lt;/p&gt;&#xA;&lt;p&gt;Reading about the different block lists in NextDNS, and digging deeper into DNS ad blocking gave me motivation to change my current setup — and that is what this post is about &amp;#x1f642;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Collecting logs with Grafana Loki and Promtail</title>
      <link>https://www.cavelab.dev/posts/collecting-logs-with-loki-and-promtail/</link>
      <pubDate>Sun, 07 Aug 2022 11:09:59 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/collecting-logs-with-loki-and-promtail/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/collecting-logs-with-loki-and-promtail/cover.png&#34;/&gt;
         &lt;p&gt;Having a central place to view or search through server logs is awesome. I&amp;rsquo;ve used &lt;a href=&#34;https://www.graylog.org/&#34;&gt;Graylog&lt;/a&gt; in the past, but I&amp;rsquo;ve always felt it was a bit cumbersome to set up and use — and it felt overkill for my need.&lt;/p&gt;&#xA;&lt;p&gt;Instead I gave &lt;a href=&#34;https://grafana.com/oss/loki/&#34;&gt;Grafana Loki&lt;/a&gt; and &lt;a href=&#34;https://grafana.com/docs/loki/latest/clients/promtail/&#34;&gt;Promtail&lt;/a&gt; a try &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Topping E30 DAC, on Arch Linux</title>
      <link>https://www.cavelab.dev/posts/topping-e30-dac-on-linux/</link>
      <pubDate>Sat, 08 May 2021 12:08:40 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/topping-e30-dac-on-linux/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/topping-e30-dac-on-linux/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve been looking for a reasonably priced DAC for a while. I&amp;rsquo;m not an audiophile — but I do enjoy high quality, clear and true audio.&lt;/p&gt;&#xA;&lt;p&gt;Yesterday I received the Topping E30 DAC — which, according to &lt;a href=&#34;https://www.youtube.com/watch?v=J3W8wh_nObA&#34;&gt;Passion for Sound&lt;/a&gt; offers &lt;em&gt;&amp;ldquo;Amazing Value &amp;amp; Performance!&amp;rdquo;&lt;/em&gt; &amp;#x1f603;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Three useful Ansible info playbooks</title>
      <link>https://www.cavelab.dev/posts/ansible-info-playbooks/</link>
      <pubDate>Sat, 24 Apr 2021 08:18:55 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/ansible-info-playbooks/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/ansible-info-playbooks/cover.png&#34;/&gt;
         &lt;p&gt;I recently started upgrading my servers and containers to Ubuntu 20.04. I made three &lt;a href=&#34;https://www.ansible.com/&#34;&gt;Ansible&lt;/a&gt; playbooks to get information about which hosts I needed to update.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Hide your homelab IP with a VPS, WireGuard and iptables</title>
      <link>https://www.cavelab.dev/posts/vps-wireguard-iptables/</link>
      <pubDate>Mon, 22 Mar 2021 21:21:11 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/vps-wireguard-iptables/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/vps-wireguard-iptables/cover.png&#34;/&gt;
         &lt;p&gt;One (potential) downside to running public services on your &lt;a href=&#34;https://www.cavelab.dev/homelab/&#34;&gt;homelab&lt;/a&gt;, is that you expose your IP address. That may, or may not, be a problem — but here are ways around it. The simplest way is to put &lt;a href=&#34;https://www.cloudflare.com/&#34;&gt;Cloudflare&lt;/a&gt; in front, but this will only handle web traffic, and is a bit of a black box.&lt;/p&gt;&#xA;&lt;p&gt;Another, more hands-on, approach is to use a &lt;a href=&#34;https://en.wikipedia.org/wiki/Virtual_private_server&#34;&gt;VPS&lt;/a&gt; (or &lt;a href=&#34;https://linuxcontainers.org/&#34;&gt;LXC container&lt;/a&gt;); &lt;a href=&#34;https://www.wireguard.com/&#34;&gt;WireGuard&lt;/a&gt; and &lt;a href=&#34;https://en.wikipedia.org/wiki/Iptables&#34;&gt;iptables&lt;/a&gt;. We will create a secure tunnel between the VPS/container and the homelab &lt;a href=&#34;https://www.haproxy.org/&#34;&gt;HAProxy&lt;/a&gt; instance, and forward traffic using iptables.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Setting up a local Unbound ad-blocking DNS resolver</title>
      <link>https://www.cavelab.dev/posts/unbound-local-dns/</link>
      <pubDate>Sat, 06 Mar 2021 22:17:51 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/unbound-local-dns/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/unbound-local-dns/cover.png&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve been using &lt;a href=&#34;https://en.wikipedia.org/wiki/Dnsmasq&#34;&gt;dnsmasq&lt;/a&gt; as a local DNS resolver for a while, time to switch to &lt;a href=&#34;https://www.nlnetlabs.nl/projects/unbound/about/&#34;&gt;Unbound&lt;/a&gt; instead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Shorten URLs With HAProxy</title>
      <link>https://www.cavelab.dev/posts/shorten-urls-with-haproxy/</link>
      <pubDate>Sat, 14 Mar 2020 00:00:00 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/shorten-urls-with-haproxy/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/shorten-urls-with-haproxy/cover.png&#34;/&gt;
         &lt;p&gt;I made a simple script that adds entries to a map file — which HAProxy reads. And voila — a URL shortener! &amp;#x1f447;&lt;/p&gt;</description>
    </item>
    <item>
      <title>High Availability HAProxy</title>
      <link>https://www.cavelab.dev/posts/high-availability-haproxy/</link>
      <pubDate>Fri, 13 Mar 2020 00:00:00 +0100</pubDate>
      <guid>https://www.cavelab.dev/posts/high-availability-haproxy/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/high-availability-haproxy/cover.png&#34;/&gt;
         &lt;p&gt;A lot of my &lt;a href=&#34;https://www.cavelab.dev/homelab/&#34;&gt;homelab&lt;/a&gt; traffic goes through the HAProxy reverse proxy — making it a single point of failure. This can be fixed by having two HAProxy servers and a floating IP.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mirrors moved from the homelab to Terrahost</title>
      <link>https://www.cavelab.dev/posts/mirrors-moved-to-terrahost/</link>
      <pubDate>Sat, 07 Sep 2019 00:20:00 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/mirrors-moved-to-terrahost/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/mirrors-moved-to-terrahost/cover.jpg&#34;/&gt;
         &lt;p&gt;I&amp;rsquo;ve been hosting repository mirrors from my &lt;a href=&#34;https://www.cavelab.dev/homelab/&#34;&gt;homelab&lt;/a&gt; rack for a while. I first set up &lt;a href=&#34;https://www.archlinux.org/&#34;&gt;Archlinux&lt;/a&gt; in May 2018, then followed &lt;a href=&#34;https://opnsense.org/&#34;&gt;OPNsense&lt;/a&gt;, &lt;a href=&#34;http://cygwin.com/&#34;&gt;Cygwin&lt;/a&gt;, &lt;a href=&#34;https://mariadb.org/&#34;&gt;MariaDB&lt;/a&gt;, Raspbian and lastly &lt;a href=&#34;https://manjaro.org/&#34;&gt;Manjaro&lt;/a&gt; — now they are in a Terrahost datacenter instead.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Encrypting TCP traffic between rsyslog and Graylog</title>
      <link>https://www.cavelab.dev/posts/rsyslog-tcp-tls-graylog/</link>
      <pubDate>Wed, 21 Aug 2019 22:45:00 +0200</pubDate>
      <guid>https://www.cavelab.dev/posts/rsyslog-tcp-tls-graylog/</guid>
      <description>&lt;img src=&#34;https://www.cavelab.dev/posts/rsyslog-tcp-tls-graylog/cover.png&#34;/&gt;
         &lt;p&gt;All my &lt;a href=&#34;https://www.cavelab.dev/homelab/&#34;&gt;homelab&lt;/a&gt; servers and containers send their logs to a local &lt;a href=&#34;https://www.graylog.org/&#34;&gt;Graylog&lt;/a&gt; instance. I wanted my VPS to do that as well — but sending unencrypted logs over the internet is not a good idea.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
