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>Unlocking HTC Desire HD on Linux using unruu and fastboot
</title>
11 <link>http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html
</guid>
13 <pubDate>Thu,
7 Jul
2016 11:
30:
00 +
0200</pubDate>
14 <description><p
>Yesterday, I tried to unlock a HTC Desire HD phone, and it proved
15 to be a slight challenge. Here is the recipe if I ever need to do it
16 again. It all started by me wanting to try the recipe to set up
17 <a href=
"https://blog.torproject.org/blog/mission-impossible-hardening-android-security-and-privacy
">an
18 hardened Android installation
</a
> from the Tor project blog on a
19 device I had access to. It is a old mobile phone with a broken
20 microphone The initial idea had been to just
21 <a href=
"http://wiki.cyanogenmod.org/w/Install_CM_for_ace
">install
22 CyanogenMod on it
</a
>, but did not quite find time to start on it
23 until a few days ago.
</p
>
25 <p
>The unlock process is supposed to be simple: (
1) Boot into the boot
26 loader (press volume down and power at the same time), (
2) select
27 'fastboot
' before (
3) connecting the device via USB to a Linux
28 machine, (
4) request the device identifier token by running
'fastboot
29 oem get_identifier_token
', (
5) request the device unlocking key using
30 the
<a href=
"http://www.htcdev.com/bootloader/
">HTC developer web
31 site
</a
> and unlock the phone using the key file emailed to you.
</p
>
33 <p
>Unfortunately, this only work fi you have hboot version
2.00.0029
34 or newer, and the device I was working on had
2.00.0027. This
35 apparently can be easily fixed by downloading a Windows program and
36 running it on your Windows machine, if you accept the terms Microsoft
37 require you to accept to use Windows - which I do not. So I had to
38 come up with a different approach. I got a lot of help from AndyCap
39 on #nuug, and would not have been able to get this working without
42 <p
>First I needed to extract the hboot firmware from
43 <a href=
"http://www.htcdev.com/ruu/PD9810000_Ace_Sense30_S_hboot_2.00
.0029.exe
">the
44 windows binary for HTC Desire HD
</a
> downloaded as
'the RUU
' from HTC.
45 For this there is is
<a href=
"https://github.com/kmdm/unruu/
">a github
46 project named unruu
</a
> using libunshield. The unshield tool did not
47 recognise the file format, but unruu worked and extracted rom.zip,
48 containing the new hboot firmware and a text file describing which
49 devices it would work for.
</p
>
51 <p
>Next, I needed to get the new firmware into the device. For this I
52 followed some instructions
53 <a href=
"http://www.htc1guru.com/
2013/
09/new-ruu-zips-posted/
">available
54 from HTC1Guru.com
</a
>, and ran these commands as root on a Linux
55 machine with Debian testing:
</p
>
59 fastboot oem rebootRUU
60 fastboot flash zip rom.zip
61 fastboot flash zip rom.zip
63 </pre
></p
>
65 <p
>The flash command apparently need to be done twice to take effect,
66 as the first is just preparations and the second one do the flashing.
67 The adb command is just to get to the boot loader menu, so turning the
68 device on while holding volume down and the power button should work
71 <p
>With the new hboot version in place I could start following the
72 instructions on the HTC developer web site. I got the device token
76 fastboot oem get_identifier_token
2>&1 | sed
's/(bootloader) //
'
79 <p
>And once I got the unlock code via email, I could use it like
83 fastboot flash unlocktoken Unlock_code.bin
84 </pre
></p
>
86 <p
>And with that final step in place, the phone was unlocked and I
87 could start stuffing the software of my own choosing into the device.
88 So far I only inserted a replacement recovery image to wipe the phone
89 before I start. We will see what happen next. Perhaps I should
90 install
<a href=
"https://www.debian.org/
">Debian
</a
> on it. :)
</p
>
95 <title>How to use the Signal app if you only have a land line (ie no mobile phone)
</title>
96 <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>
97 <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>
98 <pubDate>Sun,
3 Jul
2016 14:
20:
00 +
0200</pubDate>
99 <description><p
>For a while now, I have wanted to test
100 <a href=
"https://whispersystems.org/
">the Signal app
</a
>, as it is
101 said to provide end to end encrypted communication and several of my
102 friends and family are already using it. As I by choice do not own a
103 mobile phone, this proved to be harder than expected. And I wanted to
104 have the source of the client and know that it was the code used on my
105 machine. But yesterday I managed to get it working. I used the
106 Github source, compared it to the source in
107 <a href=
"https://chrome.google.com/webstore/detail/signal-private-messenger/bikioccmkafdpakkkcpdbppfkghcmihk?hl=en-US
">the
108 Signal Chrome app
</a
> available from the Chrome web store, applied
109 patches to use the production Signal servers, started the app and
110 asked for the hidden
"register without a smart phone
" form. Here is
111 the recipe how I did it.
</p
>
113 <p
>First, I fetched the Signal desktop source from Github, using
116 git clone https://github.com/WhisperSystems/Signal-Desktop.git
119 <p
>Next, I patched the source to use the production servers, to be
120 able to talk to other Signal users:
</p
>
123 cat
&lt;
&lt;EOF | patch -p0
124 diff -ur ./js/background.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/background.js
125 --- ./js/background.js
2016-
06-
29 13:
43:
15.630344628 +
0200
126 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/background.js
2016-
06-
29 14:
06:
29.530300934 +
0200
131 - var SERVER_URL =
'https://textsecure-service-staging.whispersystems.org
';
132 - var ATTACHMENT_SERVER_URL =
'https://whispersystems-textsecure-attachments-staging.s3.amazonaws.com
';
133 + var SERVER_URL =
'https://textsecure-service-ca.whispersystems.org:
4433';
134 + var ATTACHMENT_SERVER_URL =
'https://whispersystems-textsecure-attachments.s3.amazonaws.com
';
136 window.getSocketStatus = function() {
137 if (messageReceiver) {
138 diff -ur ./js/expire.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/expire.js
139 --- ./js/expire.js
2016-
06-
29 13:
43:
15.630344628 +
0200
140 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/expire.js2016-
06-
29 14:
06:
29.530300934 +
0200
143 'use strict
';
144 - var BUILD_EXPIRATION =
0;
145 + var BUILD_EXPIRATION =
1474492690000;
147 window.extension = window.extension || {};
152 <p
>The first part is changing the servers, and the second is updating
153 an expiration timestamp. This timestamp need to be updated regularly.
154 It is set
90 days in the future by the build process (Gruntfile.js).
155 The value is seconds since
1970 times
1000, as far as I can tell.
</p
>
157 <p
>Based on a tip and good help from the #nuug IRC channel, I wrote a
158 script to launch Signal in Chromium.
</p
>
165 --proxy-server=
"socks://localhost:
9050" \
166 --user-data-dir=`pwd`/userdata --load-and-launch-app=`pwd`
169 <p
> The script start the app and configure Chromium to use the Tor
170 SOCKS5 proxy to make sure those controlling the Signal servers (today
171 Amazon and Whisper Systems) as well as those listening on the lines
172 will have a harder time location my laptop based on the Signal
173 connections if they use source IP address.
</p
>
175 <p
>When the script starts, one need to follow the instructions under
176 "Standalone Registration
" in the CONTRIBUTING.md file in the git
177 repository. I right clicked on the Signal window to get up the
178 Chromium debugging tool, visited the
'Console
' tab and wrote
179 'extension.install(
"standalone
")
' on the console prompt to get the
180 registration form. Then I entered by land line phone number and
181 pressed
'Call
'.
5 seconds later the phone rang and a robot voice
182 repeated the verification code three times. After entering the number
183 into the verification code field in the form, I could start using
184 Signal from my laptop.
186 <p
>As far as I can tell, The Signal app will leak who is talking to
187 whom and thus who know who to those controlling the central server,
188 but such leakage is hard to avoid with a centrally controlled server
189 setup. It is something to keep in mind when using Signal - the
190 content of your chats are harder to intercept, but the meta data
191 exposing your contact network is available to people you do not know.
192 So better than many options, but not great. And sadly the usage is
193 connected to my land line, thus allowing those controlling the server
194 to associate it to my home and person. I would prefer it if only
195 those I knew could tell who I was on Signal. There are options
196 avoiding such information leakage, but most of my friends are not
197 using them, so I am stuck with Signal for now.
</p
>
202 <title>The new
"best
" multimedia player in Debian?
</title>
203 <link>http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html
</link>
204 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html
</guid>
205 <pubDate>Mon,
6 Jun
2016 12:
50:
00 +
0200</pubDate>
206 <description><p
>When I set out a few weeks ago to figure out
207 <a href=
"http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
">which
208 multimedia player in Debian claimed to support most file formats /
209 MIME types
</a
>, I was a bit surprised how varied the sets of MIME types
210 the various players claimed support for. The range was from
55 to
130
211 MIME types. I suspect most media formats are supported by all
212 players, but this is not really reflected in the MimeTypes values in
213 their desktop files. There are probably also some bogus MIME types
214 listed, but it is hard to identify which one this is.
</p
>
216 <p
>Anyway, in the mean time I got in touch with upstream for some of
217 the players suggesting to add more MIME types to their desktop files,
218 and decided to spend some time myself improving the situation for my
219 favorite media player VLC. The fixes for VLC entered Debian unstable
220 yesterday. The complete list of MIME types can be seen on the
221 <a href=
"https://wiki.debian.org/DebianMultimedia/PlayerSupport
">Multimedia
222 player MIME type support status
</a
> Debian wiki page.
</p
>
224 <p
>The new
"best
" multimedia player in Debian? It is VLC, followed by
225 totem, parole, kplayer, gnome-mpv, mpv, smplayer, mplayer-gui and
226 kmplayer. I am sure some of the other players desktop files support
227 several of the formats currently listed as working only with vlc,
228 toten and parole.
</p
>
230 <p
>A sad observation is that only
14 MIME types are listed as
231 supported by all the tested multimedia players in Debian in their
232 desktop files: audio/mpeg, audio/vnd.rn-realaudio, audio/x-mpegurl,
233 audio/x-ms-wma, audio/x-scpls, audio/x-wav, video/mp4, video/mpeg,
234 video/quicktime, video/vnd.rn-realvideo, video/x-matroska,
235 video/x-ms-asf, video/x-ms-wmv and video/x-msvideo. Personally I find
236 it sad that video/ogg and video/webm is not supported by all the media
237 players in Debian. As far as I can tell, all of them can handle both
243 <title>A program should be able to open its own files on Linux
</title>
244 <link>http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html
</link>
245 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html
</guid>
246 <pubDate>Sun,
5 Jun
2016 08:
30:
00 +
0200</pubDate>
247 <description><p
>Many years ago, when koffice was fresh and with few users, I
248 decided to test its presentation tool when making the slides for a
249 talk I was giving for NUUG on Japhar, a free Java virtual machine. I
250 wrote the first draft of the slides, saved the result and went to bed
251 the day before I would give the talk. The next day I took a plane to
252 the location where the meeting should take place, and on the plane I
253 started up koffice again to polish the talk a bit, only to discover
254 that kpresenter refused to load its own data file. I cursed a bit and
255 started making the slides again from memory, to have something to
256 present when I arrived. I tested that the saved files could be
257 loaded, and the day seemed to be rescued. I continued to polish the
258 slides until I suddenly discovered that the saved file could no longer
259 be loaded into kpresenter. In the end I had to rewrite the slides
260 three times, condensing the content until the talk became shorter and
261 shorter. After the talk I was able to pinpoint the problem
&ndash;
262 kpresenter wrote inline images in a way itself could not understand.
263 Eventually that bug was fixed and kpresenter ended up being a great
264 program to make slides. The point I
'm trying to make is that we
265 expect a program to be able to load its own data files, and it is
266 embarrassing to its developers if it can
't.
</p
>
268 <p
>Did you ever experience a program failing to load its own data
269 files from the desktop file browser? It is not a uncommon problem. A
270 while back I discovered that the screencast recorder
271 gtk-recordmydesktop would save an Ogg Theora video file the KDE file
272 browser would refuse to open. No video player claimed to understand
273 such file. I tracked down the cause being
<tt
>file --mime-type
</tt
>
274 returning the application/ogg MIME type, which no video player I had
275 installed listed as a MIME type they would understand. I asked for
276 <a href=
"http://bugs.gw.com/view.php?id=
382">file to change its
277 behavour
</a
> and use the MIME type video/ogg instead. I also asked
278 several video players to add video/ogg to their desktop files, to give
279 the file browser an idea what to do about Ogg Theora files. After a
280 while, the desktop file browsers in Debian started to handle the
281 output from gtk-recordmydesktop properly.
</p
>
283 <p
>But history repeats itself. A few days ago I tested the music
284 system Rosegarden again, and I discovered that the KDE and xfce file
285 browsers did not know what to do with the Rosegarden project files
286 (*.rg). I
've reported
<a href=
"http://bugs.debian.org/
825993">the
287 rosegarden problem to BTS
</a
> and a fix is commited to git and will be
288 included in the next upload. To increase the chance of me remembering
289 how to fix the problem next time some program fail to load its files
290 from the file browser, here are some notes on how to fix it.
</p
>
292 <p
>The file browsers in Debian in general operates on MIME types.
293 There are two sources for the MIME type of a given file. The output from
294 <tt
>file --mime-type
</tt
> mentioned above, and the content of the
295 shared MIME type registry (under /usr/share/mime/). The file MIME
296 type is mapped to programs supporting the MIME type, and this
297 information is collected from
298 <a href=
"https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/
">the
299 desktop files
</a
> available in /usr/share/applications/. If there is
300 one desktop file claiming support for the MIME type of the file, it is
301 activated when asking to open a given file. If there are more, one
302 can normally select which one to use by right-clicking on the file and
303 selecting the wanted one using
'Open with
' or similar. In general
304 this work well. But it depend on each program picking a good MIME
306 <a href=
"http://www.iana.org/assignments/media-types/media-types.xhtml
">a
307 MIME type registered with IANA
</a
>), file and/or the shared MIME
308 registry recognizing the file and the desktop file to list the MIME
309 type in its list of supported MIME types.
</p
>
311 <p
>The
<tt
>/usr/share/mime/packages/rosegarden.xml
</tt
> entry for
312 <a href=
"http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec
">the
313 Shared MIME database
</a
> look like this:
</p
>
315 <p
><blockquote
><pre
>
316 &lt;?xml version=
"1.0" encoding=
"UTF-
8"?
&gt;
317 &lt;mime-info xmlns=
"http://www.freedesktop.org/standards/shared-mime-info
"&gt;
318 &lt;mime-type type=
"audio/x-rosegarden
"&gt;
319 &lt;sub-class-of type=
"application/x-gzip
"/
&gt;
320 &lt;comment
&gt;Rosegarden project file
&lt;/comment
&gt;
321 &lt;glob pattern=
"*.rg
"/
&gt;
322 &lt;/mime-type
&gt;
323 &lt;/mime-info
&gt;
324 </pre
></blockquote
></p
>
326 <p
>This states that audio/x-rosegarden is a kind of application/x-gzip
327 (it is a gzipped XML file). Note, it is much better to use an
328 official MIME type registered with IANA than it is to make up ones own
329 unofficial ones like the x-rosegarden type used by rosegarden.
</p
>
331 <p
>The desktop file of the rosegarden program failed to list
332 audio/x-rosegarden in its list of supported MIME types, causing the
333 file browsers to have no idea what to do with *.rg files:
</p
>
335 <p
><blockquote
><pre
>
336 % grep Mime /usr/share/applications/rosegarden.desktop
337 MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;
338 X-KDE-NativeMimeType=audio/x-rosegarden-composition
340 </pre
></blockquote
></p
>
342 <p
>The fix was to add
"audio/x-rosegarden;
" at the end of the
343 MimeType= line.
</p
>
345 <p
>If you run into a file which fail to open the correct program when
346 selected from the file browser, please check out the output from
347 <tt
>file --mime-type
</tt
> for the file, ensure the file ending and
348 MIME type is registered somewhere under /usr/share/mime/ and check
349 that some desktop file under /usr/share/applications/ is claiming
350 support for this MIME type. If not, please report a bug to have it
356 <title>Tor - from its creators mouth
11 years ago
</title>
357 <link>http://people.skolelinux.org/pere/blog/Tor___from_its_creators_mouth_11_years_ago.html
</link>
358 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Tor___from_its_creators_mouth_11_years_ago.html
</guid>
359 <pubDate>Sat,
28 May
2016 14:
20:
00 +
0200</pubDate>
360 <description><p
>A little more than
11 years ago, one of the creators of Tor, and
361 the current President of
<a href=
"https://www.torproject.org/
">the Tor
362 project
</a
>, Roger Dingledine, gave a talk for the members of the
363 <a href=
"http://www.nuug.no/
">Norwegian Unix User group
</a
> (NUUG). A
364 video of the talk was recorded, and today, thanks to the great help
365 from David Noble, I finally was able to publish the video of the talk
366 on Frikanalen, the Norwegian open channel TV station where NUUG
367 currently publishes its talks. You can
368 <a href=
"http://frikanalen.no/se
">watch the live stream using a web
369 browser
</a
> with WebM support, or check out the recording on the video
370 on demand page for the talk
371 "<a href=
"http://beta.frikanalen.no/video/
625599">Tor: Anonymous
372 communication for the US Department of Defence...and you.
</a
>".
</p
>
374 <p
>Here is the video included for those of you using browsers with
375 HTML video and Ogg Theora support:
</p
>
377 <p
><video width=
"70%
" poster=
"http://simula.gunkies.org/media/
625599/large_thumb/
20050421-tor-frikanalen.jpg
" controls
>
378 <source src=
"http://simula.gunkies.org/media/
625599/theora/
20050421-tor-frikanalen.ogv
" type=
"video/ogg
"/
>
379 </video
></p
>
381 <p
>I guess the gist of the talk can be summarised quite simply: If you
382 want to help the military in USA (and everyone else), use Tor. :)
</p
>
387 <title>Isenkram with PackageKit support - new version
0.23 available in Debian unstable
</title>
388 <link>http://people.skolelinux.org/pere/blog/Isenkram_with_PackageKit_support___new_version_0_23_available_in_Debian_unstable.html
</link>
389 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Isenkram_with_PackageKit_support___new_version_0_23_available_in_Debian_unstable.html
</guid>
390 <pubDate>Wed,
25 May
2016 10:
20:
00 +
0200</pubDate>
391 <description><p
><a href=
"https://tracker.debian.org/pkg/isenkram
">The isenkram
392 system
</a
> is a user-focused solution in Debian for handling hardware
393 related packages. The idea is to have a database of mappings between
394 hardware and packages, and pop up a dialog suggesting for the user to
395 install the packages to use a given hardware dongle. Some use cases
396 are when you insert a Yubikey, it proposes to install the software
397 needed to control it; when you insert a braille reader list it
398 proposes to install the packages needed to send text to the reader;
399 and when you insert a ColorHug screen calibrator it suggests to
400 install the driver for it. The system work well, and even have a few
401 command line tools to install firmware packages and packages for the
402 hardware already in the machine (as opposed to hotpluggable hardware).
</p
>
404 <p
>The system was initially written using aptdaemon, because I found
405 good documentation and example code on how to use it. But aptdaemon
406 is going away and is generally being replaced by
407 <a href=
"http://www.freedesktop.org/software/PackageKit/
">PackageKit
</a
>,
408 so Isenkram needed a rewrite. And today, thanks to the great patch
409 from my college Sunil Mohan Adapa in the FreedomBox project, the
410 rewrite finally took place. I
've just uploaded a new version of
411 Isenkram into Debian Unstable with the patch included, and the default
412 for the background daemon is now to use PackageKit. To check it out,
413 install the
<tt
>isenkram
</tt
> package and insert some hardware dongle
414 and see if it is recognised.
</p
>
416 <p
>If you want to know what kind of packages isenkram would propose for
417 the machine it is running on, you can check out the isenkram-lookup
418 program. This is what it look like on a Thinkpad X230:
</p
>
420 <p
><blockquote
><pre
>
436 </pre
></blockquote
></p
>
438 <p
>The hardware mappings come from several places. The preferred way
439 is for packages to announce their hardware support using
440 <a href=
"https://www.freedesktop.org/software/appstream/docs/
">the
441 cross distribution appstream system
</a
>.
443 <a href=
"http://people.skolelinux.org/pere/blog/tags/isenkram/
">previous
444 blog posts about isenkram
</a
> to learn how to do that.
</p
>
449 <title>Discharge rate estimate in new battery statistics collector for Debian
</title>
450 <link>http://people.skolelinux.org/pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</link>
451 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</guid>
452 <pubDate>Mon,
23 May
2016 09:
35:
00 +
0200</pubDate>
453 <description><p
>Yesterday I updated the
454 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
455 package in Debian
</a
> with a few patches sent to me by skilled and
456 enterprising users. There were some nice user and visible changes.
457 First of all, both desktop menu entries now work. A design flaw in
458 one of the script made the history graph fail to show up (its PNG was
459 dumped in ~/.xsession-errors) if no controlling TTY was available.
460 The script worked when called from the command line, but not when
461 called from the desktop menu. I changed this to look for a DISPLAY
462 variable or a TTY before deciding where to draw the graph, and now the
463 graph window pop up as expected.
</p
>
465 <p
>The next new feature is a discharge rate estimator in one of the
466 graphs (the one showing the last few hours). New is also the user of
467 colours showing charging in blue and discharge in red. The percentages
468 of this graph is relative to last full charge, not battery design
471 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-rate.png
"/
></p
>
473 <p
>The other graph show the entire history of the collected battery
474 statistics, comparing it to the design capacity of the battery to
475 visualise how the battery life time get shorter over time. The red
476 line in this graph is what the previous graph considers
100 percent:
478 <p align=
"center
"><img src=
"http://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-history.png
"/
></p
>
480 <p
>In this graph you can see that I only charge the battery to
80
481 percent of last full capacity, and how the capacity of the battery is
482 shrinking. :(
</p
>
484 <p
>The last new feature is in the collector, which now will handle
485 more hardware models. On some hardware, Linux power supply
486 information is stored in /sys/class/power_supply/ACAD/, while the
487 collector previously only looked in /sys/class/power_supply/AC/. Now
488 both are checked to figure if there is power connected to the
491 <p
>If you are interested in how your laptop battery is doing, please
493 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
</a
>
494 in Debian unstable, or rebuild it on Jessie to get it working on
495 Debian stable. :) The upstream source is available from
<a
496 href=
"https://github.com/petterreinholdtsen/battery-stats
">github
</a
>.
497 Patches are very welcome.
</p
>
499 <p
>As usual, if you use Bitcoin and want to show your support of my
500 activities, please send Bitcoin donations to my address
501 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
506 <title>French edition of Lawrence Lessigs book Cultura Libre on Amazon and Barnes
& Noble
</title>
507 <link>http://people.skolelinux.org/pere/blog/French_edition_of_Lawrence_Lessigs_book_Cultura_Libre_on_Amazon_and_Barnes___Noble.html
</link>
508 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/French_edition_of_Lawrence_Lessigs_book_Cultura_Libre_on_Amazon_and_Barnes___Noble.html
</guid>
509 <pubDate>Sat,
21 May
2016 10:
50:
00 +
0200</pubDate>
510 <description><p
>A few weeks ago the French paperback edition of Lawrence Lessigs
511 2004 book Cultura Libre was published. Today I noticed that the book
512 is now available from book stores. You can now buy it from
513 <a href=
"http://www.amazon.com/Culture-Libre-French-Lawrence-Lessig/dp/
8269018260">Amazon
</a
>
515 <a href=
"http://www.barnesandnoble.com/w/culture-libre-lawrence-lessig/
1123776705">Barnes
516 & Noble
</a
> ($?) and as always from
517 <a href=
"http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-
22645082.html
">Lulu.com
</a
>
518 ($
19.99). The revenue is donated to the Creative Commons project. If
519 you buy from Lulu.com, they currently get $
10.59, while if you buy
520 from one of the book stores most of the revenue go to the book store
521 and the Creative Commons project get much (not sure how much
524 <p
>I was a bit surprised to discover that there is a kindle edition
525 sold by Amazon Digital Services LLC on Amazon. Not quite sure how
526 that edition was created, but if you want to download a electronic
527 edition (PDF, EPUB, Mobi) generated from the same files used to create
528 the paperback edition, they are
529 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">available
530 from github
</a
>.
</p
>
535 <title>I want the courts to be involved before the police can hijack a news site DNS domain (#domstolkontroll)
</title>
536 <link>http://people.skolelinux.org/pere/blog/I_want_the_courts_to_be_involved_before_the_police_can_hijack_a_news_site_DNS_domain___domstolkontroll_.html
</link>
537 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/I_want_the_courts_to_be_involved_before_the_police_can_hijack_a_news_site_DNS_domain___domstolkontroll_.html
</guid>
538 <pubDate>Thu,
19 May
2016 14:
00:
00 +
0200</pubDate>
539 <description><p
>I just donated to the
540 <a href=
"http://www.nuug.no/dns-beslag-donasjon.shtml
">NUUG defence
541 "fond
"</a
> to fund the effort in Norway to get the seizure of the news
542 site popcorn-time.no tested in court. I hope everyone that agree with
543 me will do the same.
</p
>
545 <p
>Would you be worried if you knew the police in your country could
546 hijack DNS domains of news sites covering free software system without
547 talking to a judge first? I am. What if the free software system
548 combined search engine lookups, bittorrent downloads and video playout
549 and was called Popcorn Time? Would that affect your view? It still
550 make me worried.
</p
>
552 <p
>In March
2016, the Norwegian police seized (as in forced NORID to
553 change the IP address pointed to by it to one controlled by the
554 police) the DNS domain popcorn-time.no, without any supervision from
555 the courts. I did not know about the web site back then, and assumed
556 the courts had been involved, and was very surprised when I discovered
557 that the police had hijacked the DNS domain without asking a judge for
558 permission first. I was even more surprised when I had a look at
559 <a href=
"https://web.archive.org/web/*/http://popcorn-time.no
">the web
560 site content on the Internet Archive
</A
>, and only found news coverage
561 about Popcorn Time, not any material published without the right
562 holders permissions.
</p
>
564 <p
>The seizure was widely covered in the Norwegian press (see for
565 example
<a href=
"http://www.hegnar.no/Nyheter/Naeringsliv/
2016/
03/Popcorn-time.no-beslaglagt-av-OEkokrim
">Hegnar Online
</a
> and
566 <a href=
"http://itavisen.no/
2016/
03/
08/okokrim-har-beslaglagt-popcorn-time-no/
">ITavisen
<a/
>
568 <a href=
"http://www.nrk.no/kultur/okokrim-gar-til-aksjon-mot-popcorn-time-
1.12842452">NRK
</a
>),
569 at first due to the press release sent out by Økokrim, but then based
571 <a href=
"http://blogg.torvund.net/
2016/
03/
09/okokrims-beslag-i-domenet-popcorn-time-no/
">protests
572 from the law professor Olav Torvund
</a
> and
573 <a href=
"http://www.klassekampen.no/article/
20160311/ARTICLE/
160319995">lawyer
574 Jon Wessel-Aas
</a
>. It even got some
575 <a href=
"https://torrentfreak.com/norwegian-authorities-sued-over-popcorn-time-domain-seizure-
160418/
">coverage
576 on TorrentFreak
</a
>.
</p
>
579 <a href=
"http://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html
">
580 wrote about the case a month ago
</a
>, when the
581 <a href=
"http://www.nuug.no/
">Norwegian Unix User Group
</a
> (NUUG),
582 where I am an active member, decided to ask the courts to test this seizure.
583 The request was denied, but NUUG and its co-requestor EFN have not
584 given up, and now they are rallying for support to get the seizure
585 legally challenged. They accept both bank and Bitcoin transfer for
586 those that want to support the request.
</p
>
588 <p
>If you as me believe news sites about free software should not be
589 censored, even if the free software have both legal and illegal
590 applications, and that DNS hijacking should be tested by the courts, I
591 suggest you
<a href=
"http://www.nuug.no/dns-beslag-donasjon.shtml
">show
592 your support by donating to NUUG
</a
>.
</a
>
597 <title>Debian now with ZFS on Linux included
</title>
598 <link>http://people.skolelinux.org/pere/blog/Debian_now_with_ZFS_on_Linux_included.html
</link>
599 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Debian_now_with_ZFS_on_Linux_included.html
</guid>
600 <pubDate>Thu,
12 May
2016 07:
30:
00 +
0200</pubDate>
601 <description><p
>Today, after many years of hard work from many people,
602 <a href=
"http://zfsonlinux.org/
">ZFS for Linux
</a
> finally entered
603 Debian. The package status can be seen on
604 <a href=
"https://tracker.debian.org/pkg/zfs-linux
">the package tracker
605 for zfs-linux
</a
>. and
606 <a href=
"https://qa.debian.org/developer.php?login=pkg-zfsonlinux-devel@lists.alioth.debian.org
">the
607 team status page
</a
>. If you want to help out, please join us.
608 <a href=
"http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/zfs.git
">The
609 source code
</a
> is available via git on Alioth. It would also be
610 great if you could help out with
611 <a href=
"https://tracker.debian.org/pkg/dkms
">the dkms package
</a
>, as
612 it is an important piece of the puzzle to get ZFS working.
</p
>