1 <?xml version=
"1.0" encoding=
"utf-8"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/' xmlns:
atom=
"http://www.w3.org/2005/Atom">
4 <title>Petter Reinholdtsen
</title>
5 <description></description>
6 <link>http://people.skolelinux.org/pere/blog/
</link>
7 <atom:link href=
"http://people.skolelinux.org/pere/blog/index.rss" rel=
"self" type=
"application/rss+xml" />
10 <title>Sales number for the Free Culture translation, first half of
2016</title>
11 <link>http://people.skolelinux.org/pere/blog/Sales_number_for_the_Free_Culture_translation__first_half_of_2016.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sales_number_for_the_Free_Culture_translation__first_half_of_2016.html
</guid>
13 <pubDate>Fri,
5 Aug
2016 22:
45:
00 +
0200</pubDate>
14 <description><p
>As my regular readers probably remember, I published a French and
15 Norwegian translation of the classic Free Culture book by the founder
16 of the Creative Commons movement, Lawrence Lessig, the last year. A
17 bit less known is the fact that due to the way I created the
18 translations, using docbook and po4a, and also recreated the English
19 original. And because I already had created a new the PDF edition, I
20 published it too. The revenue from the book is sent to the Creative
21 Commons Corporation. So I do not earn any money from the project, I
22 just earn the warm fuzzy feeling that the text is available for a
23 wider audience and more people can learn why the Creative Commons is
26 <p
>Today, just for fun, I had a look at the sales number over at
27 Lulu.com, which take care of payment, printing and shipping. Much to
28 my surprise, the English edition is selling better than both the
29 French and Norwegian edition, despite the fact that it has been
30 available in English since it was first published. In total,
24 paper
31 books was sold for USD $
19.99 between
2016-
01-
01 and
2016-
07-
31:
</p
>
33 <table border=
"0">
34 <tr
><th
>Title / language
</th
><th
>Quantity
</th
></tr
>
35 <tr
><td
><a href=
"http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-
22645082.html
">Culture Libre / French
</a
></td
><td
>3</td
></tr
>
36 <tr
><td
><a href=
"http://www.lulu.com/shop/lawrence-lessig/fri-kultur/paperback/product-
22441576.html
">Fri kultur / Norwegian
</a
></td
><td
>7</td
></tr
>
37 <tr
><td
><a href=
"http://www.lulu.com/shop/lawrence-lessig/free-culture/paperback/product-
22440520.html
">Free Culture / English
</a
></td
><td
>14</td
></tr
>
40 <p
>The books are available both from Lulu.com and from large book
41 stores like Amazon and Barnes
&Noble. Most revenue, around $
10 per
42 book, is sent to the Creative Commons project when the book is sold
43 directly by Lulu.com. The summary from Lulu tell me
10 books was sold
44 via the Amazon channel,
10 via Ingram (what is this?) and
4 directly
45 by Lulu. And Lulu.com tells me that the revenue sent so far this year
46 is USD $
101.42. No idea what kind of sales numbers to expect, so I do
47 not know if that is a good amount of sales for a
10 year old book or
48 not. But it make me happy that the buyers find the book, and I hope
49 they enjoy reading it as much as I did.
</p
>
51 <p
>The ebook edition is available for free from
52 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">Github
</a
>.
</p
>
54 <p
>If you would like to translate and publish the book in your native
55 language, I would be happy to help make it happen. Please get in
61 <title>Vitenskapen tar som vanlig feil igjen - relativt feil
</title>
62 <link>http://people.skolelinux.org/pere/blog/Vitenskapen_tar_som_vanlig_feil_igjen___relativt_feil.html
</link>
63 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Vitenskapen_tar_som_vanlig_feil_igjen___relativt_feil.html
</guid>
64 <pubDate>Mon,
1 Aug
2016 16:
00:
00 +
0200</pubDate>
65 <description><p
>For mange år siden leste jeg en klassisk tekst som gjorde såpass
66 inntrykk på meg at jeg husker den fortsatt, flere år senere, og bruker
67 argumentene fra den stadig vekk. Teksten var «The Relativity of
68 Wrong» som Isaac Asimov publiserte i Skeptical Inquirer i
1989. Den
69 gir litt perspektiv rundt formidlingen av vitenskapelige resultater.
70 Jeg har hatt lyst til å kunne dele den også med folk som ikke
71 behersker engelsk så godt, som barn og noen av mine eldre slektninger,
72 og har savnet å ha den tilgjengelig på norsk. For to uker siden tok
73 jeg meg sammen og kontaktet Asbjørn Dyrendal i foreningen Skepsis om
74 de var interessert i å publisere en norsk utgave på bloggen sin, og da
75 han var positiv tok jeg kontakt med Skeptical Inquirer og spurte om
76 det var greit for dem. I løpet av noen dager fikk vi tilbakemelding
77 fra Barry Karr hos The Skeptical Inquirer som hadde sjekket og fått OK
78 fra Robyn Asimov som representerte arvingene i Asmiov-familien og gikk
79 igang med oversettingen.
</p
>
81 <p
>Resultatet,
<a href=
"http://www.skepsis.no/?p=
1617">«Relativt
82 feil»
</a
>, ble publisert på skepsis-bloggen for noen minutter siden.
83 Jeg anbefaler deg på det varmeste å lese denne teksten og dele den med
84 dine venner.
</p
>
86 <p
>For å håndtere oversettelsen og sikre at original og oversettelse
87 var i sync brukte vi git, po4a, GNU make og Transifex. Det hele
88 fungerte utmerket og gjorde det enkelt å dele tekstene og jobbe sammen
89 om finpuss på formuleringene. Hadde hosted.weblate.org latt meg
90 opprette nye prosjekter selv i stedet for å måtte kontakte
91 administratoren der, så hadde jeg brukt weblate i stedet.
</p
>
96 <title>Techno TV broadcasting live across Norway and the Internet (#debconf16, #nuug) on @frikanalen
</title>
97 <link>http://people.skolelinux.org/pere/blog/Techno_TV_broadcasting_live_across_Norway_and_the_Internet___debconf16___nuug__on__frikanalen.html
</link>
98 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Techno_TV_broadcasting_live_across_Norway_and_the_Internet___debconf16___nuug__on__frikanalen.html
</guid>
99 <pubDate>Mon,
1 Aug
2016 10:
30:
00 +
0200</pubDate>
100 <description><p
>Did you know there is a TV channel broadcasting talks from DebConf
101 16 across an entire country? Or that there is a TV channel
102 broadcasting talks by or about
103 <a href=
"http://beta.frikanalen.no/video/
625529/
">Linus Torvalds
</a
>,
104 <a href=
"http://beta.frikanalen.no/video/
625599/
">Tor
</a
>,
105 <a href=
"http://beta.frikanalen.no/video/
624019/
">OpenID
</A
>,
106 <a href=
"http://beta.frikanalen.no/video/
625624/
">Common Lisp
</a
>,
107 <a href=
"http://beta.frikanalen.no/video/
625446/
">Civic Tech
</a
>,
108 <a href=
"http://beta.frikanalen.no/video/
625090/
">EFF founder John Barlow
</a
>,
109 <a href=
"http://beta.frikanalen.no/video/
625432/
">how to make
3D
110 printer electronics
</a
> and many more fascinating topics? It works
111 using only free software (all of it
112 <a href=
"http://github.com/Frikanalen
">available from Github
</a
>), and
113 is administrated using a web browser and a web API.
</p
>
115 <p
>The TV channel is the Norwegian open channel
116 <a href=
"http://www.frikanalen.no/
">Frikanalen
</a
>, and I am involved
117 via
<a href=
"https://www.nuug.no/
">the NUUG member association
</a
> in
118 running and developing the software for the channel. The channel is
119 organised as a member organisation where its members can upload and
120 broadcast what they want (think of it as Youtube for national
121 broadcasting television). Individuals can broadcast too. The time
122 slots are handled on a first come, first serve basis. Because the
123 channel have almost no viewers and very few active members, we can
124 experiment with TV technology without too much flack when we make
125 mistakes. And thanks to the few active members, most of the slots on
126 the schedule are free. I see this as an opportunity to spread
127 knowledge about technology and free software, and have a script I run
128 regularly to fill up all the open slots the next few days with
129 technology related video. The end result is a channel I like to
130 describe as Techno TV - filled with interesting talks and
131 presentations.
</p
>
133 <p
>It is available on channel
50 on the Norwegian national digital TV
134 network (RiksTV). It is also available as a multicast stream on
135 Uninett. And finally, it is available as
136 <a href=
"http://beta.frikanalen.no/
">a WebM unicast stream
</a
> from
137 Frikanalen and NUUG. Check it out. :)
</p
>
142 <title>Unlocking HTC Desire HD on Linux using unruu and fastboot
</title>
143 <link>http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html
</link>
144 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html
</guid>
145 <pubDate>Thu,
7 Jul
2016 11:
30:
00 +
0200</pubDate>
146 <description><p
>Yesterday, I tried to unlock a HTC Desire HD phone, and it proved
147 to be a slight challenge. Here is the recipe if I ever need to do it
148 again. It all started by me wanting to try the recipe to set up
149 <a href=
"https://blog.torproject.org/blog/mission-impossible-hardening-android-security-and-privacy
">an
150 hardened Android installation
</a
> from the Tor project blog on a
151 device I had access to. It is a old mobile phone with a broken
152 microphone The initial idea had been to just
153 <a href=
"http://wiki.cyanogenmod.org/w/Install_CM_for_ace
">install
154 CyanogenMod on it
</a
>, but did not quite find time to start on it
155 until a few days ago.
</p
>
157 <p
>The unlock process is supposed to be simple: (
1) Boot into the boot
158 loader (press volume down and power at the same time), (
2) select
159 'fastboot
' before (
3) connecting the device via USB to a Linux
160 machine, (
4) request the device identifier token by running
'fastboot
161 oem get_identifier_token
', (
5) request the device unlocking key using
162 the
<a href=
"http://www.htcdev.com/bootloader/
">HTC developer web
163 site
</a
> and unlock the phone using the key file emailed to you.
</p
>
165 <p
>Unfortunately, this only work fi you have hboot version
2.00.0029
166 or newer, and the device I was working on had
2.00.0027. This
167 apparently can be easily fixed by downloading a Windows program and
168 running it on your Windows machine, if you accept the terms Microsoft
169 require you to accept to use Windows - which I do not. So I had to
170 come up with a different approach. I got a lot of help from AndyCap
171 on #nuug, and would not have been able to get this working without
174 <p
>First I needed to extract the hboot firmware from
175 <a href=
"http://www.htcdev.com/ruu/PD9810000_Ace_Sense30_S_hboot_2.00
.0029.exe
">the
176 windows binary for HTC Desire HD
</a
> downloaded as
'the RUU
' from HTC.
177 For this there is is
<a href=
"https://github.com/kmdm/unruu/
">a github
178 project named unruu
</a
> using libunshield. The unshield tool did not
179 recognise the file format, but unruu worked and extracted rom.zip,
180 containing the new hboot firmware and a text file describing which
181 devices it would work for.
</p
>
183 <p
>Next, I needed to get the new firmware into the device. For this I
184 followed some instructions
185 <a href=
"http://www.htc1guru.com/
2013/
09/new-ruu-zips-posted/
">available
186 from HTC1Guru.com
</a
>, and ran these commands as root on a Linux
187 machine with Debian testing:
</p
>
190 adb reboot-bootloader
191 fastboot oem rebootRUU
192 fastboot flash zip rom.zip
193 fastboot flash zip rom.zip
195 </pre
></p
>
197 <p
>The flash command apparently need to be done twice to take effect,
198 as the first is just preparations and the second one do the flashing.
199 The adb command is just to get to the boot loader menu, so turning the
200 device on while holding volume down and the power button should work
203 <p
>With the new hboot version in place I could start following the
204 instructions on the HTC developer web site. I got the device token
208 fastboot oem get_identifier_token
2>&1 | sed
's/(bootloader) //
'
211 <p
>And once I got the unlock code via email, I could use it like
215 fastboot flash unlocktoken Unlock_code.bin
216 </pre
></p
>
218 <p
>And with that final step in place, the phone was unlocked and I
219 could start stuffing the software of my own choosing into the device.
220 So far I only inserted a replacement recovery image to wipe the phone
221 before I start. We will see what happen next. Perhaps I should
222 install
<a href=
"https://www.debian.org/
">Debian
</a
> on it. :)
</p
>
227 <title>How to use the Signal app if you only have a land line (ie no mobile phone)
</title>
228 <link>http://people.skolelinux.org/pere/blog/How_to_use_the_Signal_app_if_you_only_have_a_land_line__ie_no_mobile_phone_.html
</link>
229 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_to_use_the_Signal_app_if_you_only_have_a_land_line__ie_no_mobile_phone_.html
</guid>
230 <pubDate>Sun,
3 Jul
2016 14:
20:
00 +
0200</pubDate>
231 <description><p
>For a while now, I have wanted to test
232 <a href=
"https://whispersystems.org/
">the Signal app
</a
>, as it is
233 said to provide end to end encrypted communication and several of my
234 friends and family are already using it. As I by choice do not own a
235 mobile phone, this proved to be harder than expected. And I wanted to
236 have the source of the client and know that it was the code used on my
237 machine. But yesterday I managed to get it working. I used the
238 Github source, compared it to the source in
239 <a href=
"https://chrome.google.com/webstore/detail/signal-private-messenger/bikioccmkafdpakkkcpdbppfkghcmihk?hl=en-US
">the
240 Signal Chrome app
</a
> available from the Chrome web store, applied
241 patches to use the production Signal servers, started the app and
242 asked for the hidden
"register without a smart phone
" form. Here is
243 the recipe how I did it.
</p
>
245 <p
>First, I fetched the Signal desktop source from Github, using
248 git clone https://github.com/WhisperSystems/Signal-Desktop.git
251 <p
>Next, I patched the source to use the production servers, to be
252 able to talk to other Signal users:
</p
>
255 cat
&lt;
&lt;EOF | patch -p0
256 diff -ur ./js/background.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/background.js
257 --- ./js/background.js
2016-
06-
29 13:
43:
15.630344628 +
0200
258 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/background.js
2016-
06-
29 14:
06:
29.530300934 +
0200
263 - var SERVER_URL =
'https://textsecure-service-staging.whispersystems.org
';
264 - var ATTACHMENT_SERVER_URL =
'https://whispersystems-textsecure-attachments-staging.s3.amazonaws.com
';
265 + var SERVER_URL =
'https://textsecure-service-ca.whispersystems.org:
4433';
266 + var ATTACHMENT_SERVER_URL =
'https://whispersystems-textsecure-attachments.s3.amazonaws.com
';
268 window.getSocketStatus = function() {
269 if (messageReceiver) {
270 diff -ur ./js/expire.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/expire.js
271 --- ./js/expire.js
2016-
06-
29 13:
43:
15.630344628 +
0200
272 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/expire.js2016-
06-
29 14:
06:
29.530300934 +
0200
275 'use strict
';
276 - var BUILD_EXPIRATION =
0;
277 + var BUILD_EXPIRATION =
1474492690000;
279 window.extension = window.extension || {};
284 <p
>The first part is changing the servers, and the second is updating
285 an expiration timestamp. This timestamp need to be updated regularly.
286 It is set
90 days in the future by the build process (Gruntfile.js).
287 The value is seconds since
1970 times
1000, as far as I can tell.
</p
>
289 <p
>Based on a tip and good help from the #nuug IRC channel, I wrote a
290 script to launch Signal in Chromium.
</p
>
297 --proxy-server=
"socks://localhost:
9050" \
298 --user-data-dir=`pwd`/userdata --load-and-launch-app=`pwd`
301 <p
> The script start the app and configure Chromium to use the Tor
302 SOCKS5 proxy to make sure those controlling the Signal servers (today
303 Amazon and Whisper Systems) as well as those listening on the lines
304 will have a harder time location my laptop based on the Signal
305 connections if they use source IP address.
</p
>
307 <p
>When the script starts, one need to follow the instructions under
308 "Standalone Registration
" in the CONTRIBUTING.md file in the git
309 repository. I right clicked on the Signal window to get up the
310 Chromium debugging tool, visited the
'Console
' tab and wrote
311 'extension.install(
"standalone
")
' on the console prompt to get the
312 registration form. Then I entered by land line phone number and
313 pressed
'Call
'.
5 seconds later the phone rang and a robot voice
314 repeated the verification code three times. After entering the number
315 into the verification code field in the form, I could start using
316 Signal from my laptop.
318 <p
>As far as I can tell, The Signal app will leak who is talking to
319 whom and thus who know who to those controlling the central server,
320 but such leakage is hard to avoid with a centrally controlled server
321 setup. It is something to keep in mind when using Signal - the
322 content of your chats are harder to intercept, but the meta data
323 exposing your contact network is available to people you do not know.
324 So better than many options, but not great. And sadly the usage is
325 connected to my land line, thus allowing those controlling the server
326 to associate it to my home and person. I would prefer it if only
327 those I knew could tell who I was on Signal. There are options
328 avoiding such information leakage, but most of my friends are not
329 using them, so I am stuck with Signal for now.
</p
>
334 <title>The new
"best
" multimedia player in Debian?
</title>
335 <link>http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html
</link>
336 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html
</guid>
337 <pubDate>Mon,
6 Jun
2016 12:
50:
00 +
0200</pubDate>
338 <description><p
>When I set out a few weeks ago to figure out
339 <a href=
"http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
">which
340 multimedia player in Debian claimed to support most file formats /
341 MIME types
</a
>, I was a bit surprised how varied the sets of MIME types
342 the various players claimed support for. The range was from
55 to
130
343 MIME types. I suspect most media formats are supported by all
344 players, but this is not really reflected in the MimeTypes values in
345 their desktop files. There are probably also some bogus MIME types
346 listed, but it is hard to identify which one this is.
</p
>
348 <p
>Anyway, in the mean time I got in touch with upstream for some of
349 the players suggesting to add more MIME types to their desktop files,
350 and decided to spend some time myself improving the situation for my
351 favorite media player VLC. The fixes for VLC entered Debian unstable
352 yesterday. The complete list of MIME types can be seen on the
353 <a href=
"https://wiki.debian.org/DebianMultimedia/PlayerSupport
">Multimedia
354 player MIME type support status
</a
> Debian wiki page.
</p
>
356 <p
>The new
"best
" multimedia player in Debian? It is VLC, followed by
357 totem, parole, kplayer, gnome-mpv, mpv, smplayer, mplayer-gui and
358 kmplayer. I am sure some of the other players desktop files support
359 several of the formats currently listed as working only with vlc,
360 toten and parole.
</p
>
362 <p
>A sad observation is that only
14 MIME types are listed as
363 supported by all the tested multimedia players in Debian in their
364 desktop files: audio/mpeg, audio/vnd.rn-realaudio, audio/x-mpegurl,
365 audio/x-ms-wma, audio/x-scpls, audio/x-wav, video/mp4, video/mpeg,
366 video/quicktime, video/vnd.rn-realvideo, video/x-matroska,
367 video/x-ms-asf, video/x-ms-wmv and video/x-msvideo. Personally I find
368 it sad that video/ogg and video/webm is not supported by all the media
369 players in Debian. As far as I can tell, all of them can handle both
375 <title>A program should be able to open its own files on Linux
</title>
376 <link>http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html
</link>
377 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html
</guid>
378 <pubDate>Sun,
5 Jun
2016 08:
30:
00 +
0200</pubDate>
379 <description><p
>Many years ago, when koffice was fresh and with few users, I
380 decided to test its presentation tool when making the slides for a
381 talk I was giving for NUUG on Japhar, a free Java virtual machine. I
382 wrote the first draft of the slides, saved the result and went to bed
383 the day before I would give the talk. The next day I took a plane to
384 the location where the meeting should take place, and on the plane I
385 started up koffice again to polish the talk a bit, only to discover
386 that kpresenter refused to load its own data file. I cursed a bit and
387 started making the slides again from memory, to have something to
388 present when I arrived. I tested that the saved files could be
389 loaded, and the day seemed to be rescued. I continued to polish the
390 slides until I suddenly discovered that the saved file could no longer
391 be loaded into kpresenter. In the end I had to rewrite the slides
392 three times, condensing the content until the talk became shorter and
393 shorter. After the talk I was able to pinpoint the problem
&ndash;
394 kpresenter wrote inline images in a way itself could not understand.
395 Eventually that bug was fixed and kpresenter ended up being a great
396 program to make slides. The point I
'm trying to make is that we
397 expect a program to be able to load its own data files, and it is
398 embarrassing to its developers if it can
't.
</p
>
400 <p
>Did you ever experience a program failing to load its own data
401 files from the desktop file browser? It is not a uncommon problem. A
402 while back I discovered that the screencast recorder
403 gtk-recordmydesktop would save an Ogg Theora video file the KDE file
404 browser would refuse to open. No video player claimed to understand
405 such file. I tracked down the cause being
<tt
>file --mime-type
</tt
>
406 returning the application/ogg MIME type, which no video player I had
407 installed listed as a MIME type they would understand. I asked for
408 <a href=
"http://bugs.gw.com/view.php?id=
382">file to change its
409 behavour
</a
> and use the MIME type video/ogg instead. I also asked
410 several video players to add video/ogg to their desktop files, to give
411 the file browser an idea what to do about Ogg Theora files. After a
412 while, the desktop file browsers in Debian started to handle the
413 output from gtk-recordmydesktop properly.
</p
>
415 <p
>But history repeats itself. A few days ago I tested the music
416 system Rosegarden again, and I discovered that the KDE and xfce file
417 browsers did not know what to do with the Rosegarden project files
418 (*.rg). I
've reported
<a href=
"http://bugs.debian.org/
825993">the
419 rosegarden problem to BTS
</a
> and a fix is commited to git and will be
420 included in the next upload. To increase the chance of me remembering
421 how to fix the problem next time some program fail to load its files
422 from the file browser, here are some notes on how to fix it.
</p
>
424 <p
>The file browsers in Debian in general operates on MIME types.
425 There are two sources for the MIME type of a given file. The output from
426 <tt
>file --mime-type
</tt
> mentioned above, and the content of the
427 shared MIME type registry (under /usr/share/mime/). The file MIME
428 type is mapped to programs supporting the MIME type, and this
429 information is collected from
430 <a href=
"https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/
">the
431 desktop files
</a
> available in /usr/share/applications/. If there is
432 one desktop file claiming support for the MIME type of the file, it is
433 activated when asking to open a given file. If there are more, one
434 can normally select which one to use by right-clicking on the file and
435 selecting the wanted one using
'Open with
' or similar. In general
436 this work well. But it depend on each program picking a good MIME
438 <a href=
"http://www.iana.org/assignments/media-types/media-types.xhtml
">a
439 MIME type registered with IANA
</a
>), file and/or the shared MIME
440 registry recognizing the file and the desktop file to list the MIME
441 type in its list of supported MIME types.
</p
>
443 <p
>The
<tt
>/usr/share/mime/packages/rosegarden.xml
</tt
> entry for
444 <a href=
"http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec
">the
445 Shared MIME database
</a
> look like this:
</p
>
447 <p
><blockquote
><pre
>
448 &lt;?xml version=
"1.0" encoding=
"UTF-
8"?
&gt;
449 &lt;mime-info xmlns=
"http://www.freedesktop.org/standards/shared-mime-info
"&gt;
450 &lt;mime-type type=
"audio/x-rosegarden
"&gt;
451 &lt;sub-class-of type=
"application/x-gzip
"/
&gt;
452 &lt;comment
&gt;Rosegarden project file
&lt;/comment
&gt;
453 &lt;glob pattern=
"*.rg
"/
&gt;
454 &lt;/mime-type
&gt;
455 &lt;/mime-info
&gt;
456 </pre
></blockquote
></p
>
458 <p
>This states that audio/x-rosegarden is a kind of application/x-gzip
459 (it is a gzipped XML file). Note, it is much better to use an
460 official MIME type registered with IANA than it is to make up ones own
461 unofficial ones like the x-rosegarden type used by rosegarden.
</p
>
463 <p
>The desktop file of the rosegarden program failed to list
464 audio/x-rosegarden in its list of supported MIME types, causing the
465 file browsers to have no idea what to do with *.rg files:
</p
>
467 <p
><blockquote
><pre
>
468 % grep Mime /usr/share/applications/rosegarden.desktop
469 MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;
470 X-KDE-NativeMimeType=audio/x-rosegarden-composition
472 </pre
></blockquote
></p
>
474 <p
>The fix was to add
"audio/x-rosegarden;
" at the end of the
475 MimeType= line.
</p
>
477 <p
>If you run into a file which fail to open the correct program when
478 selected from the file browser, please check out the output from
479 <tt
>file --mime-type
</tt
> for the file, ensure the file ending and
480 MIME type is registered somewhere under /usr/share/mime/ and check
481 that some desktop file under /usr/share/applications/ is claiming
482 support for this MIME type. If not, please report a bug to have it
488 <title>Tor - from its creators mouth
11 years ago
</title>
489 <link>http://people.skolelinux.org/pere/blog/Tor___from_its_creators_mouth_11_years_ago.html
</link>
490 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Tor___from_its_creators_mouth_11_years_ago.html
</guid>
491 <pubDate>Sat,
28 May
2016 14:
20:
00 +
0200</pubDate>
492 <description><p
>A little more than
11 years ago, one of the creators of Tor, and
493 the current President of
<a href=
"https://www.torproject.org/
">the Tor
494 project
</a
>, Roger Dingledine, gave a talk for the members of the
495 <a href=
"http://www.nuug.no/
">Norwegian Unix User group
</a
> (NUUG). A
496 video of the talk was recorded, and today, thanks to the great help
497 from David Noble, I finally was able to publish the video of the talk
498 on Frikanalen, the Norwegian open channel TV station where NUUG
499 currently publishes its talks. You can
500 <a href=
"http://frikanalen.no/se
">watch the live stream using a web
501 browser
</a
> with WebM support, or check out the recording on the video
502 on demand page for the talk
503 "<a href=
"http://beta.frikanalen.no/video/
625599">Tor: Anonymous
504 communication for the US Department of Defence...and you.
</a
>".
</p
>
506 <p
>Here is the video included for those of you using browsers with
507 HTML video and Ogg Theora support:
</p
>
509 <p
><video width=
"70%
" poster=
"http://simula.gunkies.org/media/
625599/large_thumb/
20050421-tor-frikanalen.jpg
" controls
>
510 <source src=
"http://simula.gunkies.org/media/
625599/theora/
20050421-tor-frikanalen.ogv
" type=
"video/ogg
"/
>
511 </video
></p
>
513 <p
>I guess the gist of the talk can be summarised quite simply: If you
514 want to help the military in USA (and everyone else), use Tor. :)
</p
>
519 <title>Isenkram with PackageKit support - new version
0.23 available in Debian unstable
</title>
520 <link>http://people.skolelinux.org/pere/blog/Isenkram_with_PackageKit_support___new_version_0_23_available_in_Debian_unstable.html
</link>
521 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Isenkram_with_PackageKit_support___new_version_0_23_available_in_Debian_unstable.html
</guid>
522 <pubDate>Wed,
25 May
2016 10:
20:
00 +
0200</pubDate>
523 <description><p
><a href=
"https://tracker.debian.org/pkg/isenkram
">The isenkram
524 system
</a
> is a user-focused solution in Debian for handling hardware
525 related packages. The idea is to have a database of mappings between
526 hardware and packages, and pop up a dialog suggesting for the user to
527 install the packages to use a given hardware dongle. Some use cases
528 are when you insert a Yubikey, it proposes to install the software
529 needed to control it; when you insert a braille reader list it
530 proposes to install the packages needed to send text to the reader;
531 and when you insert a ColorHug screen calibrator it suggests to
532 install the driver for it. The system work well, and even have a few
533 command line tools to install firmware packages and packages for the
534 hardware already in the machine (as opposed to hotpluggable hardware).
</p
>
536 <p
>The system was initially written using aptdaemon, because I found
537 good documentation and example code on how to use it. But aptdaemon
538 is going away and is generally being replaced by
539 <a href=
"http://www.freedesktop.org/software/PackageKit/
">PackageKit
</a
>,
540 so Isenkram needed a rewrite. And today, thanks to the great patch
541 from my college Sunil Mohan Adapa in the FreedomBox project, the
542 rewrite finally took place. I
've just uploaded a new version of
543 Isenkram into Debian Unstable with the patch included, and the default
544 for the background daemon is now to use PackageKit. To check it out,
545 install the
<tt
>isenkram
</tt
> package and insert some hardware dongle
546 and see if it is recognised.
</p
>
548 <p
>If you want to know what kind of packages isenkram would propose for
549 the machine it is running on, you can check out the isenkram-lookup
550 program. This is what it look like on a Thinkpad X230:
</p
>
552 <p
><blockquote
><pre
>
568 </pre
></blockquote
></p
>
570 <p
>The hardware mappings come from several places. The preferred way
571 is for packages to announce their hardware support using
572 <a href=
"https://www.freedesktop.org/software/appstream/docs/
">the
573 cross distribution appstream system
</a
>.
575 <a href=
"http://people.skolelinux.org/pere/blog/tags/isenkram/
">previous
576 blog posts about isenkram
</a
> to learn how to do that.
</p
>
581 <title>Discharge rate estimate in new battery statistics collector for Debian
</title>
582 <link>http://people.skolelinux.org/pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</link>
583 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</guid>
584 <pubDate>Mon,
23 May
2016 09:
35:
00 +
0200</pubDate>
585 <description><p
>Yesterday I updated the
586 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
587 package in Debian
</a
> with a few patches sent to me by skilled and
588 enterprising users. There were some nice user and visible changes.
589 First of all, both desktop menu entries now work. A design flaw in
590 one of the script made the history graph fail to show up (its PNG was
591 dumped in ~/.xsession-errors) if no controlling TTY was available.
592 The script worked when called from the command line, but not when
593 called from the desktop menu. I changed this to look for a DISPLAY
594 variable or a TTY before deciding where to draw the graph, and now the
595 graph window pop up as expected.
</p
>
597 <p
>The next new feature is a discharge rate estimator in one of the
598 graphs (the one showing the last few hours). New is also the user of
599 colours showing charging in blue and discharge in red. The percentages
600 of this graph is relative to last full charge, not battery design
603 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-rate.png
"/
></p
>
605 <p
>The other graph show the entire history of the collected battery
606 statistics, comparing it to the design capacity of the battery to
607 visualise how the battery life time get shorter over time. The red
608 line in this graph is what the previous graph considers
100 percent:
610 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-history.png
"/
></p
>
612 <p
>In this graph you can see that I only charge the battery to
80
613 percent of last full capacity, and how the capacity of the battery is
614 shrinking. :(
</p
>
616 <p
>The last new feature is in the collector, which now will handle
617 more hardware models. On some hardware, Linux power supply
618 information is stored in /sys/class/power_supply/ACAD/, while the
619 collector previously only looked in /sys/class/power_supply/AC/. Now
620 both are checked to figure if there is power connected to the
623 <p
>If you are interested in how your laptop battery is doing, please
625 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
</a
>
626 in Debian unstable, or rebuild it on Jessie to get it working on
627 Debian stable. :) The upstream source is available from
<a
628 href=
"https://github.com/petterreinholdtsen/battery-stats
">github
</a
>.
629 Patches are very welcome.
</p
>
631 <p
>As usual, if you use Bitcoin and want to show your support of my
632 activities, please send Bitcoin donations to my address
633 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>