ezup.dev

Source Code of Dash Eclipse's Personal Site (ezup.dev)
git clone git://ezup.dev/ezup.dev.git
Log | Files | Refs | README | LICENSE

commit 5d806077fcc2555f886ddbb709893f14e11088a1
parent ca08364ffdfd1a2bf6f54c6b4529be9f86f2769b
Author: Dash Eclipse <dash@ezup.dev>
Date:   Mon, 13 Jul 2020 10:12:08 +0000

Update blog post

Diffstat:
M.web/blog/fat32-partitionless-voidlinux-liveusb.html | 71++++++++++++++++++++++++++++++++++++-----------------------------------
M.web/blog/index.html | 4++--
M.web/blog/pgp.html | 26+++++++++++++-------------
M.web/blog/rss.xml | 4++--
Mposts/fat32-partitionless-voidlinux-liveusb.org | 9+++++----
Mposts/rss.org | 4++--
6 files changed, 60 insertions(+), 58 deletions(-)

diff --git a/.web/blog/fat32-partitionless-voidlinux-liveusb.html b/.web/blog/fat32-partitionless-voidlinux-liveusb.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> -<!-- 2020-07-10 --> +<!-- 2020-07-13 --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>FAT32 Partitionless Void Linux Live USB</title> @@ -37,28 +37,28 @@ <h2>Table of Contents</h2> <div id="text-table-of-contents"> <ul> -<li><a href="#org54e6efb">1. What is this about and why do I create Live USB this way</a> +<li><a href="#org583e609">1. What is this about and why do I create Live USB this way</a> <ul> -<li><a href="#orga3ec0e0">1.1. Advantages</a></li> -<li><a href="#org7bc5c8d">1.2. How does this works and works for both UEFI and Legacy BIOS?</a></li> +<li><a href="#org89e0f8c">1.1. Advantages</a></li> +<li><a href="#org7bc8fc8">1.2. How does this works and works for both UEFI and Legacy BIOS?</a></li> </ul> </li> -<li><a href="#org8e6c790">2. Layout and Bootloader configuration files</a></li> -<li><a href="#org4ebd9a7">3. Create FAT32 Partitionless Void Linux Live USB</a> +<li><a href="#org820b64e">2. Layout and Bootloader configuration files</a></li> +<li><a href="#org21ef77a">3. Create FAT32 Partitionless Void Linux Live USB</a> <ul> -<li><a href="#org29ebf06">3.1. Download void-live ISO and bootloaders</a></li> -<li><a href="#org857fb39">3.2. Create the FAT32 filesystem and label it</a></li> -<li><a href="#org9b4cf69">3.3. Grab files from void-live ISO</a></li> -<li><a href="#org8a31d2f">3.4. rEFInd for UEFI</a></li> -<li><a href="#org2ade283">3.5. syslinux for Legacy BIOS</a></li> +<li><a href="#orgd05d3a2">3.1. Download void-live ISO and bootloaders</a></li> +<li><a href="#org29f9b38">3.2. Create the FAT32 filesystem and label it</a></li> +<li><a href="#orgfe63804">3.3. Grab files from void-live ISO</a></li> +<li><a href="#org895b983">3.4. rEFInd for UEFI</a></li> +<li><a href="#orge0f7187">3.5. syslinux for Legacy BIOS</a></li> </ul> </li> </ul> </div> </nav> -<section id="outline-container-org54e6efb" class="outline-2"> -<h2 id="org54e6efb"><span class="section-number-2">1</span> What is this about and why do I create Live USB this way</h2> +<section id="outline-container-org583e609" class="outline-2"> +<h2 id="org583e609"><span class="section-number-2">1</span> What is this about and why do I create Live USB this way</h2> <div class="outline-text-2" id="text-1"> <p> I use void-live as my Live USB because it supports booting into RAM, so I can eject USB stick after boot into LiveOS. And Void Linux provides a set of scripts<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup> to generate the iso, it's pretty easy to customize it and it just works. @@ -73,8 +73,8 @@ The solution is pretty simple, just create one FAT32 filesystem on the USB stick </p> </div> -<div id="outline-container-orga3ec0e0" class="outline-3"> -<h3 id="orga3ec0e0"><span class="section-number-3">1.1</span> Advantages</h3> +<div id="outline-container-org89e0f8c" class="outline-3"> +<h3 id="org89e0f8c"><span class="section-number-3">1.1</span> Advantages</h3> <div class="outline-text-3" id="text-1-1"> <ul class="org-ul"> <li>Works for both UEFI and Legacy BIOS</li> @@ -87,8 +87,8 @@ The solution is pretty simple, just create one FAT32 filesystem on the USB stick </div> </div> -<div id="outline-container-org7bc5c8d" class="outline-3"> -<h3 id="org7bc5c8d"><span class="section-number-3">1.2</span> How does this works and works for both UEFI and Legacy BIOS?</h3> +<div id="outline-container-org7bc8fc8" class="outline-3"> +<h3 id="org7bc8fc8"><span class="section-number-3">1.2</span> How does this works and works for both UEFI and Legacy BIOS?</h3> <div class="outline-text-3" id="text-1-2"> <p> It's pretty simple, just install the bootloader, configure it to load <code>vmlinuz</code> the linux kernel and <code>initrd</code> the initramfs and it will load <code>LiveOS/squashfs.img</code> from the FAT32 filesystem which labeled as <code>VOID_‚ÄčLIVE</code>. @@ -109,8 +109,8 @@ For Legacy BIOS, when you have a partition table on the hard drive, you need to </div> </section> -<section id="outline-container-org8e6c790" class="outline-2"> -<h2 id="org8e6c790"><span class="section-number-2">2</span> Layout and Bootloader configuration files</h2> +<section id="outline-container-org820b64e" class="outline-2"> +<h2 id="org820b64e"><span class="section-number-2">2</span> Layout and Bootloader configuration files</h2> <div class="outline-text-2" id="text-2"> <p> Layout @@ -242,12 +242,12 @@ LABEL voidram </div> </section> -<section id="outline-container-org4ebd9a7" class="outline-2"> -<h2 id="org4ebd9a7"><span class="section-number-2">3</span> Create FAT32 Partitionless Void Linux Live USB</h2> +<section id="outline-container-org21ef77a" class="outline-2"> +<h2 id="org21ef77a"><span class="section-number-2">3</span> Create FAT32 Partitionless Void Linux Live USB</h2> <div class="outline-text-2" id="text-3"> </div> -<div id="outline-container-org29ebf06" class="outline-3"> -<h3 id="org29ebf06"><span class="section-number-3">3.1</span> Download void-live ISO and bootloaders</h3> +<div id="outline-container-orgd05d3a2" class="outline-3"> +<h3 id="orgd05d3a2"><span class="section-number-3">3.1</span> Download void-live ISO and bootloaders</h3> <div class="outline-text-3" id="text-3-1"> <ul class="org-ul"> <li><a href="https://voidlinux.org/download/">void-live</a>, I use <code>void-live-x86_64-musl-20191109.iso</code></li> @@ -257,15 +257,14 @@ LABEL voidram </div> </div> -<div id="outline-container-org857fb39" class="outline-3"> -<h3 id="org857fb39"><span class="section-number-3">3.2</span> Create the FAT32 filesystem and label it</h3> +<div id="outline-container-org29f9b38" class="outline-3"> +<h3 id="org29f9b38"><span class="section-number-3">3.2</span> Create the FAT32 filesystem and label it</h3> <div class="outline-text-3" id="text-3-2"> <p> -Assume the USB Stick we are going to create LiveOS is <code>/dev/sdc</code> +Assume the USB stick where we are going to create LiveOS is <code>/dev/sdc</code> and the FAT32 volume name is <code>VOID_LIVE</code>, note the volume name should be identical as boot options specified in bootloader configuration files. </p> <div class="org-src-container"> -<pre class="src src-sh">sudo mkfs.vfat -I -F32 /dev/sdc -sudo fatlabel /dev/sdc VOID_LIVE +<pre class="src src-sh">sudo mkfs.vfat -I -F32 -n VOID_LIVE /dev/sdc mkdir VOID_LIVE sudo mount /dev/sdc VOID_LIVE </pre> @@ -273,8 +272,8 @@ sudo mount /dev/sdc VOID_LIVE </div> </div> -<div id="outline-container-org9b4cf69" class="outline-3"> -<h3 id="org9b4cf69"><span class="section-number-3">3.3</span> Grab files from void-live ISO</h3> +<div id="outline-container-orgfe63804" class="outline-3"> +<h3 id="orgfe63804"><span class="section-number-3">3.3</span> Grab files from void-live ISO</h3> <div class="outline-text-3" id="text-3-3"> <p> Assume we are using <code>void-live-x86_64-musl-20191109.iso</code> @@ -292,8 +291,8 @@ sudo cp void-live-x86_64-musl-20191109/boot/isolinux/splash.png VOID_LIVE/syslin </div> </div> -<div id="outline-container-org8a31d2f" class="outline-3"> -<h3 id="org8a31d2f"><span class="section-number-3">3.4</span> rEFInd for UEFI</h3> +<div id="outline-container-org895b983" class="outline-3"> +<h3 id="org895b983"><span class="section-number-3">3.4</span> rEFInd for UEFI</h3> <div class="outline-text-3" id="text-3-4"> <div class="org-src-container"> <pre class="src src-sh">sudo xbps-install -S refind @@ -310,16 +309,18 @@ sudo cp VOID_LIVE/{refind,BOOT}/refind.conf </div> </div> -<div id="outline-container-org2ade283" class="outline-3"> -<h3 id="org2ade283"><span class="section-number-3">3.5</span> syslinux for Legacy BIOS</h3> +<div id="outline-container-orge0f7187" class="outline-3"> +<h3 id="orge0f7187"><span class="section-number-3">3.5</span> syslinux for Legacy BIOS</h3> <div class="outline-text-3" id="text-3-5"> <div class="org-src-container"> <pre class="src src-sh">sudo xbps-install -S syslinux sudo mkdir VOID_LIVE/syslinux sudo cp /usr/lib/syslinux/{chain,libcom32,libutil,vesamenu}.c32 VOID_LIVE/syslinux +sudo extlinux --install VOID_LIVE/syslinux sudo vim VOID_LIVE/syslinux/syslinux.cfg sudo umount VOID_LIVE -sudo syslinux --directory syslinux --install /dev/sdc +<span class="org-comment-delimiter">## </span><span class="org-comment">Or use syslinux command instead extlinux when the device is umounted</span> +<span class="org-comment-delimiter">#</span><span class="org-comment">sudo syslinux --directory syslinux --install /dev/sdc</span> </pre> </div> </div> diff --git a/.web/blog/index.html b/.web/blog/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> -<!-- 2020-07-10 --> +<!-- 2020-07-13 --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Blog Index</title> @@ -31,7 +31,7 @@ <main id="content"> <header> <h1 class="title">Blog Index</h1> -<p class="subtitle">Published on 2020-07-10 by Dash Eclipse.</p> +<p class="subtitle">Published on 2020-07-13 by Dash Eclipse.</p> </header><ul class="org-ul"> <li><p> <a href="fat32-partitionless-voidlinux-liveusb.html">FAT32 Partitionless Void Linux Live USB</a> diff --git a/.web/blog/pgp.html b/.web/blog/pgp.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> -<!-- 2020-07-10 --> +<!-- 2020-07-13 --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>OpenPGP Key Generation and Usage</title> @@ -37,8 +37,8 @@ In this article I'm gonna explain how do I generate and use OpenPGP keys. </p> -<section id="outline-container-org4acb822" class="outline-2"> -<h2 id="org4acb822"><span class="section-number-2">1</span> Install GnuPG</h2> +<section id="outline-container-org05d1dfb" class="outline-2"> +<h2 id="org05d1dfb"><span class="section-number-2">1</span> Install GnuPG</h2> <div class="outline-text-2" id="text-1"> <p> On macOS you can use brew to install GnuPG <code>brew install gnupg</code>, you will also need <code>pinentry-mac</code> package if you are going to use it with GUI programs such like Thunderbird with Eng @@ -46,8 +46,8 @@ On macOS you can use brew to install GnuPG <code>brew install gnupg</code>, you </div> </section> -<section id="outline-container-org61d0fec" class="outline-2"> -<h2 id="org61d0fec"><span class="section-number-2">2</span> OpenPGP key generation</h2> +<section id="outline-container-org00eba01" class="outline-2"> +<h2 id="org00eba01"><span class="section-number-2">2</span> OpenPGP key generation</h2> <div class="outline-text-2" id="text-2"> <p> Beside <code>gpg --full-generate-key</code>, you can also create a key with gpg in batch mode<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup>. @@ -84,8 +84,8 @@ gpg --batch --generate-key first-last.txt </div> </section> -<section id="outline-container-org849ea4c" class="outline-2"> -<h2 id="org849ea4c"><span class="section-number-2">3</span> Use subkeys</h2> +<section id="outline-container-org28b1257" class="outline-2"> +<h2 id="org28b1257"><span class="section-number-2">3</span> Use subkeys</h2> <div class="outline-text-2" id="text-3"> <p> I use encryption and signing subkeys instead of just use one key for everything, because it's safer when you keep your master key elsewhere and use different keys for different purposes. Debian also recommend to use subkeys.<sup><a id="fnr.2" class="footref" href="#fn.2">2</a></sup> @@ -104,8 +104,8 @@ gpg --edit-key &lt;key-id&gt; passwd </pre> </div> </div> -<div id="outline-container-orgf9434b8" class="outline-3"> -<h3 id="orgf9434b8"><span class="section-number-3">3.1</span> Thunderbird and Enigmail</h3> +<div id="outline-container-orgb570cb2" class="outline-3"> +<h3 id="orgb570cb2"><span class="section-number-3">3.1</span> Thunderbird and Enigmail</h3> <div class="outline-text-3" id="text-3-1"> <p> I use Thunderbird with Enigmail to send and receive PGP encrypted emails, you can follow <a href="https://ssd.eff.org/en/module/how-use-pgp-mac-os-x">the guide by EFF SSD</a> to set it up. Note you need to install <code>pinentry-mac</code> the package to use GPG with such GUI programs. @@ -117,8 +117,8 @@ I use Thunderbird with Enigmail to send and receive PGP encrypted emails, you ca </div> </div> </div> -<div id="outline-container-org0a01a82" class="outline-3"> -<h3 id="org0a01a82"><span class="section-number-3">3.2</span> Git</h3> +<div id="outline-container-orgafdbd6c" class="outline-3"> +<h3 id="orgafdbd6c"><span class="section-number-3">3.2</span> Git</h3> <div class="outline-text-3" id="text-3-2"> <div class="org-src-container"> <pre class="src src-sh">git config --global gpg.program $(<span class="org-builtin">which</span> gpg) @@ -133,8 +133,8 @@ In case you don't want to sign commits for specific repo, just run <code>git con </p> </div> </div> -<div id="outline-container-org3d98527" class="outline-3"> -<h3 id="org3d98527"><span class="section-number-3">3.3</span> pass (the standard unix password manager)</h3> +<div id="outline-container-orgb021e05" class="outline-3"> +<h3 id="orgb021e05"><span class="section-number-3">3.3</span> pass (the standard unix password manager)</h3> <div class="outline-text-3" id="text-3-3"> <p> I use <a href="https://www.passwordstore.org/">pass</a> to manage my passwords, with a different key. pass store passwords in a git repo, you can also store the <code>$GNUPGHOME</code> in a git repo or just in the same repo. diff --git a/.web/blog/rss.xml b/.web/blog/rss.xml @@ -14,8 +14,8 @@ <link>https://ezup.dev/blog/</link> <description><![CDATA[]]></description> <language>en</language> - <pubDate>Fri, 10 Jul 2020 19:30:47 +0000</pubDate> - <lastBuildDate>Fri, 10 Jul 2020 19:30:47 +0000</lastBuildDate> + <pubDate>Mon, 13 Jul 2020 10:11:56 +0000</pubDate> + <lastBuildDate>Mon, 13 Jul 2020 10:11:56 +0000</lastBuildDate> <generator>Emacs 26.3 Org-mode 9.3.7</generator> <webMaster>dash@ezup.dev (Dash Eclipse)</webMaster> <image> diff --git a/posts/fat32-partitionless-voidlinux-liveusb.org b/posts/fat32-partitionless-voidlinux-liveusb.org @@ -161,10 +161,9 @@ - [[https://wiki.syslinux.org/wiki/index.php?title=Download][syslinux]], I use ~syslinux~ the void package ** Create the FAT32 filesystem and label it - Assume the USB Stick we are going to create LiveOS is ~/dev/sdc~ + Assume the USB stick where we are going to create LiveOS is ~/dev/sdc~ and the FAT32 volume name is ~VOID_LIVE~, note the volume name should be identical as boot options specified in bootloader configuration files. #+BEGIN_SRC sh - sudo mkfs.vfat -I -F32 /dev/sdc - sudo fatlabel /dev/sdc VOID_LIVE + sudo mkfs.vfat -I -F32 -n VOID_LIVE /dev/sdc mkdir VOID_LIVE sudo mount /dev/sdc VOID_LIVE #+END_SRC @@ -199,9 +198,11 @@ sudo xbps-install -S syslinux sudo mkdir VOID_LIVE/syslinux sudo cp /usr/lib/syslinux/{chain,libcom32,libutil,vesamenu}.c32 VOID_LIVE/syslinux + sudo extlinux --install VOID_LIVE/syslinux sudo vim VOID_LIVE/syslinux/syslinux.cfg sudo umount VOID_LIVE - sudo syslinux --directory syslinux --install /dev/sdc + ## Or use syslinux command instead extlinux when the device is umounted + #sudo syslinux --directory syslinux --install /dev/sdc #+END_SRC * Footnotes diff --git a/posts/rss.org b/posts/rss.org @@ -4,11 +4,11 @@ :PROPERTIES: :RSS_PERMALINK: fat32-partitionless-voidlinux-liveusb.html :PUBDATE: 2020-07-10 -:ID: 120782D1-131F-4124-8D17-2A997B38E917 +:ID: 720604EF-ED97-4D54-B8FD-78EA81523650 :END: * OpenPGP Key Generation and Usage :PROPERTIES: :RSS_PERMALINK: pgp.html :PUBDATE: 2020-06-30 -:ID: 693E8CCE-6AFE-47FE-AE14-5235FA6BD061 +:ID: 4BAB43BA-22D5-450E-9594-47F251EADA51 :END: