<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Projects on Hallblazzar: 開發者日誌</title>
    <link>https://dev-journal.hallblazzar.dev/zh-tw/categories/projects/</link>
    <description>Recent content in Projects on Hallblazzar: 開發者日誌</description>
    <generator>Hugo</generator>
    <language>zh-tw</language>
    <lastBuildDate>Sun, 12 Apr 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://dev-journal.hallblazzar.dev/zh-tw/categories/projects/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>lbhelper：基於 Python 的 Debian Live Build Wrapper</title>
      <link>https://dev-journal.hallblazzar.dev/zh-tw/posts/2026_apr_12_lbhelper/</link>
      <pubDate>Sun, 12 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://dev-journal.hallblazzar.dev/zh-tw/posts/2026_apr_12_lbhelper/</guid>
      <description>&lt;div class=&#34;notice tip&#34;&gt;&#xA;  &lt;div class=&#34;notice-title&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-lightbulb&#34; aria-hidden=&#34;true&#34;&gt;&lt;/i&gt;Tip&#xA;  &lt;/div&gt;&#xA;  &lt;div class=&#34;notice-content&#34;&gt;&lt;p&gt;TL;DR：如果你正嘗試建構自己的 Debian Images （針對桌面環境），我開發了一個基於 Python3 的函式庫 &lt;a href=&#34;https://hallblazzar.github.io/lbhelper/source/index.html&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;lbhelper&lt;/a&gt;，可以協助你簡化這部分的開發工作。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;官方文件 - &lt;a href=&#34;https://hallblazzar.github.io/lbhelper/source/index.html&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://hallblazzar.github.io/lbhelper/source/index.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;GitHub - &lt;a href=&#34;https://github.com/HallBlazzar/lbhelper&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/HallBlazzar/lbhelper&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;基於這個函式庫建構的 Debian Images ，也是我目前運行在我的筆電上運行的系統 - &lt;a href=&#34;https://github.com/HallBlazzar/myos&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/HallBlazzar/myos&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;PyPi - &lt;a href=&#34;https://pypi.org/project/lbhelper/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://pypi.org/project/lbhelper/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&#xA;&lt;h2 id=&#34;image-customization-的解決方案&#34;&gt;&#xA;  Image Customization 的解決方案&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#image-customization-%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%a1%88&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;如果你正試圖為幫你的桌機或筆電建構自訂的 Debian Images ，你可能會發現不容易找到合適的解決方案。通常一般使用者傾向於在首次開機後運行 Shell Scripts 或 &lt;a href=&#34;https://docs.ansible.com/projects/ansible/latest/playbook_guide/playbooks_intro.html&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Ansible playbooks&lt;/a&gt; 來直接設定系統。這種方式簡單直觀。但由於這些 Script 很少被執行而且需要手動執行，容易隨著 Package 或 Config 過期而失效。雖然直接使用 &lt;a href=&#34;https://penguins-eggs.net/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Penguin&amp;rsquo;s Egg&lt;/a&gt; 打包系統能夠直接獲得可以工作的 Image ，但由於遺漏了建構與變更 Package 或 Config 的過程，容易導致最終的 Image 往往難以重現（non-reproducible）。有些人可能會考慮 &lt;a href=&#34;https://fai-project.org/FAIme/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;FAI&lt;/a&gt;，但除了安裝套件之外，它提供的自訂功能有限。&lt;a href=&#34;https://developer.hashicorp.com/packer&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Packer&lt;/a&gt; 能讓結果便於重現，但由於依賴 VM 進行建構，導致執行的過程需要更長的時間以及更多系統資源。&lt;/p&gt;&#xA;&lt;p&gt;除了上述通用型工具（可用於多數 Linux Distribution ）外，&lt;a href=&#34;https://live-team.pages.debian.net/live-manual/html/live-manual/index.en.html&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Debian Live Build&lt;/a&gt; 則是專為 Debian 開發並由其社群維護的工具。除了官方的 Debian Images 外，也被用於基於 Debian 的發行版，例如 &lt;a href=&#34;https://www.kali.org/docs/development/live-build-a-custom-kali-iso/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Kali Linux&lt;/a&gt;。Live Build 支援基於檔案與 Script 的設定方式，可以建立如 Ansible 或 Packer 一樣建立結構化的設定檔，並且在 chroot 環境中運行（關於透過純 chroot 建構 Image，參見&lt;a href=&#34;https://dev.to/vaiolabs_io/how-to-create-custom-debian-based-iso-4g37&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;這篇文章&lt;/a&gt;）。此外，Live Build 支援建立 Live Image，可以在不需要直接安裝到目標機器或虛擬機的情況下，就能夠運作（甚至可以自訂 Live Images 的開機選單），使驗證最終的系統和發行你的 Images 更容易。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
