serendipity_daniel-lange.com.atom.xml - sfeed_tests - sfeed tests and RSS and Atom files
(HTM) git clone git://git.codemadness.org/sfeed_tests
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
serendipity_daniel-lange.com.atom.xml (137022B)
---
1 <?xml version="1.0" encoding="utf-8" ?>
2 <feed
3 xmlns="http://www.w3.org/2005/Atom"
4 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
5 xmlns:dc="http://purl.org/dc/elements/1.1/"
6 xmlns:admin="http://webns.net/mvcb/"
7 xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
8 xmlns:wfw="http://wellformedweb.org/CommentAPI/">
9
10 <link href="https://daniel-lange.com/feeds/atom.xml" rel="self" title="Daniel Lange's blog" type="application/atom+xml" />
11 <link href="https://daniel-lange.com/" rel="alternate" title="Daniel Lange's blog" type="text/html" />
12 <link href="https://daniel-lange.com/rss.php?version=2.0" rel="alternate" title="Daniel Lange's blog" type="application/rss+xml" />
13 <link rel="stylesheet" href="" type="text/css" />
14 <title type="html">Daniel Lange's blog</title>
15 <subtitle type="html">agrep -pB IT /dev/life</subtitle>
16 <icon>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</icon>
17 <id>https://daniel-lange.com/</id>
18 <updated>2021-04-13T10:53:26Z</updated>
19 <generator uri="http://www.s9y.org/" version="2.3.5">Serendipity 2.3.5 - http://www.s9y.org/</generator>
20 <dc:language>en</dc:language>
21
22 <entry>
23 <link href="https://daniel-lange.com/archives/171-The-Stallman-wars.html" rel="alternate" title="The Stallman wars" />
24 <author>
25 <name>Daniel Lange</name>
26 </author>
27
28 <published>2021-03-26T10:05:00Z</published>
29 <disable-updated>2021-04-13T10:53:26Z</disable-updated>
30 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=171</wfw:comment>
31
32 <slash:comments>5</slash:comments>
33 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=171</wfw:commentRss>
34
35 <category scheme="https://daniel-lange.com/categories/7-Open-Source" label="Open Source" term="Open Source" />
36
37 <id>https://daniel-lange.com/archives/171-guid.html</id>
38 <title type="html">The Stallman wars</title>
39 <content type="html">
40 <![CDATA[<p>So, 2021 isn't bad enough yet, but don't despair, people are working to fix that:</p>
41
42 <p style="margin: 1.2cm; font-weight: bold;">Welcome to the Stallman wars</p>
43
44 <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>
45
46 <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>
47
48 <p>Current stats are:</p>
49
50 <pre>
51 Team Cancel: 3020 signers from 1414 individual commit authors
52 Team Support: 6774 signers from 5392 individual commit authors
53 </pre>
54
55 <p>Git shortlog (Top 10):</p>
56
57 <pre>
58 rms_cancel.git (Last update: 2021-06-21 16:05:07 (UTC))
59 1230 Neil McGovern
60 251 Joan Touzet
61 99 Elana Hashman
62 73 Molly de Blanc
63 36 Shauna
64 19 Juke
65 18 Stefano Zacchiroli
66 17 Alexey Mirages
67 16 Devin Halladay
68 14 Nader Jafari
69
70 rms_support.git (Last update: 2021-06-28 04:52:17 (UTC))
71 1815 shenlebantongying
72 1584 nukeop
73 1560 Ivanq
74 1035 Victor
75 876 Job Bautista
76 123 nekonee
77 101 Victor Gridnevsky
78 41 Patrick Spek
79 25 Borys Kabakov
80 17 KIM Taeyeob
81 </pre>
82
83 <p>(last updated 2021-06-28 05:05:22 (UTC))</p>
84
85 <p>Technical info:<br />
86 Signers are counted from their "Signed / Individuals" sections. Commits are counted with <code>git shortlog -s</code>.<br />
87 Team Cancel also has organizational signatures with Mozilla, Suse and X.Org being among the notable signatories.
88 The 16 original signers of the Cancel petition are added in their count.
89 Neil McGovern, Juke and shenlebantongying need <code>.mailmap</code> support as they have committed with different names.</p>
90
91 <p>Further reading:</p>
92
93 <ul>
94 <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>
95 <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>
96 <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>
97 <li>Ed Santos' <a href="https://edsantos.eu/on-stalman/">commentary and analysis</a></li>
98 </ul>
99
100 <p>12.04.2021 statements from the accused:</p>
101
102 <ul>
103 <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>
104 <li><a href="https://www.fsf.org/news/rms-addresses-the-free-software-community">Statement of Richard Stallman</a></li>
105 </ul>
106
107 <p>18.04.2021 Debian General Resolution</p>
108
109 <p>The Debian General Resolution (GR) vote of the developers has concluded to not issue a public statement at all, see
110 <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>
111
112 <blockquote>
113 <p>It is better to keep quiet and seem ignorant than to speak up and remove all doubt.</p>
114 </blockquote>
115
116 <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.
117 They still need to be recalled more often as too many people in the FLOSS community have forgotten about that wisdom...</p>
118 ]]>
119 </content>
120 <dc:subject>fsf</dc:subject>
121 <dc:subject>gnu</dc:subject>
122 <dc:subject>politics</dc:subject>
123 <dc:subject>updated</dc:subject>
124
125 </entry>
126 <entry>
127 <link href="https://daniel-lange.com/archives/170-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-2.html" rel="alternate" title="Compiling and installing the Gentoo Linux kernel on emerge without genkernel (part 2)" />
128 <author>
129 <name>Daniel Lange</name>
130 </author>
131
132 <published>2021-02-03T12:52:00Z</published>
133 <disable-updated>2021-02-03T12:54:14Z</disable-updated>
134 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=170</wfw:comment>
135
136 <slash:comments>1</slash:comments>
137 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=170</wfw:commentRss>
138
139 <category scheme="https://daniel-lange.com/categories/9-Gentoo" label="Gentoo" term="Gentoo" />
140
141 <id>https://daniel-lange.com/archives/170-guid.html</id>
142 <title type="html">Compiling and installing the Gentoo Linux kernel on emerge without genkernel (part 2)</title>
143 <content type="html">
144 <![CDATA[<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;">"sys-kernel/gentoo-kernel -initramfs savedconfig"</span> <span style="color: #000000; font-weight: bold;">>></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;">"/usr/src/linux-<span style="color: #007800;">$(uname -r)</span>/.config"</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;">"=sys-kernel/gentoo-sources-5*"</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;">"/usr/src/<span style="color: #007800;">$(uname -r)</span>"</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;">(</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">{</span><br />        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 />        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;">}</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>
219 <dc:subject>emerge</dc:subject>
220 <dc:subject>kernel</dc:subject>
221 <dc:subject>postinst</dc:subject>
222
223 </entry>
224 <entry>
225 <link href="https://daniel-lange.com/archives/169-Compiling-and-installing-the-Gentoo-Linux-kernel-on-emerge-without-genkernel-part-1.html" rel="alternate" title="Compiling and installing the Gentoo Linux kernel on emerge without genkernel (part 1)" />
226 <author>
227 <name>Daniel Lange</name>
228 </author>
229
230 <published>2021-01-28T09:45:00Z</published>
231 <disable-updated>2021-02-03T11:07:55Z</disable-updated>
232 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=169</wfw:comment>
233
234 <slash:comments>1</slash:comments>
235 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=169</wfw:commentRss>
236
237 <category scheme="https://daniel-lange.com/categories/9-Gentoo" label="Gentoo" term="Gentoo" />
238
239 <id>https://daniel-lange.com/archives/169-guid.html</id>
240 <title type="html">Compiling and installing the Gentoo Linux kernel on emerge without genkernel (part 1)</title>
241 <content type="html">
242 <![CDATA[<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>
243
244 <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>
245
246 <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>
247
248 <p>So, the plain approach:</p>
249
250 <p>Make <code>emerge sys-kernel/gentoo-sources</code> symlink the latest kernel to
251 <code>/usr/src/linux</code> so we can find it easily:</p>
252
253 <div class="bash geshi" style="text-align: left"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"sys-kernel/gentoo-sources symlink"</span> <span style="color: #000000; font-weight: bold;">>></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>
254
255 <p>Create <code>/etc/portage/env/sys-kernel/gentoo-sources</code> with the following:</p>
256
257 <div class="bash geshi" style="text-align: left">post_pkg_postinst<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #7a0874; font-weight: bold;">{</span><br />        <span style="color: #007800;">CURRENT_KV</span>=$<span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #c20cb9; font-weight: bold;">uname</span> -r<span style="color: #7a0874; font-weight: bold;">)</span><br />        <span style="color: #7a0874; font-weight: bold;">unset</span> ARCH<br />        <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">[</span><span style="color: #7a0874; font-weight: bold;">[</span> <span style="color: #660033;">-f</span> <span style="color: #ff0000;">"<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux-<span style="color: #007800;">${CURRENT_KV}</span>/.config"</span> <span style="color: #7a0874; font-weight: bold;">]</span><span style="color: #7a0874; font-weight: bold;">]</span> ; <span style="color: #000000; font-weight: bold;">then</span><br />                <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">"<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux-<span style="color: #007800;">${CURRENT_KV}</span>/.config"</span> <span style="color: #ff0000;">"<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux/.config"</span><br />                <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #ff0000;">"<span style="color: #007800;">${EROOT:-/}</span>usr/src/linux/"</span> <span style="color: #000000; font-weight: bold;">&&</span> \<br />                <span style="color: #c20cb9; font-weight: bold;">make</span> olddefconfig <span style="color: #000000; font-weight: bold;">&&</span> \<br />                <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #660033;">-j5</span> <span style="color: #000000; font-weight: bold;">&&</span> <span style="color: #c20cb9; font-weight: bold;">make</span> modules_install <span style="color: #000000; font-weight: bold;">&&</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;">&&</span> \<br />                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: #000000; font-weight: bold;">fi</span><br /><span style="color: #7a0874; font-weight: bold;">}</span></div>
258
259 <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>
260
261 <p>If you forget to unset <code>ARCH</code> the Linux build system will complain like:</p>
262
263 <pre>
264 Makefile:583: arch/amd64/Makefile: No such file or directory
265 make: *** No rule to make target 'arch/amd64/Makefile'. Stop.
266 </pre>
267
268 <p>You can test the new magic by re-emerging the latest kernel, e.g. currently
269 <code>emerge =sys-kernel/gentoo-sources-5.4.80-r1</code>:</p>
270
271 <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>
272 ]]>
273 </content>
274 <dc:subject>emerge</dc:subject>
275 <dc:subject>kernel</dc:subject>
276 <dc:subject>postinst</dc:subject>
277
278 </entry>
279 <entry>
280 <link href="https://daniel-lange.com/archives/168-Installing-System-Rescue-CD-to-a-flash-drive.html" rel="alternate" title="Installing System Rescue (CD) to a flash drive" />
281 <author>
282 <name>Daniel Lange</name>
283 </author>
284
285 <published>2021-01-27T12:47:00Z</published>
286 <disable-updated>2021-01-27T20:53:19Z</disable-updated>
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=atom1.0&type=comments&cid=168</wfw:commentRss>
291
292 <category scheme="https://daniel-lange.com/categories/8-Linux" label="Linux" term="Linux" />
293
294 <id>https://daniel-lange.com/archives/168-guid.html</id>
295 <title type="html">Installing System Rescue (CD) to a flash drive</title>
296 <content type="html">
297 <![CDATA[<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>
298
299 <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>
300
301 <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>
302
303 <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>
304
305 <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>
306
307 <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>
308 <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>]]>
309 </content>
310 <dc:subject>archlinux</dc:subject>
311 <dc:subject>boot</dc:subject>
312 <dc:subject>flash</dc:subject>
313 <dc:subject>gentoo</dc:subject>
314 <dc:subject>iso</dc:subject>
315 <dc:subject>sysconfig</dc:subject>
316
317 </entry>
318 <entry>
319 <link href="https://daniel-lange.com/archives/167-No-CCC-Congress-this-year-but-rC3-online.html" rel="alternate" title="No CCC Congress this year but rC3 online" />
320 <author>
321 <name>Daniel Lange</name>
322 </author>
323
324 <published>2020-12-28T15:30:00Z</published>
325 <disable-updated>2021-02-11T21:18:13Z</disable-updated>
326 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=167</wfw:comment>
327
328 <slash:comments>0</slash:comments>
329 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=167</wfw:commentRss>
330
331 <category scheme="https://daniel-lange.com/categories/13-Other" label="Other" term="Other" />
332
333 <id>https://daniel-lange.com/archives/167-guid.html</id>
334 <title type="html">No CCC Congress this year but rC3 online</title>
335 <content type="html">
336 <![CDATA[<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>
337
338 <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>
339
340 <p><!-- s9ymdb:669 --><img class="serendipity_image_left" width="2068" height="1054" src="https://daniel-lange.com/uploads/entries/rc3_world.png" alt=""></p>
341
342 <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>
343
344 <pre>
345 { "compressionlevel":-1,
346 "editorsettings":
347 {
348 "export":
349 {
350 "format":"json",
351 "target":"main.json"
352 }
353 },
354 "height":80,
355 "infinite":false,
356 "layers":[
357 {
358 "data":[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
359 "height":80,
360 "id":2,
361 "name":"start",
362 "opacity":1,
363 "type":"tilelayer",
364 "visible":true,
365 "width":80,
366 "x":0,
367 "y":0
368 },
369 ...
370 </pre>
371
372 <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>
373
374 <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>
375 ]]>
376 </content>
377 <dc:subject>conference</dc:subject>
378 <dc:subject>json</dc:subject>
379 <dc:subject>retro</dc:subject>
380 <dc:subject>video</dc:subject>
381 <dc:subject>web</dc:subject>
382
383 </entry>
384 <entry>
385 <link href="https://daniel-lange.com/archives/166-No-dog-food-today-the-Linux-Foundation-annual-report.html" rel="alternate" title="No dog food today - the Linux Foundation annual report" />
386 <author>
387 <name>Daniel Lange</name>
388 </author>
389
390 <published>2020-12-03T22:18:00Z</published>
391 <disable-updated>2020-12-08T08:55:56Z</disable-updated>
392 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=166</wfw:comment>
393
394 <slash:comments>5</slash:comments>
395 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=166</wfw:commentRss>
396
397 <category scheme="https://daniel-lange.com/categories/17-Strategy" label="Strategy" term="Strategy" />
398
399 <id>https://daniel-lange.com/archives/166-guid.html</id>
400 <title type="html">No dog food today - the Linux Foundation annual report</title>
401 <content type="html">
402 <![CDATA[<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>
403
404 <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>
405
406 <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>
407
408 <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>
409
410 <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>
411
412 <p>But nicer would have been to use Open Source software to produce the report, not?</p>
413
414 <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>
415
416 <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>
417
418 <p>So, ladies and gentlemen, the Linux Foundation 2020 annual report has been produced on a Mac.</p>
419
420 <p>Running Adobe Creative Cloud on MacOS Catalina 10.15.7.</p>
421
422 <p>Which is proprietary software. Its kernel (and some userland pieces) are based on BSD. Not Linux.</p>
423
424 <hr />
425
426 <p>The image on the front page also struck me as a bit odd ... using a ballpoint pen on the laptop screen?</p>
427
428 <p>Unbranded laptop.
429 Unbranded cup in the foreground.</p>
430
431 <p>Kid in the background <em>not</em> paying attention to his tablet.</p>
432
433 <p>All of that cries stock image so loud it hurts.</p>
434
435 <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 © <a href="https://www.shutterstock.com/de/g/draganagordic">Dragana Gordic / Shutterstock</a>.</p>
436
437 <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>
438
439 <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>
440
441 <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>
442 <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>]]>
443 </content>
444 <dc:subject>bsd</dc:subject>
445 <dc:subject>dogfood</dc:subject>
446 <dc:subject>dtp</dc:subject>
447 <dc:subject>linux</dc:subject>
448 <dc:subject>mac</dc:subject>
449 <dc:subject>macos</dc:subject>
450
451 </entry>
452 <entry>
453 <link href="https://daniel-lange.com/archives/165-Git-shared-hosting-quirk.html" rel="alternate" title="Git shared hosting quirk" />
454 <author>
455 <name>Daniel Lange</name>
456 </author>
457
458 <published>2020-10-28T21:30:00Z</published>
459 <disable-updated>2020-11-14T07:40:55Z</disable-updated>
460 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=165</wfw:comment>
461
462 <slash:comments>0</slash:comments>
463 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=165</wfw:commentRss>
464
465 <category scheme="https://daniel-lange.com/categories/2-IT" label="IT" term="IT" />
466
467 <id>https://daniel-lange.com/archives/165-guid.html</id>
468 <title type="html">Git shared hosting quirk</title>
469 <content type="html">
470 <![CDATA[<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>
471
472 <p>Oops 'eh? Yep, Linux has been backdoored.</p>
473
474 <p>Well, or not.</p>
475
476 <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>
477
478 <blockquote>
479 It is common for git hosting environments to configure all forks of the
480 same repo to use an "object storage" repository. For example, this is
481 what allows git.kernel.org's 600+ forks of linux.git to take up only
482 10GB on disk as opposed to 800GB.
483
484 One of the side-effects of this setup is that any object in the shared
485 repository can be accessed from any of the forks, which periodically
486 confuses people into believing that something terrible has happened.
487 </blockquote>
488
489 <p>The hack was <a href="https://github.com/torvalds/linux/commit/b4061a10fc29010a610ff2b5b20160d7335e69bf#diff-b2b8b8422630002a41cf5901247f9a6af2cc8d000fc792ef7aae9ea1f393f8b4">discussed on Github in Dec 2018</a>
490 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>
491
492 <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.
493 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>
494
495 <h3>Update</h3>
496
497 <p>05.11.20 Nate Friedman (CEO of Github) <a href="https://news.ycombinator.com/item?id=24995121">promises</a></p>
498
499 <blockquote>[..] we are going to make it much more obvious when you're viewing an orphaned commit.</blockquote>
500
501 <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>
502
503 <p>14.11.20 Seems Github now adds a warning to commits that are not in a reachable branch
504 <!-- 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>
505
506 <div class="footnotes">
507 <hr />
508 <ol>
509
510 <li id="fn:1">
511 <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. <a href="#fnref:1" rev="footnote">↩</a></p>
512 </li>
513
514 </ol>
515 </div>
516 ]]>
517 </content>
518 <dc:subject>git</dc:subject>
519 <dc:subject>github</dc:subject>
520 <dc:subject>hacking</dc:subject>
521 <dc:subject>linux</dc:subject>
522 <dc:subject>updated</dc:subject>
523
524 </entry>
525 <entry>
526 <link href="https://daniel-lange.com/archives/164-Getting-rid-of-the-Google-cookie-consent-popup.html" rel="alternate" title="Getting rid of the Google cookie consent popup" />
527 <author>
528 <name>Daniel Lange</name>
529 </author>
530
531 <published>2020-09-18T09:15:00Z</published>
532 <disable-updated>2021-04-24T09:05:42Z</disable-updated>
533 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=164</wfw:comment>
534
535 <slash:comments>38</slash:comments>
536 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=164</wfw:commentRss>
537
538 <category scheme="https://daniel-lange.com/categories/18-Internet" label="Internet" term="Internet" />
539
540 <id>https://daniel-lange.com/archives/164-guid.html</id>
541 <title type="html">Getting rid of the Google cookie consent popup</title>
542 <content type="html">
543 <![CDATA[<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>
544
545 <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>
546
547 <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>
548
549 <p>Add this to your <a href="https://github.com/gorhill/uBlock">uBlock Origin</a> "My filters" tab:</p>
550
551 <pre>
552 ! Google - remove cookie-consent-popup and restore scroll functionality
553 ! Updated 24.04.2021
554 google.*##.wwYr3.aID8W.bErdLd
555 google.*##.aID8W.m114nf.t7xA6
556 google.*##.jw8mI
557 google.*##.vUd4jb
558 google.*##div[jsname][jsaction^="dg_close"]
559 google.*##html:style(overflow: visible scroll !important;)
560 google.*##.widget-consent-fullscreen.widget-consent
561
562 ! And for Youtube
563 ! Updated 13.04.2021
564 www.youtube.com###dialog
565 www.youtube.com##ytd-popup-container.ytd-app.style-scope
566 www.youtube.com##tp-yt-iron-overlay-backdrop
567 </pre>
568 ]]>
569 </content>
570 <dc:subject>annoying</dc:subject>
571 <dc:subject>consent</dc:subject>
572 <dc:subject>cookies</dc:subject>
573 <dc:subject>google</dc:subject>
574 <dc:subject>policy</dc:subject>
575 <dc:subject>popup</dc:subject>
576 <dc:subject>regulation</dc:subject>
577 <dc:subject>updated</dc:subject>
578
579 </entry>
580 <entry>
581 <link href="https://daniel-lange.com/archives/162-Upgrading-Limesurvey-with-near-zero-downtime.html" rel="alternate" title="Upgrading Limesurvey with (near) zero downtime" />
582 <author>
583 <name>Daniel Lange</name>
584 </author>
585
586 <published>2020-06-21T19:38:00Z</published>
587 <disable-updated>2020-06-21T19:38:00Z</disable-updated>
588 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=162</wfw:comment>
589
590 <slash:comments>0</slash:comments>
591 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=162</wfw:commentRss>
592
593 <category scheme="https://daniel-lange.com/categories/7-Open-Source" label="Open Source" term="Open Source" />
594
595 <id>https://daniel-lange.com/archives/162-guid.html</id>
596 <title type="html">Upgrading Limesurvey with (near) zero downtime</title>
597 <content type="html">
598 <![CDATA[<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>
599
600 <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>
601
602 <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>
603
604 <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>
605
606 <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;">(</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;">[</span><span style="color: #339933;">...</span><span style="color: #009900;">]</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: #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;">        <span style="color: #0000ff;">'config'</span><span style="color: #339933;">=></span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">(</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: #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;">        <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;">        <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;">        <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;">                <span style="color: #0000ff;">'debug'</span><span style="color: #339933;">=></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;">                <span style="color: #0000ff;">'debugsql'</span><span style="color: #339933;">=></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;">                <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;">                 <span style="color: #0000ff;">'mysqlEngine'</span> <span style="color: #339933;">=></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>               <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;">                <span style="color: #0000ff;">'updatable'</span> <span style="color: #339933;">=></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;">        <span style="color: #009900;">)</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;">)</span><span style="color: #339933;">;</span></div></li></ol></div>
607
608 <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.
609 Every item in a php array must end with a comma. It can be on the next line.</p>
610
611 <p>The basic principle of low risk, near-zero downtime, in-place upgrades is:</p>
612
613 <ol>
614 <li>Create a diff between the current release and the target release</li>
615 <li>Inspect the diff</li>
616 <li>Make backups of the application webroot</li>
617 <li>Patch a copy of the application in-place</li>
618 <li>(optional) stop the web server</li>
619 <li>Make a backup of the production database</li>
620 <li>Move the patched application to the production webroot</li>
621 <li>(if 5) Start the webserver</li>
622 <li>Upgrade the database (if needed)</li>
623 <li>Check the application</li>
624 </ol>
625
626 <p>So, in detail:</p>
627 <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>]]>
628 </content>
629 <dc:subject>apache</dc:subject>
630 <dc:subject>diff</dc:subject>
631 <dc:subject>limesurvey</dc:subject>
632 <dc:subject>patch</dc:subject>
633 <dc:subject>production</dc:subject>
634 <dc:subject>update</dc:subject>
635 <dc:subject>updated</dc:subject>
636 <dc:subject>web</dc:subject>
637
638 </entry>
639 <entry>
640 <link href="https://daniel-lange.com/archives/161-I-think-we-need-more-creativity-in-statistics.html" rel="alternate" title="I think we need more creativity in statistics" />
641 <author>
642 <name>Daniel Lange</name>
643 </author>
644
645 <published>2020-04-14T08:42:00Z</published>
646 <disable-updated>2020-04-14T08:45:58Z</disable-updated>
647 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=161</wfw:comment>
648
649 <slash:comments>0</slash:comments>
650 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=161</wfw:commentRss>
651
652 <category scheme="https://daniel-lange.com/categories/14-Fun" label="Fun" term="Fun" />
653
654 <id>https://daniel-lange.com/archives/161-guid.html</id>
655 <title type="html">I think we need more creativity in statistics</title>
656 <content type="html">
657 <![CDATA[<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>
658
659 <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>
660
661 <p>My Drawing Number One.</p>
662
663 <p>It looked something like this:</p>
664
665 <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>
666
667 <p>I showed my masterpiece to the grown-ups, and asked them whether the drawing frightened them.</p>
668
669 <p>But they answered: <em>'Frighten? Why should any one be frightened by a hat?'</em></p>
670
671 <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>
672
673 <p>My Drawing Number Two looked like this:</p>
674
675 <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>
676
677 <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>
678
679 <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>
680
681 <p>Grown-ups never understand anything by themselves, and it is tiresome for children to be always and forever explaining things to them."</p>
682
683 <p>from <em>The Little Prince</em> by <em>Antoine de Saint Exupéry</em></p>
684
685 <p> </p>
686
687 <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>
688
689 <p>from the <em>Corona Fun with Statistics department</em> at <em>Worldometers</em>
690 (<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>
691 ]]>
692 </content>
693 <dc:subject>art</dc:subject>
694 <dc:subject>fun</dc:subject>
695 <dc:subject>literature</dc:subject>
696 <dc:subject>math</dc:subject>
697 <dc:subject>science</dc:subject>
698 <dc:subject>statistics</dc:subject>
699
700 </entry>
701 <entry>
702 <link href="https://daniel-lange.com/archives/160-Fixing-the-Nextcloud-menu-to-show-more-than-eight-application-icons.html" rel="alternate" title="Fixing the Nextcloud menu to show more than eight application icons" />
703 <author>
704 <name>Daniel Lange</name>
705 </author>
706
707 <published>2020-03-13T16:00:00Z</published>
708 <disable-updated>2020-09-18T10:17:07Z</disable-updated>
709 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=160</wfw:comment>
710
711 <slash:comments>5</slash:comments>
712 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=160</wfw:commentRss>
713
714 <category scheme="https://daniel-lange.com/categories/18-Internet" label="Internet" term="Internet" />
715
716 <id>https://daniel-lange.com/archives/160-guid.html</id>
717 <title type="html">Fixing the Nextcloud menu to show more than eight application icons</title>
718 <content type="html">
719 <![CDATA[<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>
720
721 <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>
722
723 <p>And of course designers think they are right. That's a feature of the trade.<br />
724 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>
725
726 <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>
727
728 <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&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>
729
730 <p>Basically</p>
731
732 <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;">(</span><span style="color: #009900;">)</span> <span style="color: #339933;">=></span> <span style="color: #009900;">{</span><br />    <span style="color: #000066; font-weight: bold;">const</span> appList <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#appmenu li'</span><span style="color: #009900;">)</span><br />    <span style="color: #000066; font-weight: bold;">const</span> rightHeaderWidth <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span><span style="color: #3366CC;">'.header-right'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><br />    <span style="color: #000066; font-weight: bold;">const</span> headerWidth <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span><span style="color: #3366CC;">'header'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><br />    <span style="color: #000066; font-weight: bold;">const</span> usePercentualAppMenuLimit <span style="color: #339933;">=</span> <span style="color: #CC0000;">0.33</span><br />    <span style="color: #000066; font-weight: bold;">const</span> minAppsDesktop <span style="color: #339933;">=</span> <span style="color: #CC0000;">8</span><br />    let availableWidth <span style="color: #339933;">=</span> headerWidth <span style="color: #339933;">-</span> $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#nextcloud'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #339933;">-</span> <span style="color: #009900;">(</span>rightHeaderWidth <span style="color: #339933;">></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;">)</span><br />    <span style="color: #000066; font-weight: bold;">const</span> isMobile <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span>window<span style="color: #009900;">)</span>.<span style="color: #660066;">width</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span> <span style="color: #339933;"><</span> breakpoint_mobile_width<br />    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</span><span style="color: #339933;">!</span>isMobile<span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />        availableWidth <span style="color: #339933;">=</span> availableWidth <span style="color: #339933;">*</span> usePercentualAppMenuLimit<br />    <span style="color: #009900;">}</span><br />    let appCount <span style="color: #339933;">=</span> <span style="">Math</span>.<span style="color: #660066;">floor</span><span style="color: #009900;">(</span><span style="color: #009900;">(</span>availableWidth <span style="color: #339933;">/</span> $<span style="color: #009900;">(</span>appList<span style="color: #009900;">)</span>.<span style="color: #660066;">width</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><br />    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</span>isMobile <span style="color: #339933;">&&</span> appCount <span style="color: #339933;">></span> minAppsDesktop<span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />        appCount <span style="color: #339933;">=</span> minAppsDesktop<br />    <span style="color: #009900;">}</span><br />    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</span><span style="color: #339933;">!</span>isMobile <span style="color: #339933;">&&</span> appCount <span style="color: #339933;"><</span> minAppsDesktop<span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />        appCount <span style="color: #339933;">=</span> minAppsDesktop<br />    <span style="color: #009900;">}</span><br /><br />    <span style="color: #006600; font-style: italic;">// show at least 2 apps in the popover</span><br />    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</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;">>=</span> <span style="color: #CC0000;">1</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />        appCount<span style="color: #339933;">--</span><br />    <span style="color: #009900;">}</span><br /><br />    $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#more-apps a'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">)</span><br />    let lastShownApp<br />    <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">(</span>let k <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> k <span style="color: #339933;"><</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;">)</span> <span style="color: #009900;">{</span><br />        <span style="color: #000066; font-weight: bold;">const</span> name <span style="color: #339933;">=</span> $<span style="color: #009900;">(</span>appList<span style="color: #009900;">[</span>k<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">data</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">)</span><br />        <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</span>k <span style="color: #339933;"><</span> appCount<span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />            $<span style="color: #009900;">(</span>appList<span style="color: #009900;">[</span>k<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">)</span><br />            $<span style="color: #009900;">(</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;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">)</span><br />            lastShownApp <span style="color: #339933;">=</span> appList<span style="color: #009900;">[</span>k<span style="color: #009900;">]</span><br />        <span style="color: #009900;">}</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">{</span><br />            $<span style="color: #009900;">(</span>appList<span style="color: #009900;">[</span>k<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">)</span><br />            $<span style="color: #009900;">(</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;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">)</span><br />            <span style="color: #006600; font-style: italic;">// move active app to last position if it is active</span><br />            <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</span>appCount <span style="color: #339933;">></span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">&&</span> $<span style="color: #009900;">(</span>appList<span style="color: #009900;">[</span>k<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">children</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'a'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'active'</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />                $<span style="color: #009900;">(</span>lastShownApp<span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">)</span><br />                $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#apps li[data-id='</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">(</span>lastShownApp<span style="color: #009900;">)</span>.<span style="color: #660066;">data</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">)</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">']'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">)</span><br />                $<span style="color: #009900;">(</span>appList<span style="color: #009900;">[</span>k<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'hidden'</span><span style="color: #009900;">)</span><br />                $<span style="color: #009900;">(</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;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">'in-header'</span><span style="color: #009900;">)</span><br />            <span style="color: #009900;">}</span><br />        <span style="color: #009900;">}</span><br />    <span style="color: #009900;">}</span><br /><br />    <span style="color: #006600; font-style: italic;">// show/hide more apps icon</span><br />    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">(</span>$<span style="color: #009900;">(</span><span style="color: #3366CC;">'#apps li:not(.in-header)'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">===</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span><br />        $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#more-apps'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><br />        $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#navigation'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><br />    <span style="color: #009900;">}</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">{</span><br />        $<span style="color: #009900;">(</span><span style="color: #3366CC;">'#more-apps'</span><span style="color: #009900;">)</span>.<span style="color: #660066;">show</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><br />    <span style="color: #009900;">}</span><br /><span style="color: #009900;">}</span></div>
733
734 <p>gets compressed during build time to become part of one 15,000+ character line. The relevant portion reads:</p>
735
736 <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;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">{</span><span style="color: #000066; font-weight: bold;">var</span> e<span style="color: #339933;">=</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#appmenu li"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>t<span style="color: #339933;">=</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">".header-right"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>n<span style="color: #339933;">=</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"header"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">-</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#nextcloud"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">-</span><span style="color: #009900;">(</span>t<span style="color: #339933;">></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;">)</span><span style="color: #339933;">,</span>i<span style="color: #339933;">=</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>window<span style="color: #009900;">)</span>.<span style="color: #660066;">width</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;"><</span><span style="color: #CC0000;">1024</span><span style="color: #339933;">;</span>i<span style="color: #339933;">||</span><span style="color: #009900;">(</span>n<span style="color: #339933;">*=</span>.33<span style="color: #009900;">)</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;">(</span>n<span style="color: #339933;">/</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>e<span style="color: #009900;">)</span>.<span style="color: #660066;">width</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&&</span>o<span style="color: #339933;">></span><span style="color: #CC0000;">8</span><span style="color: #339933;">&&</span><span style="color: #009900;">(</span>o<span style="color: #339933;">=</span><span style="color: #CC0000;">8</span><span style="color: #009900;">)</span><span style="color: #339933;">,!</span>i<span style="color: #339933;">&&</span>o<span style="color: #339933;"><</span><span style="color: #CC0000;">8</span><span style="color: #339933;">&&</span><span style="color: #009900;">(</span>o<span style="color: #339933;">=</span><span style="color: #CC0000;">8</span><span style="color: #009900;">)</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;">>=</span><span style="color: #CC0000;">1</span><span style="color: #339933;">&&</span>o<span style="color: #339933;">--,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#more-apps a"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"active"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span><span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">(</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;"><</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;">)</span><span style="color: #009900;">{</span><span style="color: #000066; font-weight: bold;">var</span> l<span style="color: #339933;">=</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>e<span style="color: #009900;">[</span>a<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">data</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"id"</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>a<span style="color: #339933;"><</span>o<span style="color: #339933;">?</span><span style="color: #009900;">(</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>e<span style="color: #009900;">[</span>a<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"hidden"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#apps li[data-id="</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">"]"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"in-header"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>r<span style="color: #339933;">=</span>e<span style="color: #009900;">[</span>a<span style="color: #009900;">]</span><span style="color: #009900;">)</span><span style="color: #339933;">:</span><span style="color: #009900;">(</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>e<span style="color: #009900;">[</span>a<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"hidden"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#apps li[data-id="</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">"]"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"in-header"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>o<span style="color: #339933;">></span><span style="color: #CC0000;">0</span><span style="color: #339933;">&&</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>e<span style="color: #009900;">[</span>a<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">children</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"a"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hasClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"active"</span><span style="color: #009900;">)</span><span style="color: #339933;">&&</span><span style="color: #009900;">(</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>r<span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"hidden"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#apps li[data-id="</span><span style="color: #339933;">+</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>r<span style="color: #009900;">)</span>.<span style="color: #660066;">data</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"id"</span><span style="color: #009900;">)</span><span style="color: #339933;">+</span><span style="color: #3366CC;">"]"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"in-header"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span>e<span style="color: #009900;">[</span>a<span style="color: #009900;">]</span><span style="color: #009900;">)</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"hidden"</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#apps li[data-id="</span><span style="color: #339933;">+</span>l<span style="color: #339933;">+</span><span style="color: #3366CC;">"]"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"in-header"</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #009900;">}</span><span style="color: #CC0000;">0</span><span style="color: #339933;">===</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#apps li:not(.in-header)"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">length</span><span style="color: #339933;">?</span><span style="color: #009900;">(</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#more-apps"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #339933;">,</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#navigation"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">)</span><span style="color: #339933;">:</span>s<span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">(</span><span style="color: #3366CC;">"#more-apps"</span><span style="color: #009900;">)</span>.<span style="color: #660066;">show</span><span style="color: #009900;">(</span><span style="color: #009900;">)</span><span style="color: #009900;">}</span></div>
737
738 <p>Well, we can still patch that, can we?</p>
739 <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>]]>
740 </content>
741 <dc:subject>badchoices</dc:subject>
742 <dc:subject>design</dc:subject>
743 <dc:subject>javascript</dc:subject>
744 <dc:subject>nextcloud</dc:subject>
745 <dc:subject>patch</dc:subject>
746 <dc:subject>updated</dc:subject>
747
748 </entry>
749 <entry>
750 <link href="https://daniel-lange.com/archives/159-Cleaning-a-broken-GnuPG-gpg-key.html" rel="alternate" title="Cleaning a broken GnuPG (gpg) key" />
751 <author>
752 <name>Daniel Lange</name>
753 </author>
754
755 <published>2019-07-02T08:25:00Z</published>
756 <disable-updated>2019-08-10T15:38:55Z</disable-updated>
757 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=159</wfw:comment>
758
759 <slash:comments>7</slash:comments>
760 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=159</wfw:commentRss>
761
762 <category scheme="https://daniel-lange.com/categories/2-IT" label="IT" term="IT" />
763
764 <id>https://daniel-lange.com/archives/159-guid.html</id>
765 <title type="html">Cleaning a broken GnuPG (gpg) key</title>
766 <content type="html">
767 <![CDATA[<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>
768
769 <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>.
770 That won't substantially change with more bolted-on improvements.</p>
771
772 <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>
773
774 <p>But does it?</p>
775
776 <p>I downloaded <a href="https://sks-keyservers.net/pks/lookup?op=vindex&search=0xCC11BE7CBBED77B120F37B011DCBDC01B44427C7">Robert J. Hansen's key off the SKS-Keyserver network</a>.
777 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>
778
779 <p>Now a friendly:</p>
780
781 <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  rsa3072<span style="color: #000000; font-weight: bold;">/</span>0x1DCBDC01B44427C7<br />     erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span>  verfällt: niemals     Nutzung: SC  <br />     Vertrauen: unbekannt     Gültigkeit: unbekannt<br />sub  ed25519<span style="color: #000000; font-weight: bold;">/</span>0xA83CAE94D3DC3873<br />     erzeugt: <span style="color: #000000;">2017</span>-04-05  verfällt: niemals     Nutzung: S   <br />sub  cv25519<span style="color: #000000; font-weight: bold;">/</span>0xAA24CC81B8AED08B<br />     erzeugt: <span style="color: #000000;">2017</span>-04-05  verfällt: niemals     Nutzung: E   <br />sub  rsa3072<span style="color: #000000; font-weight: bold;">/</span>0xDC0F82625FA6AADE<br />     erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span>  verfällt: niemals     Nutzung: E   <br /><span style="color: #7a0874; font-weight: bold;">[</span> unbekannt <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span>. Robert J. Hansen <span style="color: #000000; font-weight: bold;"><</span>rjh<span style="color: #000000; font-weight: bold;">@</span>sixdemonbag.org<span style="color: #000000; font-weight: bold;">></span><br /><span style="color: #7a0874; font-weight: bold;">[</span> unbekannt <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">)</span>  Robert J. Hansen <span style="color: #000000; font-weight: bold;"><</span>rob<span style="color: #000000; font-weight: bold;">@</span>enigmail.net<span style="color: #000000; font-weight: bold;">></span><br /><span style="color: #7a0874; font-weight: bold;">[</span> unbekannt <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">)</span>  Robert J. Hansen <span style="color: #000000; font-weight: bold;"><</span>rob<span style="color: #000000; font-weight: bold;">@</span>hansen.engineering<span style="color: #000000; font-weight: bold;">></span><br /><br />User-ID <span style="color: #ff0000;">"Robert J. Hansen <rjh@sixdemonbag.org>"</span>: <span style="color: #000000;">49705</span> Signaturen entfernt<br />User-ID <span style="color: #ff0000;">"Robert J. Hansen <rob@enigmail.net>"</span>: <span style="color: #000000;">49704</span> Signaturen entfernt<br />User-ID <span style="color: #ff0000;">"Robert J. Hansen <rob@hansen.engineering>"</span>: <span style="color: #000000;">49701</span> Signaturen entfernt<br /><br />pub  rsa3072<span style="color: #000000; font-weight: bold;">/</span>0x1DCBDC01B44427C7<br />     erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span>  verfällt: niemals     Nutzung: SC  <br />     Vertrauen: unbekannt     Gültigkeit: unbekannt<br />sub  ed25519<span style="color: #000000; font-weight: bold;">/</span>0xA83CAE94D3DC3873<br />     erzeugt: <span style="color: #000000;">2017</span>-04-05  verfällt: niemals     Nutzung: S   <br />sub  cv25519<span style="color: #000000; font-weight: bold;">/</span>0xAA24CC81B8AED08B<br />     erzeugt: <span style="color: #000000;">2017</span>-04-05  verfällt: niemals     Nutzung: E   <br />sub  rsa3072<span style="color: #000000; font-weight: bold;">/</span>0xDC0F82625FA6AADE<br />     erzeugt: <span style="color: #000000;">2015</span>-07-<span style="color: #000000;">16</span>  verfällt: niemals     Nutzung: E   <br /><span style="color: #7a0874; font-weight: bold;">[</span> unbekannt <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">1</span><span style="color: #7a0874; font-weight: bold;">)</span>. Robert J. Hansen <span style="color: #000000; font-weight: bold;"><</span>rjh<span style="color: #000000; font-weight: bold;">@</span>sixdemonbag.org<span style="color: #000000; font-weight: bold;">></span><br /><span style="color: #7a0874; font-weight: bold;">[</span> unbekannt <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">2</span><span style="color: #7a0874; font-weight: bold;">)</span>  Robert J. Hansen <span style="color: #000000; font-weight: bold;"><</span>rob<span style="color: #000000; font-weight: bold;">@</span>enigmail.net<span style="color: #000000; font-weight: bold;">></span><br /><span style="color: #7a0874; font-weight: bold;">[</span> unbekannt <span style="color: #7a0874; font-weight: bold;">]</span> <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">)</span>  Robert J. Hansen <span style="color: #000000; font-weight: bold;"><</span>rob<span style="color: #000000; font-weight: bold;">@</span>hansen.engineering<span style="color: #000000; font-weight: bold;">></span><br /><br />        Command being timed: <span style="color: #ff0000;">"gpg --no-default-keyring --keyring ./broken_key.gpg --batch --quiet --edit-key 0x1DCBDC01B44427C7 clean save quit"</span><br />        User <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">(</span>seconds<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">3911.14</span><br />        System <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">(</span>seconds<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">2442.87</span><br />        Percent of CPU this job got: <span style="color: #000000;">99</span><span style="color: #000000; font-weight: bold;">%</span><br />        Elapsed <span style="color: #7a0874; font-weight: bold;">(</span><span style="color: #c20cb9; font-weight: bold;">wall</span> clock<span style="color: #7a0874; font-weight: bold;">)</span> <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #7a0874; font-weight: bold;">(</span>h:mm:ss or m:ss<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">1</span>:<span style="color: #000000;">45</span>:<span style="color: #000000;">56</span><br />        Average shared text <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">(</span>kbytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">0</span><br />        Average unshared data <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">(</span>kbytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">0</span><br />        Average stack <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">(</span>kbytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">0</span><br />        Average total <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">(</span>kbytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">0</span><br />        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;">(</span>kbytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">107660</span><br />        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;">(</span>kbytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">0</span><br />        Major <span style="color: #7a0874; font-weight: bold;">(</span>requiring I<span style="color: #000000; font-weight: bold;">/</span>O<span style="color: #7a0874; font-weight: bold;">)</span> page faults: <span style="color: #000000;">1</span><br />        Minor <span style="color: #7a0874; font-weight: bold;">(</span>reclaiming a frame<span style="color: #7a0874; font-weight: bold;">)</span> page faults: <span style="color: #000000;">26630</span><br />        Voluntary context switches: <span style="color: #000000;">43</span><br />        Involuntary context switches: <span style="color: #000000;">59439</span><br />        Swaps: <span style="color: #000000;">0</span><br />        File system inputs: <span style="color: #000000;">112</span><br />        File system outputs: <span style="color: #000000;">48</span><br />        Socket messages sent: <span style="color: #000000;">0</span><br />        Socket messages received: <span style="color: #000000;">0</span><br />        Signals delivered: <span style="color: #000000;">0</span><br />        Page <span style="color: #c20cb9; font-weight: bold;">size</span> <span style="color: #7a0874; font-weight: bold;">(</span>bytes<span style="color: #7a0874; font-weight: bold;">)</span>: <span style="color: #000000;">4096</span><br />        Exit status: <span style="color: #000000;">0</span><br /> </div>
782
783 <p>And the result is a nicely useable 3835 byte file of the clean public key.
784 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>
785
786 <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>
787
788 <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>
789
790 <blockquote>
791 Someone added a few thousand entries to a list that lets anyone append to it.
792
793 GnuPG, software supposed to defeat state actors, suddenly takes minutes to process entries.
794
795 How big is that list you ask? 17 MiB. Not GiB, 17 MiB. Like a large picture.
796
797 <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>
798 </blockquote>
799
800 <p>If I were a gpg / SKS keyserver developer, I'd</p>
801
802 <ul>
803 <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>
804 <li>(ideally) make the drop-sig import-filter syntax useful (date-ranges, non-reciprocal signatures, ...)</li>
805 <li>clean affected keys on the SKS keyservers (needs coordination of sysops, drop servers from unreachable people)</li>
806 <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>
807 <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>
808 </ul>
809
810 <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.
811 Attacking the keyserver network would become at least non-trivial. And the web-of-trust thing may make sense again.</p>
812
813 <h2>Updates</h2>
814
815 <p>09.07.2019</p>
816
817 <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>
818
819 <pre>
820 * gpg: Ignore all key-signatures received from keyservers. This
821 change is required to mitigate a DoS due to keys flooded with
822 faked key-signatures. The old behaviour can be achieved by adding
823 keyserver-options no-self-sigs-only,no-import-clean
824 to your gpg.conf. [#4607]
825 * gpg: If an imported keyblocks is too large to be stored in the
826 keybox (pubring.kbx) do not error out but fallback to an import
827 using the options "self-sigs-only,import-clean". [#4591]
828 * gpg: New command --locate-external-key which can be used to
829 refresh keys from the Web Key Directory or via other methods
830 configured with --auto-key-locate.
831 * gpg: New import option "self-sigs-only".
832 * gpg: In --auto-key-retrieve prefer WKD over keyservers. [#4595]
833 * dirmngr: Support the "openpgpkey" subdomain feature from
834 draft-koch-openpgp-webkey-service-07. [#4590].
835 * dirmngr: Add an exception for the "openpgpkey" subdomain to the
836 CSRF protection. [#4603]
837 * dirmngr: Fix endless loop due to http errors 503 and 504. [#4600]
838 * dirmngr: Fix TLS bug during redirection of HKP requests. [#4566]
839 * gpgconf: Fix a race condition when killing components. [#4577]
840 </pre>
841
842 <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.
843 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>
844
845 <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>
846
847 <p>10.08.2019</p>
848
849 <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>
850 ]]>
851 </content>
852 <dc:subject>crypt</dc:subject>
853 <dc:subject>gpg</dc:subject>
854 <dc:subject>security</dc:subject>
855 <dc:subject>updated</dc:subject>
856
857 </entry>
858 <entry>
859 <link href="https://daniel-lange.com/archives/157-Wiping-harddisks-in-2019.html" rel="alternate" title="Wiping harddisks in 2019" />
860 <author>
861 <name>Daniel Lange</name>
862 </author>
863
864 <published>2019-03-12T08:55:00Z</published>
865 <disable-updated>2019-03-12T18:53:51Z</disable-updated>
866 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=157</wfw:comment>
867
868 <slash:comments>4</slash:comments>
869 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=157</wfw:commentRss>
870
871 <category scheme="https://daniel-lange.com/categories/8-Linux" label="Linux" term="Linux" />
872
873 <id>https://daniel-lange.com/archives/157-guid.html</id>
874 <title type="html">Wiping harddisks in 2019</title>
875 <content type="html">
876 <![CDATA[<p>Wiping hard disks is part of my company's policy when returning servers. No exceptions.</p>
877
878 <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>
879
880 <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>
881
882 <p>Still there are three things to be aware of when wiping modern hard disks:</p>
883
884 <ol>
885 <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>
886 <li>All disks can usually be written to in parallel. <code>screen</code> is your friend.</li>
887 <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>
888 <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>
889 </ol>
890
891 <p><style>
892 table.blueTable {
893 border: 1px solid #1C6EA4;
894 background-color: #EEEEEE;
895 text-align: center;
896 border-collapse: collapse;
897 }
898 table.blueTable td, table.blueTable th {
899 border: 1px solid #AAAAAA;
900 padding: 3px 2px;
901 }
902 table.blueTable tbody td {
903 font-size: 12px;
904 }
905 table.blueTable tr:nth-child(even) {
906 background: #D0E4F5;
907 }
908 table.blueTable thead th {
909 font-size: 12px;
910 font-weight: bold;
911 text-align: center;
912 }
913 table.blueTable thead th:first-child {
914 border-left: none;
915 }
916 </style></p>
917
918 <table class="blueTable">
919 <thead>
920 <tr>
921 <th>hard disk size</th>
922 <th>one pass</th>
923 <th>three passes</th>
924 </tr>
925 </thead>
926 <tbody>
927 <tr><td>1 TB</td><td>2 h</td><td>6 h</td></tr>
928 <tr><td>2 TB</td><td>4 h</td><td>12 h</td></tr>
929 <tr><td>3 TB</td><td>6 h</td><td>18 h</td></tr>
930 <tr><td>4 TB</td><td>8 h</td><td>24 h (one day)</td></tr>
931 <tr><td>5 TB</td><td>10 h</td><td>30 h</td></tr>
932 <tr><td>6 TB</td><td>12 h</td><td>36 h</td></tr>
933 <tr><td>8 TB</td><td>16 h</td><td>48 h (two days) </td></tr>
934 <tr><td>10 TB</td><td>20 h</td><td>60 h</td></tr>
935 <tr><td>12 TB</td><td>24 h</td><td>72 h (three days)</td></tr>
936 <tr><td>14 TB</td><td>28 h</td><td>84 h</td></tr>
937 <tr><td>16 TB</td><td>32 h</td><td>96 h (four days)</td></tr>
938 <tr><td>18 TB</td><td>36 h</td><td>108 h</td></tr>
939 <tr><td>20 TB</td><td>40 h</td><td>120 h (five days)</td></tr>
940
941 </tbody>
942 </tr>
943 </table>
944
945 <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>
946
947 <div style="clear:both"></div>
948
949 <div class="footnotes">
950 <hr />
951 <ol>
952
953 <li id="fn:1">
954 <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. <a href="#fnref:1" rev="footnote">↩</a></p>
955 </li>
956
957 </ol>
958 </div>
959 ]]>
960 </content>
961 <dc:subject>data</dc:subject>
962 <dc:subject>erase</dc:subject>
963 <dc:subject>harddisk</dc:subject>
964 <dc:subject>security</dc:subject>
965 <dc:subject>ssd</dc:subject>
966 <dc:subject>wipe</dc:subject>
967
968 </entry>
969 <entry>
970 <link href="https://daniel-lange.com/archives/156-Apple-Time-Machine-backups-on-Debian-9-Stretch.html" rel="alternate" title="Apple Time Machine backups on Debian 9 (Stretch)" />
971 <author>
972 <name>Daniel Lange</name>
973 </author>
974
975 <published>2019-01-07T13:59:00Z</published>
976 <disable-updated>2019-01-09T10:29:23Z</disable-updated>
977 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=156</wfw:comment>
978
979 <slash:comments>1</slash:comments>
980 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=156</wfw:commentRss>
981
982 <category scheme="https://daniel-lange.com/categories/19-Debian" label="Debian" term="Debian" />
983
984 <id>https://daniel-lange.com/archives/156-guid.html</id>
985 <title type="html">Apple Time Machine backups on Debian 9 (Stretch)</title>
986 <content type="html">
987 <![CDATA[<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>
988
989 <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>
990
991 <table>
992 <tr><td>
993 <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." />
994 </td>
995 <td>
996 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 />
997 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>.
998 </td></tr></table>
999
1000 <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>
1001
1002 <p>Update instructions and downloads:</p>
1003 <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>]]>
1004 </content>
1005 <dc:subject>apple</dc:subject>
1006 <dc:subject>backup</dc:subject>
1007 <dc:subject>debian</dc:subject>
1008 <dc:subject>netatalk</dc:subject>
1009 <dc:subject>stretch</dc:subject>
1010 <dc:subject>timemachine</dc:subject>
1011 <dc:subject>updated</dc:subject>
1012
1013 </entry>
1014 <entry>
1015 <link href="https://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html" rel="alternate" title="Xfce 4.12 not suspending on laptop-lid close" />
1016 <author>
1017 <name>Daniel Lange</name>
1018 </author>
1019
1020 <published>2019-01-05T15:15:00Z</published>
1021 <disable-updated>2019-01-07T09:37:24Z</disable-updated>
1022 <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=154</wfw:comment>
1023
1024 <slash:comments>1</slash:comments>
1025 <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&type=comments&cid=154</wfw:commentRss>
1026
1027 <category scheme="https://daniel-lange.com/categories/8-Linux" label="Linux" term="Linux" />
1028
1029 <id>https://daniel-lange.com/archives/154-guid.html</id>
1030 <title type="html">Xfce 4.12 not suspending on laptop-lid close</title>
1031 <content type="html">
1032 <![CDATA[<p>Xfce 4.12 as default in Ubuntu/Xubuntu 18.04 LTS did not suspend a laptop after closing the lid. In fact running
1033 <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>
1034
1035 <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>
1036
1037 <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>
1038
1039 <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>
1040
1041 <p>So best is to teach Xfce4 to handle the events again as in pre-systemd times:</p>
1042
1043 <p><code>xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false</code></p>
1044
1045 <p>Now the UI options will work again as intended and the laptop suspends on lid close and resumes on lid open.</p>
1046
1047 <h3>Update:</h3>
1048
1049 <p>07.01.19: Changed XFCE -> Xfce as per Corsac's suggestion in the comments below. Thank you!</p>
1050
1051 <p>Background info:</p>
1052
1053 <blockquote>
1054 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)".
1055 </blockquote>
1056
1057 <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>
1058 ]]>
1059 </content>
1060 <dc:subject>config</dc:subject>
1061 <dc:subject>hibernate</dc:subject>
1062 <dc:subject>suspend</dc:subject>
1063 <dc:subject>systemd</dc:subject>
1064 <dc:subject>ubuntu</dc:subject>
1065 <dc:subject>updated</dc:subject>
1066 <dc:subject>xfce</dc:subject>
1067
1068 </entry>
1069
1070