<?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 Living Systems_</title>
    <link>https://livesys.se/tags/linux/</link>
    <description>Recent content in Linux on Living Systems_</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 08 Apr 2025 13:27:28 +0200</lastBuildDate>
    <atom:link href="https://livesys.se/tags/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The chroot Technique - a Swiss army multitool for Linux systems</title>
      <link>https://livesys.se/posts/the-chroot-technique/</link>
      <pubDate>Tue, 08 Apr 2025 13:27:28 +0200</pubDate>
      <guid>https://livesys.se/posts/the-chroot-technique/</guid>
      <description>&lt;p&gt;&lt;p class=&#34;image&#34;&gt;&#xA;    &lt;img src=&#34;liveusb.png&#34; alt=&#34;Live USB stick&#34;  /&gt;&#xA;&lt;/p&gt;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;Ever ran into a Linux box that just won&amp;rsquo;t boot, even after making sure that&#xA;BIOS settings are OK and that no major hardware errors are at hand?&lt;/p&gt;&#xA;&lt;p&gt;Then you need to know about the &lt;code&gt;chroot&lt;/code&gt; technique, which can be a real life&#xA;saver.&lt;/p&gt;&#xA;&lt;p&gt;For example, I managed to repair a &lt;a href=&#34;https://nanoporetech.com/products/sequence/gridion&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Nanopore GridION device&lt;/a&gt;&#xA;&#xA;this way the other week, after the &lt;a href=&#34;https://nanoporetech.com/document/gridion-user-manual#introduction-grid&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;official method of re-installing it via an .iso file&lt;/a&gt;&#xA;&#xA;failed, which reminded me to make the effort of documenting these steps.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Random notes from installing Debian 11 with separate accounts for work and private</title>
      <link>https://livesys.se/posts/installing-and-configuring-debian-11-into-a-great-experience/</link>
      <pubDate>Thu, 24 Mar 2022 04:50:00 +0100</pubDate>
      <guid>https://livesys.se/posts/installing-and-configuring-debian-11-into-a-great-experience/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;p&gt;See especially the end for info about how to set up a nice integration&#xA;between the work and private accounts, such that one can e.g.&#xA;occasionally start the mail client or web browser from the private&#xA;account from the work one etc.&lt;/p&gt;&#xA;&lt;h3 id=&#34;caveats-when-installing-debian-11&#34;&gt;Caveats when installing Debian 11&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Make sure that an EFI partition is created (when I manually modified&#xA;the partition table I accidentally deleted it, and had to reinstall&#xA;to get it created properly again).&lt;/li&gt;&#xA;&lt;li&gt;Had to turn off safe boot in BIOS&lt;/li&gt;&#xA;&lt;li&gt;Had to set SATA settings to AHCI&lt;/li&gt;&#xA;&lt;li&gt;Had to manually create a boot option with the path to&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;\EFI\debian\grubx64.efi&#xA;&lt;/code&gt;&lt;/pre&gt;in BIOS settings&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;instructions-for-configuring-debian-to-my-liking&#34;&gt;Instructions for configuring Debian to my liking&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Add current user to sudo&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Switch user to root:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;usermod -aG sudo &amp;lt;username&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Log out and back the user&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Uncomment CDROM remotes in /etc/apt/sources.list&lt;/li&gt;&#xA;&lt;li&gt;Change default search engine in firefox to duckduckgo&lt;/li&gt;&#xA;&lt;li&gt;Replace applications menu with whiskers menu&lt;/li&gt;&#xA;&lt;li&gt;Install some packages:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sudo apt install vim git tig tmux curl tree rsync gparted&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    ecryptfs-utils redshift bash-completion bluez blueman&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Clone rc folder:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git clone https://github.com/samuell/rc.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Link rc files:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ln -s rc/.&lt;span style=&#34;color:#000&#34;&gt;{&lt;/span&gt;b,v,t&lt;span style=&#34;color:#000&#34;&gt;}&lt;/span&gt;* .&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Create empty &lt;code&gt;.bash_aliases_local&lt;/code&gt;:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;touch ~/.bash_aliases_local&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Activate in bashrc:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cat &lt;span style=&#34;color:#c41a16&#34;&gt;&amp;#39;if [ -f ~/.bashrc_mods ]; then . ~/.bashrc_mods; fi&amp;#39;&lt;/span&gt; &amp;gt;&amp;gt; ~/.bashrc &lt;span style=&#34;color:#000&#34;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style=&#34;color:#a90d91&#34;&gt;source&lt;/span&gt; ~/.bashrc&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Install vim-plug:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;curl -fLo ~/.vim/autoload/plug.vim --create-dirs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Run &lt;code&gt;:PlugInstall&lt;/code&gt; in vim:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim -c &lt;span style=&#34;color:#c41a16&#34;&gt;&amp;#34;:PlugInstall&amp;#34;&lt;/span&gt; -c &lt;span style=&#34;color:#c41a16&#34;&gt;&amp;#34;qa!&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;In &amp;ldquo;Keyboard settings &amp;gt; Application shortcuts&amp;rdquo; add two&#xA;shortcuts:&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;xfce4-popup-whiskermenu    &lt;span style=&#34;color:#177500&#34;&gt;# Ctrl+Esc&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;xfce4-terminal --drop-down &lt;span style=&#34;color:#177500&#34;&gt;# Super+Space&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;&#xA;&lt;li&gt;Open the terminal with Win+Space, and configure:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set width to 100%&lt;/li&gt;&#xA;&lt;li&gt;Uncheck always show tabs&lt;/li&gt;&#xA;&lt;li&gt;Uncheck show menubar in new windows&lt;/li&gt;&#xA;&lt;li&gt;Configure color to more pastel like colors according to my new method&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;In Appearance&amp;hellip;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Set style to &amp;ldquo;Adwaita-dark&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Set fonts to &amp;ldquo;Adwaita&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Set main font to &amp;ldquo;Sans Regular 8&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Let main monospace font be &amp;ldquo;Monospace Regular 10&amp;rdquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;In terminal preferences, set font to &amp;ldquo;Monospace Regular 10&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;In Window manager, set shortcuts:&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Tile window up/down/left/right: Super up/down/left/right&lt;/li&gt;&#xA;&lt;li&gt;Move window Ctrl+Alt+F&lt;/li&gt;&#xA;&lt;li&gt;Resize window Ctrl+Alt+R&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;Install and configure Brave browser&lt;/li&gt;&#xA;&lt;li&gt;Encrypt home folder&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;set-up-separate-work-and-private-accounts&#34;&gt;Set up separate work and private accounts&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Create the separate accounts&lt;/li&gt;&#xA;&lt;li&gt;Encrypt folder of both&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;In order to run private commands from the work account and vice versa:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installing Qubes OS</title>
      <link>https://livesys.se/posts/installing-qubes-os/</link>
      <pubDate>Wed, 29 Dec 2021 06:59:00 +0100</pubDate>
      <guid>https://livesys.se/posts/installing-qubes-os/</guid>
      <description>&lt;p&gt;I just switched to &lt;a href=&#34;https://www.qubes-os.org/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Qubes OS&lt;/a&gt;&#xA; as operating&#xA;system on my main work laptop (a Dell Latitude). Or in fact, one of the&#xA;reasons was to be able to combine work and private hobby coding&#xA;projects, that&amp;rsquo;s increasinbly been happening on the same machine.&#xA;Anyways, these are my experiences and notes, as a way to document&#xA;caveats and quirks in case I need to do this again, while possibly also&#xA;being of use for others.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Terminator as a middle-way between floating and tiling window managers</title>
      <link>https://livesys.se/posts/terminator-middle-way/</link>
      <pubDate>Fri, 17 Jul 2015 19:22:00 +0200</pubDate>
      <guid>https://livesys.se/posts/terminator-middle-way/</guid>
      <description>&lt;p&gt;I have tried hard to improve my linux desktop productivity by learning&#xA;to do as much as possible using keyboard shortcuts, aliases for terminal&#xA;commands etc etc (I even produced an &lt;a href=&#34;https://www.udemy.com/command-line-productivity/?couponCode=BlogR33ders&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;online course on linux commandline&#xA;productivity&lt;/a&gt;&#xA;).&lt;/p&gt;&#xA;&lt;p&gt;In this spirit, I naturally tried out a so called &lt;a href=&#34;https://www.udemy.com/command-line-productivity&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;tiling window&#xA;manager&lt;/a&gt;&#xA; (aka tiling&#xA;wm). In short, a tiling wm organizes all open windows on the screen (or&#xA;on the current desktop) into a &amp;ldquo;tiled&amp;rdquo; grid of frames. You can then&#xA;control how these frames are created, resized, as well as switch focus&#xA;between the frames, all using keyboard shortcuts. This allows you to&#xA;avoid leaving the keyboard for moving windows around or resizing them,&#xA;before starting your work in a new program.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
