<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Miscellaneous on Documentation</title><link>https://docs.daper.io/miscellaneous/index.html</link><description>Recent content in Miscellaneous on Documentation</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><atom:link href="https://docs.daper.io/miscellaneous/index.xml" rel="self" type="application/rss+xml"/><item><title>sh Scripting Cheat Sheet</title><link>https://docs.daper.io/miscellaneous/sh-cheat-sheet/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/miscellaneous/sh-cheat-sheet/index.html</guid><description>By jdfulmer | Published February 7, 2012 source: Joe Dog Software
If you’re like me, well, then I feel sorry for you. But if you’re like me, then perl is the first item out of your scripting toolbox. Unfortunately there are moments when you are forced to use sh. And since we’d rather use perl, sh syntax leaves our brains faster than thirteen year old can hack a Windows system.</description></item><item><title>Bash Modifiers</title><link>https://docs.daper.io/miscellaneous/bash-modifiers/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/miscellaneous/bash-modifiers/index.html</guid><description>source: https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
The Set Builtin This builtin is so complicated that it deserves its own section. set allows you to change the values of shell options and set the positional parameters, or to display the names and values of shell variables.
set set [-abefhkmnptuvxBCEHPT] [-o option-name] [--] [-] [argument …] set [+abefhkmnptuvxBCEHPT] [+o option-name] [--] [-] [argument …] If no options or arguments are supplied, set displays the names and values of all shell variables and functions, sorted according to the current locale, in a format that may be reused as input for setting or resetting the currently-set variables.</description></item><item><title>TPM Enroll After BIOS Update</title><link>https://docs.daper.io/miscellaneous/tpm-enroll-after-bios-update/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://docs.daper.io/miscellaneous/tpm-enroll-after-bios-update/index.html</guid><description>Use the command luksDump to check the slot that is associated with the TPM and identify the token ID they will appear under the sections &amp;ldquo;Keyslots&amp;rdquo; and &amp;ldquo;Tokens&amp;rdquo;. The token named systemd-tpm2 should have a keyslot associated.
cryptsetup luksDump /dev/nvme0n1p2 Now delete both, keyslot and token.
cryptsetup luksKillSlot /dev/nvme0n1p2 &amp;lt;SLOTID&amp;gt; cryptsetup token remove --token-id=&amp;lt;TOKENID&amp;gt; /dev/nvme0n1p2 Finally enroll the TPM again.
systemd-cryptenroll --tpm2-device=auto /dev/nvme0n1p2</description></item></channel></rss>