<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Irregular Expressions</title>
<subtitle>Posts tagged “Linux”</subtitle>
<id>https://chaseleinart.com/tags/linux/feed.xml</id>
<link href="https://chaseleinart.com/tags/linux/feed.xml" rel="self" />
<link href="https://chaseleinart.com/" />
<updated>2026-01-16T00:00:00.000Z</updated>
<entry>
<title>The Unreasonable Effectiveness of the ArchWiki and Arch Linux Forums, or How I Un-Borked my Thinkpad T440 After Some Battery Troubles</title>
<id>https://chaseleinart.com/posts/the-unreasonable-effectiveness-of-the-archwiki-and-arch-linux-forums-or-how-i-un-borked-my-thinkpad-t440-after-some-battery-troubles/</id>
<link href="https://chaseleinart.com/posts/the-unreasonable-effectiveness-of-the-archwiki-and-arch-linux-forums-or-how-i-un-borked-my-thinkpad-t440-after-some-battery-troubles/" rel="alternate" />
<published>2026-01-16T00:00:00.000Z</published>
<updated>2026-01-16T00:00:00.000Z</updated>
<author><name>Chase Leinart</name><email>chaseleinart@proton.me</email></author>
<category term="Arch Linux" />
<category term="Linux" />
<category term="Thinkpads" />
<content type="html">&lt;p&gt;The &lt;a href=&quot;https://wiki.archlinux.org&quot;&gt;ArchWiki&lt;/a&gt; stands as a testament to the dedication and care of the Arch Linux user community and has long been the envy of other distros. Although only topics germane to Arch Linux are to be documented, the level of detail and breadth of information have proven to be useful to users of other distros as well. As outlined in the following &lt;a href=&quot;https://lwn.net/Articles/1032604/&quot;&gt;LWN article&lt;/a&gt;, the Debian project invited a pair of ArchWiki maintainers to DebConf25 to discuss the ArchWiki management strategy as a means to revamp the existing Debian wiki.&lt;/p&gt;
&lt;p&gt;I&apos;ve been a sucker for Lenovo Thinkpads since early 2018 when I bought a used T440 on eBay. They&apos;re easy to maintain and modify, they&apos;re affordable in the used market, and they seem to have great hardware compatibility for Linux. In total, I own the following Thinkpads:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;IBM Thinkpad T42&lt;/strong&gt; - running Windows 98 SE; among the last models produced by IBM. I bought this to run some childhood software favorites from Windows 95 and 98.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lenovo T440 Thinkpad&lt;/strong&gt; - the first Thinkpad I owned, purchased in January 2018. Forgotten in a cabinet until a few months ago. It only has 8Gb of RAM, but that&apos;s enough for many tasks in truth.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lenovo X230 Thinkpad&lt;/strong&gt; - purchased with Coreboot installed and in a state of experimentation and modding. Unused for years.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lenovo Thinkpad X380 Yoga&lt;/strong&gt; - I bought this one in July 2022 after tiring from hardware issues with my System76 Oryx Pro 6 and it&apos;s been my daily driver for most of the time since.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I don&apos;t need four different Thinkpads, but I don&apos;t have any reason to get rid of any either. I believe my first permanent Linux installation was Ubuntu Vivid Vervet in 2015 from a cd in some Linux magazine. For many years I enjoyed using Ubuntu, but I found that as time went on, minor issues became major annoyances. In 2023 I installed Debian Bookworm and it ran like a dream. In late 2022 the Debian project held a vote concerning the nonfree repos and ultimately made them accessible as part of the installer for Bookworm. As an Ubuntu user, I always had great respect and admiration for the Debian project, but I didn&apos;t have the patience to workaround some of the driver issues I&apos;d encountered with it on some brief experiments. Bookworm on the other hand worked better out of the box than Ubuntu. I happily upgraded to Trixie when it became stable last year, but lingering in the back of my mind was a desire for something more bleeding edge.&lt;/p&gt;
&lt;p&gt;I decided my System76 would be perfect for testing it out and immediately fell in love with it. The volume of &lt;a href=&quot;https://wiki.archlinux.org/title/Arch_User_Repository&quot;&gt;AUR&lt;/a&gt; packages, the speed of &lt;a href=&quot;https://wiki.archlinux.org/title/Pacman&quot;&gt;pacman&lt;/a&gt;, the simplicity of the &lt;a href=&quot;https://wiki.archlinux.org/title/Arch_build_system&quot;&gt;Arch build system&lt;/a&gt; and &lt;a href=&quot;https://wiki.archlinux.org/title/PKGBUILD&quot;&gt;PKGBUILD files&lt;/a&gt;. I quickly took over an &lt;a href=&quot;https://aur.archlinux.org/packages/artix-games-launcher&quot;&gt;orphaned AUR package&lt;/a&gt; for a game launcher I wanted to use for playing Adventure Quest. I have much to learn, but appreciated the ease of getting involved.&lt;/p&gt;
&lt;p&gt;After finding my old T440 in a file cabinet a few months back, I quickly installed Arch on it. Until then, I used the X380 Yoga with Debian and my System76 with Arch. I found myself reaching for the T440 to write some code here and there until a week ago when the battery started going on the fritz. It would cycle between charging for a few moments and then nothing. The battery was probably over a decade old, so I found a third-party replacement for cheap on Amazon and ordered it with next-day shipping. I had no troubles for a few days, but after accidentally letting my laptop die while unplugged, I suddenly got an error about my third party battery being unsupported and that the system would not charge it. This is troublesome.&lt;/p&gt;
&lt;p&gt;After some &lt;em&gt;very&lt;/em&gt; brief research, I reset the BIOS settings in an attempt to fix it. I was able to troubleshoot things with the battery removed and the laptop connected to power directly. Not only did this not fix my issue, but it left my laptop unable to boot into Arch. My inclination was to boot up my Arch installation ISO on a USB drive, but security validation errors prevented even that. After disabling Secure Boot and changing from UEFI to Leacy Boot, I was able to boot up the USB drive in the hopes of mending things. I looked in the Arch forums and found a post titled &lt;a href=&quot;https://bbs.archlinux.org/viewtopic.php?id=271414&quot;&gt;Arch won&apos;t boot after motherboard BIOS update&lt;/a&gt;. After some brief discussion in the thread, the poster concluded that the the probable sequence for repairing the issue would be&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Update back to latest BIOS version&lt;/li&gt;
&lt;li&gt;reboot with a bootable usb with an Arch.iso&lt;/li&gt;
&lt;li&gt;boot arch-Linux&lt;/li&gt;
&lt;li&gt;Chroot&lt;/li&gt;
&lt;li&gt;Re-install bootloader (GRUB)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Another user affirmed that that the fix would largely mirror some steps of the installation in terms of mounting the Linux partition, chrooting into it, installing the kernel and firmware, and configuring a bootloader.&lt;/p&gt;
&lt;p&gt;In my case, I &lt;em&gt;mostly&lt;/em&gt; followed these instructions, though it was unnecessary for me to update to a particular BIOS version since I merely reset the settings for my given BIOS version.&lt;/p&gt;
&lt;p&gt;After connecting to my network with &lt;a href=&quot;https://wiki.archlinux.org/title/Iwd#iwctl&quot;&gt;iwctl&lt;/a&gt; I viewed my partitions with&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;fdisk -l&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Following the portion of the installation guide for &lt;a href=&quot;https://wiki.archlinux.org/title/Installation_guide#Mount_the_file_systems&quot;&gt;mounting filesystems&lt;/a&gt;, I ran&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;mount /dev/sda3 /mnt&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I then used &lt;a href=&quot;https://wiki.archlinux.org/title/Installation_guide#Chroot&quot;&gt;arch-chroot&lt;/a&gt; to access my intact Arch system.&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;arch-chroot /mnt&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Following the forum post, I reinstalled the linux, linux-firmware, and grub packages.&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt; pacman -Sy linux linux-firmware grub&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With the GRUB package installed, I followed the &lt;a href=&quot;https://wiki.archlinux.org/title/GRUB&quot;&gt;instructions&lt;/a&gt; to install GRUB to my boot partition&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;grub-install --target=i386-pc /dev/sda&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I followed the instructions for my setup,
&lt;a href=&quot;https://wiki.archlinux.org/title/GRUB#GUID_Partition_Table_(GPT)_specific_instructions&quot;&gt;GPT/BIOS&lt;/a&gt;, in order to
&lt;a href=&quot;https://wiki.archlinux.org/title/GRUB#Generate_the_main_configuration_file&quot;&gt;generate the GRUB main configuration file.&lt;/a&gt;&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;grub-mkconfig -o /boot/grub/grub.cfg&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After completing those steps, I rebooted, removed the USB drive, and was thilled to see the GRUB splash screen with Arch listed, followed quickly by my GNOME login screen. I re-inserted my battery and rebooted to success. No more battery issues! If this happens in the future, I&apos;ll try the &lt;a href=&quot;https://conetrix.com/blog/lenovo-thinkpad-emergency-reset-hole&quot;&gt;Lenovo Thinkpad Emergency Reset Hole&lt;/a&gt; first. It disengages both the main battery and cmos battery, then restarts the laptop. I learned a valuable lesson about fiddling with BIOS settings based on insufficient research, but also engaged in the troubleshooting made simple by the the resources afforded to Arch users.&lt;/p&gt;</content>
</entry>
<entry>
<title>Using Guix Docker Images for Gitlab CI/CD</title>
<id>https://chaseleinart.com/posts/using-guix-docker-images-for-gitlab-ci-cd/</id>
<link href="https://chaseleinart.com/posts/using-guix-docker-images-for-gitlab-ci-cd/" rel="alternate" />
<published>2026-01-16T00:00:00.000Z</published>
<updated>2026-01-16T00:00:00.000Z</updated>
<author><name>Chase Leinart</name><email>chaseleinart@proton.me</email></author>
<category term="Guix" />
<category term="Linux" />
<category term="GitLab" />
<category term="Guile" />
<content type="html">&lt;p&gt;Over the years I&apos;ve made several changes to how this website is hosted and deployed. In its original incarnation, it was a Jekyll site hosted with GitHub Pages. Eventually I felt the need to move the repository and its deployment to GitLab for one or more reasons. GitLab offers a &lt;a href=&quot;https://gitlab.com/pages/jekyll&quot;&gt;Jekyll project&lt;/a&gt; for getting started with GitLab Pages. I ended up forking the &lt;a href=&quot;https://gitlab.com/jekyll-themes/default-bundler&quot;&gt;Build Jekyll with Bundler&lt;/a&gt; repo as a starting point, migrating my styling and markdown posts afterwards.&lt;/p&gt;
&lt;p&gt;As many others have, I felt the need to fiddle around with the choice of framework for my blog and learned about &lt;a href=&quot;https://dthompson.us/projects/haunt.html&quot;&gt;Haunt&lt;/a&gt;, a static site generator written in &lt;a href=&quot;https://www.gnu.org/software/guile/&quot;&gt;Guile&lt;/a&gt;, one of the GNU Scheme implementations. Haunt doesn&apos;t require markdown files as a source, offering several types of readers and allowing customization. By making a few small tweaks to my posts, mostly around my use of inline HTML which one of Haunt&apos;s dependencies didn&apos;t seem to like, I was able to migrate my blog to Haunt without too much fuss. I previously implemented a tags system in Jekyll to allow generating dedicated tag pages on build in addition to the aggregate tags page, but I found the approach cumbersome. Creating this functionality for my blog &lt;a href=&quot;https://gitlab.com/Irregular_Expressions/irregular-expressions-blog/-/blob/master/tags-page.scm?ref_type=heads&quot;&gt;in Guile&lt;/a&gt; on the other hand was straighforward and cleaner.&lt;/p&gt;
&lt;p&gt;Generating your site is done with&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;haunt build&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;transforming your underlying files into a static site with styling. The Haunt website offers two pathways to get the package. Either build from source, or do&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;guix install haunt&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href=&quot;https://guix.gnu.org/&quot;&gt;Guix&lt;/a&gt; (pronounced like geeks) bills itself as &quot;a  package manager for GNU/Linux systems&quot;.. &quot;designed to give users more control over their general-purpose and specialized computing environments, and make these easier to reproduce over time and deploy to one or many devices.&quot; That package manager shares a lineage with &lt;a href=&quot;https://nixos.org/&quot;&gt;Nix&lt;/a&gt;, and like Nix, there is also a proper distro centered on Guix as a package manager are core OS utility. Guix is also notable for using the &lt;a href=&quot;https://shepherding.services/&quot;&gt;GNU Shepherd&lt;/a&gt; as its init system and service manager. Guix and Shepherd are both written in Guile, with the Guix System using Guile for total configuration of the OS.&lt;/p&gt;
&lt;p&gt;I thought it&apos;d be interesting to make use of Guix to build my site directly on my CI/CD pipeline. After some searching, I came across a &lt;a href=&quot;https://github.com/metacall/guix&quot;&gt;Docker image&lt;/a&gt; for using Guix in CI/CD. I have some initial challenges getting the build to work related to locale settings on the image, but landed on the gitlab-ci.yml file shown below that identifies needed dependencies from my project manifest file. With that in place, it runs haunt build, moves the generated site to the expected path, and GitLab Pages takes care of the rest.&lt;/p&gt;
&lt;pre class=&quot;astro-code astro-code-themes gruvbox-light-soft gruvbox-dark-soft&quot; style=&quot;background-color:#f2e5bc;--shiki-dark-bg:#32302f;color:#3c3836;--shiki-dark:#ebdbb2; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# requiring the environment of GNU Guix for Haunt&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;image: metacall/guix&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;# the &apos;pages&apos; job will deploy and build your site to the &apos;public&apos; path&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;pages:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  stage: deploy&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  script:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - guix package -m manifest.scm&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export GUIX_PROFILE=&quot;/root/.guix-profile&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - source &quot;$GUIX_PROFILE/etc/profile&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export GUIX_LOCPATH=&quot;$GUIX_PROFILE/lib/locale&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export LANG=&quot;en_US.UTF-8&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - export LC_ALL=&quot;en_US.UTF-8&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - haunt build&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - mv site public&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  artifacts:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    paths:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;      - public&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  only:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;    - master # this job will affect only the &apos;master&apos; branch&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Without a little further digging, I&apos;m not fully sure what could be attributed to user error vs opportunities to customize the base Docker image, but I think it&apos;s an interesting way to customize and deploy my website.&lt;/p&gt;</content>
</entry>
</feed>
