1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from May
2016</title>
5 <description>Entries from May
2016</description>
6 <link>http://www.hungry.com/~pere/blog/
</link>
10 <title>Tor - from its creators mouth
11 years ago
</title>
11 <link>http://www.hungry.com/~pere/blog/Tor___from_its_creators_mouth_11_years_ago.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Tor___from_its_creators_mouth_11_years_ago.html
</guid>
13 <pubDate>Sat,
28 May
2016 14:
20:
00 +
0200</pubDate>
14 <description><p
>A little more than
11 years ago, one of the creators of Tor, and
15 the current President of
<a href=
"https://www.torproject.org/
">the Tor
16 project
</a
>, Roger Dingledine, gave a talk for the members of the
17 <a href=
"http://www.nuug.no/
">Norwegian Unix User group
</a
> (NUUG). A
18 video of the talk was recorded, and today, thanks to the great help
19 from David Noble, I finally was able to publish the video of the talk
20 on Frikanalen, the Norwegian open channel TV station where NUUG
21 currently publishes its talks. You can
22 <a href=
"http://frikanalen.no/se
">watch the live stream using a web
23 browser
</a
> with WebM support, or check out the recording on the video
24 on demand page for the talk
25 "<a href=
"http://beta.frikanalen.no/video/
625599">Tor: Anonymous
26 communication for the US Department of Defence...and you.
</a
>".
</p
>
28 <p
>Here is the video included for those of you using browsers with
29 HTML video and Ogg Theora support:
</p
>
31 <p
><video width=
"70%
" poster=
"http://simula.gunkies.org/media/
625599/large_thumb/
20050421-tor-frikanalen.jpg
" controls
>
32 <source src=
"http://simula.gunkies.org/media/
625599/theora/
20050421-tor-frikanalen.ogv
" type=
"video/ogg
"/
>
33 </video
></p
>
35 <p
>I guess the gist of the talk can be summarised quite simply: If you
36 want to help the military in USA (and everyone else), use Tor. :)
</p
>
41 <title>Isenkram with PackageKit support - new version
0.23 available in Debian unstable
</title>
42 <link>http://www.hungry.com/~pere/blog/Isenkram_with_PackageKit_support___new_version_0_23_available_in_Debian_unstable.html
</link>
43 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Isenkram_with_PackageKit_support___new_version_0_23_available_in_Debian_unstable.html
</guid>
44 <pubDate>Wed,
25 May
2016 10:
20:
00 +
0200</pubDate>
45 <description><p
><a href=
"https://tracker.debian.org/pkg/isenkram
">The isenkram
46 system
</a
> is a user-focused solution in Debian for handling hardware
47 related packages. The idea is to have a database of mappings between
48 hardware and packages, and pop up a dialog suggesting for the user to
49 install the packages to use a given hardware dongle. Some use cases
50 are when you insert a Yubikey, it proposes to install the software
51 needed to control it; when you insert a braille reader list it
52 proposes to install the packages needed to send text to the reader;
53 and when you insert a ColorHug screen calibrator it suggests to
54 install the driver for it. The system work well, and even have a few
55 command line tools to install firmware packages and packages for the
56 hardware already in the machine (as opposed to hotpluggable hardware).
</p
>
58 <p
>The system was initially written using aptdaemon, because I found
59 good documentation and example code on how to use it. But aptdaemon
60 is going away and is generally being replaced by
61 <a href=
"http://www.freedesktop.org/software/PackageKit/
">PackageKit
</a
>,
62 so Isenkram needed a rewrite. And today, thanks to the great patch
63 from my college Sunil Mohan Adapa in the FreedomBox project, the
64 rewrite finally took place. I
've just uploaded a new version of
65 Isenkram into Debian Unstable with the patch included, and the default
66 for the background daemon is now to use PackageKit. To check it out,
67 install the
<tt
>isenkram
</tt
> package and insert some hardware dongle
68 and see if it is recognised.
</p
>
70 <p
>If you want to know what kind of packages isenkram would propose for
71 the machine it is running on, you can check out the isenkram-lookup
72 program. This is what it look like on a Thinkpad X230:
</p
>
74 <p
><blockquote
><pre
>
90 </pre
></blockquote
></p
>
92 <p
>The hardware mappings come from several places. The preferred way
93 is for packages to announce their hardware support using
94 <a href=
"https://www.freedesktop.org/software/appstream/docs/
">the
95 cross distribution appstream system
</a
>.
97 <a href=
"https://people.skolelinux.org/pere/blog/tags/isenkram/
">previous
98 blog posts about isenkram
</a
> to learn how to do that.
</p
>
103 <title>Discharge rate estimate in new battery statistics collector for Debian
</title>
104 <link>http://www.hungry.com/~pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</link>
105 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Discharge_rate_estimate_in_new_battery_statistics_collector_for_Debian.html
</guid>
106 <pubDate>Mon,
23 May
2016 09:
35:
00 +
0200</pubDate>
107 <description><p
>Yesterday I updated the
108 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
109 package in Debian
</a
> with a few patches sent to me by skilled and
110 enterprising users. There were some nice user and visible changes.
111 First of all, both desktop menu entries now work. A design flaw in
112 one of the script made the history graph fail to show up (its PNG was
113 dumped in ~/.xsession-errors) if no controlling TTY was available.
114 The script worked when called from the command line, but not when
115 called from the desktop menu. I changed this to look for a DISPLAY
116 variable or a TTY before deciding where to draw the graph, and now the
117 graph window pop up as expected.
</p
>
119 <p
>The next new feature is a discharge rate estimator in one of the
120 graphs (the one showing the last few hours). New is also the user of
121 colours showing charging in blue and discharge in red. The percentages
122 of this graph is relative to last full charge, not battery design
125 <p align=
"center
"><img src=
"https://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-rate.png
"/
></p
>
127 <p
>The other graph show the entire history of the collected battery
128 statistics, comparing it to the design capacity of the battery to
129 visualise how the battery life time get shorter over time. The red
130 line in this graph is what the previous graph considers
100 percent:
132 <p align=
"center
"><img src=
"https://people.skolelinux.org/pere/blog/images/
2016-
05-
23-battery-stats-history.png
"/
></p
>
134 <p
>In this graph you can see that I only charge the battery to
80
135 percent of last full capacity, and how the capacity of the battery is
136 shrinking. :(
</p
>
138 <p
>The last new feature is in the collector, which now will handle
139 more hardware models. On some hardware, Linux power supply
140 information is stored in /sys/class/power_supply/ACAD/, while the
141 collector previously only looked in /sys/class/power_supply/AC/. Now
142 both are checked to figure if there is power connected to the
145 <p
>If you are interested in how your laptop battery is doing, please
147 <a href=
"https://tracker.debian.org/pkg/battery-stats
">battery-stats
</a
>
148 in Debian unstable, or rebuild it on Jessie to get it working on
149 Debian stable. :) The upstream source is available from
<a
150 href=
"https://github.com/petterreinholdtsen/battery-stats
">github
</a
>.
151 Patches are very welcome.
</p
>
153 <p
>As usual, if you use Bitcoin and want to show your support of my
154 activities, please send Bitcoin donations to my address
155 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
160 <title>French edition of Lawrence Lessigs book Cultura Libre on Amazon and Barnes
& Noble
</title>
161 <link>http://www.hungry.com/~pere/blog/French_edition_of_Lawrence_Lessigs_book_Cultura_Libre_on_Amazon_and_Barnes___Noble.html
</link>
162 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/French_edition_of_Lawrence_Lessigs_book_Cultura_Libre_on_Amazon_and_Barnes___Noble.html
</guid>
163 <pubDate>Sat,
21 May
2016 10:
50:
00 +
0200</pubDate>
164 <description><p
>A few weeks ago the French paperback edition of Lawrence Lessigs
165 2004 book Cultura Libre was published. Today I noticed that the book
166 is now available from book stores. You can now buy it from
167 <a href=
"http://www.amazon.com/Culture-Libre-French-Lawrence-Lessig/dp/
8269018260">Amazon
</a
>
169 <a href=
"http://www.barnesandnoble.com/w/culture-libre-lawrence-lessig/
1123776705">Barnes
170 & Noble
</a
> ($?) and as always from
171 <a href=
"http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-
22645082.html
">Lulu.com
</a
>
172 ($
19.99). The revenue is donated to the Creative Commons project. If
173 you buy from Lulu.com, they currently get $
10.59, while if you buy
174 from one of the book stores most of the revenue go to the book store
175 and the Creative Commons project get much (not sure how much
178 <p
>I was a bit surprised to discover that there is a kindle edition
179 sold by Amazon Digital Services LLC on Amazon. Not quite sure how
180 that edition was created, but if you want to download a electronic
181 edition (PDF, EPUB, Mobi) generated from the same files used to create
182 the paperback edition, they are
183 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">available
184 from github
</a
>.
</p
>
189 <title>I want the courts to be involved before the police can hijack a news site DNS domain (#domstolkontroll)
</title>
190 <link>http://www.hungry.com/~pere/blog/I_want_the_courts_to_be_involved_before_the_police_can_hijack_a_news_site_DNS_domain___domstolkontroll_.html
</link>
191 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/I_want_the_courts_to_be_involved_before_the_police_can_hijack_a_news_site_DNS_domain___domstolkontroll_.html
</guid>
192 <pubDate>Thu,
19 May
2016 14:
00:
00 +
0200</pubDate>
193 <description><p
>I just donated to the
194 <a href=
"http://www.nuug.no/dns-beslag-donasjon.shtml
">NUUG defence
195 "fond
"</a
> to fund the effort in Norway to get the seizure of the news
196 site popcorn-time.no tested in court. I hope everyone that agree with
197 me will do the same.
</p
>
199 <p
>Would you be worried if you knew the police in your country could
200 hijack DNS domains of news sites covering free software system without
201 talking to a judge first? I am. What if the free software system
202 combined search engine lookups, bittorrent downloads and video playout
203 and was called Popcorn Time? Would that affect your view? It still
204 make me worried.
</p
>
206 <p
>In March
2016, the Norwegian police seized (as in forced NORID to
207 change the IP address pointed to by it to one controlled by the
208 police) the DNS domain popcorn-time.no, without any supervision from
209 the courts. I did not know about the web site back then, and assumed
210 the courts had been involved, and was very surprised when I discovered
211 that the police had hijacked the DNS domain without asking a judge for
212 permission first. I was even more surprised when I had a look at
213 <a href=
"https://web.archive.org/web/*/http://popcorn-time.no
">the web
214 site content on the Internet Archive
</A
>, and only found news coverage
215 about Popcorn Time, not any material published without the right
216 holders permissions.
</p
>
218 <p
>The seizure was widely covered in the Norwegian press (see for
219 example
<a href=
"http://www.hegnar.no/Nyheter/Naeringsliv/
2016/
03/Popcorn-time.no-beslaglagt-av-OEkokrim
">Hegnar Online
</a
> and
220 <a href=
"http://itavisen.no/
2016/
03/
08/okokrim-har-beslaglagt-popcorn-time-no/
">ITavisen
<a/
>
222 <a href=
"http://www.nrk.no/kultur/okokrim-gar-til-aksjon-mot-popcorn-time-
1.12842452">NRK
</a
>),
223 at first due to the press release sent out by Økokrim, but then based
225 <a href=
"http://blogg.torvund.net/
2016/
03/
09/okokrims-beslag-i-domenet-popcorn-time-no/
">protests
226 from the law professor Olav Torvund
</a
> and
227 <a href=
"http://www.klassekampen.no/article/
20160311/ARTICLE/
160319995">lawyer
228 Jon Wessel-Aas
</a
>. It even got some
229 <a href=
"https://torrentfreak.com/norwegian-authorities-sued-over-popcorn-time-domain-seizure-
160418/
">coverage
230 on TorrentFreak
</a
>.
</p
>
233 <a href=
"https://people.skolelinux.org/pere/blog/NUUG_contests_Norwegian_police_DNS_seizure_of_popcorn_time_no.html
">
234 wrote about the case a month ago
</a
>, when the
235 <a href=
"http://www.nuug.no/
">Norwegian Unix User Group
</a
> (NUUG),
236 where I am an active member, decided to ask the courts to test this seizure.
237 The request was denied, but NUUG and its co-requestor EFN have not
238 given up, and now they are rallying for support to get the seizure
239 legally challenged. They accept both bank and Bitcoin transfer for
240 those that want to support the request.
</p
>
242 <p
>If you as me believe news sites about free software should not be
243 censored, even if the free software have both legal and illegal
244 applications, and that DNS hijacking should be tested by the courts, I
245 suggest you
<a href=
"http://www.nuug.no/dns-beslag-donasjon.shtml
">show
246 your support by donating to NUUG
</a
>.
</a
>
251 <title>Debian now with ZFS on Linux included
</title>
252 <link>http://www.hungry.com/~pere/blog/Debian_now_with_ZFS_on_Linux_included.html
</link>
253 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Debian_now_with_ZFS_on_Linux_included.html
</guid>
254 <pubDate>Thu,
12 May
2016 07:
30:
00 +
0200</pubDate>
255 <description><p
>Today, after many years of hard work from many people,
256 <a href=
"http://zfsonlinux.org/
">ZFS for Linux
</a
> finally entered
257 Debian. The package status can be seen on
258 <a href=
"https://tracker.debian.org/pkg/zfs-linux
">the package tracker
259 for zfs-linux
</a
>. and
260 <a href=
"https://qa.debian.org/developer.php?login=pkg-zfsonlinux-devel@lists.alioth.debian.org
">the
261 team status page
</a
>. If you want to help out, please join us.
262 <a href=
"http://anonscm.debian.org/gitweb/?p=pkg-zfsonlinux/zfs.git
">The
263 source code
</a
> is available via git on Alioth. It would also be
264 great if you could help out with
265 <a href=
"https://tracker.debian.org/pkg/dkms
">the dkms package
</a
>, as
266 it is an important piece of the puzzle to get ZFS working.
</p
>
271 <title>What is the best multimedia player in Debian?
</title>
272 <link>http://www.hungry.com/~pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
</link>
273 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
</guid>
274 <pubDate>Sun,
8 May
2016 09:
40:
00 +
0200</pubDate>
275 <description><p
><strong
>Where I set out to figure out which multimedia player in
276 Debian claim support for most file formats.
</strong
></p
>
278 <p
>A few years ago, I had a look at the media support for Browser
279 plugins in Debian, to get an idea which plugins to include in Debian
280 Edu. I created a script to extract the set of supported MIME types
281 for each plugin, and used this to find out which multimedia browser
282 plugin supported most file formats / media types.
283 <a href=
"https://wiki.debian.org/DebianEdu/BrowserMultimedia
">The
284 result
</a
> can still be seen on the Debian wiki, even though it have
285 not been updated for a while. But browser plugins are less relevant
286 these days, so I thought it was time to look at standalone
289 <p
>A few days ago I was tired of VLC not being listed as a viable
290 player when I wanted to play videos from the Norwegian National
291 Broadcasting Company, and decided to investigate why. The cause is a
292 <a href=
"https://bugs.debian.org/
822245">missing MIME type in the VLC
293 desktop file
</a
>. In the process I wrote a script to compare the set
294 of MIME types announced in the desktop file and the browser plugin,
295 only to discover that there is quite a large difference between the
296 two for VLC. This discovery made me dig up the script I used to
297 compare browser plugins, and adjust it to compare desktop files
298 instead, to try to figure out which multimedia player in Debian
299 support most file formats.
</p
>
301 <p
>The result can be seen on the Debian Wiki, as
302 <a href=
"https://wiki.debian.org/DebianMultimedia/PlayerSupport
">a
303 table listing all MIME types supported by one of the packages included
304 in the table
</a
>, with the package supporting most MIME types being
305 listed first in the table.
</p
>
307 </p
>The best multimedia player in Debian? It is totem, followed by
308 parole, kplayer, mpv, vlc, smplayer mplayer-gui gnome-mpv and
309 kmplayer. Time for the other players to update their announced MIME
315 <title>The Pyra - handheld computer with Debian preinstalled
</title>
316 <link>http://www.hungry.com/~pere/blog/The_Pyra___handheld_computer_with_Debian_preinstalled.html
</link>
317 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/The_Pyra___handheld_computer_with_Debian_preinstalled.html
</guid>
318 <pubDate>Wed,
4 May
2016 10:
00:
00 +
0200</pubDate>
319 <description>A friend of mine made me aware of
320 <a href=
"https://pyra-handheld.com/boards/pages/pyra/
">The Pyra
</a
>, a
321 handheld computer which will be delivered with Debian preinstalled. I
322 would love to get one of those for my birthday. :)
</p
>
324 <p
>The machine is a complete ARM-based PC with micro HDMI, SATA, USB
325 plugs and many others connectors, and include a full keyboard and a
5"
326 LCD touch screen. The
6000mAh battery is claimed to provide a whole
327 day of battery life time, but I have not seen any independent tests
328 confirming this. The vendor is still collecting preorders, and the
329 last I heard last night was that
22 more orders were needed before
330 production started.
</p
>
332 <p
>As far as I know, this is the first handheld preinstalled with
333 Debian. Please let me know if you know of any others. Is it the
334 first computer being sold with Debian preinstalled?
</p
>