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>E-tjenesten ber om innsyn i eposten til partiene på Stortinget
</title>
11 <link>http://people.skolelinux.org/pere/blog/E_tjenesten_ber_om_innsyn_i_eposten_til_partiene_p__Stortinget.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/E_tjenesten_ber_om_innsyn_i_eposten_til_partiene_p__Stortinget.html
</guid>
13 <pubDate>Tue,
6 Sep
2016 23:
00:
00 +
0200</pubDate>
14 <description><p
>I helga kom det et hårreisende forslag fra Lysne II-utvalget satt
15 ned av Forsvarsdepartementet. Lysne II-utvalget var bedt om å vurdere
16 ønskelista til Forsvarets etterretningstjeneste (e-tjenesten), og har
18 <a href=
"http://www.aftenposten.no/norge/Utvalg-sier-ja-til-at-E-tjenesten-far-overvake-innholdet-i-all-internett--og-telefontrafikk-som-krysser-riksgrensen-
603232b.html
">forslag
19 om at e-tjenesten skal få lov til a avlytte all Internett-trafikk
</a
>
20 som passerer Norges grenser. Få er klar over at dette innebærer at
21 e-tjenesten får tilgang til epost sendt til de fleste politiske
22 partiene på Stortinget. Regjeringspartiet Høyre (@hoyre.no),
23 støttepartiene Venstre (@venstre.no) og Kristelig Folkeparti (@krf.no)
24 samt Sosialistisk Ventreparti (@sv.no) og Miljøpartiet de grønne
25 (@mdg.no) har nemlig alle valgt å ta imot eposten sin via utenlandske
26 tjenester. Det betyr at hvis noen sender epost til noen med en slik
27 adresse vil innholdet i eposten, om dette forslaget blir vedtatt, gjøres
28 tilgjengelig for e-tjenesten. Venstre, Sosialistisk Ventreparti og
29 Miljøpartiet De Grønne har valgt å motta sin epost hos Google,
30 Kristelig Folkeparti har valgt å motta sin epost hos Microsoft, og
31 Høyre har valgt å motta sin epost hos Comendo med mottak i Danmark og
32 Irland. Kun Arbeiderpartiet og Fremskrittspartiet har valgt å motta
33 eposten sin i Norge, hos henholdsvis Intility AS og Telecomputing
36 <p
>Konsekvensen er at epost inn og ut av de politiske organisasjonene,
37 til og fra partimedlemmer og partiets tillitsvalgte vil gjøres
38 tilgjengelig for e-tjenesten for analyse og sortering. Jeg mistenker
39 at kunnskapen som slik blir tilgjengelig vil være nyttig hvis en
40 ønsker å vite hvilke argumenter som treffer publikum når en ønsker å
41 påvirke Stortingets representanter.
</p
43 <p
>Ved hjelp av MX-oppslag i DNS for epost-domene, tilhørende
44 whois-oppslag av IP-adressene og traceroute for å se hvorvidt
45 trafikken går via utlandet kan enhver få bekreftet at epost sendt til
46 de omtalte partiene vil gjøres tilgjengelig for forsvarets
47 etterretningstjeneste hvis forslaget blir vedtatt. En kan også bruke
48 den kjekke nett-tjenesten
<a href=
"http://ipinfo.io/
">ipinfo.io
</a
>
49 for å få en ide om hvor i verden en IP-adresse hører til.
</p
>
51 <p
>På den positive siden vil forslaget gjøre at enda flere blir
52 motivert til å ta grep for å bruke
53 <a href=
"https://www.torproject.org/
">Tor
</a
> og krypterte
54 kommunikasjonsløsninger for å kommunisere med sine kjære, for å sikre
55 at privatsfæren vernes. Selv bruker jeg blant annet
56 <a href=
"https://www.freedomboxfoundation.org/
">FreedomBox
</a
> og
57 <a href=
"https://whispersystems.org/
">Signal
</a
> til slikt. Ingen av
58 dem er optimale, men de fungerer ganske bra allerede og øker kostnaden
59 for dem som ønsker å invadere mitt privatliv.
</p
>
61 <p
>For øvrig burde varsleren Edward Snowden få politisk asyl i
67 venstre.no mail is handled by
10 aspmx.l.google.com.
68 venstre.no mail is handled by
20 alt1.aspmx.l.google.com.
69 venstre.no mail is handled by
20 alt2.aspmx.l.google.com.
70 venstre.no mail is handled by
30 aspmx2.googlemail.com.
71 venstre.no mail is handled by
30 aspmx3.googlemail.com.
73 traceroute to aspmx.l.google.com (
173.194.222.27),
30 hops max,
60 byte packets
74 1 uio-gw10.uio.no (
129.240.6.1)
0.411 ms
0.438 ms
0.536 ms
75 2 uio-gw8.uio.no (
129.240.24.229)
0.375 ms
0.452 ms
0.548 ms
76 3 oslo-gw1.uninett.no (
128.39.65.17)
1.940 ms
1.950 ms
1.942 ms
77 4 se-tug.nordu.net (
109.105.102.108)
6.910 ms
6.949 ms
7.283 ms
78 5 google-gw.nordu.net (
109.105.98.6)
6.975 ms
6.967 ms
6.958 ms
79 6 209.85.250.192 (
209.85.250.192)
7.337 ms
7.286 ms
10.890 ms
80 7 209.85.254.13 (
209.85.254.13)
7.394 ms
209.85.254.31 (
209.85.254.31)
7.586 ms
209.85.254.33 (
209.85.254.33)
7.570 ms
81 8 209.85.251.255 (
209.85.251.255)
15.686 ms
209.85.249.229 (
209.85.249.229)
16.118 ms
209.85.251.255 (
209.85.251.255)
16.073 ms
82 9 74.125.37.255 (
74.125.37.255)
16.794 ms
216.239.40.248 (
216.239.40.248)
16.113 ms
74.125.37.44 (
74.125.37.44)
16.764 ms
86 mdg.no mail is handled by
1 aspmx.l.google.com.
87 mdg.no mail is handled by
5 alt2.aspmx.l.google.com.
88 mdg.no mail is handled by
5 alt1.aspmx.l.google.com.
89 mdg.no mail is handled by
10 aspmx2.googlemail.com.
90 mdg.no mail is handled by
10 aspmx3.googlemail.com.
92 sv.no mail is handled by
1 aspmx.l.google.com.
93 sv.no mail is handled by
5 alt1.aspmx.l.google.com.
94 sv.no mail is handled by
5 alt2.aspmx.l.google.com.
95 sv.no mail is handled by
10 aspmx3.googlemail.com.
96 sv.no mail is handled by
10 aspmx2.googlemail.com.
98 hoyre.no mail is handled by
10 hoyre-no.mx1.comendosystems.com.
99 hoyre.no mail is handled by
20 hoyre-no.mx2.comendosystems.net.
101 traceroute to hoyre-no.mx1.comendosystems.com (
89.104.206.4),
30 hops max,
60 byte packets
102 1 uio-gw10.uio.no (
129.240.6.1)
0.450 ms
0.510 ms
0.591 ms
103 2 uio-gw8.uio.no (
129.240.24.229)
0.383 ms
0.508 ms
0.596 ms
104 3 oslo-gw1.uninett.no (
128.39.65.17)
0.311 ms
0.315 ms
0.300 ms
105 4 se-tug.nordu.net (
109.105.102.108)
6.837 ms
6.842 ms
6.834 ms
106 5 dk-uni.nordu.net (
109.105.97.10)
26.073 ms
26.085 ms
26.076 ms
107 6 dix
.1000m.soeborg.ip.comendo.dk (
192.38.7.22)
15.372 ms
15.046 ms
15.123 ms
108 7 89.104.192.65 (
89.104.192.65)
15.875 ms
15.990 ms
16.239 ms
109 8 89.104.192.179 (
89.104.192.179)
15.676 ms
15.674 ms
15.664 ms
110 9 03dm-com.mx1.staysecuregroup.com (
89.104.206.4)
15.637 ms * *
113 krf.no mail is handled by
10 krf-no.mail.protection.outlook.com.
115 traceroute to krf-no.mail.protection.outlook.com (
213.199.154.42),
30 hops max,
60 byte packets
116 1 uio-gw10.uio.no (
129.240.6.1)
0.401 ms
0.438 ms
0.536 ms
117 2 uio-gw8.uio.no (
129.240.24.229)
11.076 ms
11.120 ms
11.204 ms
118 3 oslo-gw1.uninett.no (
128.39.65.17)
0.232 ms
0.234 ms
0.271 ms
119 4 se-tug.nordu.net (
109.105.102.108)
6.811 ms
6.820 ms
6.815 ms
120 5 netnod-ix-ge-a-sth-
4470.microsoft.com (
195.245.240.181)
7.074 ms
7.013 ms
7.061 ms
121 6 ae1-
0.sto-
96cbe-
1b.ntwk.msn.net (
104.44.225.161)
7.227 ms
7.362 ms
7.293 ms
122 7 be-
8-
0.ibr01.ams.ntwk.msn.net (
104.44.5.7)
41.993 ms
43.334 ms
41.939 ms
123 8 be-
1-
0.ibr02.ams.ntwk.msn.net (
104.44.4.214)
43.153 ms
43.507 ms
43.404 ms
124 9 ae3-
0.fra-
96cbe-
1b.ntwk.msn.net (
104.44.5.17)
29.897 ms
29.831 ms
29.794 ms
125 10 ae10-
0.vie-
96cbe-
1a.ntwk.msn.net (
198.206.164.1)
42.309 ms
42.130 ms
41.808 ms
126 11 * ae8-
0.vie-
96cbe-
1b.ntwk.msn.net (
104.44.227.29)
41.425 ms *
130 arbeiderpartiet.no mail is handled by
10 mail.intility.com.
131 arbeiderpartiet.no mail is handled by
20 mail2.intility.com.
133 traceroute to mail.intility.com (
188.95.245.87),
30 hops max,
60 byte packets
134 1 uio-gw10.uio.no (
129.240.6.1)
0.486 ms
0.508 ms
0.649 ms
135 2 uio-gw8.uio.no (
129.240.24.229)
0.416 ms
0.508 ms
0.620 ms
136 3 oslo-gw1.uninett.no (
128.39.65.17)
0.276 ms
0.278 ms
0.275 ms
137 4 te3-
1-
2.br1.fn3.as2116.net (
193.156.90.3)
0.374 ms
0.371 ms
0.416 ms
138 5 he16-
1-
1.cr1.san110.as2116.net (
195.0.244.234)
3.132 ms he16-
1-
1.cr2.oslosda310.as2116.net (
195.0.244.48)
10.079 ms he16-
1-
1.cr1.san110.as2116.net (
195.0.244.234)
3.353 ms
139 6 te1-
2-
0.ar2.ulv89.as2116.net (
195.0.243.194)
0.569 ms te5-
0-
0.ar2.ulv89.as2116.net (
195.0.243.192)
0.661 ms
0.653 ms
140 7 cD2EC45C1.static.as2116.net (
193.69.236.210)
0.654 ms
0.615 ms
0.590 ms
141 8 185.7.132.38 (
185.7.132.38)
1.661 ms
1.808 ms
1.695 ms
142 9 185.7.132.100 (
185.7.132.100)
1.793 ms
1.943 ms
1.546 ms
146 frp.no mail is handled by
10 mx03.telecomputing.no.
147 frp.no mail is handled by
20 mx01.telecomputing.no.
149 traceroute to mx03.telecomputing.no (
95.128.105.102),
30 hops max,
60 byte packets
150 1 uio-gw10.uio.no (
129.240.6.1)
0.378 ms
0.402 ms
0.479 ms
151 2 uio-gw8.uio.no (
129.240.24.229)
0.361 ms
0.458 ms
0.548 ms
152 3 oslo-gw1.uninett.no (
128.39.65.17)
0.361 ms
0.352 ms
0.336 ms
153 4 xe-
2-
2-
0-
0.san-peer2.osl.no.ip.tdc.net (
193.156.90.16)
0.375 ms
0.366 ms
0.346 ms
154 5 xe-
2-
0-
2-
0.ost-pe1.osl.no.ip.tdc.net (
85.19.121.97)
0.780 ms xe-
2-
0-
0-
0.ost-pe1.osl.no.ip.tdc.net (
85.19.121.101)
0.713 ms xe-
2-
0-
2-
0.ost-pe1.osl.no.ip.tdc.net (
85.19.121.97)
0.759 ms
155 6 cpe.xe-
0-
2-
0-
100.ost-pe1.osl.no.customer.tdc.net (
85.19.26.46)
0.837 ms
0.755 ms
0.759 ms
156 7 95.128.105.3 (
95.128.105.3)
1.050 ms
1.288 ms
1.182 ms
157 8 mx03.telecomputing.no (
95.128.105.102)
0.717 ms
0.703 ms
0.692 ms
164 <title>First draft Norwegian Bokmål edition of The Debian Administrator
's Handbook now public
</title>
165 <link>http://people.skolelinux.org/pere/blog/First_draft_Norwegian_Bokm_l_edition_of_The_Debian_Administrator_s_Handbook_now_public.html
</link>
166 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/First_draft_Norwegian_Bokm_l_edition_of_The_Debian_Administrator_s_Handbook_now_public.html
</guid>
167 <pubDate>Tue,
30 Aug
2016 10:
10:
00 +
0200</pubDate>
168 <description><p
>In April we
169 <a href=
"http://people.skolelinux.org/pere/blog/Lets_make_a_Norwegian_Bokm_l_edition_of_The_Debian_Administrator_s_Handbook.html
">started
170 to work
</a
> on a Norwegian Bokmål edition of the
"open access
" book on
171 how to set up and administrate a Debian system. Today I am happy to
172 report that the first draft is now publicly available. You can find
173 it on
<a href=
"https://debian-handbook.info/get/
">get the Debian
174 Administrator
's Handbook page
</a
> (under Other languages). The first
175 eight chapters have a first draft translation, and we are working on
176 proofreading the content. If you want to help out, please start
178 <a href=
"https://hosted.weblate.org/projects/debian-handbook/
">the
179 hosted weblate project page
</a
>, and get in touch using
180 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/debian-handbook-translators
">the
181 translators mailing list
</a
>. Please also check out
182 <a href=
"https://debian-handbook.info/contribute/
">the instructions for
183 contributors
</a
>. A good way to contribute is to proofread the text
184 and update weblate if you find errors.
</p
>
186 <p
>Our goal is still to make the Norwegian book available on paper as well as
187 electronic form.
</p
>
192 <title>Coz can help you find bottlenecks in multi-threaded software - nice free software
</title>
193 <link>http://people.skolelinux.org/pere/blog/Coz_can_help_you_find_bottlenecks_in_multi_threaded_software___nice_free_software.html
</link>
194 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Coz_can_help_you_find_bottlenecks_in_multi_threaded_software___nice_free_software.html
</guid>
195 <pubDate>Thu,
11 Aug
2016 12:
00:
00 +
0200</pubDate>
196 <description><p
>This summer, I read a great article
197 "<a href=
"https://www.usenix.org/publications/login/summer2016/curtsinger
">coz:
198 This Is the Profiler You
're Looking For
</a
>" in USENIX ;login: about
199 how to profile multi-threaded programs. It presented a system for
200 profiling software by running experiences in the running program,
201 testing how run time performance is affected by
"speeding up
" parts of
202 the code to various degrees compared to a normal run. It does this by
203 slowing down parallel threads while the
"faster up
" code is running
204 and measure how this affect processing time. The processing time is
205 measured using probes inserted into the code, either using progress
206 counters (COZ_PROGRESS) or as latency meters (COZ_BEGIN/COZ_END). It
207 can also measure unmodified code by measuring complete the program
208 runtime and running the program several times instead.
</p
>
210 <p
>The project and presentation was so inspiring that I would like to
211 get the system into Debian. I
212 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
830708">created
213 a WNPP request for it
</a
> and contacted upstream to try to make the
214 system ready for Debian by sending patches. The build process need to
215 be changed a bit to avoid running
'git clone
' to get dependencies, and
216 to include the JavaScript web page used to visualize the collected
217 profiling information included in the source package.
218 But I expect that should work out fairly soon.
</p
>
220 <p
>The way the system work is fairly simple. To run an coz experiment
221 on a binary with debug symbols available, start the program like this:
223 <p
><blockquote
><pre
>
224 coz run --- program-to-run
225 </pre
></blockquote
></p
>
227 <p
>This will create a text file profile.coz with the instrumentation
228 information. To show what part of the code affect the performance
229 most, use a web browser and either point it to
230 <a href=
"http://plasma-umass.github.io/coz/
">http://plasma-umass.github.io/coz/
</a
>
231 or use the copy from git (in the gh-pages branch). Check out this web
232 site to have a look at several example profiling runs and get an idea what the end result from the profile runs look like. To make the
233 profiling more useful you include
&lt;coz.h
&gt; and insert the
234 COZ_PROGRESS or COZ_BEGIN and COZ_END at appropriate places in the
235 code, rebuild and run the profiler. This allow coz to do more
236 targeted experiments.
</p
>
238 <p
>A video published by ACM
239 <a href=
"https://www.youtube.com/watch?v=jE0V-p1odPg
">presenting the
240 Coz profiler
</a
> is available from Youtube. There is also a paper
241 from the
25th Symposium on Operating Systems Principles available
243 <a href=
"https://www.usenix.org/conference/atc16/technical-sessions/presentation/curtsinger
">Coz:
244 finding code that counts with causal profiling
</a
>.
</p
>
246 <p
><a href=
"https://github.com/plasma-umass/coz
">The source code
</a
>
247 for Coz is available from github. It will only build with clang
249 <a href=
"https://gcc.gnu.org/bugzilla/show_bug.cgi?id=
55606">C++
250 feature missing in GCC
</a
>, but I
've submitted
251 <a href=
"https://github.com/plasma-umass/coz/pull/
67">a patch to solve
252 it
</a
> and hope it will be included in the upstream source soon.
</p
>
254 <p
>Please get in touch if you, like me, would like to see this piece
255 of software in Debian. I would very much like some help with the
256 packaging effort, as I lack the in depth knowledge on how to package
257 C++ libraries.
</p
>
262 <title>Sales number for the Free Culture translation, first half of
2016</title>
263 <link>http://people.skolelinux.org/pere/blog/Sales_number_for_the_Free_Culture_translation__first_half_of_2016.html
</link>
264 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sales_number_for_the_Free_Culture_translation__first_half_of_2016.html
</guid>
265 <pubDate>Fri,
5 Aug
2016 22:
45:
00 +
0200</pubDate>
266 <description><p
>As my regular readers probably remember, the last year I published
267 a French and Norwegian translation of the classic
268 <a href=
"http://www.free-culture.cc/
">Free Culture book
</a
> by the
269 founder of the Creative Commons movement, Lawrence Lessig. A bit less
270 known is the fact that due to the way I created the translations,
271 using docbook and po4a, I also recreated the English original. And
272 because I already had created a new the PDF edition, I published it
273 too. The revenue from the books are sent to the Creative Commons
274 Corporation. In other words, I do not earn any money from this
275 project, I just earn the warm fuzzy feeling that the text is available
276 for a wider audience and more people can learn why the Creative
277 Commons is needed.
</p
>
279 <p
>Today, just for fun, I had a look at the sales number over at
280 Lulu.com, which take care of payment, printing and shipping. Much to
281 my surprise, the English edition is selling better than both the
282 French and Norwegian edition, despite the fact that it has been
283 available in English since it was first published. In total,
24 paper
284 books was sold for USD $
19.99 between
2016-
01-
01 and
2016-
07-
31:
</p
>
286 <table border=
"0">
287 <tr
><th
>Title / language
</th
><th
>Quantity
</th
></tr
>
288 <tr
><td
><a href=
"http://www.lulu.com/shop/lawrence-lessig/culture-libre/paperback/product-
22645082.html
">Culture Libre / French
</a
></td
><td align=
"right
">3</td
></tr
>
289 <tr
><td
><a href=
"http://www.lulu.com/shop/lawrence-lessig/fri-kultur/paperback/product-
22441576.html
">Fri kultur / Norwegian
</a
></td
><td align=
"right
">7</td
></tr
>
290 <tr
><td
><a href=
"http://www.lulu.com/shop/lawrence-lessig/free-culture/paperback/product-
22440520.html
">Free Culture / English
</a
></td
><td align=
"right
">14</td
></tr
>
293 <p
>The books are available both from Lulu.com and from large book
294 stores like Amazon and Barnes
&Noble. Most revenue, around $
10 per
295 book, is sent to the Creative Commons project when the book is sold
296 directly by Lulu.com. The other channels give less revenue. The
297 summary from Lulu tell me
10 books was sold via the Amazon channel,
10
298 via Ingram (what is this?) and
4 directly by Lulu. And Lulu.com tells
299 me that the revenue sent so far this year is USD $
101.42. No idea
300 what kind of sales numbers to expect, so I do not know if that is a
301 good amount of sales for a
10 year old book or not. But it make me
302 happy that the buyers find the book, and I hope they enjoy reading it
303 as much as I did.
</p
>
305 <p
>The ebook edition is available for free from
306 <a href=
"https://github.com/petterreinholdtsen/free-culture-lessig
">Github
</a
>.
</p
>
308 <p
>If you would like to translate and publish the book in your native
309 language, I would be happy to help make it happen. Please get in
315 <title>Vitenskapen tar som vanlig feil igjen - relativt feil
</title>
316 <link>http://people.skolelinux.org/pere/blog/Vitenskapen_tar_som_vanlig_feil_igjen___relativt_feil.html
</link>
317 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Vitenskapen_tar_som_vanlig_feil_igjen___relativt_feil.html
</guid>
318 <pubDate>Mon,
1 Aug
2016 16:
00:
00 +
0200</pubDate>
319 <description><p
>For mange år siden leste jeg en klassisk tekst som gjorde såpass
320 inntrykk på meg at jeg husker den fortsatt, flere år senere, og bruker
321 argumentene fra den stadig vekk. Teksten var «The Relativity of
322 Wrong» som Isaac Asimov publiserte i Skeptical Inquirer i
1989. Den
323 gir litt perspektiv rundt formidlingen av vitenskapelige resultater.
324 Jeg har hatt lyst til å kunne dele den også med folk som ikke
325 behersker engelsk så godt, som barn og noen av mine eldre slektninger,
326 og har savnet å ha den tilgjengelig på norsk. For to uker siden tok
327 jeg meg sammen og kontaktet Asbjørn Dyrendal i foreningen Skepsis om
328 de var interessert i å publisere en norsk utgave på bloggen sin, og da
329 han var positiv tok jeg kontakt med Skeptical Inquirer og spurte om
330 det var greit for dem. I løpet av noen dager fikk vi tilbakemelding
331 fra Barry Karr hos The Skeptical Inquirer som hadde sjekket og fått OK
332 fra Robyn Asimov som representerte arvingene i Asmiov-familien og gikk
333 igang med oversettingen.
</p
>
335 <p
>Resultatet,
<a href=
"http://www.skepsis.no/?p=
1617">«Relativt
336 feil»
</a
>, ble publisert på skepsis-bloggen for noen minutter siden.
337 Jeg anbefaler deg på det varmeste å lese denne teksten og dele den med
338 dine venner.
</p
>
340 <p
>For å håndtere oversettelsen og sikre at original og oversettelse
341 var i sync brukte vi git, po4a, GNU make og Transifex. Det hele
342 fungerte utmerket og gjorde det enkelt å dele tekstene og jobbe sammen
343 om finpuss på formuleringene. Hadde hosted.weblate.org latt meg
344 opprette nye prosjekter selv i stedet for å måtte kontakte
345 administratoren der, så hadde jeg brukt weblate i stedet.
</p
>
350 <title>Techno TV broadcasting live across Norway and the Internet (#debconf16, #nuug) on @frikanalen
</title>
351 <link>http://people.skolelinux.org/pere/blog/Techno_TV_broadcasting_live_across_Norway_and_the_Internet___debconf16___nuug__on__frikanalen.html
</link>
352 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Techno_TV_broadcasting_live_across_Norway_and_the_Internet___debconf16___nuug__on__frikanalen.html
</guid>
353 <pubDate>Mon,
1 Aug
2016 10:
30:
00 +
0200</pubDate>
354 <description><p
>Did you know there is a TV channel broadcasting talks from DebConf
355 16 across an entire country? Or that there is a TV channel
356 broadcasting talks by or about
357 <a href=
"http://beta.frikanalen.no/video/
625529/
">Linus Torvalds
</a
>,
358 <a href=
"http://beta.frikanalen.no/video/
625599/
">Tor
</a
>,
359 <a href=
"http://beta.frikanalen.no/video/
624019/
">OpenID
</A
>,
360 <a href=
"http://beta.frikanalen.no/video/
625624/
">Common Lisp
</a
>,
361 <a href=
"http://beta.frikanalen.no/video/
625446/
">Civic Tech
</a
>,
362 <a href=
"http://beta.frikanalen.no/video/
625090/
">EFF founder John Barlow
</a
>,
363 <a href=
"http://beta.frikanalen.no/video/
625432/
">how to make
3D
364 printer electronics
</a
> and many more fascinating topics? It works
365 using only free software (all of it
366 <a href=
"http://github.com/Frikanalen
">available from Github
</a
>), and
367 is administrated using a web browser and a web API.
</p
>
369 <p
>The TV channel is the Norwegian open channel
370 <a href=
"http://www.frikanalen.no/
">Frikanalen
</a
>, and I am involved
371 via
<a href=
"https://www.nuug.no/
">the NUUG member association
</a
> in
372 running and developing the software for the channel. The channel is
373 organised as a member organisation where its members can upload and
374 broadcast what they want (think of it as Youtube for national
375 broadcasting television). Individuals can broadcast too. The time
376 slots are handled on a first come, first serve basis. Because the
377 channel have almost no viewers and very few active members, we can
378 experiment with TV technology without too much flack when we make
379 mistakes. And thanks to the few active members, most of the slots on
380 the schedule are free. I see this as an opportunity to spread
381 knowledge about technology and free software, and have a script I run
382 regularly to fill up all the open slots the next few days with
383 technology related video. The end result is a channel I like to
384 describe as Techno TV - filled with interesting talks and
385 presentations.
</p
>
387 <p
>It is available on channel
50 on the Norwegian national digital TV
388 network (RiksTV). It is also available as a multicast stream on
389 Uninett. And finally, it is available as
390 <a href=
"http://beta.frikanalen.no/
">a WebM unicast stream
</a
> from
391 Frikanalen and NUUG. Check it out. :)
</p
>
396 <title>Unlocking HTC Desire HD on Linux using unruu and fastboot
</title>
397 <link>http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html
</link>
398 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Unlocking_HTC_Desire_HD_on_Linux_using_unruu_and_fastboot.html
</guid>
399 <pubDate>Thu,
7 Jul
2016 11:
30:
00 +
0200</pubDate>
400 <description><p
>Yesterday, I tried to unlock a HTC Desire HD phone, and it proved
401 to be a slight challenge. Here is the recipe if I ever need to do it
402 again. It all started by me wanting to try the recipe to set up
403 <a href=
"https://blog.torproject.org/blog/mission-impossible-hardening-android-security-and-privacy
">an
404 hardened Android installation
</a
> from the Tor project blog on a
405 device I had access to. It is a old mobile phone with a broken
406 microphone The initial idea had been to just
407 <a href=
"http://wiki.cyanogenmod.org/w/Install_CM_for_ace
">install
408 CyanogenMod on it
</a
>, but did not quite find time to start on it
409 until a few days ago.
</p
>
411 <p
>The unlock process is supposed to be simple: (
1) Boot into the boot
412 loader (press volume down and power at the same time), (
2) select
413 'fastboot
' before (
3) connecting the device via USB to a Linux
414 machine, (
4) request the device identifier token by running
'fastboot
415 oem get_identifier_token
', (
5) request the device unlocking key using
416 the
<a href=
"http://www.htcdev.com/bootloader/
">HTC developer web
417 site
</a
> and unlock the phone using the key file emailed to you.
</p
>
419 <p
>Unfortunately, this only work fi you have hboot version
2.00.0029
420 or newer, and the device I was working on had
2.00.0027. This
421 apparently can be easily fixed by downloading a Windows program and
422 running it on your Windows machine, if you accept the terms Microsoft
423 require you to accept to use Windows - which I do not. So I had to
424 come up with a different approach. I got a lot of help from AndyCap
425 on #nuug, and would not have been able to get this working without
428 <p
>First I needed to extract the hboot firmware from
429 <a href=
"http://www.htcdev.com/ruu/PD9810000_Ace_Sense30_S_hboot_2.00
.0029.exe
">the
430 windows binary for HTC Desire HD
</a
> downloaded as
'the RUU
' from HTC.
431 For this there is is
<a href=
"https://github.com/kmdm/unruu/
">a github
432 project named unruu
</a
> using libunshield. The unshield tool did not
433 recognise the file format, but unruu worked and extracted rom.zip,
434 containing the new hboot firmware and a text file describing which
435 devices it would work for.
</p
>
437 <p
>Next, I needed to get the new firmware into the device. For this I
438 followed some instructions
439 <a href=
"http://www.htc1guru.com/
2013/
09/new-ruu-zips-posted/
">available
440 from HTC1Guru.com
</a
>, and ran these commands as root on a Linux
441 machine with Debian testing:
</p
>
444 adb reboot-bootloader
445 fastboot oem rebootRUU
446 fastboot flash zip rom.zip
447 fastboot flash zip rom.zip
449 </pre
></p
>
451 <p
>The flash command apparently need to be done twice to take effect,
452 as the first is just preparations and the second one do the flashing.
453 The adb command is just to get to the boot loader menu, so turning the
454 device on while holding volume down and the power button should work
457 <p
>With the new hboot version in place I could start following the
458 instructions on the HTC developer web site. I got the device token
462 fastboot oem get_identifier_token
2>&1 | sed
's/(bootloader) //
'
465 <p
>And once I got the unlock code via email, I could use it like
469 fastboot flash unlocktoken Unlock_code.bin
470 </pre
></p
>
472 <p
>And with that final step in place, the phone was unlocked and I
473 could start stuffing the software of my own choosing into the device.
474 So far I only inserted a replacement recovery image to wipe the phone
475 before I start. We will see what happen next. Perhaps I should
476 install
<a href=
"https://www.debian.org/
">Debian
</a
> on it. :)
</p
>
481 <title>How to use the Signal app if you only have a land line (ie no mobile phone)
</title>
482 <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>
483 <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>
484 <pubDate>Sun,
3 Jul
2016 14:
20:
00 +
0200</pubDate>
485 <description><p
>For a while now, I have wanted to test
486 <a href=
"https://whispersystems.org/
">the Signal app
</a
>, as it is
487 said to provide end to end encrypted communication and several of my
488 friends and family are already using it. As I by choice do not own a
489 mobile phone, this proved to be harder than expected. And I wanted to
490 have the source of the client and know that it was the code used on my
491 machine. But yesterday I managed to get it working. I used the
492 Github source, compared it to the source in
493 <a href=
"https://chrome.google.com/webstore/detail/signal-private-messenger/bikioccmkafdpakkkcpdbppfkghcmihk?hl=en-US
">the
494 Signal Chrome app
</a
> available from the Chrome web store, applied
495 patches to use the production Signal servers, started the app and
496 asked for the hidden
"register without a smart phone
" form. Here is
497 the recipe how I did it.
</p
>
499 <p
>First, I fetched the Signal desktop source from Github, using
502 git clone https://github.com/WhisperSystems/Signal-Desktop.git
505 <p
>Next, I patched the source to use the production servers, to be
506 able to talk to other Signal users:
</p
>
509 cat
&lt;
&lt;EOF | patch -p0
510 diff -ur ./js/background.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/background.js
511 --- ./js/background.js
2016-
06-
29 13:
43:
15.630344628 +
0200
512 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/background.js
2016-
06-
29 14:
06:
29.530300934 +
0200
517 - var SERVER_URL =
'https://textsecure-service-staging.whispersystems.org
';
518 - var ATTACHMENT_SERVER_URL =
'https://whispersystems-textsecure-attachments-staging.s3.amazonaws.com
';
519 + var SERVER_URL =
'https://textsecure-service-ca.whispersystems.org:
4433';
520 + var ATTACHMENT_SERVER_URL =
'https://whispersystems-textsecure-attachments.s3.amazonaws.com
';
522 window.getSocketStatus = function() {
523 if (messageReceiver) {
524 diff -ur ./js/expire.js userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/expire.js
525 --- ./js/expire.js
2016-
06-
29 13:
43:
15.630344628 +
0200
526 +++ userdata/Default/Extensions/bikioccmkafdpakkkcpdbppfkghcmihk/
0.15.0_0/js/expire.js2016-
06-
29 14:
06:
29.530300934 +
0200
529 'use strict
';
530 - var BUILD_EXPIRATION =
0;
531 + var BUILD_EXPIRATION =
1474492690000;
533 window.extension = window.extension || {};
538 <p
>The first part is changing the servers, and the second is updating
539 an expiration timestamp. This timestamp need to be updated regularly.
540 It is set
90 days in the future by the build process (Gruntfile.js).
541 The value is seconds since
1970 times
1000, as far as I can tell.
</p
>
543 <p
>Based on a tip and good help from the #nuug IRC channel, I wrote a
544 script to launch Signal in Chromium.
</p
>
551 --proxy-server=
"socks://localhost:
9050" \
552 --user-data-dir=`pwd`/userdata --load-and-launch-app=`pwd`
555 <p
> The script start the app and configure Chromium to use the Tor
556 SOCKS5 proxy to make sure those controlling the Signal servers (today
557 Amazon and Whisper Systems) as well as those listening on the lines
558 will have a harder time location my laptop based on the Signal
559 connections if they use source IP address.
</p
>
561 <p
>When the script starts, one need to follow the instructions under
562 "Standalone Registration
" in the CONTRIBUTING.md file in the git
563 repository. I right clicked on the Signal window to get up the
564 Chromium debugging tool, visited the
'Console
' tab and wrote
565 'extension.install(
"standalone
")
' on the console prompt to get the
566 registration form. Then I entered by land line phone number and
567 pressed
'Call
'.
5 seconds later the phone rang and a robot voice
568 repeated the verification code three times. After entering the number
569 into the verification code field in the form, I could start using
570 Signal from my laptop.
572 <p
>As far as I can tell, The Signal app will leak who is talking to
573 whom and thus who know who to those controlling the central server,
574 but such leakage is hard to avoid with a centrally controlled server
575 setup. It is something to keep in mind when using Signal - the
576 content of your chats are harder to intercept, but the meta data
577 exposing your contact network is available to people you do not know.
578 So better than many options, but not great. And sadly the usage is
579 connected to my land line, thus allowing those controlling the server
580 to associate it to my home and person. I would prefer it if only
581 those I knew could tell who I was on Signal. There are options
582 avoiding such information leakage, but most of my friends are not
583 using them, so I am stuck with Signal for now.
</p
>
588 <title>The new
"best
" multimedia player in Debian?
</title>
589 <link>http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html
</link>
590 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/The_new__best__multimedia_player_in_Debian_.html
</guid>
591 <pubDate>Mon,
6 Jun
2016 12:
50:
00 +
0200</pubDate>
592 <description><p
>When I set out a few weeks ago to figure out
593 <a href=
"http://people.skolelinux.org/pere/blog/What_is_the_best_multimedia_player_in_Debian_.html
">which
594 multimedia player in Debian claimed to support most file formats /
595 MIME types
</a
>, I was a bit surprised how varied the sets of MIME types
596 the various players claimed support for. The range was from
55 to
130
597 MIME types. I suspect most media formats are supported by all
598 players, but this is not really reflected in the MimeTypes values in
599 their desktop files. There are probably also some bogus MIME types
600 listed, but it is hard to identify which one this is.
</p
>
602 <p
>Anyway, in the mean time I got in touch with upstream for some of
603 the players suggesting to add more MIME types to their desktop files,
604 and decided to spend some time myself improving the situation for my
605 favorite media player VLC. The fixes for VLC entered Debian unstable
606 yesterday. The complete list of MIME types can be seen on the
607 <a href=
"https://wiki.debian.org/DebianMultimedia/PlayerSupport
">Multimedia
608 player MIME type support status
</a
> Debian wiki page.
</p
>
610 <p
>The new
"best
" multimedia player in Debian? It is VLC, followed by
611 totem, parole, kplayer, gnome-mpv, mpv, smplayer, mplayer-gui and
612 kmplayer. I am sure some of the other players desktop files support
613 several of the formats currently listed as working only with vlc,
614 toten and parole.
</p
>
616 <p
>A sad observation is that only
14 MIME types are listed as
617 supported by all the tested multimedia players in Debian in their
618 desktop files: audio/mpeg, audio/vnd.rn-realaudio, audio/x-mpegurl,
619 audio/x-ms-wma, audio/x-scpls, audio/x-wav, video/mp4, video/mpeg,
620 video/quicktime, video/vnd.rn-realvideo, video/x-matroska,
621 video/x-ms-asf, video/x-ms-wmv and video/x-msvideo. Personally I find
622 it sad that video/ogg and video/webm is not supported by all the media
623 players in Debian. As far as I can tell, all of them can handle both
629 <title>A program should be able to open its own files on Linux
</title>
630 <link>http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html
</link>
631 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/A_program_should_be_able_to_open_its_own_files_on_Linux.html
</guid>
632 <pubDate>Sun,
5 Jun
2016 08:
30:
00 +
0200</pubDate>
633 <description><p
>Many years ago, when koffice was fresh and with few users, I
634 decided to test its presentation tool when making the slides for a
635 talk I was giving for NUUG on Japhar, a free Java virtual machine. I
636 wrote the first draft of the slides, saved the result and went to bed
637 the day before I would give the talk. The next day I took a plane to
638 the location where the meeting should take place, and on the plane I
639 started up koffice again to polish the talk a bit, only to discover
640 that kpresenter refused to load its own data file. I cursed a bit and
641 started making the slides again from memory, to have something to
642 present when I arrived. I tested that the saved files could be
643 loaded, and the day seemed to be rescued. I continued to polish the
644 slides until I suddenly discovered that the saved file could no longer
645 be loaded into kpresenter. In the end I had to rewrite the slides
646 three times, condensing the content until the talk became shorter and
647 shorter. After the talk I was able to pinpoint the problem
&ndash;
648 kpresenter wrote inline images in a way itself could not understand.
649 Eventually that bug was fixed and kpresenter ended up being a great
650 program to make slides. The point I
'm trying to make is that we
651 expect a program to be able to load its own data files, and it is
652 embarrassing to its developers if it can
't.
</p
>
654 <p
>Did you ever experience a program failing to load its own data
655 files from the desktop file browser? It is not a uncommon problem. A
656 while back I discovered that the screencast recorder
657 gtk-recordmydesktop would save an Ogg Theora video file the KDE file
658 browser would refuse to open. No video player claimed to understand
659 such file. I tracked down the cause being
<tt
>file --mime-type
</tt
>
660 returning the application/ogg MIME type, which no video player I had
661 installed listed as a MIME type they would understand. I asked for
662 <a href=
"http://bugs.gw.com/view.php?id=
382">file to change its
663 behavour
</a
> and use the MIME type video/ogg instead. I also asked
664 several video players to add video/ogg to their desktop files, to give
665 the file browser an idea what to do about Ogg Theora files. After a
666 while, the desktop file browsers in Debian started to handle the
667 output from gtk-recordmydesktop properly.
</p
>
669 <p
>But history repeats itself. A few days ago I tested the music
670 system Rosegarden again, and I discovered that the KDE and xfce file
671 browsers did not know what to do with the Rosegarden project files
672 (*.rg). I
've reported
<a href=
"http://bugs.debian.org/
825993">the
673 rosegarden problem to BTS
</a
> and a fix is commited to git and will be
674 included in the next upload. To increase the chance of me remembering
675 how to fix the problem next time some program fail to load its files
676 from the file browser, here are some notes on how to fix it.
</p
>
678 <p
>The file browsers in Debian in general operates on MIME types.
679 There are two sources for the MIME type of a given file. The output from
680 <tt
>file --mime-type
</tt
> mentioned above, and the content of the
681 shared MIME type registry (under /usr/share/mime/). The file MIME
682 type is mapped to programs supporting the MIME type, and this
683 information is collected from
684 <a href=
"https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/
">the
685 desktop files
</a
> available in /usr/share/applications/. If there is
686 one desktop file claiming support for the MIME type of the file, it is
687 activated when asking to open a given file. If there are more, one
688 can normally select which one to use by right-clicking on the file and
689 selecting the wanted one using
'Open with
' or similar. In general
690 this work well. But it depend on each program picking a good MIME
692 <a href=
"http://www.iana.org/assignments/media-types/media-types.xhtml
">a
693 MIME type registered with IANA
</a
>), file and/or the shared MIME
694 registry recognizing the file and the desktop file to list the MIME
695 type in its list of supported MIME types.
</p
>
697 <p
>The
<tt
>/usr/share/mime/packages/rosegarden.xml
</tt
> entry for
698 <a href=
"http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec
">the
699 Shared MIME database
</a
> look like this:
</p
>
701 <p
><blockquote
><pre
>
702 &lt;?xml version=
"1.0" encoding=
"UTF-
8"?
&gt;
703 &lt;mime-info xmlns=
"http://www.freedesktop.org/standards/shared-mime-info
"&gt;
704 &lt;mime-type type=
"audio/x-rosegarden
"&gt;
705 &lt;sub-class-of type=
"application/x-gzip
"/
&gt;
706 &lt;comment
&gt;Rosegarden project file
&lt;/comment
&gt;
707 &lt;glob pattern=
"*.rg
"/
&gt;
708 &lt;/mime-type
&gt;
709 &lt;/mime-info
&gt;
710 </pre
></blockquote
></p
>
712 <p
>This states that audio/x-rosegarden is a kind of application/x-gzip
713 (it is a gzipped XML file). Note, it is much better to use an
714 official MIME type registered with IANA than it is to make up ones own
715 unofficial ones like the x-rosegarden type used by rosegarden.
</p
>
717 <p
>The desktop file of the rosegarden program failed to list
718 audio/x-rosegarden in its list of supported MIME types, causing the
719 file browsers to have no idea what to do with *.rg files:
</p
>
721 <p
><blockquote
><pre
>
722 % grep Mime /usr/share/applications/rosegarden.desktop
723 MimeType=audio/x-rosegarden-composition;audio/x-rosegarden-device;audio/x-rosegarden-project;audio/x-rosegarden-template;audio/midi;
724 X-KDE-NativeMimeType=audio/x-rosegarden-composition
726 </pre
></blockquote
></p
>
728 <p
>The fix was to add
"audio/x-rosegarden;
" at the end of the
729 MimeType= line.
</p
>
731 <p
>If you run into a file which fail to open the correct program when
732 selected from the file browser, please check out the output from
733 <tt
>file --mime-type
</tt
> for the file, ensure the file ending and
734 MIME type is registered somewhere under /usr/share/mime/ and check
735 that some desktop file under /usr/share/applications/ is claiming
736 support for this MIME type. If not, please report a bug to have it