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