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