| serendipity_daniel-lange.com.rss2.xml - sfeed_tests - sfeed tests and RSS and Atom files | |||
| git clone git://git.codemadness.org/sfeed_tests (git://git.codemadness.org) | |||
| Log | |||
| Files | |||
| Refs | |||
| README | |||
| LICENSE | |||
| --- | |||
| serendipity_daniel-lange.com.rss2.xml (168624B) | |||
| --- | |||
| 1 <?xml version="1.0" encoding="utf-8" ?> | |||
| 2 <rss version="2.0" | |||
| 3 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |||
| 4 xmlns:admin="http://webns.net/mvcb/" | |||
| 5 xmlns:dc="http://purl.org/dc/elements/1.1/" | |||
| 6 xmlns:slash="http://purl.org/rss/1.0/modules/slash/" | |||
| 7 xmlns:wfw="http://wellformedweb.org/CommentAPI/" | |||
| 8 xmlns:content="http://purl.org/rss/1.0/modules/content/" | |||
| 9 > | |||
| 10 <channel> | |||
| 11 | |||
| 12 <title>Daniel Lange's blog</title> | |||
| 13 <link>https://daniel-lange.com/</link> | |||
| 14 <description>agrep -pB IT /dev/life</description> | |||
| 15 <dc:language>en</dc:language> | |||
| 16 <generator>Serendipity 2.3.5 - http://www.s9y.org/</generator> | |||
| 17 <pubDate>Tue, 13 Apr 2021 10:53:26 GMT</pubDate> | |||
| 18 | |||
| 19 <image> | |||
| 20 <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url> | |||
| 21 <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title> | |||
| 22 <link>https://daniel-lange.com/</link> | |||
| 23 <width>144</width> | |||
| 24 <height>234</height> | |||
| 25 </image> | |||
| 26 | |||
| 27 <item> | |||
| 28 <title>The Stallman wars</title> | |||
| 29 <link>https://daniel-lange.com/archives/171-The-Stallman-wars.html</link> | |||
| 30 <category>Open Source</category> | |||
| 31 | |||
| 32 <comments>https://daniel-lange.com/archives/171-The-Stallman-wars.html#comments</comments> | |||
| 33 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=171</wfw:comment> | |||
| 34 | |||
| 35 <slash:comments>5</slash:comments> | |||
| 36 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=171</wfw:commentRss> | |||
| 37 | |||
| 38 | |||
| 39 <author>nospam@example.com (Daniel Lange)</author> | |||
| 40 <content:encoded> | |||
| 41 <p>So, 2021 isn't bad enough yet, but don't despair, people are working to fix that:</p> | |||
| 42 | |||
| 43 <p style="margin: 1.2cm; font-weight: bold;">Welcome to the Stallman wars</p> | |||
| 44 | |||
| 45 <p>Team Cancel: <a href="https://rms-open-letter.github.io/">https://rms-open-letter.github.io/</a> (<a href="https://github.com/rms-open-letter/rms-open-letter.github.io/">repo</a>)</p> | |||
| 46 | |||
| 47 <p>Team Support: <a href="https://rms-support-letter.github.io/">https://rms-support-letter.github.io/</a> (<a href="https://github.com/rms-support-letter/rms-support-letter.github.io/">repo</a>)</p> | |||
| 48 | |||
| 49 <p>Current stats are:</p> | |||
| 50 | |||
| 51 <pre> | |||
| 52 Team Cancel: 3020 signers from 1414 individual commit authors | |||
| 53 Team Support: 6774 signers from 5392 individual commit authors | |||
| 54 </pre> | |||
| 55 | |||
| 56 <p>Git shortlog (Top 10):</p> | |||
| 57 | |||
| 58 <pre> | |||
| 59 rms_cancel.git (Last update: 2021-06-21 16:05:07 (UTC)) | |||
| 60 1230 Neil McGovern | |||
| 61 251 Joan Touzet | |||
| 62 99 Elana Hashman | |||
| 63 73 Molly de Blanc | |||
| 64 36 Shauna | |||
| 65 19 Juke | |||
| 66 18 Stefano Zacchiroli | |||
| 67 17 Alexey Mirages | |||
| 68 16 Devin Halladay | |||
| 69 14 Nader Jafari | |||
| 70 | |||
| 71 rms_support.git (Last update: 2021-06-28 04:52:17 (UTC)) | |||
| 72 1815 shenlebantongying | |||
| 73 1584 nukeop | |||
| 74 1560 Ivanq | |||
| 75 1035 Victor | |||
| 76 876 Job Bautista | |||
| 77 123 nekonee | |||
| 78 101 Victor Gridnevsky | |||
| 79 41 Patrick Spek | |||
| 80 25 Borys Kabakov | |||
| 81 17 KIM Taeyeob | |||
| 82 </pre> | |||
| 83 | |||
| 84 <p>(last updated 2021-06-28 05:05:22 (UTC))</p> | |||
| 85 | |||
| 86 <p>Technical info:<br /> | |||
| 87 Signers are counted from their "Signed / Individuals" sections. Commits are counted with <code>git shortlog -s</code>.<br /> | |||
| 88 Team Cancel also has organizational signatures with Mozilla, Suse and X.Org being among the notable signatories. | |||
| 89 The 16 original signers of the Cancel petition are added in their count. | |||
| 90 Neil McGovern, Juke and shenlebantongying need <code>.mailmap</code> support as they have committed with different names.</p> | |||
| 91 | |||
| 92 <p>Further reading:</p> | |||
| 93 | |||
| 94 <ul> | |||
| 95 <li>An introductory <a href="https://arstechnica.com/tech-policy/2021/03/free-software-advocates-seek-removal-of-richard-stallman-and-entire-fsf-board/">Ars Technica article</a> in case you wonder what this is all about.</li> | |||
| 96 <li>Debian vote mailing-list: <a href="https://lists.debian.org/debian-vote/2021/03/maillist.html">March 2021</a>, <a href="https://lists.debian.org/debian-vote/2021/04/maillist.html">April 2021</a></li> | |||
| 97 <li>NYT Magazine on the <a href="https://www.nytimes.com/2020/12/03/t-magazine/cancel-culture-history.html">history of cancel culture</a></li> | |||
| 98 <li>Ed Santos' <a href="https://edsantos.eu/on-stalman/">commentary and analysis</a></li> | |||
| 99 </ul> | |||
| 100 | |||
| 101 <p>12.04.2021 statements from the accused:</p> | |||
| 102 | |||
| 103 <ul> | |||
| 104 <li><a href="https://www.fsf.org/news/statement-of-fsf-board-on-election-of-richard-stallman">Statement of the FSF board on the election</a></li> | |||
| 105 <li><a href="https://www.fsf.org/news/rms-addresses-the-free-software-community">Statement of Richard Stallman</a></li> | |||
| 106 </ul> | |||
| 107 | |||
| 108 <p>18.04.2021 Debian General Resolution</p> | |||
| 109 | |||
| 110 <p>The Debian General Resolution (GR) vote of the developers has concluded to not issue a public statement at all, see | |||
| 111 <a href="https://www.debian.org/vote/2021/vote_002#outcome">https://www.debian.org/vote/2021/vote_002#outcome</a> for the results.</p> | |||
| 112 | |||
| 113 <blockquote> | |||
| 114 <p>It is better to keep quiet and seem ignorant than to speak up and remove all doubt.</p> | |||
| 115 </blockquote> | |||
| 116 | |||
| 117 <p>See <a href="https://quoteinvestigator.com/2010/05/17/remain-silent/">Quote Investigator</a> for the many people that rephrased these words over the centuries. | |||
| 118 They still need to be recalled more often as too many people in the FLOSS community have forgotten about that wisdom...</p> | |||
| 119 | |||
| 120 </content:encoded> | |||
| 121 | |||
| 122 <pubDate>Fri, 26 Mar 2021 11:05:00 +0100</pubDate> | |||
| 123 <guid isPermaLink="false">https://daniel-lange.com/archives/171-guid.html</guid> | |||
| 124 <category>fsf</category> | |||
| 125 <category>gnu</category> | |||
| 126 <category>politics</category> | |||
| 127 <category>updated</category> | |||
| 128 | |||
| 129 </item> | |||
| 130 <item> | |||
| 131 <title>Compiling and installing the Gentoo Linux kernel on emerge without genkernel (part 2)</title> | |||
| 132 <link>https://daniel-lange.com/archives/170-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-2.html</link> | |||
| 133 <category>Gentoo</category> | |||
| 134 | |||
| 135 <comments>https://daniel-lange.com/archives/170-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-2.html#comments</comments> | |||
| 136 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=170</wfw:comment> | |||
| 137 | |||
| 138 <slash:comments>1</slash:comments> | |||
| 139 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=170</wfw:commentRss> | |||
| 140 | |||
| 141 | |||
| 142 <author>nospam@example.com (Daniel Lange)</author> | |||
| 143 <content:encoded> | |||
| 144 <p>The first install of a Gentoo kernel needs to be somewhat manual if you want to optimize the kernel for the (virtual) system it boots on.</p> | |||
| 145 | |||
| 146 <p>In <a href="https://daniel-lange.com/archives/169-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-1.html">part 1</a> I laid out how to improve the subsequent emerges of <code>sys-kernel/gentoo-sources</code> with a small drop in script to build the kernel as part of the ebuild.</p> | |||
| 147 | |||
| 148 <p>Since end of last year Gentoo also supports <a href="https://wiki.gentoo.org/wiki/Project:Distribution_Kernel">a less manual way</a> of emerging a kernel:</p> | |||
| 149 | |||
| 150 <p>The following kernel blends are available:</p> | |||
| 151 | |||
| 152 <ul> | |||
| 153 <li>sys-kernel/gentoo-kernel (the Gentoo kernel you can configure and compile locally - typically this is what you want if you run Gentoo)</li> | |||
| 154 <li>sys-kernel/gentoo-kernel-bin (a pre-compiled Gentoo kernel similar to what genkernel would get you)</li> | |||
| 155 <li>sys-kernel/vanilla-kernel (the upstream Linux kernel, again configurable and locally compiled)</li> | |||
| 156 </ul> | |||
| 157 | |||
| 158 <p>So a quick walk-through for the <code>gentoo-kernel</code> variant:</p> | |||
| 159 | |||
| 160 <h2>1. Set up the correct package USE flags</h2> | |||
| 161 | |||
| 162 <p>We do not want an initrd and we want our own config to be re-used so:</p> | |||
| 163 | |||
| 164 <div class="bash geshi" style="text-align: left"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;sys-kernel/gentoo-kernel -initramfs savedconfig&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage<span style="color: #000000; font-weight: bold;">/</span>package.use<span style="color: #000000; font-weight: bold;">/</span>gentoo-kernel</div> | |||
| 165 | |||
| 166 <h2>2. Preseed the saved config</h2> | |||
| 167 | |||
| 168 <p>The current kernel config needs to be saved as the initial <code>savedconfig</code> so it is found and applied for our emerge below:</p> | |||
| 169 | |||
| 170 <div class="bash geshi" style="text-align: left"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage<span style="color: #000000; font-weight: bold;">/</span>savedconfig<span style="color: #000000; font-weight: bold;">/</span>sys-kernel<br /><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;/usr/src/linux-<span style="color: #007800;">$(uname -r)</span>/.config&quot;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage<span style="color: #000000; font-weight: bold;">/</span>savedconfig<span style="color: #000000; font-weight: bold;">/</span>sys-kernel<span style="color: #000000; font-weight: bold;">/</span>gentoo-kernel</div> | |||
| 171 | |||
| 172 <h2>3. Emerge the new kernel</h2> | |||
| 173 | |||
| 174 <div class="bash geshi" style="text-align: left">emerge sys-kernel<span style="color: #000000; font-weight: bold;">/</span>gentoo-kernel</div> | |||
| 175 | |||
| 176 <h2>4. Update grub and reboot</h2> | |||
| 177 | |||
| 178 <p>Unfortunately this ebuild does not update grub, so we have to run <code>grub-mkconfig</code> manually. This can again be automated via a <code>post_pkg_postinst()</code> script. See the step 7 below.</p> | |||
| 179 | |||
| 180 <p>But for now, let's do it manually:</p> | |||
| 181 | |||
| 182 <div class="bash geshi" style="text-align: left">grub-mkconfig <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>grub.cfg<br /><span style="color: #666666; font-style: italic;"># All fine? Time to reboot the machine:</span><br />reboot</div> | |||
| 183 | |||
| 184 <h2>5. (Optional) Prepare for the next kernel build</h2> | |||
| 185 | |||
| 186 <p>Run <code>etc-update</code> and merge the new kernel config entries into your <code>savedconfig</code>.</p> | |||
| 187 | |||
| 188 <p><!-- s9ymdb:674 --><img class="serendipity_image_center" width="717" height="380" src="https://daniel-lange.com/uploads/entries/gentoo_sys-kernel_etc-update.png" alt="Screenshot of etc-update"></p> | |||
| 189 | |||
| 190 <p>The kernel should auto-build once new versions become available via portage.</p> | |||
| 191 | |||
| 192 <p>Again the <code>etc-update</code> can be automated if you feel that is sufficiently safe to do in your environment. See step 7 below for details.</p> | |||
| 193 | |||
| 194 <h2>6. (Optional) Remove the old kernel sources</h2> | |||
| 195 | |||
| 196 <p>If you want to switch from the method based on <code>gentoo-sources</code> to the <code>gentoo-kernel</code> one, you can remove the kernel sources:</p> | |||
| 197 | |||
| 198 <div class="bash geshi" style="text-align: left">emerge <span style="color: #660033;">-C</span> <span style="color: #ff0000;">&quot;=sys-kernel/gentoo-sources-5*&quot;</span></div> | |||
| 199 | |||
| 200 <p>Be sure to update the <code>/usr/src/linux</code> symlink to the new kernel sources directory from <code>gentoo-kernel</code>, e.g.:</p> | |||
| 201 | |||
| 202 <div class="bash geshi" style="text-align: left"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux; <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;/usr/src/<span style="color: #007800;">$(uname -r)</span>&quot;</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>linux</div> | |||
| 203 | |||
| 204 <p>This may be a good time for a bit more house-keeping: Clean up a bit in <code>/usr/src/</code> to remove old build artefacts, <code>/boot/</code> to remove old kernels and <code>/lib/modules/</code> to get rid of old kernel modules.</p> | |||
| 205 | |||
| 206 <h2>7. (Optional) Further automate the ebuild</h2> | |||
| 207 | |||
| 208 <p>In <a href="https://daniel-lange.com/archives/169-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-1.html">part 1</a> we automated the kernel compile, install and a bit more via a helper function for <code>post_pkg_postinst()</code>.</p> | |||
| 209 | |||
| 210 <p>We can do the similarly for what is (currently) missing from the <code>gentoo-kernel</code> ebuilds:</p> | |||
| 211 | |||
| 212 <p>Create <code>/etc/portage/env/sys-kernel/gentoo-kernel</code> with the following:</p> | |||
| 213 | |||
| 214 <div class="bash geshi" style="text-align: left">post_pkg_postinst<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />&#160; &#160; &#160; &#160; etc-update <span style="color: #660033;">--automode</span> <span style="color: #660033;">-5</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage<span style="color: #000000; font-weight: bold;">/</span>savedconfig<span style="color: #000000; font-weight: bold;">/</span>sys-kernel<br />&#160; &#160; &#160; &#160; grub-mkconfig <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>grub.cfg<br /><span style="color: #7a0874; font-weight: bold;">&#125;</span></div> | |||
| 215 | |||
| 216 <p>The upside of <code>gentoo-kernel</code> over <code>gentoo-sources</code> is that you can put "config override files" in <code>/etc/kernel/config.d/</code>. That way you theoretically profit from config improvements made by the upstream developers. See the <a href="https://wiki.gentoo.org/wiki/Project:Distribution_Kernel">Gentoo distribution kernel documentation</a> for a sample snippet. I am fine with <code>savedconfig</code> for now but it is nice that Gentoo provides the flexibility to support both approaches.</p> | |||
| 217 | |||
| 218 </content:encoded> | |||
| 219 | |||
| 220 <pubDate>Wed, 03 Feb 2021 13:52:00 +0100</pubDate> | |||
| 221 <guid isPermaLink="false">https://daniel-lange.com/archives/170-guid.html</guid> | |||
| 222 <category>emerge</category> | |||
| 223 <category>kernel</category> | |||
| 224 <category>postinst</category> | |||
| 225 | |||
| 226 </item> | |||
| 227 <item> | |||
| 228 <title>Compiling and installing the Gentoo Linux kernel on emerge without genkernel (part 1)</title> | |||
| 229 <link>https://daniel-lange.com/archives/169-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-1.html</link> | |||
| 230 <category>Gentoo</category> | |||
| 231 | |||
| 232 <comments>https://daniel-lange.com/archives/169-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-1.html#comments</comments> | |||
| 233 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=169</wfw:comment> | |||
| 234 | |||
| 235 <slash:comments>1</slash:comments> | |||
| 236 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=169</wfw:commentRss> | |||
| 237 | |||
| 238 | |||
| 239 <author>nospam@example.com (Daniel Lange)</author> | |||
| 240 <content:encoded> | |||
| 241 <p>Gentoo emerges of <code>sys-kernel/gentoo-sources</code> will nicely install the current kernel into <code>/usr/src/linux-*</code> but it will not compile them.</p> | |||
| 242 | |||
| 243 <p>The Gentoo wiki kernel documentation has a <a href="https://wiki.gentoo.org/wiki/Kernel/Upgrade#Automated_build_and_installation">script snippet</a> to automate the kernel build with <code>genkernel</code>.</p> | |||
| 244 | |||
| 245 <p>I do not like to use <code>genkernel</code> as it brings in lots of firmware files to build initrds that are not needed on virtual hardware. It also makes building the kernel slower.</p> | |||
| 246 | |||
| 247 <p>So, the plain approach:</p> | |||
| 248 | |||
| 249 <p>Make <code>emerge sys-kernel/gentoo-sources</code> symlink the latest kernel to | |||
| 250 <code>/usr/src/linux</code> so we can find it easily:</p> | |||
| 251 | |||
| 252 <div class="bash geshi" style="text-align: left"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;sys-kernel/gentoo-sources symlink&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>portage<span style="color: #000000; font-weight: bold;">/</span>package.use<span style="color: #000000; font-weight: bold;">/</span>gentoo-sources</div> | |||
| 253 | |||
| 254 <p>Create <code>/etc/portage/env/sys-kernel/gentoo-sources</code> with the following:</p> | |||
| 255 | |||
| 256 <div class="bash geshi" style="text-align: left">post_pkg_postinst<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span><br />&#160; &#160; &#160; &#160; <span style="color: #007800;">CURRENT_KV</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />&#160; &#160; &#160; &#160; <span style="color: #7a0874; font-weight: bold;">unset</span> ARCH<br />&#160; &#160; &#160; &#160; <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux-<span style="color: #007800;">${CURRENT_KV}</span>/.config&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux-<span style="color: #007800;">${CURRENT_KV}</span>/.config&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux/.config&quot;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux/&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> \<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #c20cb9; font-weight: bold;">make</span> olddefconfig <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> \<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-j5</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> modules_install <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> \<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; grub-mkconfig <span style="color: #660033;">-o</span> <span style="color: #000000; font-weight: bold;">/</span>boot<span style="color: #000000; font-weight: bold;">/</span>grub<span style="color: #000000; font-weight: bold;">/</span>grub.cfg<br />&#160; &#160; &#160; &#160; <span style="color: #000000; font-weight: bold;">fi</span><br /><span style="color: #7a0874; font-weight: bold;">&#125;</span></div> | |||
| 257 | |||
| 258 <p>This will compile the next kernel on the basis of the config of the currently running kernel, install the modules and the kernel bzImage and update grub so it knows about the new kernel for the next reboot.</p> | |||
| 259 | |||
| 260 <p>If you forget to unset <code>ARCH</code> the Linux build system will complain like:</p> | |||
| 261 | |||
| 262 <pre> | |||
| 263 Makefile:583: arch/amd64/Makefile: No such file or directory | |||
| 264 make: *** No rule to make target 'arch/amd64/Makefile'. Stop. | |||
| 265 </pre> | |||
| 266 | |||
| 267 <p>You can test the new magic by re-emerging the latest kernel, e.g. currently | |||
| 268 <code>emerge =sys-kernel/gentoo-sources-5.4.80-r1</code>:</p> | |||
| 269 | |||
| 270 <p><!-- s9ymdb:673 --><img class="serendipity_image_center" width="975" height="1064" src="https://daniel-lange.com/uploads/entries/gentoo_kernel_compile_in_emerge.png" title="Gentoo emerge with embedded kernel compile" alt=""></p> | |||
| 271 | |||
| 272 </content:encoded> | |||
| 273 | |||
| 274 <pubDate>Thu, 28 Jan 2021 10:45:00 +0100</pubDate> | |||
| 275 <guid isPermaLink="false">https://daniel-lange.com/archives/169-guid.html</guid> | |||
| 276 <category>emerge</category> | |||
| 277 <category>kernel</category> | |||
| 278 <category>postinst</category> | |||
| 279 | |||
| 280 </item> | |||
| 281 <item> | |||
| 282 <title>Installing System Rescue (CD) to a flash drive</title> | |||
| 283 <link>https://daniel-lange.com/archives/168-Installing-System-Rescue-CD-to-a-flash-drive.html</link> | |||
| 284 <category>Linux</category> | |||
| 285 | |||
| 286 <comments>https://daniel-lange.com/archives/168-Installing-System-Rescue-CD-to-a-flash-drive.html#comments</comments> | |||
| 287 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=168</wfw:comment> | |||
| 288 | |||
| 289 <slash:comments>0</slash:comments> | |||
| 290 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=168</wfw:commentRss> | |||
| 291 | |||
| 292 | |||
| 293 <author>nospam@example.com (Daniel Lange)</author> | |||
| 294 <content:encoded> | |||
| 295 <p><a href="https://www.system-rescue.org/">System Rescue</a>, the project formerly known as <a href="https://en.wikipedia.org/wiki/SystemRescue">System Rescue CD</a>, has moved from being based on Gentoo to being built on Arch Linux packages.</p> | |||
| 296 | |||
| 297 <p>With this their ISO layout changed substantially so when updating my trusty recue USB flash drive, I could not just update the kernel, initrd and the root filesystem image as I had typically done every other year before.</p> | |||
| 298 | |||
| 299 <p>The <a href="https://www.system-rescue.org/Installing-SystemRescue-on-a-USB-memory-stick/">"Installing on a USB memory stick"</a> documentation is good for Windows (use <a href="https://rufus.ie/">Rufus</a>, it's nice) but rather useless for Linux. They recommend a <code>dd</code> or the fancy graphical version of that, called <code>usbimager</code>.</p> | |||
| 300 | |||
| 301 <p>I much prefer to have a flash drive that I can write to over an image of a CD (ISO) written 1:1 onto the flash media.</p> | |||
| 302 | |||
| 303 <p>The basic idea is to use the bulk of the System Rescue ISO contents but amend these with your own grub and syslinux so they work as intended over the supplied ones that are bound to the ISO layout a bit too much.</p> | |||
| 304 | |||
| 305 <p>I did this on Debian Buster but with some adjustments to paths and what packages to install, any recent Linux distribution should do:</p> | |||
| 306 <a class="block_level" href="https://daniel-lange.com/archives/168-Installing-System-Rescue-CD-to-a-flash-drive.html#extended">Continue reading "Installing System Rescue (CD) to a flash drive"</a> | |||
| 307 </content:encoded> | |||
| 308 | |||
| 309 <pubDate>Wed, 27 Jan 2021 13:47:00 +0100</pubDate> | |||
| 310 <guid isPermaLink="false">https://daniel-lange.com/archives/168-guid.html</guid> | |||
| 311 <category>archlinux</category> | |||
| 312 <category>boot</category> | |||
| 313 <category>flash</category> | |||
| 314 <category>gentoo</category> | |||
| 315 <category>iso</category> | |||
| 316 <category>sysconfig</category> | |||
| 317 | |||
| 318 </item> | |||
| 319 <item> | |||
| 320 <title>No CCC Congress this year but rC3 online</title> | |||
| 321 <link>https://daniel-lange.com/archives/167-No-CCC-Congress-this-year-but-rC3-online.html</link> | |||
| 322 <category>Other</category> | |||
| 323 | |||
| 324 <comments>https://daniel-lange.com/archives/167-No-CCC-Congress-this-year-but-rC3-online.html#comments</comments> | |||
| 325 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=167</wfw:comment> | |||
| 326 | |||
| 327 <slash:comments>0</slash:comments> | |||
| 328 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=167</wfw:commentRss> | |||
| 329 | |||
| 330 | |||
| 331 <author>nospam@example.com (Daniel Lange)</author> | |||
| 332 <content:encoded> | |||
| 333 <p>The virtual version of the annual CCC Congress is underway and feels like a huge playground. Things are bumpy but the participants are still having fun. Of course, we have IRC as a safe heaven. That always works.</p> | |||
| 334 | |||
| 335 <p>The virtual world (which is the only thing the sold out tickets are needed for) is really fun. It feels like debugging a DOS game in the 80/90s. Not much works but it is engaging enough to keep poking at things.</p> | |||
| 336 | |||
| 337 <p><!-- s9ymdb:669 --><img class="serendipity_image_left" width="2068" height="1054" src="https://daniel-lange.com/uploads/entries/rc3_world.png" alt=""></p> | |||
| 338 | |||
| 339 <p>The data formats are 2020 though, the main <a href="https://lobby.maps.at.rc3.world/main.json">"lobby map"</a> is a 3 MB json file:</p> | |||
| 340 | |||
| 341 <pre> | |||
| 342 { "compressionlevel":-1, | |||
| 343 "editorsettings": | |||
| 344 { | |||
| 345 "export": | |||
| 346 { | |||
| 347 "format":"json", | |||
|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, | |||
| 366 ... | |||
| 367 </pre> | |||
| 368 | |||
| 369 <p>People that hand-optimized <a href="https://en.wikipedia.org/wiki/Run-length_encoding">RLEs</a> to fit games on <a href="https://en.wikipedia.org/wiki/Floppy_disk" title="This link is a courtesy to those born this millennium...">floppies</a> cry a little.</p> | |||
| 370 | |||
| 371 <p>The streams are free (as in public), so please check <a href="https://streaming.media.ccc.de/">https://streaming.media.ccc.de/</a> and the schedule at <a href="https://fahrplan.events.ccc.de/rc3/2020/Fahrplan/">https://fahrplan.events.ccc.de/rc3/2020/Fahrplan/</a> for some great content to watch live or add to your play list.</p> | |||
| 372 | |||
| 373 </content:encoded> | |||
| 374 | |||
| 375 <pubDate>Mon, 28 Dec 2020 16:30:00 +0100</pubDate> | |||
| 376 <guid isPermaLink="false">https://daniel-lange.com/archives/167-guid.html</guid> | |||
| 377 <category>conference</category> | |||
| 378 <category>json</category> | |||
| 379 <category>retro</category> | |||
| 380 <category>video</category> | |||
| 381 <category>web</category> | |||
| 382 | |||
| 383 </item> | |||
| 384 <item> | |||
| 385 <title>No dog food today - the Linux Foundation annual report</title> | |||
| 386 <link>https://daniel-lange.com/archives/166-No-dog-food-today-the-Linux-Foundation-annual-report.html</link> | |||
| 387 <category>Strategy</category> | |||
| 388 | |||
| 389 <comments>https://daniel-lange.com/archives/166-No-dog-food-today-the-Linux-Foundation-annual-report.html#comments</comments> | |||
| 390 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=166</wfw:comment> | |||
| 391 | |||
| 392 <slash:comments>5</slash:comments> | |||
| 393 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=166</wfw:commentRss> | |||
| 394 | |||
| 395 | |||
| 396 <author>nospam@example.com (Daniel Lange)</author> | |||
| 397 <content:encoded> | |||
| 398 <p>The Linux Foundation has published its <a href="https://www.linuxfoundation.org/wp-content/uploads/2020/11/2020-Linux-Foundation-Annual-Report_113020.pdf">annual report</a> today. LWN <a href="https://lwn.net/Articles/838871">calls it glossy</a> and yeah, boy, it is shiny.</p> | |||
| 399 | |||
| 400 <p>So shiny that people that work in the publishing industry immediately see this has been produced with the Adobe toolchain which - unfortunately - is one of the big suites of software not yet available for Linux.</p> | |||
| 401 | |||
| 402 <p>Checking the PDF file metadata reveals the keywords "open source, open standards, open hardware, open data". That is what the Linux Foundation is about. Good stuff.</p> | |||
| 403 | |||
| 404 <p><!-- s9ymdb:667 --><img class="serendipity_image_center" width="552" height="676" src="https://daniel-lange.com/uploads/entries/Linux-Foundation-Annual-Report-2020-cover.jpg" title="Mouseovers are for xkcd!" alt="Linux Foundation annual report 2020 cover"></p> | |||
| 405 | |||
| 406 <p>The PDF producer meta data for the annual report PDF has been set to "Linux kernel 0.12.1 for Workgroups" and the PDF creator meta data element to "Sharp Zaurus XR-5000 (Maemo5) Edition". Somebody thought to better hide the real data and had some tongue-in-cheek ideas. Kudos.</p> | |||
| 407 | |||
| 408 <p>But nicer would have been to use Open Source software to produce the report, not?</p> | |||
| 409 | |||
| 410 <p>Running <code>strings 2020-Linux-Foundation-Annual-Report_113020.pdf | grep Adobe | wc -l</code> gives us 1229 lines and confirms the suspicion of the toolchain.</p> | |||
| 411 | |||
| 412 <p>A stale <code>/Title (Annual Report 2020) /Producer (macOS Version 10.15.7 \(Build 19H15\) Quartz PDFContext)</code> has been forgotten in the document to tell us about the platform.</p> | |||
| 413 | |||
| 414 <p>So, ladies and gentlemen, the Linux Foundation 2020 annual report has been produced on a Mac.</p> | |||
| 415 | |||
| 416 <p>Running Adobe Creative Cloud on MacOS Catalina 10.15.7.</p> | |||
| 417 | |||
| 418 <p>Which is proprietary software. Its kernel (and some userland pieces) are based on BSD. Not Linux.</p> | |||
| 419 | |||
| 420 <hr /> | |||
| 421 | |||
| 422 <p>The image on the front page also struck me as a bit odd ... using a ballpoint pen on the laptop screen?</p> | |||
| 423 | |||
| 424 <p>Unbranded laptop. | |||
| 425 Unbranded cup in the foreground.</p> | |||
| 426 | |||
| 427 <p>Kid in the background <em>not</em> paying attention to his tablet.</p> | |||
| 428 | |||
| 429 <p>All of that cries stock image so loud it hurts.</p> | |||
| 430 | |||
| 431 <p>Google currently finds ~560 uses of the picture and any <a href="https://www.shutterstock.com/support/article/Do-I-need-to-credit-Shutterstock-the-artist-when-I-use-Images-or-Footage">editorial use</a> nicely tells us that it is &copy; <a href="https://www.shutterstock.com/de/g/draganagordic">Dragana Gordic / Shutterstock</a>.</p> | |||
| 432 | |||
| 433 <p>The image is "Smiling mom working at home with her child on the sofa while writing an email. Young woman working from home, while in quarantine isolation during the Covid-19 health crisis".</p> | |||
| 434 | |||
| 435 <p>See the <a href="https://www.dailymail.co.uk/news/article-8683629/Staff-working-home-nearly-extra-hour-day-research-shows-send-emails.html">Daily Mail</a> for a wonderful example of the working mum in context. I hope, if her laptop had been powered on, it would have run Linux. I mean, what else would still run on an old white MacBook with an Intel "Core 2 Duo" processor from 2008?</p> | |||
| 436 | |||
| 437 <p><!-- s9ymdb:668 --><img class="serendipity_image_center" width="504" height="742" src="https://daniel-lange.com/uploads/entries/DailyMail-screenshot-stock-image.png" title="O.k., here you go: Shiny, too!" alt="Daily Mail screenshot of the same stock image used"></p> | |||
| 438 <a class="block_level" href="https://daniel-lange.com/archives/166-No-dog-food-today-the-Linux-Foundation-annual-report.html#extended">Continue reading "No dog food today - the Linux Foundation annual report"</a> | |||
| 439 </content:encoded> | |||
| 440 | |||
| 441 <pubDate>Thu, 03 Dec 2020 23:18:00 +0100</pubDate> | |||
| 442 <guid isPermaLink="false">https://daniel-lange.com/archives/166-guid.html</guid> | |||
| 443 <category>bsd</category> | |||
| 444 <category>dogfood</category> | |||
| 445 <category>dtp</category> | |||
| 446 <category>linux</category> | |||
| 447 <category>mac</category> | |||
| 448 <category>macos</category> | |||
| 449 | |||
| 450 </item> | |||
| 451 <item> | |||
| 452 <title>Git shared hosting quirk</title> | |||
| 453 <link>https://daniel-lange.com/archives/165-Git-shared-hosting-quirk.html</link> | |||
| 454 <category>IT</category> | |||
| 455 | |||
| 456 <comments>https://daniel-lange.com/archives/165-Git-shared-hosting-quirk.html#comments</comments> | |||
| 457 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=165</wfw:comment> | |||
| 458 | |||
| 459 <slash:comments>0</slash:comments> | |||
| 460 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=165</wfw:commentRss> | |||
| 461 | |||
| 462 | |||
| 463 <author>nospam@example.com (Daniel Lange)</author> | |||
| 464 <content:encoded> | |||
| 465 <p>Show <a href="https://github.com/torvalds/linux/blob/b4061a10fc29010a610ff2b5b20160d7335e69bf/drivers/hid/hid-samsung.c#L113-L118">https://github.com/torvalds/linux/blob/b4061a10fc29010a610ff2b5b20160d7335e69bf/drivers/hid/hid-samsung.c#L113-L118</a> to a friend.</p> | |||
| 466 | |||
| 467 <p>Oops 'eh? Yep, Linux has been backdoored.</p> | |||
| 468 | |||
| 469 <p>Well, or not.</p> | |||
| 470 | |||
| 471 <p><a href="https://mricon.com/">Konstantin Ryabitsev</a> explains it nicely in a <a href="https://lists.zx2c4.com/pipermail/cgit/2020-October/004571.html">cgit mailing list email</a>:</p> | |||
| 472 | |||
| 473 <blockquote> | |||
| 474 It is common for git hosting environments to configure all forks of the | |||
| 475 same repo to use an "object storage" repository. For example, this is | |||
| 476 what allows git.kernel.org's 600+ forks of linux.git to take up only | |||
| 477 10GB on disk as opposed to 800GB. | |||
| 478 | |||
| 479 One of the side-effects of this setup is that any object in the shared | |||
| 480 repository can be accessed from any of the forks, which periodically | |||
| 481 confuses people into believing that something terrible has happened. | |||
| 482 </blockquote> | |||
| 483 | |||
| 484 <p>The hack was <a href="https://github.com/torvalds/linux/commit/b4061a10fc29010a610ff2b5b20160d7335e69bf#diff-b2b8b8422630002a41cf5901247f9a6af2cc8d000fc792ef7aae9ea1f393f8b4">discussed on Github in Dec 2018</a> | |||
| 485 when it was discovered. I forgot about it again but Konstantin's mail brought the memory back and I think it deserves more attention.</p> | |||
| 486 | |||
| 487 <p>I'm sure putting some illegal content into a fork and sending a made up "blob" URL to law enforcement would go quite far. | |||
| 488 Good luck explaining the issue. <i>"Yes this is my repo"</i> but <i>"no, no that's not my data"</i> ... <i>"yes, it <u>is</u> my repo but not my data"</i> ... <i>"no we don't want that data either, really"</i> ... <i>"but, but there is nothing we can do, we host on github...<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup>"</i>.</p> | |||
| 489 | |||
| 490 <h3>Update</h3> | |||
| 491 | |||
| 492 <p>05.11.20 Nate Friedman (CEO of Github) <a href="https://news.ycombinator.com/item?id=24995121">promises</a></p> | |||
| 493 | |||
| 494 <blockquote>[..] we are going to make it much more obvious when you're viewing an orphaned commit.</blockquote> | |||
| 495 | |||
| 496 <p>For context: The source code of Github (the product) had been leaked as a <a href="https://web.archive.org/web/20201104050026/https://github.com/github/dmca/tree/565ece486c7c1652754d7b6d2b5ed9cb4097f9d5">commit to Github's own DMCA repository</a>. The repository has turned into a <a href="https://github.com/github/dmca/pull/8148">playground</a> since Github took down the hosting for <code>youtube-dl</code> as the result of a <a href="https://github.com/github/dmca/blob/18429823a5404ff7d9f6f0418588d8a48b81f671/2020/10/2020-10-23-RIAA.md">DMCA complaint</a>.</p> | |||
| 497 | |||
| 498 <p>14.11.20 Seems Github now adds a warning to commits that are not in a reachable branch | |||
| 499 <!-- s9ymdb:665 --><img class="serendipity_image_center" width="789" height="85" src="https://daniel-lange.com/uploads/entries/201114_Github_commit_warning_message.png" alt="Github commit warning message" style="border:0px; display: inline;"></p> | |||
| 500 | |||
| 501 <div class="footnotes"> | |||
| 502 <hr /> | |||
| 503 <ol> | |||
| 504 | |||
| 505 <li id="fn:1"> | |||
| 506 <p>Actually there is something you can do. Making a repo private takes it out of the shared "object storage". You can make it public again afterwards. Seems to work at least for now.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p> | |||
| 507 </li> | |||
| 508 | |||
| 509 </ol> | |||
| 510 </div> | |||
| 511 | |||
| 512 </content:encoded> | |||
| 513 | |||
| 514 <pubDate>Wed, 28 Oct 2020 22:30:00 +0100</pubDate> | |||
| 515 <guid isPermaLink="false">https://daniel-lange.com/archives/165-guid.html</guid> | |||
| 516 <category>git</category> | |||
| 517 <category>github</category> | |||
| 518 <category>hacking</category> | |||
| 519 <category>linux</category> | |||
| 520 <category>updated</category> | |||
| 521 | |||
| 522 </item> | |||
| 523 <item> | |||
| 524 <title>Getting rid of the Google cookie consent popup</title> | |||
| 525 <link>https://daniel-lange.com/archives/164-Getting-rid-of-the-Google-cookie-consent-popup.html</link> | |||
| 526 <category>Internet</category> | |||
| 527 | |||
| 528 <comments>https://daniel-lange.com/archives/164-Getting-rid-of-the-Google-cookie-consent-popup.html#comments</comments> | |||
| 529 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=164</wfw:comment> | |||
| 530 | |||
| 531 <slash:comments>38</slash:comments> | |||
| 532 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=164</wfw:commentRss> | |||
| 533 | |||
| 534 | |||
| 535 <author>nospam@example.com (Daniel Lange)</author> | |||
| 536 <content:encoded> | |||
| 537 <p>If you clear your browser cookies regularly (as you should do), Google will annoy you with a full screen cookie consent overlay these days. And - of course - there is no "no tracking consent, technically required cookies only" button. You may log in to Google to set your preference. Yeah, I'm sure this is totally following the intent of the <a href="https://eur-lex.europa.eu/eli/dir/2009/136/2009-12-19">EU Directive 2009/136/EC</a> (the "cookie law").</p> | |||
| 538 | |||
| 539 <p><!-- s9ymdb:664 --><img class="serendipity_image_center" width="1332" height="1066" src="https://daniel-lange.com/uploads/entries/200918_Google_cookie_consent_screen.png" alt="Google cookie consent pop-up"></p> | |||
| 540 | |||
| 541 <p>Unfortunately none of the big "anti-annoyances" filter lists seem to have picked that one up yet but the friendly folks from the <a href="https://www.computerbase.de/forum/threads/google-nervt-bevor-sie-fortfahren.1968809/">Computerbase Forum</a> [German] to the rescue. User "Sepp Depp" has created the base of the following filter set that <abbr title="Works For Me">WFM</abbr> (updated since):</p> | |||
| 542 | |||
| 543 <p>Add this to your <a href="https://github.com/gorhill/uBlock">uBlock Origin</a> "My filters" tab:</p> | |||
| 544 | |||
| 545 <pre> | |||
| 546 ! Google - remove cookie-consent-popup and restore scroll functionality | |||
| 547 ! Updated 24.04.2021 | |||
| 548 google.*##.wwYr3.aID8W.bErdLd | |||
| 549 google.*##.aID8W.m114nf.t7xA6 | |||
| 550 google.*##.jw8mI | |||
| 551 google.*##.vUd4jb | |||
| 552 google.*##div[jsname][jsaction^="dg_close"] | |||
| 553 google.*##html:style(overflow: visible scroll !important;) | |||
| 554 google.*##.widget-consent-fullscreen.widget-consent | |||
| 555 | |||
| 556 ! And for Youtube | |||
| 557 ! Updated 13.04.2021 | |||
| 558 www.youtube.com###dialog | |||
| 559 www.youtube.com##ytd-popup-container.ytd-app.style-scope | |||
| 560 www.youtube.com##tp-yt-iron-overlay-backdrop | |||
| 561 </pre> | |||
| 562 | |||
| 563 </content:encoded> | |||
| 564 | |||
| 565 <pubDate>Fri, 18 Sep 2020 11:15:00 +0200</pubDate> | |||
| 566 <guid isPermaLink="false">https://daniel-lange.com/archives/164-guid.html</guid> | |||
| 567 <category>annoying</category> | |||
| 568 <category>consent</category> | |||
| 569 <category>cookies</category> | |||
| 570 <category>google</category> | |||
| 571 <category>policy</category> | |||
| 572 <category>popup</category> | |||
| 573 <category>regulation</category> | |||
| 574 <category>updated</category> | |||
| 575 | |||
| 576 </item> | |||
| 577 <item> | |||
| 578 <title>Upgrading Limesurvey with (near) zero downtime</title> | |||
| 579 <link>https://daniel-lange.com/archives/162-Upgrading-Limesurvey-with-near-zero-downtime.html</link> | |||
| 580 <category>Open Source</category> | |||
| 581 | |||
| 582 <comments>https://daniel-lange.com/archives/162-Upgrading-Limesurvey-with-near-zero-downtime.html#comments</comments> | |||
| 583 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=162</wfw:comment> | |||
| 584 | |||
| 585 <slash:comments>0</slash:comments> | |||
| 586 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=162</wfw:commentRss> | |||
| 587 | |||
| 588 | |||
| 589 <author>nospam@example.com (Daniel Lange)</author> | |||
| 590 <content:encoded> | |||
| 591 <p>Limesurvey is an online survey tool. It is very powerful and commonly used in academic environments because it is Free Software (GPLv2+), allows for local installations protecting the data of participants and allowing to comply with data protection regulations. This also means there are typically no load-balanced multi-server szenarios with HA databases. But simple VMs where Limesurvey runs and needs upgrading in place.</p> | |||
| 592 | |||
| 593 <p>There's an LTS branch (currently 3.x) and a stable branch (currently 4.x). There's also a 2.06 LTS branch that is restricted to paying customers. The main developers behind Limesurvey offer many services from template design to custom development to support to hosting ("Cloud", "Limesurvey Pro"). Unfortunately they also charge for easy updates called "ComfortUpdate" (currently 39€ for three months) and the manual process is made a bit cumbersome to make the "ComfortUpdate" offer more attractive.</p> | |||
| 594 | |||
| 595 <p>Due to Limesurvey being an old code base and UI elements not being clearly separated, most serious use cases will end up patching files and symlinking logos around template directories. That conflicts a bit with the opaque "ComfortUpdate" process where you push a button and then magic happens. Or you have downtime and a recovery case while surveys are running.</p> | |||
| 596 | |||
| 597 <p>If you do not intend to use the "ComfortUpdate" offering, you can prevent Limesurvey from connecting to <code>http://comfortupdate.limesurvey.org</code> daily by adding the <code>updatable</code> stanza as in <strong>line 14</strong> to <code>limesurvey/application/config/config.php</code>:</p> | |||
| 598 | |||
| 599 <div class="php geshi" style="text-align: left"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #b1b100;">return</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160;<span style="color: #009900;">&#91;</span><span style="color: #339933;">...</span><span style="color: #009900;">&#93;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; &#160;<span style="color: #666666; font-style: italic;">// Use the following config variable to set modified optional settings copied from config-defaults.php</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; <span style="color: #0000ff;">'config'</span><span style="color: #339933;">=&gt;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; <span style="color: #666666; font-style: italic;">// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; <span style="color: #666666; font-style: italic;">// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; <span style="color: #666666; font-style: italic;">// on your webspace.</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; <span style="color: #666666; font-style: italic;">// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0000ff;">'debug'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0000ff;">'debugsql'</span><span style="color: #339933;">=&gt;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// Set this to 1 to enanble sql logging, only active when debug = 2</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #666666; font-style: italic;">// Mysql database engine (INNODB|MYISAM):</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;<span style="color: #0000ff;">'mysqlEngine'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'MYISAM'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #339933;">,</span> &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #666666; font-style: italic;">// Update default LimeSurvey config here</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #0000ff;">'updatable'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160; &#160; &#160; &#160; <span style="color: #009900;">&#41;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></li></ol></div> | |||
| 600 | |||
| 601 <p>The <strong>comma</strong> on <strong>line 13</strong> is placed like that in the current default limesurvey <code>config.php</code>, don't let yourself get confused. | |||
| 602 Every item in a php array must end with a comma. It can be on the next line.</p> | |||
| 603 | |||
| 604 <p>The basic principle of low risk, near-zero downtime, in-place upgrades is:</p> | |||
| 605 | |||
| 606 <ol> | |||
| 607 <li>Create a diff between the current release and the target release</li> | |||
| 608 <li>Inspect the diff</li> | |||
| 609 <li>Make backups of the application webroot</li> | |||
| 610 <li>Patch a copy of the application in-place</li> | |||
| 611 <li>(optional) stop the web server</li> | |||
| 612 <li>Make a backup of the production database</li> | |||
| 613 <li>Move the patched application to the production webroot</li> | |||
| 614 <li>(if 5) Start the webserver</li> | |||
| 615 <li>Upgrade the database (if needed)</li> | |||
| 616 <li>Check the application</li> | |||
| 617 </ol> | |||
| 618 | |||
| 619 <p>So, in detail:</p> | |||
| 620 <a class="block_level" href="https://daniel-lange.com/archives/162-Upgrading-Limesurvey-with-near-zero-downtime.html#extended">Continue reading "Upgrading Limesurvey with (near) zero downtime"</a> | |||
| 621 </content:encoded> | |||
| 622 | |||
| 623 <pubDate>Sun, 21 Jun 2020 21:38:00 +0200</pubDate> | |||
| 624 <guid isPermaLink="false">https://daniel-lange.com/archives/162-guid.html</guid> | |||
| 625 <category>apache</category> | |||
| 626 <category>diff</category> | |||
| 627 <category>limesurvey</category> | |||
| 628 <category>patch</category> | |||
| 629 <category>production</category> | |||
| 630 <category>update</category> | |||
| 631 <category>updated</category> | |||
| 632 <category>web</category> | |||
| 633 | |||
| 634 </item> | |||
| 635 <item> | |||
| 636 <title>I think we need more creativity in statistics</title> | |||
| 637 <link>https://daniel-lange.com/archives/161-I-think-we-need-more-creativity-in-statistics.html</link> | |||
| 638 <category>Fun</category> | |||
| 639 | |||
| 640 <comments>https://daniel-lange.com/archives/161-I-think-we-need-more-creativity-in-statistics.html#comments</comments> | |||
| 641 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=161</wfw:comment> | |||
| 642 | |||
| 643 <slash:comments>0</slash:comments> | |||
| 644 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=161</wfw:commentRss> | |||
| 645 | |||
| 646 | |||
| 647 <author>nospam@example.com (Daniel Lange)</author> | |||
| 648 <content:encoded> | |||
| 649 <p>" <em>'Boa constrictors swallow their prey whole, without chewing it. After that they are not able to move, and they sleep through the six months that they need for digestion.'</em></p> | |||
| 650 | |||
| 651 <p>I pondered deeply, then, over the adventures of the jungle. And after some work with a colored pencil I succeeded in making my first drawing.</p> | |||
| 652 | |||
| 653 <p>My Drawing Number One.</p> | |||
| 654 | |||
| 655 <p>It looked something like this:</p> | |||
| 656 | |||
| 657 <p><!-- s9ymdb:660 --><img class="serendipity_image_center" width="635" height="257" src="https://daniel-lange.com/uploads/entries/Antoine_de_Saint_Exupery_Boa_1.png" alt="Boa Constrictor by Antoine de Saint Exupéry"></p> | |||
| 658 | |||
| 659 <p>I showed my masterpiece to the grown-ups, and asked them whether the drawing frightened them.</p> | |||
| 660 | |||
| 661 <p>But they answered: <em>'Frighten? Why should any one be frightened by a hat?'</em></p> | |||
| 662 | |||
| 663 <p>My drawing was not a picture of a hat. It was a picture of a boa constrictor digesting an elephant. But since the grown-ups were not able to understand it, I made another drawing: I drew the inside of a boa constrictor, so that the grown-ups could see it clearly. They always need to have things explained.</p> | |||
| 664 | |||
| 665 <p>My Drawing Number Two looked like this:</p> | |||
| 666 | |||
| 667 <p><!-- s9ymdb:661 --><img class="serendipity_image_center" width="635" height="223" src="https://daniel-lange.com/uploads/entries/Antoine_de_Saint_Exupery_Boa_2.png" alt="Boa Constrictor in sectional drawing by Antoine de Saint Exupéry"></p> | |||
| 668 | |||
| 669 <p>The grown-ups' response, this time, was to advise me to lay aside my drawings of boa constrictors, whether from the inside or the outside, and devote myself instead to geography, history, arithmetic, and grammar.</p> | |||
| 670 | |||
| 671 <p>That is why, at the age of six, I gave up what might have been a magnificent career as a painter. I had been disheartened by the failure of my Drawing Number One and my Drawing Number Two.</p> | |||
| 672 | |||
| 673 <p>Grown-ups never understand anything by themselves, and it is tiresome for children to be always and forever explaining things to them."</p> | |||
| 674 | |||
| 675 <p>from <em>The Little Prince</em> by <em>Antoine de Saint Exupéry</em></p> | |||
| 676 | |||
| 677 <p>&#160;</p> | |||
| 678 | |||
| 679 <p><!-- s9ymdb:662 --><img class="serendipity_image_center" width="635" height="354" src="https://daniel-lange.com/uploads/entries/Worldometers_Corona_cases_Germany.png" alt="Outcome of Cases (Recovery or Death) in Germany by Worldometers"></p> | |||
| 680 | |||
| 681 <p>from the <em>Corona Fun with Statistics department</em> at <em>Worldometers</em> | |||
| 682 (<a href="https://www.worldometers.info/coronavirus/country/germany/" title="Link to source page at Worldometers">source</a>, <a href="https://web.archive.org/web/20200414082232/https://www.worldometers.info/coronavirus/country/germany/" title="Archive.org capture of the Worldometers page at 14.04.2020">archive.org link</a>)</p> | |||
| 683 | |||
| 684 </content:encoded> | |||
| 685 | |||
| 686 <pubDate>Tue, 14 Apr 2020 10:42:00 +0200</pubDate> | |||
| 687 <guid isPermaLink="false">https://daniel-lange.com/archives/161-guid.html</guid> | |||
| 688 <category>art</category> | |||
| 689 <category>fun</category> | |||
| 690 <category>literature</category> | |||
| 691 <category>math</category> | |||
| 692 <category>science</category> | |||
| 693 <category>statistics</category> | |||
| 694 | |||
| 695 </item> | |||
| 696 <item> | |||
| 697 <title>Fixing the Nextcloud menu to show more than eight application icons</title> | |||
| 698 <link>https://daniel-lange.com/archives/160-Fixing-the-Nextcloud-menu-to-show-more-than-eight-application-icons.html</link> | |||
| 699 <category>Internet</category> | |||
| 700 | |||
| 701 <comments>https://daniel-lange.com/archives/160-Fixing-the-Nextcloud-menu-to-show-more-than-eight-application-icons.html#comments</comments> | |||
| 702 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=160</wfw:comment> | |||
| 703 | |||
| 704 <slash:comments>5</slash:comments> | |||
| 705 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=160</wfw:commentRss> | |||
| 706 | |||
| 707 | |||
| 708 <author>nospam@example.com (Daniel Lange)</author> | |||
| 709 <content:encoded> | |||
| 710 <p>I have been late to adopt an on-premise cloud solution as the security of Owncloud a few years ago wasn't so stellar (cf. my comment from 2013 in <a href="https://daniel-lange.com/archives/83-Encrypting-files-with-gpg-for-synchronization-across-the-Internet.html#fn:1">Encryption files ... for synchronization across the Internet</a>). But the follow-up product Nextcloud has matured quite nicely and we use it for collaboration both in the company and in FLOSS related work at multiple nonprofit organizations.</p> | |||
| 711 | |||
| 712 <p>There is a very annoying "feature" in Nextcloud though that the designers think menu items for apps at the top need to be limited to eight or less to <a href="https://github.com/nextcloud/server/issues/13079#issuecomment-486574596">prevent information overload in the header</a>. The whole item discussion is worth reading as it it an archetypical example of design prevalence vs. user choice.</p> | |||
| 713 | |||
| 714 <p>And of course designers think they are right. That's a feature of the trade.<br /> | |||
| 715 And because they know better there is no user configurable option to extend that 8 items to may be 12 or so which would prevent the annoying overflow menu we are seeing with 10 applications in use:</p> | |||
| 716 | |||
| 717 <p><!-- s9ymdb:658 --><img class="serendipity_image_center" width="631" height="252" src="https://daniel-lange.com/uploads/entries/200313_Nextcloud_Menu_overflow_items.png" title="Designers say you get overwhelmed if the additional items were not hidden in the three dot overflow menu..." alt="Screenshot of stock Nextcloud menu"></p> | |||
| 718 | |||
| 719 <p>Luckily code can be changed and there are many comments floating around the Internet to change <a href="https://help.nextcloud.com/search?expanded=true&amp;q=minAppsDesktop"><code>const minAppsDesktop = 8</code></a>. In this case it is slightly complicated by the fact that the javascript code is distributed in compressed form (aka "minified") as <code>core/js/dist/main.js</code> and you probably don't want to build the whole beast locally to change one constant.</p> | |||
| 720 | |||
| 721 <p>Basically</p> | |||
| 722 | |||
| 723 <div class="javascript geshi" style="text-align: left"><span style="color: #000066; font-weight: bold;">const</span> breakpoint_mobile_width <span style="color: #339933;">=</span> <span style="color: #CC0000;">1024</span><span style="color: #339933;">;</span><br /><br /><span style="color: #000066; font-weight: bold;">const</span> resizeMenu <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> appList <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#appmenu li'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> rightHeaderWidth <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.header-right'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> headerWidth <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'header'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> usePercentualAppMenuLimit <span style="color: #339933;">=</span> <span style="color: #CC0000;">0.33</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> minAppsDesktop <span style="color: #339933;">=</span> <span style="color: #CC0000;">8</span><br />&#160; &#160; let availableWidth <span style="color: #339933;">=</span> headerWidth <span style="color: #339933;">-</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#nextcloud'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #009900;">&#40;</span>rightHeaderWidth <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">210</span> <span style="color: #339933;">?</span> rightHeaderWidth <span style="color: #339933;">:</span> <span style="color: #CC0000;">210</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> isMobile <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&lt;</span> breakpoint_mobile_width<br />&#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>isMobile<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; availableWidth <span style="color: #339933;">=</span> availableWidth <span style="color: #339933;">*</span> usePercentualAppMenuLimit<br />&#160; &#160; <span style="color: #009900;">&#125;</span><br />&#160; &#160; let appCount <span style="color: #339933;">=</span> <span style="">Math</span>.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>availableWidth <span style="color: #339933;">/</span> $<span style="color: #009900;">&#40;</span>appList<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>isMobile <span style="color: #339933;">&amp;&amp;</span> appCount <span style="color: #339933;">&gt;</span> minAppsDesktop<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; appCount <span style="color: #339933;">=</span> minAppsDesktop<br />&#160; &#160; <span style="color: #009900;">&#125;</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>isMobile <span style="color: #339933;">&amp;&amp;</span> appCount <span style="color: #339933;">&lt;</span> minAppsDesktop<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; appCount <span style="color: #339933;">=</span> minAppsDesktop<br />&#160; &#160; <span style="color: #009900;">&#125;</span><br /><br />&#160; &#160; <span style="color: #006600; font-style: italic;">// show at least 2 apps in the popover</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>appList.<span style="color: #660066;">length</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span> <span style="color: #339933;">-</span> appCount <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; appCount<span style="color: #339933;">--</span><br />&#160; &#160; <span style="color: #009900;">&#125;</span><br /><br />&#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#more-apps a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; let lastShownApp<br />&#160; &#160; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span>let k <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> k <span style="color: #339933;">&lt;</span> appList.<span style="color: #660066;">length</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> k<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; <span style="color: #000066; font-weight: bold;">const</span> name <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>appList<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>k <span style="color: #339933;">&lt;</span> appCount<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span>appList<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#apps li[data-id='</span> <span style="color: #339933;">+</span> name <span style="color: #339933;">+</span> <span style="color: #3366CC;">']'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; lastShownApp <span style="color: #339933;">=</span> appList<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><br />&#160; &#160; &#160; &#160; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span>appList<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#apps li[data-id='</span> <span style="color: #339933;">+</span> name <span style="color: #339933;">+</span> <span style="color: #3366CC;">']'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #006600; font-style: italic;">// move active app to last position if it is active</span><br />&#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>appCount <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&amp;&amp;</span> $<span style="color: #009900;">&#40;</span>appList<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span>lastShownApp<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#apps li[data-id='</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span>lastShownApp<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">']'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span>appList<span style="color: #009900;">&#91;</span>k<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#apps li[data-id='</span> <span style="color: #339933;">+</span> name <span style="color: #339933;">+</span> <span style="color: #3366CC;">']'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; &#160; &#160; <span style="color: #009900;">&#125;</span><br />&#160; &#160; &#160; &#160; <span style="color: #009900;">&#125;</span><br />&#160; &#160; <span style="color: #009900;">&#125;</span><br /><br />&#160; &#160; <span style="color: #006600; font-style: italic;">// show/hide more apps icon</span><br />&#160; &#160; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#apps li:not(.in-header)'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">===</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#more-apps'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#navigation'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span><br />&#160; &#160; &#160; &#160; $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#more-apps'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />&#160; &#160; <span style="color: #009900;">&#125;</span><br /><span style="color: #009900;">&#125;</span></div> | |||
| 724 | |||
| 725 <p>gets compressed during build time to become part of one 15,000+ character line. The relevant portion reads:</p> | |||
| 726 | |||
| 727 <div class="javascript geshi" style="text-align: left"><span style="color: #000066; font-weight: bold;">var</span> f<span style="color: #339933;">=</span><span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">var</span> e<span style="color: #339933;">=</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#appmenu li&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>t<span style="color: #339933;">=</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.header-right&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>n<span style="color: #339933;">=</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;header&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nextcloud&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-</span><span style="color: #009900;">&#40;</span>t<span style="color: #339933;">&gt;</span><span style="color: #CC0000;">210</span><span style="color: #339933;">?</span>t<span style="color: #339933;">:</span><span style="color: #CC0000;">210</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>i<span style="color: #339933;">=</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&lt;</span><span style="color: #CC0000;">1024</span><span style="color: #339933;">;</span>i<span style="color: #339933;">||</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">*=</span>.33<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000066; font-weight: bold;">var</span> r<span style="color: #339933;">,</span>o<span style="color: #339933;">=</span><span style="">Math</span>.<span style="color: #660066;">floor</span><span style="color: #009900;">&#40;</span>n<span style="color: #339933;">/</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&amp;&amp;</span>o<span style="color: #339933;">&gt;</span><span style="color: #CC0000;">8</span><span style="color: #339933;">&amp;&amp;</span><span style="color: #009900;">&#40;</span>o<span style="color: #339933;">=</span><span style="color: #CC0000;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,!</span>i<span style="color: #339933;">&amp;&amp;</span>o<span style="color: #339933;">&lt;</span><span style="color: #CC0000;">8</span><span style="color: #339933;">&amp;&amp;</span><span style="color: #009900;">&#40;</span>o<span style="color: #339933;">=</span><span style="color: #CC0000;">8</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>e.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">-</span>o<span style="color: #339933;">&gt;=</span><span style="color: #CC0000;">1</span><span style="color: #339933;">&amp;&amp;</span>o<span style="color: #339933;">--,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#more-apps a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">var</span> a<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>a<span style="color: #339933;">&lt;</span>e.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>a<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">var</span> l<span style="color: #339933;">=</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>a<span style="color: #339933;">&lt;</span>o<span style="color: #339933;">?</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#apps li[data-id=&quot;</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;in-header&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>r<span style="color: #339933;">=</span>e<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#apps li[data-id=&quot;</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;in-header&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>o<span style="color: #339933;">&gt;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">&amp;&amp;</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;active&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;&amp;</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>r<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#apps li[data-id=&quot;</span><span style="color: #339933;">+</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>r<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">data</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;in-header&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#91;</span>a<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hidden&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#apps li[data-id=&quot;</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;]&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;in-header&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">===</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#apps li:not(.in-header)&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span><span style="color: #339933;">?</span><span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#more-apps&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#navigation&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>s<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#more-apps&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span></div> | |||
| 728 | |||
| 729 <p>Well, we can still patch that, can we?</p> | |||
| 730 <a class="block_level" href="https://daniel-lange.com/archives/160-Fixing-the-Nextcloud-menu-to-show-more-than-eight-application-icons.html#extended">Continue reading "Fixing the Nextcloud menu to show more than eight application icons"</a> | |||
| 731 </content:encoded> | |||
| 732 | |||
| 733 <pubDate>Fri, 13 Mar 2020 17:00:00 +0100</pubDate> | |||
| 734 <guid isPermaLink="false">https://daniel-lange.com/archives/160-guid.html</guid> | |||
| 735 <category>badchoices</category> | |||
| 736 <category>design</category> | |||
| 737 <category>javascript</category> | |||
| 738 <category>nextcloud</category> | |||
| 739 <category>patch</category> | |||
| 740 <category>updated</category> | |||
| 741 | |||
| 742 </item> | |||
| 743 <item> | |||
| 744 <title>Cleaning a broken GnuPG (gpg) key</title> | |||
| 745 <link>https://daniel-lange.com/archives/159-Cleaning-a-broken-GnuPG-gpg-key.html</link> | |||
| 746 <category>IT</category> | |||
| 747 | |||
| 748 <comments>https://daniel-lange.com/archives/159-Cleaning-a-broken-GnuPG-gpg-key.html#comments</comments> | |||
| 749 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=159</wfw:comment> | |||
| 750 | |||
| 751 <slash:comments>7</slash:comments> | |||
| 752 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=159</wfw:commentRss> | |||
| 753 | |||
| 754 | |||
| 755 <author>nospam@example.com (Daniel Lange)</author> | |||
| 756 <content:encoded> | |||
| 757 <p>I've long said that the main tools in the Open Source security space, OpenSSL and GnuPG (gpg), <a href="https://daniel-lange.com/archives/105-Security-is-hard,-open-source-security-unnecessarily-harder.html">are broken</a> and only a complete re-write will solve this. And that is still pending as nobody came forward with the funding. It's not a sexy topic, so it has to get really bad before it'll get better.</p> | |||
| 758 | |||
| 759 <p>Gpg has a UI that is <a href="https://daniel-lange.com/archives/83-Encrypting-files-with-gpg-for-synchronization-across-the-Internet.html">close to useless</a>. | |||
| 760 That won't substantially change with more bolted-on improvements.</p> | |||
| 761 | |||
| 762 <p>Now Robert J. Hansen and Daniel Kahn Gillmor had somebody add ~50k signatures (read <a href="https://gist.github.com/rjhansen/67ab921ffb4084c865b3618d6955275f" title="Robert J. Hansen: SKS Keyserver Network Under Attack">1</a>, <a href="https://gist.github.com/rjhansen/f716c3ff4a7068b50f2d8896e54e4b7e" title="Robert J. Hansen: SKS Keyserver Network Attack: Consequences">2</a>, <a href="https://dkg.fifthhorseman.net/blog/openpgp-certificate-flooding.html" title="Daniel Kahn Gillmor: OpenPGP Certificate Flooding">3</a>, <a href="https://dkg.fifthhorseman.net/blog/community-impact-openpgp-cert-flooding.html" title="Daniel Kahn Gillmor: Community Impact of OpenPGP Certificate Flooding">4</a> for the g{l}ory details) to their keys and - oops - they say that breaks gpg.</p> | |||
| 763 | |||
| 764 <p>But does it?</p> | |||
| 765 | |||
| 766 <p>I downloaded <a href="https://sks-keyservers.net/pks/lookup?op=vindex&amp;search=0xCC11BE7CBBED77B120F37B011DCBDC01B44427C7">Robert J. Hansen's key off the SKS-Keyserver network</a>. | |||
| 767 It's a nice 45MB file when de-ascii-armored (<code>gpg --dearmor broken_key.asc ; mv broken_key.asc.gpg broken_key.gpg</code>).</p> | |||
| 768 | |||
| 769 <p>Now a friendly:</p> | |||
| 770 | |||
| 771 <div class="bash geshi" style="text-align: left">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #660033;">-v</span> gpg <span style="color: #660033;">--no-default-keyring</span> <span style="color: #660033;">--keyring</span> .<span style="color: #000000; font-weight: bold;">/</span>broken_key.gpg <span style="color: #660033;">--batch</span> <span style="color: #660033;">--quiet</span> <span style="color: #660033;">--edit-key</span> 0x1DCBDC01B44427C7 clean save quit<br /><br />pub &#160;rsa3072<span style="color: #000000; font-weight: bold;">/</span>0x1DCBDC01B44427C7<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span> &#160;verfällt: niemals &#160; &#160; Nutzung: SC &#160;<br />&#160; &#160; &#160;Vertrauen: unbekannt &#160; &#160; Gültigkeit: unbekannt<br />sub &#160;ed25519<span style="color: #000000; font-weight: bold;">/</span>0xA83CAE94D3DC3873<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2017</span>-04-05 &#160;verfällt: niemals &#160; &#160; Nutzung: S &#160; <br />sub &#160;cv25519<span style="color: #000000; font-weight: bold;">/</span>0xAA24CC81B8AED08B<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2017</span>-04-05 &#160;verfällt: niemals &#160; &#160; Nutzung: E &#160; <br />sub &#160;rsa3072<span style="color: #000000; font-weight: bold;">/</span>0xDC0F82625FA6AADE<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span> &#160;verfällt: niemals &#160; &#160; Nutzung: E &#160; <br /><span style="color: #7a0874; font-weight: bold;">&#91;</span> unbekannt <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>. Robert J. Hansen <span style="color: #000000; font-weight: bold;">&lt;</span>rjh<span style="color: #000000; font-weight: bold;">@</span>sixdemonbag.org<span style="color: #000000; font-weight: bold;">&gt;</span><br /><span style="color: #7a0874; font-weight: bold;">&#91;</span> unbekannt <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> &#160;Robert J. Hansen <span style="color: #000000; font-weight: bold;">&lt;</span>rob<span style="color: #000000; font-weight: bold;">@</span>enigmail.net<span style="color: #000000; font-weight: bold;">&gt;</span><br /><span style="color: #7a0874; font-weight: bold;">&#91;</span> unbekannt <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> &#160;Robert J. Hansen <span style="color: #000000; font-weight: bold;">&lt;</span>rob<span style="color: #000000; font-weight: bold;">@</span>hansen.engineering<span style="color: #000000; font-weight: bold;">&gt;</span><br /><br />User-ID <span style="color: #ff0000;">&quot;Robert J. Hansen &lt;rjh@sixdemonbag.org&gt;&quot;</span>: <span style="color: #000000;">49705</span> Signaturen entfernt<br />User-ID <span style="color: #ff0000;">&quot;Robert J. Hansen &lt;rob@enigmail.net&gt;&quot;</span>: <span style="color: #000000;">49704</span> Signaturen entfernt<br />User-ID <span style="color: #ff0000;">&quot;Robert J. Hansen &lt;rob@hansen.engineering&gt;&quot;</span>: <span style="color: #000000;">49701</span> Signaturen entfernt<br /><br />pub &#160;rsa3072<span style="color: #000000; font-weight: bold;">/</span>0x1DCBDC01B44427C7<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span> &#160;verfällt: niemals &#160; &#160; Nutzung: SC &#160;<br />&#160; &#160; &#160;Vertrauen: unbekannt &#160; &#160; Gültigkeit: unbekannt<br />sub &#160;ed25519<span style="color: #000000; font-weight: bold;">/</span>0xA83CAE94D3DC3873<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2017</span>-04-05 &#160;verfällt: niemals &#160; &#160; Nutzung: S &#160; <br />sub &#160;cv25519<span style="color: #000000; font-weight: bold;">/</span>0xAA24CC81B8AED08B<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2017</span>-04-05 &#160;verfällt: niemals &#160; &#160; Nutzung: E &#160; <br />sub &#160;rsa3072<span style="color: #000000; font-weight: bold;">/</span>0xDC0F82625FA6AADE<br />&#160; &#160; &#160;erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span> &#160;verfällt: niemals &#160; &#160; Nutzung: E &#160; <br /><span style="color: #7a0874; font-weight: bold;">&#91;</span> unbekannt <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>. Robert J. Hansen <span style="color: #000000; font-weight: bold;">&lt;</span>rjh<span style="color: #000000; font-weight: bold;">@</span>sixdemonbag.org<span style="color: #000000; font-weight: bold;">&gt;</span><br /><span style="color: #7a0874; font-weight: bold;">&#91;</span> unbekannt <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> &#160;Robert J. Hansen <span style="color: #000000; font-weight: bold;">&lt;</span>rob<span style="color: #000000; font-weight: bold;">@</span>enigmail.net<span style="color: #000000; font-weight: bold;">&gt;</span><br /><span style="color: #7a0874; font-weight: bold;">&#91;</span> unbekannt <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> &#160;Robert J. Hansen <span style="color: #000000; font-weight: bold;">&lt;</span>rob<span style="color: #000000; font-weight: bold;">@</span>hansen.engineering<span style="color: #000000; font-weight: bold;">&gt;</span><br /><br />&#160; &#160; &#160; &#160; Command being timed: <span style="color: #ff0000;">&quot;gpg --no-default-keyring --keyring ./broken_key.gpg --batch --quiet --edit-key 0x1DCBDC01B44427C7 clean save quit&quot;</span><br />&#160; &#160; &#160; &#160; User <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>seconds<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">3911.14</span><br />&#160; &#160; &#160; &#160; System <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>seconds<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">2442.87</span><br />&#160; &#160; &#160; &#160; Percent of CPU this job got: <span style="color: #000000;">99</span><span style="color: #000000; font-weight: bold;">%</span><br />&#160; &#160; &#160; &#160; Elapsed <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">wall</span> clock<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>h:mm:ss or m:ss<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">1</span>:<span style="color: #000000;">45</span>:<span style="color: #000000;">56</span><br />&#160; &#160; &#160; &#160; Average shared text <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>kbytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Average unshared data <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>kbytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Average stack <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>kbytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Average total <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>kbytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Maximum resident <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>kbytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">107660</span><br />&#160; &#160; &#160; &#160; Average resident <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>kbytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Major <span style="color: #7a0874; font-weight: bold;">&#40;</span>requiring I<span style="color: #000000; font-weight: bold;">/</span>O<span style="color: #7a0874; font-weight: bold;">&#41;</span> page faults: <span style="color: #000000;">1</span><br />&#160; &#160; &#160; &#160; Minor <span style="color: #7a0874; font-weight: bold;">&#40;</span>reclaiming a frame<span style="color: #7a0874; font-weight: bold;">&#41;</span> page faults: <span style="color: #000000;">26630</span><br />&#160; &#160; &#160; &#160; Voluntary context switches: <span style="color: #000000;">43</span><br />&#160; &#160; &#160; &#160; Involuntary context switches: <span style="color: #000000;">59439</span><br />&#160; &#160; &#160; &#160; Swaps: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; File system inputs: <span style="color: #000000;">112</span><br />&#160; &#160; &#160; &#160; File system outputs: <span style="color: #000000;">48</span><br />&#160; &#160; &#160; &#160; Socket messages sent: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Socket messages received: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Signals delivered: <span style="color: #000000;">0</span><br />&#160; &#160; &#160; &#160; Page <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>: <span style="color: #000000;">4096</span><br />&#160; &#160; &#160; &#160; Exit status: <span style="color: #000000;">0</span><br />&#160;</div> | |||
| 772 | |||
| 773 <p>And the result is a nicely useable 3835 byte file of the clean public key. | |||
| 774 If you supply a keyring instead of <code>--no-default-keyring</code> it will also keep the non-self signatures that are useful for you (as you apparently know the signing party).</p> | |||
| 775 | |||
| 776 <p>So it does not break gpg. It does break things that call gpg at runtime and not asynchronously. I heard Enigmail is affected, quelle surprise.</p> | |||
| 777 | |||
| 778 <p>Now the main problem here is the runtime. 1h45min is just ridiculous. As <a href="https://twitter.com/FiloSottile/status/1145091106138394625" title="Filippo Valsorda: Twitter message">Filippo Valsorda puts it:</a></p> | |||
| 779 | |||
| 780 <blockquote> | |||
| 781 Someone added a few thousand entries to a list that lets anyone append to it. | |||
| 782 | |||
| 783 GnuPG, software supposed to defeat state actors, suddenly takes minutes to process entries. | |||
| 784 | |||
| 785 How big is that list you ask? 17 MiB. Not GiB, 17 MiB. Like a large picture. | |||
| 786 | |||
| 787 <a href="https://dev.gnupg.org/T4592" title="gpg bug tracker entry: gpg takes > 30s to list the keys from a 17MiB pubring.gpg that contains a single certificate">https://dev.gnupg.org/T4592</a> | |||
| 788 </blockquote> | |||
| 789 | |||
| 790 <p>If I were a gpg / SKS keyserver developer, I'd</p> | |||
| 791 | |||
| 792 <ul> | |||
| 793 <li>speed this up so the edit-key run above completes in less than 10 s (just getting rid of the lseek/read dance and deferring all time-based decisions should get close)</li> | |||
| 794 <li>(ideally) make the drop-sig import-filter syntax useful (date-ranges, non-reciprocal signatures, ...)</li> | |||
| 795 <li>clean affected keys on the SKS keyservers (needs coordination of sysops, drop servers from unreachable people)</li> | |||
| 796 <li>(ideally) use the opportunity to clean all <a href="https://github.com/yakamok/keyserver-fs">keyserver filesystem</a> and the <a href="https://www.quaxio.com/message_board_over_pgp_key_servers.html">message board over pgp key servers</a> keys, too</li> | |||
| 797 <li>only accept new keys and new signatures on keys extending the strong set (rather small change to the <a href="https://bitbucket.org/skskeyserver/sks-keyserver/src">existing codebase</a>)</li> | |||
| 798 </ul> | |||
| 799 | |||
| 800 <p>That way another key can only be added to the keyserver network if it contains at least one signature from a previously known <a href="https://pgp.cs.uu.nl/plot/" title="Henk P. Penning: analysis of the strong set in the PGP web of trust">strong-set</a> key. | |||
| 801 Attacking the keyserver network would become at least non-trivial. And the web-of-trust thing may make sense again.</p> | |||
| 802 | |||
| 803 <h2>Updates</h2> | |||
| 804 | |||
| 805 <p>09.07.2019</p> | |||
| 806 | |||
| 807 <p>GnuPG 2.2.17 has been <a href="https://lists.gnupg.org/pipermail/gnupg-announce/2019q3/000439.html">released</a> with another set of quickly bolted together fixes:</p> | |||
| 808 | |||
| 809 <pre> | |||
| 810 * gpg: Ignore all key-signatures received from keyservers. This | |||
| 811 change is required to mitigate a DoS due to keys flooded with | |||
| 812 faked key-signatures. The old behaviour can be achieved by adding | |||
| 813 keyserver-options no-self-sigs-only,no-import-clean | |||
| 814 to your gpg.conf. [#4607] | |||
| 815 * gpg: If an imported keyblocks is too large to be stored in the | |||
| 816 keybox (pubring.kbx) do not error out but fallback to an import | |||
| 817 using the options "self-sigs-only,import-clean". [#4591] | |||
| 818 * gpg: New command --locate-external-key which can be used to | |||
| 819 refresh keys from the Web Key Directory or via other methods | |||
| 820 configured with --auto-key-locate. | |||
| 821 * gpg: New import option "self-sigs-only". | |||
| 822 * gpg: In --auto-key-retrieve prefer WKD over keyservers. [#4595] | |||
| 823 * dirmngr: Support the "openpgpkey" subdomain feature from | |||
| 824 draft-koch-openpgp-webkey-service-07. [#4590]. | |||
| 825 * dirmngr: Add an exception for the "openpgpkey" subdomain to the | |||
| 826 CSRF protection. [#4603] | |||
| 827 * dirmngr: Fix endless loop due to http errors 503 and 504. [#4600] | |||
| 828 * dirmngr: Fix TLS bug during redirection of HKP requests. [#4566] | |||
| 829 * gpgconf: Fix a race condition when killing components. [#4577] | |||
| 830 </pre> | |||
| 831 | |||
| 832 <p><a href="https://dev.gnupg.org/T4607" title="GNUpg bug T4607">Bug T4607</a> shows that these changes are all but well thought-out. | |||
| 833 They introduce artificial limits, like 64kB for WKD-distributed keys or 5MB for local signature imports (<a href="https://dev.gnupg.org/T4591">Bug T4591</a>) which weaken the web-of-trust further.</p> | |||
| 834 | |||
| 835 <p>I recommend to not run gpg 2.2.17 in production environments without extensive testing as these limits and the unverified network traffic may bite you. Do validate your upgrade with valid <u>and</u> broken keys that have segments (packet groups) surpassing the above mentioned limits. You may be surprised what gpg does. On the upside: you can now refresh keys (sans signatures) via WKD. So if your buddies still believe in limiting their subkey validities, you can more easily update them bypassing the SKS keyserver network. NB: I have not tested that functionality. So test before deploying.</p> | |||
| 836 | |||
| 837 <p>10.08.2019</p> | |||
| 838 | |||
| 839 <p>Christopher Wellons (skeeto) has released his <a href="https://github.com/skeeto/pgp-poisoner">pgp-poisoner tool</a>. It is a go program that can add thousands of malicious signatures to a GNUpg key per second. He comments "[pgp-poisoner is] proof that such attacks are very easy to pull off. It doesn't take a nation-state actor to break the PGP ecosystem, just one person and couple evenings studying RFC 4880. This system is not robust." He also hints at the next likely attack vector, public subkeys can be bound to a primary key of choice.</p> | |||
| 840 | |||
| 841 </content:encoded> | |||
| 842 | |||
| 843 <pubDate>Tue, 02 Jul 2019 10:25:00 +0200</pubDate> | |||
| 844 <guid isPermaLink="false">https://daniel-lange.com/archives/159-guid.html</guid> | |||
| 845 <category>crypt</category> | |||
| 846 <category>gpg</category> | |||
| 847 <category>security</category> | |||
| 848 <category>updated</category> | |||
| 849 | |||
| 850 </item> | |||
| 851 <item> | |||
| 852 <title>Wiping harddisks in 2019</title> | |||
| 853 <link>https://daniel-lange.com/archives/157-Wiping-harddisks-in-2019.html</link> | |||
| 854 <category>Linux</category> | |||
| 855 | |||
| 856 <comments>https://daniel-lange.com/archives/157-Wiping-harddisks-in-2019.html#comments</comments> | |||
| 857 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=157</wfw:comment> | |||
| 858 | |||
| 859 <slash:comments>4</slash:comments> | |||
| 860 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=157</wfw:commentRss> | |||
| 861 | |||
| 862 | |||
| 863 <author>nospam@example.com (Daniel Lange)</author> | |||
| 864 <content:encoded> | |||
| 865 <p>Wiping hard disks is part of my company's policy when returning servers. No exceptions.</p> | |||
| 866 | |||
| 867 <p>Good providers will wipe what they have received back from a customer, but we don't trust that as the hosting / cloud business is under constant budget-pressure and cutting corners (<code>wipefs</code>) is a likely consequence.</p> | |||
| 868 | |||
| 869 <p>With modern SSDs there is "security erase" (<code>man hdparm</code> or see the - as always well maintained - <a href="https://wiki.archlinux.org/index.php/Solid_state_drive/Memory_cell_clearing">Arch wiki</a>) which is useful if the device is encrypt-by-default. These devices basically "forget" the encryption key but it also means trusting the devices' implementation security. Which <a href="https://www.tomshardware.com/news/crucial-samsung-ssd-encryption-bypassed,38025.html">doesn't seem warranted</a>. Still <em>after</em> wiping and trimming, a secure erase can't be a bad idea <img src="https://daniel-lange.com/plugins/serendipity_event_emoticate/img/emoticons/smile.png" alt=":-)" class="emoticon" />.</p> | |||
| 870 | |||
| 871 <p>Still there are three things to be aware of when wiping modern hard disks:</p> | |||
| 872 | |||
| 873 <ol> | |||
| 874 <li>Don't forget to add <code>bs=4096</code> (blocksize) to <code>dd</code> as it will still default to 512 bytes and that makes writing even zeros less than half the maximum possible speed. SSDs may benefit from larger block sizes matched to their flash page structure. These are usually 128kB, 256kB, 512kB, 1MB, 2MB and 4MB these days.<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></li> | |||
| 875 <li>All disks can usually be written to in parallel. <code>screen</code> is your friend.</li> | |||
| 876 <li>The write speed varies greatly by disk region, so use 2 hours per TB and wipe pass as a conservative estimate. This is better than extrapolating what you see initially in the fastest region of a spinning disk.</li> | |||
| 877 <li>The disks have become huge (we run 12TB disks in production now) but the write speed is still somewhere 100 MB/s ... 300 MB/s. So wiping servers on the last day before returning is not possible anymore with disks larger than 4 TB each (and three passes). Or 12 TB and one pass (where e.g. fully encrypted content allows to just do a final zero-wipe).</li> | |||
| 878 </ol> | |||
| 879 | |||
| 880 <p><style> | |||
| 881 table.blueTable { | |||
| 882 border: 1px solid #1C6EA4; | |||
| 883 background-color: #EEEEEE; | |||
| 884 text-align: center; | |||
| 885 border-collapse: collapse; | |||
| 886 } | |||
| 887 table.blueTable td, table.blueTable th { | |||
| 888 border: 1px solid #AAAAAA; | |||
| 889 padding: 3px 2px; | |||
| 890 } | |||
| 891 table.blueTable tbody td { | |||
| 892 font-size: 12px; | |||
| 893 } | |||
| 894 table.blueTable tr:nth-child(even) { | |||
| 895 background: #D0E4F5; | |||
| 896 } | |||
| 897 table.blueTable thead th { | |||
| 898 font-size: 12px; | |||
| 899 font-weight: bold; | |||
| 900 text-align: center; | |||
| 901 } | |||
| 902 table.blueTable thead th:first-child { | |||
| 903 border-left: none; | |||
| 904 } | |||
| 905 </style></p> | |||
| 906 | |||
| 907 <table class="blueTable"> | |||
| 908 <thead> | |||
| 909 <tr> | |||
| 910 <th>hard disk size</th> | |||
| 911 <th>one pass</th> | |||
| 912 <th>three passes</th> | |||
| 913 </tr> | |||
| 914 </thead> | |||
| 915 <tbody> | |||
| 916 <tr><td>1 TB</td><td>2 h</td><td>6 h</td></tr> | |||
| 917 <tr><td>2 TB</td><td>4 h</td><td>12 h</td></tr> | |||
| 918 <tr><td>3 TB</td><td>6 h</td><td>18 h</td></tr> | |||
| 919 <tr><td>4 TB</td><td>8 h</td><td>24 h (one day)</td></tr> | |||
| 920 <tr><td>5 TB</td><td>10 h</td><td>30 h</td></tr> | |||
| 921 <tr><td>6 TB</td><td>12 h</td><td>36 h</td></tr> | |||
| 922 <tr><td>8 TB</td><td>16 h</td><td>48 h (two days) </td></tr> | |||
| 923 <tr><td>10 TB</td><td>20 h</td><td>60 h</td></tr> | |||
| 924 <tr><td>12 TB</td><td>24 h</td><td>72 h (three days)</td></tr> | |||
| 925 <tr><td>14 TB</td><td>28 h</td><td>84 h</td></tr> | |||
| 926 <tr><td>16 TB</td><td>32 h</td><td>96 h (four days)</td></tr> | |||
| 927 <tr><td>18 TB</td><td>36 h</td><td>108 h</td></tr> | |||
| 928 <tr><td>20 TB</td><td>40 h</td><td>120 h (five days)</td></tr> | |||
| 929 | |||
| 930 </tbody> | |||
| 931 </tr> | |||
| 932 </table> | |||
| 933 | |||
| 934 <p><img class="serendipity_image_left" width="811" height="154" src="https://daniel-lange.com/uploads/entries/harddisk_wipe.gif" title="Hard disk wipe" alt="Hard disk wipe animation"></p> | |||
| 935 | |||
| 936 <div style="clear:both"></div> | |||
| 937 | |||
| 938 <div class="footnotes"> | |||
| 939 <hr /> | |||
| 940 <ol> | |||
| 941 | |||
| 942 <li id="fn:1"> | |||
| 943 <p>As Douglas pointed out correctly in the comment below, these are <strong>IT</strong> Kilobytes and Megabytes, so 2<sup>10</sup> Bytes and 2<sup>20</sup> Bytes. So <a href="https://en.wikipedia.org/wiki/Kibibyte" title="Saying Kibibyte makes me cringe every time. So I don't.">Kibibytes</a> and Mebibytes for those firmly in SI territory.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p> | |||
| 944 </li> | |||
| 945 | |||
| 946 </ol> | |||
| 947 </div> | |||
| 948 | |||
| 949 </content:encoded> | |||
| 950 | |||
| 951 <pubDate>Tue, 12 Mar 2019 09:55:00 +0100</pubDate> | |||
| 952 <guid isPermaLink="false">https://daniel-lange.com/archives/157-guid.html</guid> | |||
| 953 <category>data</category> | |||
| 954 <category>erase</category> | |||
| 955 <category>harddisk</category> | |||
| 956 <category>security</category> | |||
| 957 <category>ssd</category> | |||
| 958 <category>wipe</category> | |||
| 959 | |||
| 960 </item> | |||
| 961 <item> | |||
| 962 <title>Apple Time Machine backups on Debian 9 (Stretch)</title> | |||
| 963 <link>https://daniel-lange.com/archives/156-Apple-Time-Machine-backups-on-Debian-9-Stretch.html</link> | |||
| 964 <category>Debian</category> | |||
| 965 | |||
| 966 <comments>https://daniel-lange.com/archives/156-Apple-Time-Machine-backups-on-Debian-9-Stretch.html#comments</comments> | |||
| 967 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=156</wfw:comment> | |||
| 968 | |||
| 969 <slash:comments>1</slash:comments> | |||
| 970 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=156</wfw:commentRss> | |||
| 971 | |||
| 972 | |||
| 973 <author>nospam@example.com (Daniel Lange)</author> | |||
| 974 <content:encoded> | |||
| 975 <p>Netatalk 3.1.12 has been released which fixes an 18 year old <abbr title="(Unauthorized) Remote Code Execution">RCE</abbr> bug. The <a href="https://medium.com/tenable-techblog/exploiting-an-18-year-old-bug-b47afe54172" title="Medium post detailing the exploit vector">Medium write up</a> on <a href="https://www.tenable.com/security/research/tra-2018-48">CVE-2018-1160</a> by Jacob Baines is quite an entertaining read.</p> | |||
| 976 | |||
| 977 <p>The full <a href="http://netatalk.sourceforge.net/3.1/ReleaseNotes3.1.12.html" title="Release Notes / Changelog for Netatalk 3.1.12">release notes for 3.1.12</a> are unfortunately not even half as interesting.</p> | |||
| 978 | |||
| 979 <table> | |||
| 980 <tr><td> | |||
| 981 <img class="serendipity_image_noborder" width="48" height="48" hspace="20" src="https://daniel-lange.com/uploads/icons/markup/important.png" title="Warning: Read the original blog post before installing for the first time." alt="Warning: Read the original blog post before installing for the first time." /> | |||
| 982 </td> | |||
| 983 <td> | |||
| 984 Be sure to read the <a href="https://daniel-lange.com/archives/102-Apple-Timemachine-backups-on-Debian-8-Jessie.html" title="Blog entry: Apple Timemachine backups on Debian 8 Jessie">original blog post</a> if you are new to Netatalk3 on Debian Jessie or Stretch!<br /> | |||
| 985 You'll get nowhere if you install the .debs below and don't know about the upgrade path from 2.2.x which is still in the Debian archive. So <abbr title="Read The Fine Article">RTFA</abbr>. | |||
| 986 </td></tr></table> | |||
| 987 | |||
| 988 <p>For Debian Buster (Debian 10) we'll have Samba 4.9 which has learnt (from Samba 4.8.0 onwards) how to emulate a SMB time machine share. I'll make a write up how to install this once Buster stabilizes. This luckily means there will be no need to continue supporting Netatalk in normal production environments. So I guess <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690227">bug #690227</a> won't see a proper fix anymore. Waiting out problems helps at times, too :/.</p> | |||
| 989 | |||
| 990 <p>Update instructions and downloads:</p> | |||
| 991 <a class="block_level" href="https://daniel-lange.com/archives/156-Apple-Time-Machine-backups-on-Debian-9-Stretch.html#extended">Continue reading "Apple Time Machine backups on Debian 9 (Stretch)"</a> | |||
| 992 </content:encoded> | |||
| 993 | |||
| 994 <pubDate>Mon, 07 Jan 2019 14:59:00 +0100</pubDate> | |||
| 995 <guid isPermaLink="false">https://daniel-lange.com/archives/156-guid.html</guid> | |||
| 996 <category>apple</category> | |||
| 997 <category>backup</category> | |||
| 998 <category>debian</category> | |||
| 999 <category>netatalk</category> | |||
| 1000 <category>stretch</category> | |||
| 1001 <category>timemachine</category> | |||
| 1002 <category>updated</category> | |||
| 1003 | |||
| 1004 </item> | |||
| 1005 <item> | |||
| 1006 <title>Xfce 4.12 not suspending on laptop-lid close</title> | |||
| 1007 <link>https://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html</link> | |||
| 1008 <category>Linux</category> | |||
| 1009 | |||
| 1010 <comments>https://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html#comments</comments> | |||
| 1011 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=154</wfw:comment> | |||
| 1012 | |||
| 1013 <slash:comments>1</slash:comments> | |||
| 1014 <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&type=comments&cid=154</wfw:commentRss> | |||
| 1015 | |||
| 1016 | |||
| 1017 <author>nospam@example.com (Daniel Lange)</author> | |||
| 1018 <content:encoded> | |||
| 1019 <p>Xfce 4.12 as default in Ubuntu/Xubuntu 18.04 LTS did not suspend a laptop after closing the lid. In fact running | |||
| 1020 <code>xfce4-power-manager --quit ; xfce4-power-manager --no-daemon --debug</code> showed that xfce4 wasn't seeing a laptop lid close event at all.</p> | |||
| 1021 | |||
| 1022 <p>To the contrary <code>acpi_listen</code> nicely finds <code>button/lid LID close</code> and <code>button/lid LID open</code> events when folding the screen and opening it up again.</p> | |||
| 1023 | |||
| 1024 <p>As so often the wonderful docs / community of Arch Linux to the rescue. This <a href="https://bbs.archlinux.org/viewtopic.php?id=206840">forum thread</a> from 2015 received the correct answer in 2017:</p> | |||
| 1025 | |||
| 1026 <p>Xfce4 basically recognizes systemd and thus disables its built-in power-management options for handling these "button events" (but doesn't tell you so in the config UI for power-manager). Systemd is configured to handle these events by default (<code>/etc/systemd/logind.conf</code> has <code>HandleLidSwitch=suspend</code> but for unknown reasons decides not to honor that).</p> | |||
| 1027 | |||
| 1028 <p>So best is to teach Xfce4 to handle the events again as in pre-systemd times:</p> | |||
| 1029 | |||
| 1030 <p><code>xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false</code></p> | |||
| 1031 | |||
| 1032 <p>Now the UI options will work again as intended and the laptop suspends on lid close and resumes on lid open.</p> | |||
| 1033 | |||
| 1034 <h3>Update:</h3> | |||
| 1035 | |||
| 1036 <p>07.01.19: Changed XFCE -> Xfce as per Corsac's suggestion in the comments below. Thank you!</p> | |||
| 1037 | |||
| 1038 <p>Background info:</p> | |||
| 1039 | |||
| 1040 <blockquote> | |||
| 1041 The name "XFCE" was originally an acronym for "XForms Common Environment", but since that time it has been rewritten twice and no longer uses the XForms toolkit. The name survived, but it is no longer capitalized as "XFCE", but rather as "Xfce". The developers' current stance is that the initialism no longer stands for anything specific. After noting this, the FAQ on the Xfce Wiki comments "(suggestion: X Freakin' Cool Environment)". | |||
| 1042 </blockquote> | |||
| 1043 | |||
| 1044 <p>(quoted from <a href="https://en.wikipedia.org/wiki/Xfce#History">Wikipedia's Xfce article</a> also found in the <a href="https://docs.xfce.org/faq">Xfce docs FAQ</a>).</p> | |||
| 1045 | |||
| 1046 </content:encoded> | |||
| 1047 | |||
| 1048 <pubDate>Sat, 05 Jan 2019 16:15:00 +0100</pubDate> | |||
| 1049 <guid isPermaLink="false">https://daniel-lange.com/archives/154-guid.html</guid> | |||
| 1050 <category>config</category> | |||
| 1051 <category>hibernate</category> | |||
| 1052 <category>suspend</category> | |||
| 1053 <category>systemd</category> | |||
| 1054 <category>ubuntu</category> | |||
| 1055 <category>updated</category> | |||
| 1056 <category>xfce</category> | |||
| 1057 | |||
| 1058 </item> | |||
| 1059 | |||
| 1060 </channel> | |||
| 1061 </rss> |
Response: application/gopher-menu
| Original URL | gopher://codemadness.org/1/git/sfeed_tests/file/input/sfe... |
|---|---|
| Content-Type | application/gopher-menu; charset=utf-8 |