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 a426b7fc233dfa64ac8414776f04ea124345382c
parent 598c4cf6e6403fe5213eaefe0efdb33c6f5887cf
Author: Dash Eclipse <dash@ezup.dev>
Date:   Mon,  9 Nov 2020 05:20:24 +0000

generate favicon.ico

Diffstat:
M.web/blog/create-and-use-openpgp-keys.html | 26+++++++++++++-------------
M.web/blog/fat32-partitionless-voidlinux-liveusb.html | 54+++++++++++++++++++++++++++---------------------------
M.web/blog/index.html | 4++--
M.web/blog/rss.xml | 4++--
A.web/favicon.ico | 0
Aartwork/favicon/favicon.ico | 0
Martwork/generate-favicon-and-avatar.sh | 1+
Afavicon.ico | 2++
Mposts/rss.org | 4++--
Mpublish.el | 2+-
10 files changed, 50 insertions(+), 47 deletions(-)

diff --git a/.web/blog/create-and-use-openpgp-keys.html b/.web/blog/create-and-use-openpgp-keys.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> -<!-- 2020-10-06 --> +<!-- 2020-11-09 --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Create and Use OpenPGP Keys</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-org861db44" class="outline-2"> -<h2 id="org861db44"><span class="section-number-2">1</span> Install GnuPG</h2> +<section id="outline-container-org6fd5028" class="outline-2"> +<h2 id="org6fd5028"><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-orge22fb25" class="outline-2"> -<h2 id="orge22fb25"><span class="section-number-2">2</span> OpenPGP key generation</h2> +<section id="outline-container-orgcd8d0be" class="outline-2"> +<h2 id="orgcd8d0be"><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-orgd8c87b6" class="outline-2"> -<h2 id="orgd8c87b6"><span class="section-number-2">3</span> Use subkeys</h2> +<section id="outline-container-orgcfe6377" class="outline-2"> +<h2 id="orgcfe6377"><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-org9a7a843" class="outline-3"> -<h3 id="org9a7a843"><span class="section-number-3">3.1</span> Thunderbird and Enigmail</h3> +<div id="outline-container-org7927c1a" class="outline-3"> +<h3 id="org7927c1a"><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-orgcf7eb5b" class="outline-3"> -<h3 id="orgcf7eb5b"><span class="section-number-3">3.2</span> Git</h3> +<div id="outline-container-orgcc940b3" class="outline-3"> +<h3 id="orgcc940b3"><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-org583b7bd" class="outline-3"> -<h3 id="org583b7bd"><span class="section-number-3">3.3</span> pass (the standard unix password manager)</h3> +<div id="outline-container-org4403143" class="outline-3"> +<h3 id="org4403143"><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/fat32-partitionless-voidlinux-liveusb.html b/.web/blog/fat32-partitionless-voidlinux-liveusb.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> -<!-- 2020-10-06 --> +<!-- 2020-11-09 --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>FAT32 Partitionless Void Linux Live USB</title> @@ -37,26 +37,26 @@ <h2>Table of Contents</h2> <div id="text-table-of-contents"> <ul> -<li><a href="#org8ed1dc4">1. What is this about and why do I create Live USB this way</a> +<li><a href="#org1a1540c">1. What is this about and why do I create Live USB this way</a> <ul> -<li><a href="#orgcaff9b2">1.1. Advantages</a></li> -<li><a href="#orgf8f072f">1.2. How does it work?</a></li> +<li><a href="#orgba99c31">1.1. Advantages</a></li> +<li><a href="#org903db81">1.2. How does it work?</a></li> </ul> </li> -<li><a href="#org2a08f1f">2. FAT32 filesystem creation and file directory structure</a></li> -<li><a href="#orgbcf5f3a">3. UEFI</a></li> -<li><a href="#org1f11549">4. Legacy BIOS</a> +<li><a href="#org34f5181">2. FAT32 filesystem creation and file directory structure</a></li> +<li><a href="#org393afa3">3. UEFI</a></li> +<li><a href="#org1fe7fbb">4. Legacy BIOS</a> <ul> -<li><a href="#orgd524cdc">4.1. Minimal config</a></li> -<li><a href="#orgd9f3d7b">4.2. Graphical boot menu</a></li> +<li><a href="#orgde1ebad">4.1. Minimal config</a></li> +<li><a href="#orge85bc40">4.2. Graphical boot menu</a></li> </ul> </li> </ul> </div> </nav> -<section id="outline-container-org8ed1dc4" class="outline-2"> -<h2 id="org8ed1dc4"><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-org1a1540c" class="outline-2"> +<h2 id="org1a1540c"><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 it's esay to use void-mklive to generate customized iso, it's simple and just works. @@ -71,8 +71,8 @@ The solution is pretty simple, just create one FAT32 filesystem on the USB stick </p> </div> -<div id="outline-container-orgcaff9b2" class="outline-3"> -<h3 id="orgcaff9b2"><span class="section-number-3">1.1</span> Advantages</h3> +<div id="outline-container-orgba99c31" class="outline-3"> +<h3 id="orgba99c31"><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> @@ -85,8 +85,8 @@ The solution is pretty simple, just create one FAT32 filesystem on the USB stick </div> </div> -<div id="outline-container-orgf8f072f" class="outline-3"> -<h3 id="orgf8f072f"><span class="section-number-3">1.2</span> How does it work?</h3> +<div id="outline-container-org903db81" class="outline-3"> +<h3 id="org903db81"><span class="section-number-3">1.2</span> How does it work?</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>. @@ -107,8 +107,8 @@ For Legacy BIOS, when you have a partition table on the hard drive, you need to </div> </section> -<section id="outline-container-org2a08f1f" class="outline-2"> -<h2 id="org2a08f1f"><span class="section-number-2">2</span> FAT32 filesystem creation and file directory structure</h2> +<section id="outline-container-org34f5181" class="outline-2"> +<h2 id="org34f5181"><span class="section-number-2">2</span> FAT32 filesystem creation and file directory structure</h2> <div class="outline-text-2" id="text-2"> <p> Assume the USB stick where we are going to create Live USB on is <code>/dev/sdc</code> and the FAT32 volume name is <code>VOID_LIVE</code>, you can create it with this command. Note the volume name can be other value but must be identical as boot options specified in bootloader configuration files. @@ -149,8 +149,8 @@ VOID_LIVE </div> </section> -<section id="outline-container-orgbcf5f3a" class="outline-2"> -<h2 id="orgbcf5f3a"><span class="section-number-2">3</span> UEFI</h2> +<section id="outline-container-org393afa3" class="outline-2"> +<h2 id="org393afa3"><span class="section-number-2">3</span> UEFI</h2> <div class="outline-text-2" id="text-3"> <p> I use rEFInd Boot Manager for UEFI boot, you can just download it from <a href="https://www.rodsbooks.com/refind/getting.html">the official website</a> and copy it to the FAT32 filesystem, or install <code>refind</code> the voidlinux package and then copy it from <code>/usr/share/refind</code>. It looks better with themes such like <a href="https://github.com/munlik/refind-theme-regular">refind-theme-regular</a>. You are free to customize it. @@ -159,7 +159,7 @@ I use rEFInd Boot Manager for UEFI boot, you can just download it from <a href=" <p> <code>EFI/{BOOT,refind}/refind.conf</code> </p> -<pre class="example" id="orgc86a488"> +<pre class="example" id="orga5da02b"> timeout 20 menuentry "Void Linux (x86_64-musl)" { @@ -177,16 +177,16 @@ menuentry "Void Linux (x86_64-musl) (RAM)" { </div> </section> -<section id="outline-container-org1f11549" class="outline-2"> -<h2 id="org1f11549"><span class="section-number-2">4</span> Legacy BIOS</h2> +<section id="outline-container-org1fe7fbb" class="outline-2"> +<h2 id="org1fe7fbb"><span class="section-number-2">4</span> Legacy BIOS</h2> <div class="outline-text-2" id="text-4"> <p> I use syslinux because it's more lightweight than grub, <code>syslinux</code> the package is required to install syslinux to USB stick. You can use the minimal config or graphical boot menu config, I recommend to use the minimal one. </p> </div> -<div id="outline-container-orgd524cdc" class="outline-3"> -<h3 id="orgd524cdc"><span class="section-number-3">4.1</span> Minimal config</h3> +<div id="outline-container-orgde1ebad" class="outline-3"> +<h3 id="orgde1ebad"><span class="section-number-3">4.1</span> Minimal config</h3> <div class="outline-text-3" id="text-4-1"> <p> To avoid syslinux <code>Boot Error</code> I just use this minimal configuration without any non-core syslinux modules, and only run the extlinux/syslinux command once. I recommend you to create the Live USB in this order. @@ -202,7 +202,7 @@ To avoid syslinux <code>Boot Error</code> I just use this minimal configuration <p> <code>syslinux/syslinux.cfg</code> </p> -<pre class="example" id="org5fc56ee"> +<pre class="example" id="orgd389492"> PROMPT 1 TIMEOUT 50 DEFAULT voidram @@ -218,8 +218,8 @@ LABEL voidram </div> </div> -<div id="outline-container-orgd9f3d7b" class="outline-3"> -<h3 id="orgd9f3d7b"><span class="section-number-3">4.2</span> Graphical boot menu</h3> +<div id="outline-container-orge85bc40" class="outline-3"> +<h3 id="orge85bc40"><span class="section-number-3">4.2</span> Graphical boot menu</h3> <div class="outline-text-3" id="text-4-2"> <p> You can check <code>boot/isolinux/{*.c32,isolinux.cfg}</code> from void-live iso for dependencies and config to use graphical boot menu, but from my experience you need to create the Live USB in this order to avoid syslinux <code>Boot Error</code> (not able to boot), especially when the squashfs.img is large. diff --git a/.web/blog/index.html b/.web/blog/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <html lang="en"> <head> -<!-- 2020-10-06 --> +<!-- 2020-11-09 --> <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-10-06 by Dash Eclipse</p> +<p class="subtitle">Published on 2020-11-09 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/rss.xml b/.web/blog/rss.xml @@ -14,8 +14,8 @@ <link>https://ezup.dev/blog/</link> <description><![CDATA[]]></description> <language>en</language> - <pubDate>Tue, 06 Oct 2020 10:10:31 +0000</pubDate> - <lastBuildDate>Tue, 06 Oct 2020 10:10:31 +0000</lastBuildDate> + <pubDate>Mon, 09 Nov 2020 05:19:52 +0000</pubDate> + <lastBuildDate>Mon, 09 Nov 2020 05:19:52 +0000</lastBuildDate> <generator>Emacs 27.1 Org-mode 9.4</generator> <webMaster>dash@ezup.dev (Dash Eclipse)</webMaster> <image> diff --git a/.web/favicon.ico b/.web/favicon.ico Binary files differ. diff --git a/artwork/favicon/favicon.ico b/artwork/favicon/favicon.ico Binary files differ. diff --git a/artwork/generate-favicon-and-avatar.sh b/artwork/generate-favicon-and-avatar.sh @@ -4,6 +4,7 @@ rm -rf favicon mkdir favicon convert ezup-logo-rounded.svg favicon/favicon.png # for stagit +convert -density 384 ezup-logo-rounded.svg -define icon:auto-resize favicon/favicon.ico rsvg-convert -a -w 32 -f svg ezup-logo-rounded.svg -o favicon/logo.svg && convert favicon/logo.svg favicon/logo.png && rm favicon/logo.svg # for stagit ## Avatar diff --git a/favicon.ico b/favicon.ico @@ -0,0 +1 @@ +artwork/favicon/favicon.ico+ \ No newline at end of file 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-14 -:ID: 54efb4ed-cdaf-4761-826b-22862644f8b6 +:ID: e2e6fe3a-4eae-4104-92b3-7611006973f9 :END: * Create and Use OpenPGP Keys :PROPERTIES: :RSS_PERMALINK: create-and-use-openpgp-keys.html :PUBDATE: 2020-06-30 -:ID: 7057ecab-0e27-4763-9b2d-c84449f04a89 +:ID: e3fe1c18-b56b-4046-81f1-bf99e392a7e5 :END: diff --git a/publish.el b/publish.el @@ -203,7 +203,7 @@ PROJECT is the current project." :publishing-function org-publish-attachment) ("favicon" :base-directory "." - :base-extension "svg" + :base-extension "svg\\|ico" :publishing-directory ".web" :publishing-function org-publish-attachment) ("css"