<?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 Learning Journey of Alexander Allgäuer</title><link>https://bitlex.li/tags/linux/</link><description>Recent content in Linux on Learning Journey of Alexander Allgäuer</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Wed, 15 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://bitlex.li/tags/linux/index.xml" rel="self" type="application/rss+xml"/><item><title>YubiKey: SSH with FIDO2</title><link>https://bitlex.li/tutorials/yubikey-ssh-fido2/</link><pubDate>Wed, 15 Apr 2026 00:00:00 +0000</pubDate><guid>https://bitlex.li/tutorials/yubikey-ssh-fido2/</guid><description>&lt;p&gt;The YubiKey supports four methods to enable hardware-backed SSH authentication.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;FIDO2&lt;/li&gt;
&lt;li&gt;PIV&lt;/li&gt;
&lt;li&gt;PGP&lt;/li&gt;
&lt;li&gt;OTP&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;FIDO2 provides the highest security and comes with low complexity. The private key is non-exportable.&lt;/p&gt;
&lt;h2 id="limitations"&gt;Limitations&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;OpenSSH v 8.2.p1 is a requirement better 8.3 for the verify-required option, shouldn&amp;rsquo;t be an issue since both versions were released in 2020.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Windows SSH at the time of writing not supported. &lt;br&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The Mac OS bundled openssh version doesn&amp;rsquo;t support it but this can be fixed.&lt;/p&gt;</description></item><item><title>YubiKey: Autolockscreen via udev (Hyprland)</title><link>https://bitlex.li/tutorials/yubikey-autolockscreen/</link><pubDate>Tue, 14 Apr 2026 00:00:00 +0000</pubDate><guid>https://bitlex.li/tutorials/yubikey-autolockscreen/</guid><description>&lt;p&gt;Automatically lock your Hyprland session the moment you pull your YubiKey out of the USB port.
A udev rule triggers a screen lock script.&lt;/p&gt;
&lt;h2 id="read-hyprlock-doc-first"&gt;Read hyprlock doc first!&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ :&lt;/strong&gt; If you are using hyprland the default application to lock the screen is Hyprlock.
Hyprlock does not automatically create a config, and without one, hyprlock will not render anything.
But even without a config, your session will get locked and thus Hyprland will cover your session with a black screen.&lt;br&gt;
&lt;a href="https://wiki.hypr.land/Hypr-Ecosystem/hyprlock/"&gt;https://wiki.hypr.land/Hypr-Ecosystem/hyprlock/&lt;/a&gt;&lt;/p&gt;</description></item><item><title>YubiKey: Passwordless Sudo</title><link>https://bitlex.li/tutorials/yubikey-passwordless-sudo/</link><pubDate>Tue, 14 Apr 2026 00:00:00 +0000</pubDate><guid>https://bitlex.li/tutorials/yubikey-passwordless-sudo/</guid><description>&lt;p&gt;Use a YubiKey touch to replace your password for sudo .&lt;/p&gt;
&lt;h2 id="install-pam-u2f"&gt;Install pam-u2f&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;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;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo pacman -S pam-u2f
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;mkdir -p ~/.config/Yubico
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="register-the-keys"&gt;Register the keys&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;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;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;pamu2fcfg &amp;gt; ~/.config/Yubico/u2f_keys &lt;span style="color:#75715e"&gt;# primary key&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;pamu2fcfg -n &amp;gt;&amp;gt; ~/.config/Yubico/u2f_keys &lt;span style="color:#75715e"&gt;# append backup key&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="edit-pam"&gt;Edit PAM&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ Warning:&lt;/strong&gt; Keep a root session open in another terminal in case something goes wrong.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;div class="highlight"&gt;&lt;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;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo nano /etc/pam.d/sudo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Add at the top:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;auth sufficient pam_u2f.so cue
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;sufficient&lt;/code&gt; → the YubiKey alone is enough to authenticate.&lt;/li&gt;
&lt;li&gt;Change to &lt;code&gt;required&lt;/code&gt; if you want 2FA (YubiKey &lt;strong&gt;and&lt;/strong&gt; password).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cue&lt;/code&gt; prints a hint when a touch is needed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="test-it"&gt;Test it&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;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;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo -s
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Please touch the FIDO authenticator.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description></item><item><title>Filesystem Comparison, ext4, btrfs, xfs</title><link>https://bitlex.li/posts/ext4-xfs-btrfs/</link><pubDate>Mon, 13 Apr 2026 00:00:00 +0000</pubDate><guid>https://bitlex.li/posts/ext4-xfs-btrfs/</guid><description>&lt;p&gt;A good comparison between the ext4, btrfs and xfs.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.linuxteck.com/linux-file-system-comparison-ext4-xfs-btrfs/"&gt;https://www.linuxteck.com/linux-file-system-comparison-ext4-xfs-btrfs/&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>