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>Dokumentaren om Datalagringsdirektivet sendes endelig på NRK
</title>
11 <link>http://people.skolelinux.org/pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
</guid>
13 <pubDate>Wed,
26 Mar
2014 09:
50:
00 +
0100</pubDate>
14 <description><p
><a href=
"http://www.nuug.no/
">Foreningen NUUG
</a
> melder i natt at
15 NRK nå har bestemt seg for
16 <a href=
"http://www.nuug.no/news/NRK_viser_filmen_om_Datalagringsdirektivet_f_rste_gang_2014_03_31.shtml
">når
17 den norske dokumentarfilmen om datalagringsdirektivet skal
18 sendes
</a
> (se
<a href=
"http://www.imdb.com/title/tt2832844/
">IMDB
</a
>
19 for detaljer om filmen) . Første visning blir på NRK2 mandag
20 2014-
03-
31 kl.
19:
50, og deretter visninger onsdag
2014-
04-
02
21 kl.
12:
30, fredag
2014-
04-
04 kl.
19:
40 og søndag
2014-
04-
06 kl.
15:
10.
22 Jeg har sett dokumentaren, og jeg anbefaler enhver å se den selv. Som
23 oppvarming mens vi venter anbefaler jeg Bjørn Stærks kronikk i
24 Aftenposten fra i går,
25 <a href=
"http://www.aftenposten.no/meninger/kronikker/Autoritar-gjokunge-
7514915.html
">Autoritær
26 gjøkunge
</a
>, der han gir en grei skisse av hvor ille det står til med
27 retten til privatliv og beskyttelsen av demokrati i Norge og resten
28 verden, og helt riktig slår fast at det er vi i databransjen som
29 sitter med nøkkelen til å gjøre noe med dette. Jeg har involvert meg
30 i prosjektene
<a href=
"http://www.dugnadsnett.no/
">dugnadsnett.no
</a
>
31 og
<a href=
"https://wiki.debian.org/FreedomBox
">FreedomBox
</a
> for å
32 forsøke å gjøre litt selv for å bedre situasjonen, men det er mye
33 hardt arbeid fra mange flere enn meg som gjenstår før vi kan sies å ha
34 gjenopprettet balansen.
</p
>
36 <p
>Jeg regner med at nettutgaven dukker opp på
37 <a href=
"http://tv.nrk.no/program/koid75005313/tema-dine-digitale-spor-datalagringsdirektivet
">NRKs
38 side om filmen om datalagringsdirektivet
</a
> om frem dager. Hold et
39 øye med siden, og tips venner og slekt om at de også bør se den.
</p
>
44 <title>Public Trusted Timestamping services for everyone
</title>
45 <link>http://people.skolelinux.org/pere/blog/Public_Trusted_Timestamping_services_for_everyone.html
</link>
46 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Public_Trusted_Timestamping_services_for_everyone.html
</guid>
47 <pubDate>Tue,
25 Mar
2014 12:
50:
00 +
0100</pubDate>
48 <description><p
>Did you ever need to store logs or other files in a way that would
49 allow it to be used as evidence in court, and needed a way to
50 demonstrate without reasonable doubt that the file had not been
51 changed since it was created? Or, did you ever need to document that
52 a given document was received at some point in time, like some
53 archived document or the answer to an exam, and not changed after it
54 was received? The problem in these settings is to remove the need to
55 trust yourself and your computers, while still being able to prove
56 that a file is the same as it was at some given time in the past.
</p
>
58 <p
>A solution to these problems is to have a trusted third party
59 "stamp
" the document and verify that at some given time the document
60 looked a given way. Such
61 <a href=
"https://en.wikipedia.org/wiki/Notarius
">notarius
</a
> service
62 have been around for thousands of years, and its digital equivalent is
64 <a href=
"http://en.wikipedia.org/wiki/Trusted_timestamping
">trusted
65 timestamping service
</a
>.
<a href=
"http://www.ietf.org/
">The Internet
66 Engineering Task Force
</a
> standardised how such service could work a
67 few years ago as
<a href=
"http://tools.ietf.org/html/rfc3161
">RFC
68 3161</a
>. The mechanism is simple. Create a hash of the file in
69 question, send it to a trusted third party which add a time stamp to
70 the hash and sign the result with its private key, and send back the
71 signed hash + timestamp. Both email, FTP and HTTP can be used to
72 request such signature, depending on what is provided by the service
73 used. Anyone with the document and the signature can then verify that
74 the document matches the signature by creating their own hash and
75 checking the signature using the trusted third party public key.
76 There are several commercial services around providing such
77 timestamping. A quick search for
78 "<a href=
"https://duckduckgo.com/?q=rfc+
3161+service
">rfc
3161
79 service
</a
>" pointed me to at least
80 <a href=
"https://www.digistamp.com/technical/how-a-digital-time-stamp-works/
">DigiStamp
</a
>,
81 <a href=
"http://www.quovadisglobal.co.uk/CertificateServices/SigningServices/TimeStamp.aspx
">Quo
83 <a href=
"https://www.globalsign.com/timestamp-service/
">Global Sign
</a
>
84 and
<a href=
"http://www.globaltrustfinder.com/TSADefault.aspx
">Global
85 Trust Finder
</a
>. The system work as long as the private key of the
86 trusted third party is not compromised.
</p
>
88 <p
>But as far as I can tell, there are very few public trusted
89 timestamp services available for everyone. I
've been looking for one
90 for a while now. But yesterday I found one over at
91 <a href=
"https://www.pki.dfn.de/zeitstempeldienst/
">Deutches
92 Forschungsnetz
</a
> mentioned in
93 <a href=
"http://www.d-mueller.de/blog/dealing-with-trusted-timestamps-in-php-rfc-
3161/
">a
94 blog by David Müller
</a
>. I then found
95 <a href=
"http://www.rz.uni-greifswald.de/support/dfn-pki-zertifikate/zeitstempeldienst.html
">a
96 good recipe on how to use the service
</a
> over at the University of
99 <p
><a href=
"http://www.openssl.org/
">The OpenSSL library
</a
> contain
100 both server and tools to use and set up your own signing service. See
101 the ts(
1SSL), tsget(
1SSL) manual pages for more details. The
102 following shell script demonstrate how to extract a signed timestamp
103 for any file on the disk in a Debian environment:
</p
>
105 <p
><blockquote
><pre
>
108 url=
"http://zeitstempel.dfn.de
"
109 caurl=
"https://pki.pca.dfn.de/global-services-ca/pub/cacert/chain.txt
"
110 reqfile=$(mktemp -t tmp.XXXXXXXXXX.tsq)
111 resfile=$(mktemp -t tmp.XXXXXXXXXX.tsr)
113 if [ ! -f $cafile ] ; then
114 wget -O $cafile
"$caurl
"
116 openssl ts -query -data
"$
1" -cert | tee
"$reqfile
" \
117 | /usr/lib/ssl/misc/tsget -h
"$url
" -o
"$resfile
"
118 openssl ts -reply -in
"$resfile
" -text
1>&2
119 openssl ts -verify -data
"$
1" -in
"$resfile
" -CAfile
"$cafile
" 1>&2
120 base64
< "$resfile
"
121 rm
"$reqfile
" "$resfile
"
122 </pre
></blockquote
></p
>
124 <p
>The argument to the script is the file to timestamp, and the output
125 is a base64 encoded version of the signature to STDOUT and details
126 about the signature to STDERR. Note that due to
127 <a href=
"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
742553">a bug
128 in the tsget script
</a
>, you might need to modify the included script
129 and remove the last line. Or just write your own HTTP uploader using
130 curl. :) Now you too can prove and verify that files have not been
133 <p
>But the Internet need more public trusted timestamp services.
134 Perhaps something for
<a href=
"http://www.uninett.no/
">Uninett
</a
> or
135 my work place the
<a href=
"http://www.uio.no/
">University of Oslo
</a
>
141 <title>Video DVD reader library / python-dvdvideo - nice free software
</title>
142 <link>http://people.skolelinux.org/pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html
</link>
143 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html
</guid>
144 <pubDate>Fri,
21 Mar
2014 15:
25:
00 +
0100</pubDate>
145 <description><p
>Keeping your DVD collection safe from scratches and curious
146 children fingers while still having it available when you want to see a
147 movie is not straight forward. My preferred method at the moment is
148 to store a full copy of the ISO on a hard drive, and use VLC, Popcorn
149 Hour or other useful players to view the resulting file. This way the
150 subtitles and bonus material are still available and using the ISO is
151 just like inserting the original DVD record in the DVD player.
</p
>
153 <p
>Earlier I used dd for taking security copies, but it do not handle
154 DVDs giving read errors (which are quite a few of them). I
've also
156 <a href=
"http://people.skolelinux.org/pere/blog/Ripping_problematic_DVDs_using_dvdbackup_and_genisoimage.html
">dvdbackup
157 and genisoimage
</a
>, but these days I use the marvellous python library
159 <a href=
"http://bblank.thinkmo.de/blog/new-software-python-dvdvideo
">python-dvdvideo
</a
>
160 written by Bastian Blank. It is
161 <a href=
"http://packages.qa.debian.org/p/python-dvdvideo.html
">in Debian
162 already
</a
> and the binary package name is python3-dvdvideo. Instead
163 of trying to read every block from the DVD, it parses the file
164 structure and figure out which block on the DVD is actually in used,
165 and only read those blocks from the DVD. This work surprisingly well,
166 and I have been able to almost backup my entire DVD collection using
167 this method.
</p
> So far, python-dvdvideo have failed on between
10 and
168 20 DVDs, which is a small fraction of my collection. The most common
170 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
720831">DVDs
171 using UTF-
16 instead of UTF-
8 characters
</a
>, which according to
172 Bastian is against the DVD specification (and seem to cause some
173 players to fail too). A rarer problem is what seem to be inconsistent
174 DVD structures, as the python library
175 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
723079">claim
176 there is a overlap between objects
</a
>. An equally rare problem claim
177 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
741878">some
178 value is out of range
</a
>. No idea what is going on there. I wish I
179 knew enough about the DVD format to fix these, to ensure my movie
180 collection will stay with me in the future.
</p
>
182 <p
>So, if you need to keep your DVDs safe, back them up using
183 python-dvdvideo. :)
</p
>
188 <title>Norsk utgave av Alaveteli / WhatDoTheyKnow på trappene
</title>
189 <link>http://people.skolelinux.org/pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html
</link>
190 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html
</guid>
191 <pubDate>Sun,
16 Mar
2014 09:
30:
00 +
0100</pubDate>
192 <description><p
>Det offentlige Norge har mye kunnskap og informasjon. Men hvordan
193 kan en få tilgang til den på en enkel måte? Takket være et lite
194 knippe lover og tilhørende forskrifter, blant annet
195 <a href=
"http://lovdata.no/dokument/NL/lov/
2006-
05-
19-
16">offentlighetsloven
</a
>,
196 <a href=
"http://lovdata.no/dokument/NL/lov/
2003-
05-
09-
31">miljøinformasjonsloven
</a
>
198 <a href=
"http://lovdata.no/dokument/NL/lov/
1967-
02-
10/
">forvaltningsloven
</a
>
199 har en rett til å spørre det offentlige og få svar. Men det finnes
200 intet offentlig arkiv over hva andre har spurt om, og dermed risikerer en
201 å måtte forstyrre myndighetene gang på gang for å få tak i samme
202 informasjonen på nytt.
<a href=
"http://www.mysociety.org/
">Britiske
203 mySociety
</a
> har laget tjenesten
204 <a href=
"http://www.whatdotheyknow.com/
">WhatDoTheyKnow
</a
> som gjør
205 noe med dette. I Storbritannia blir WhatdoTheyKnow brukt i
206 <a href=
"http://www.mysociety.org/
2011/
07/
01/whatdotheyknows-share-of-central-government-foi-requests-q2-
2011/
">ca
207 15% av alle innsynsforespørsler mot sentraladministrasjonen
</a
>.
208 Prosjektet heter
<a href=
"http://www.alaveteli.org/
">Alaveteli
</A
>, og
209 er takk i bruk en rekke steder etter at løsningen ble generalisert og
210 gjort mulig å oversette. Den hjelper borgerne med å be om innsyn,
211 rådgir ved purringer og klager og lar alle se hvilke henvendelser som
212 er sendt til det offentlige og hvilke svar som er kommet inn, i et
213 søkpart arkiv. Her i Norge holder vi i foreningen NUUG på å få opp en
214 norsk utgave av Alaveteli, og her trenger vi din hjelp med
215 oversettelsen.
</p
>
217 <p
>Så langt er
76 % av Alaveteli oversatt til norsk bokmål, men vi
218 skulle gjerne vært oppe i
100 % før lansering. Oversettelsen gjøres
219 på
<a href=
"https://www.transifex.com/projects/p/alaveteli/
">Transifex,
220 der enhver som registrerer seg
</a
> og ber om tilgang til
221 bokmålsoversettelsen får bidra. Vi har satt opp en test av tjenesten
222 (som ikke sender epost til det offentlige, kun til oss som holder på å
223 sette opp tjenesten) på maskinen
224 <a href=
"http://alaveteli-dev.nuug.no/
">alaveteli-dev.nuug.no
</a
>, der
225 en kan se hvordan de oversatte meldingen blir seende ut på nettsiden.
226 Når tjenesten lanseres vil den hete
227 <a href=
"https://www.mimesbrønn.no/
">Mimes brønn
</a
>, etter
228 visdomskilden som Odin måtte gi øyet sitt for å få drikke i. Den
229 nettsiden er er ennå ikke klar til bruk.
</p
>
231 <p
>Hvis noen vil oversette til nynorsk også, så skal vi finne ut
232 hvordan vi lager en flerspråklig tjeneste. Men i første omgang er
233 fokus på bokmålsoversettelsen, der vi selv har nok peiling til å ha
234 fått oversatt
76%, men trenger hjelp for å komme helt i mål. :)
</p
>
239 <title>Freedombox on Dreamplug, Raspberry Pi and virtual x86 machine
</title>
240 <link>http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</link>
241 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</guid>
242 <pubDate>Fri,
14 Mar
2014 11:
00:
00 +
0100</pubDate>
243 <description><p
>The
<a href=
"https://wiki.debian.org/FreedomBox
">Freedombox
244 project
</a
> is working on providing the software and hardware for
245 making it easy for non-technical people to host their data and
246 communication at home, and being able to communicate with their
247 friends and family encrypted and away from prying eyes. It has been
248 going on for a while, and is slowly progressing towards a new test
249 release (
0.2).
</p
>
251 <p
>And what day could be better than the Pi day to announce that the
252 new version will provide
"hard drive
" / SD card / USB stick images for
253 Dreamplug, Raspberry Pi and VirtualBox (or any other virtualization
254 system), and can also be installed using a Debian installer preseed
255 file. The Debian based Freedombox is now based on Debian Jessie,
256 where most of the needed packages used are already present. Only one,
257 the freedombox-setup package, is missing. To try to build your own
258 boot image to test the current status, fetch the freedom-maker scripts
260 <a href=
"http://packages.qa.debian.org/vmdebootstrap
">vmdebootstrap
</a
>
261 with a user with sudo access to become root:
264 git clone http://anonscm.debian.org/git/freedombox/freedom-maker.git \
266 sudo apt-get install git vmdebootstrap mercurial python-docutils \
267 mktorrent extlinux virtualbox qemu-user-static binfmt-support \
269 make -C freedom-maker dreamplug-image raspberry-image virtualbox-image
272 <p
>Root access is needed to run debootstrap and mount loopback
273 devices. See the README for more details on the build. If you do not
274 want all three images, trim the make line. But note that thanks to
<a
275 href=
"https://bugs.debian.org/
741407">a race condition in
276 vmdebootstrap
</a
>, the build might fail without the patch to the
277 kpartx call.
</p
>
279 <p
>If you instead want to install using a Debian CD and the preseed
280 method, boot a Debian Wheezy ISO and use this boot argument to load
281 the preseed values:
</p
>
284 url=
<a href=
"http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
">http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
</a
>
287 <p
>But note that due to
<a href=
"https://bugs.debian.org/
740673">a
288 recently introduced bug in apt in Jessie
</a
>, the installer will
289 currently hang while setting up APT sources. Killing the
290 '<tt
>apt-cdrom ident
</tt
>' process when it hang a few times during the
291 installation will get the installation going. This affect all
292 installations in Jessie, and I expect it will be fixed soon.
</p
>
294 Give it a go and let us know how it goes on the mailing list, and help
295 us get the new release published. :) Please join us on
296 <a href=
"irc://irc.debian.org:
6667/%
23freedombox
">IRC (#freedombox on
297 irc.debian.org)
</a
> and
298 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/freedombox-discuss
">the
299 mailing list
</a
> if you want to help make this vision come true.
</p
>
304 <title>How to add extra storage servers in Debian Edu / Skolelinux
</title>
305 <link>http://people.skolelinux.org/pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</link>
306 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</guid>
307 <pubDate>Wed,
12 Mar
2014 12:
50:
00 +
0100</pubDate>
308 <description><p
>On larger sites, it is useful to use a dedicated storage server for
309 storing user home directories and data. The design for handling this
310 in
<a href=
"http://www.skolelinux.org/
">Debian Edu / Skolelinux
</a
>, is
311 to update the automount rules in LDAP and let the automount daemon on
312 the clients take care of the rest. I was reminded about the need to
313 document this better when one of the customers of
314 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
>, where I am
315 on the board of directors, asked about how to do this. The steps to
316 get this working are the following:
</p
>
320 <li
>Add new storage server in DNS. I use nas-server.intern as the
321 example host here.
</li
>
323 <li
>Add automoun LDAP information about this server in LDAP, to allow
324 all clients to automatically mount it on reqeust.
</li
>
326 <li
>Add the relevant entries in tjener.intern:/etc/fstab, because
327 tjener.intern do not use automount to avoid mounting loops.
</li
>
329 </ol
></p
>
331 <p
>DNS entries are added in GOsa², and not described here. Follow the
332 <a href=
"https://wiki.debian.org/DebianEdu/Documentation/Wheezy/GettingStarted
">instructions
333 in the manual
</a
> (Machine Management with GOsa² in section Getting
336 <p
>Ensure that the NFS export points on the server are exported to the
337 relevant subnets or machines:
</p
>
339 <p
><blockquote
><pre
>
340 root@tjener:~# showmount -e nas-server
341 Export list for nas-server:
344 </pre
></blockquote
></p
>
346 <p
>Here everything on the backbone network is granted access to the
347 /storage export. With NFSv3 it is slightly better to limit it to
348 netgroup membership or single IP addresses to have some limits on the
349 NFS access.
</p
>
351 <p
>The next step is to update LDAP. This can not be done using GOsa²,
352 because it lack a module for automount. Instead, use ldapvi and add
353 the required LDAP objects using an editor.
</p
>
355 <p
><blockquote
><pre
>
356 ldapvi --ldap-conf -ZD
'(cn=admin)
' -b ou=automount,dc=skole,dc=skolelinux,dc=no
357 </pre
></blockquote
></p
>
359 <p
>When the editor show up, add the following LDAP objects at the
360 bottom of the document. The
"/
&" part in the last LDAP object is a
361 wild card matching everything the nas-server exports, removing the
362 need to list individual mount points in LDAP.
</p
>
364 <p
><blockquote
><pre
>
365 add cn=nas-server,ou=auto.skole,ou=automount,dc=skole,dc=skolelinux,dc=no
366 objectClass: automount
368 automountInformation: -fstype=autofs --timeout=
60 ldap:ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
370 add ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
372 objectClass: automountMap
375 add cn=/,ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
376 objectClass: automount
378 automountInformation: -fstype=nfs,tcp,rsize=
32768,wsize=
32768,rw,intr,hard,nodev,nosuid,noatime nas-server.intern:/
&
379 </pre
></blockquote
></p
>
381 <p
>The last step to remember is to mount the relevant mount points in
382 tjener.intern by adding them to /etc/fstab, creating the mount
383 directories using mkdir and running
"mount -a
" to mount them.
</p
>
385 <p
>When this is done, your users should be able to access the files on
386 the storage server directly by just visiting the
387 /tjener/nas-server/storage/ directory using any application on any
388 workstation, LTSP client or LTSP server.
</p
>
393 <title>Hvordan bør RFC
822-formattert epost lagres i en NOARK5-database?
</title>
394 <link>http://people.skolelinux.org/pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</link>
395 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</guid>
396 <pubDate>Fri,
7 Mar
2014 15:
20:
00 +
0100</pubDate>
397 <description><p
>For noen uker siden ble NXCs fri programvarelisenserte
399 <a href=
"http://www.nuug.no/aktiviteter/
20140211-noark/
">presentert hos
400 NUUG
</a
> (video
401 <a href=
"https://www.youtube.com/watch?v=JCb_dNS3MHQ
">på youtube
402 foreløbig
</a
>), og det fikk meg til å titte litt mer på NOARK5,
403 standarden for arkivhåndtering i det offentlige Norge. Jeg lurer på
404 om denne kjernen kan være nyttig i et par av mine prosjekter, og for ett
405 av dem er det mest aktuelt å lagre epost. Jeg klarte ikke finne noen
406 anbefaling om hvordan RFC
822-formattert epost (aka Internett-epost)
407 burde lagres i NOARK5, selv om jeg vet at noen arkiver tar
408 PDF-utskrift av eposten med sitt epostprogram og så arkiverer PDF-en
409 (eller enda værre, tar papirutskrift og lagrer bildet av eposten som
410 PDF i arkivet).
</p
>
412 <p
>Det er ikke så mange formater som er akseptert av riksarkivet til
413 langtidsoppbevaring av offentlige arkiver, og PDF og XML er de mest
414 aktuelle i så måte. Det slo meg at det måtte da finnes en eller annen
415 egnet XML-representasjon og at det kanskje var enighet om hvilken som
416 burde brukes, så jeg tok mot til meg og spurte
417 <a href=
"http://samdok.com/
">SAMDOK
</a
>, en gruppe tilknyttet
418 arkivverket som ser ut til å jobbe med NOARK-samhandling, om de hadde
421 <p
><blockquote
>
422 <p
>Hei.
</p
>
424 <p
>Usikker på om dette er riktig forum å ta opp mitt spørsmål, men jeg
425 lurer på om det er definert en anbefaling om hvordan RFC
426 822-formatterte epost (aka vanlig Internet-epost) bør lages håndteres
427 i NOARK5, slik at en bevarer all informasjon i eposten
428 (f.eks. Received-linjer). Finnes det en anbefalt XML-mapping ala den
430 &lt;URL:
<a href=
"https://www.informit.com/articles/article.aspx?p=
32074">https://www.informit.com/articles/article.aspx?p=
32074</a
> &gt;? Mitt
431 mål er at det skal være mulig å lagre eposten i en NOARK5-kjerne og
432 kunne få ut en identisk formattert kopi av opprinnelig epost ved
434 </blockquote
></p
>
436 <p
>Postmottaker hos SAMDOK mente spørsmålet heller burde stilles
437 direkte til riksarkivet, og jeg fikk i dag svar derfra formulert av
438 seniorrådgiver Geir Ivar Tungesvik:
</p
>
440 <p
><blockquote
>
441 <p
>Riksarkivet har ingen anbefalinger når det gjelder konvertering fra
442 e-post til XML. Det står arkivskaper fritt å eventuelt definere/bruke
443 eget format. Inklusive da - som det spørres om - et format der det er
444 mulig å re-etablere e-post format ut fra XML-en. XML (e-post)
445 dokumenter må være referert i arkivstrukturen, og det må vedlegges et
446 gyldig XML skjema (.xsd) for XML-filene. Arkivskaper står altså fritt
447 til å gjøre hva de vil, bare det dokumenteres og det kan dannes et
448 utrekk ved avlevering til depot.
</p
>
450 <p
>De obligatoriske kravene i Noark
5 standarden må altså oppfylles -
451 etter dialog med Riksarkivet i forbindelse med godkjenning. For
452 offentlige arkiv er det særlig viktig med filene loependeJournal.xml
453 og offentligJournal.xml. Private arkiv som vil forholde seg til Noark
454 5 standarden er selvsagt frie til å bruke det som er relevant for dem
455 av obligatoriske krav.
</p
>
456 </blockquote
></p
>
458 <p
>Det ser dermed ut for meg som om det er et lite behov for å
459 standardisere XML-lagring av RFC-
822-formatterte meldinger. Noen som
460 vet om god spesifikasjon i så måte? I tillegg til den omtalt over,
461 har jeg kommet over flere aktuelle beskrivelser (søk på
"rfc
822
462 xml
", så finner du aktuelle alternativer).
</p
>
466 <li
><a href=
"http://www.openhealth.org/xmtp/
">XML MIME Transformation
467 protocol (XMTP)
</a
> fra OpenHealth, sist oppdatert
2001.
</li
>
469 <li
><a href=
"https://tools.ietf.org/html/draft-klyne-message-rfc822-xml-
03">An
470 XML format for mail and other messages
</a
> utkast fra IETF datert
473 <li
><a href=
"http://www.informit.com/articles/article.aspx?p=
32074">xMail:
474 E-mail as XML
</a
> en artikkel fra
2003 som beskriver python-modulen
475 rfc822 som gir ut XML-representasjon av en RFC
822-formattert epost.
</li
>
479 <p
>Finnes det andre og bedre spesifikasjoner for slik lagring? Send
480 meg en epost hvis du har innspill.
</p
>
485 <title>Lenker for
2014-
02-
28</title>
486 <link>http://people.skolelinux.org/pere/blog/Lenker_for_2014_02_28.html
</link>
487 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Lenker_for_2014_02_28.html
</guid>
488 <pubDate>Fri,
28 Feb
2014 13:
30:
00 +
0100</pubDate>
489 <description><p
>Her er noen lenker til tekster jeg har satt pris på å lese de siste
490 månedene. Det er mye om varsleren Edward Snowden, som burde få all
491 hjelp, støtte og beskyttelse Norge kan stille opp med for å ha satt
492 totalitær overvåkning på sakskartet, men også endel annet
493 tankevekkende og interessant.
</p
>
498 <a href=
"http://www.dagbladet.no/
2013/
12/
21/nyheter/thomas_drake/nsa/overvakning/snowden/
30925886/
">-
499 NSA tenker som Stasi
</a
> - Dagbladet.no
</li
>
501 <li
>2013-
12-
19 <a href=
"http://www.dagensit.no/article2732734.ece
">-
502 Staten har ikke rett til å vite alt om deg
</a
> - DN.no
</li
>
505 <a href=
"http://www.dagbladet.no/
2013/
12/
21/nyheter/krig_og_konflikter/politikk/utenriks/
30961126/
">Nye
506 mål for NSAs spionasje avslørt
</a
> - Dagbladet.no
</li
>
509 <a href=
"http://www.dagbladet.no/
2013/
12/
19/nyheter/nsa/usa/politikk/barack_obama/
30918684/
">«NSA
510 bør fjernes fra sin makt til å samle inn metadata fra amerikanske
511 telefonsamtaler»
</a
> - Dagbladet.no
</li
>
514 <a href=
"http://www.dagbladet.no/
2013/
12/
18/kultur/meninger/hovedkronikk/debatt/snowden/
30901089/
">Etterretning,
515 overvåking, frihet og sikkerhet
</a
> - Dagbladet.no
</li
>
518 <a href=
"http://www.nrk.no/verden/snowden-vil-ha-asyl-i-brasil-
1.11423444">Snowden
519 angriper USA i åpent brev
</a
> - nrk.no
</li
>
522 <a href=
"http://www.digi.no/
925820/rettslig-nederlag-for-etterretning
">Rettslig
523 nederlag for etterretning
</a
> - digi.no
</li
>
526 <a href=
"http://www.dagbladet.no/
2013/
12/
21/kultur/meninger/hovedkommentar/kommentar/etterretning/
30963284/
">Truende
527 nedkjøling
</a
> - dagbladet.no
</li
>
530 <a href=
"http://www.aftenposten.no/viten/Matematikk-og-forstaelse-
7411849.html
">Matematikk
531 og forståelse
</a
> - aftenposten.no
</li
>
534 <a href=
"http://www.nrk.no/viten/ny-studie_sovn-reinser-hjernen-var-
1.11306106">Vi
535 søv for å reinse hjernen vår, ifølgje ny studie
</a
> - nrk.no
</li
>
538 <a href=
"http://www.nrk.no/buskerud/julebaksten-i-vasken-
1.11410033">Rotterace
539 i kloakken
</a
> - nrk.no
</li
>
542 <a href=
"http://www.aftenposten.no/viten/Apne-brev-og-frie-tanker-
7413734.html
">Åpne
543 brev og frie tanker
</a
> - aftenposten.no
</li
>
546 <a href=
"http://www.aftenposten.no/viten/Stopp-kunnskapsapartheidet-
7428229.html
">Stopp dagens kunnskapsapartheid!
</a
> - aftenposten.no
</li
>
549 <a href=
"http://www.aftenposten.no/nyheter/uriks/EU-rapport-Britisk-og-amerikansk-overvaking-ser-ut-til-a-vare-ulovlig-
7428933.html
">EU-rapport:
550 Britisk og amerikansk overvåking ser ut til å være ulovlig
</a
> -
551 aftenposten.no
</li
>
553 <li
>2013-
10-
23 Professor Jan Arild Audestad
554 <a href=
"http://www.digi.no/
924008/advarer-mot-konspirasjonsteori
">Advarer
555 mot konspirasjonsteori
</a
> i digi.no og sier han ikke tror NSA kan
556 avlytte mobiltelefoner, mens han noen måneder senere forteller:
</li
>
559 <a href=
"http://www.aftenposten.no/nyheter/iriks/--Vi-ble-presset-til-a-svekke-mobilsikkerheten-pa-
80-tallet-
7410467.html
">-
560 Vi ble presset til å svekke mobilsikkerheten på
80-tallet
</a
> -
561 aftenposten.no
</li
>
564 <a href=
"http://tv.nrk.no/program/koid20005814/et-moete-med-edward-snowden
">Et
565 møte med Edward Snowden
</a
> - intervju sendt av nrk, tilgjengelig til
566 2015-
01-
31</li
>
569 <a href=
"http://politiken.dk/debat/profiler/jessteinpedersen/ECE2210356/litteraturredaktoeren-helle-thornings-tavshed-om-snowden-er-en-skandale/
">Litteraturredaktøren:
570 Helle Thornings tavshed om Snowden er en skandale
</a
> -
571 politiken.dk
</li
>
574 <a href=
"http://www.aftenposten.no/meninger/kronikker/Bra-a-ha-en-Storebror-
7476734.html
">Bra å ha en «Storebror»
</a
> - aftenposten.no
</li
>
577 <a href=
"http://johnchristianelden.blogg.no/
1393536806_narkotikasiktet_stort.html
">"Narkotikasiktet
578 Stortingsmann
" - Spillet bak kulissene
</a
> - John Christian Eldens
582 <a href=
"http://www.aftenposten.no/meninger/Heksejakt-pa-hasjbrukere-
7486283.html
">Heksejakt
583 på hasjbrukere
</a
> - aftenposten.no
</li
>
590 <title>New home and release
1.0 for netgroup and innetgr (aka ng-utils)
</title>
591 <link>http://people.skolelinux.org/pere/blog/New_home_and_release_1_0_for_netgroup_and_innetgr__aka_ng_utils_.html
</link>
592 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/New_home_and_release_1_0_for_netgroup_and_innetgr__aka_ng_utils_.html
</guid>
593 <pubDate>Sat,
22 Feb
2014 21:
45:
00 +
0100</pubDate>
594 <description><p
>Many years ago, I wrote a GPL licensed version of the netgroup and
595 innetgr tools, because I needed them in
596 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
>. I called the project
597 ng-utils, and it has served me well. I placed the project under the
598 <a href=
"http://www.hungry.com/
">Hungry Programmer
</a
> umbrella, and it was maintained in our CVS
599 repository. But many years ago, the CVS repository was dropped (lost,
600 not migrated to new hardware, not sure), and the project have lacked a
601 proper home since then.
</p
>
603 <p
>Last summer, I had a look at the package and made a new release
604 fixing a irritating crash bug, but was unable to store the changes in
605 a proper source control system. I applied for a project on
606 <a href=
"https://alioth.debian.org/
">Alioth
</a
>, but did not have time
607 to follow up on it. Until today. :)
</p
>
609 <p
>After many hours of cleaning and migration, the ng-utils project
610 now have a new home, and a git repository with the highlight of the
611 history of the project. I published all release tarballs and imported
612 them into the git repository. As the project is really stable and not
613 expected to gain new features any time soon, I decided to make a new
614 release and call it
1.0. Visit the new project home on
615 <a href=
"https://alioth.debian.org/projects/ng-utils/
">https://alioth.debian.org/projects/ng-utils/
</a
>
616 if you want to check it out. The new version is also uploaded into
617 <a href=
"http://packages.qa.debian.org/n/ng-utils.html
">Debian Unstable
</a
>.
</p
>
622 <title>Testing sysvinit from experimental in Debian Hurd
</title>
623 <link>http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html
</link>
624 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Testing_sysvinit_from_experimental_in_Debian_Hurd.html
</guid>
625 <pubDate>Mon,
3 Feb
2014 13:
40:
00 +
0100</pubDate>
626 <description><p
>A few days ago I decided to try to help the Hurd people to get
627 their changes into sysvinit, to allow them to use the normal sysvinit
628 boot system instead of their old one. This follow up on the
629 <a href=
"https://teythoon.cryptobitch.de//categories/gsoc.html
">great
630 Google Summer of Code work
</a
> done last summer by Justus Winter to
631 get Debian on Hurd working more like Debian on Linux. To get started,
632 I downloaded a prebuilt hard disk image from
633 <a href=
"http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz
">http://ftp.debian-ports.org/debian-cd/hurd-i386/current/debian-hurd.img.tar.gz
</a
>,
634 and started it using virt-manager.
</p
>
636 <p
>The first think I had to do after logging in (root without any
637 password) was to get the network operational. I followed
638 <a href=
"https://www.debian.org/ports/hurd/hurd-install
">the
639 instructions on the Debian GNU/Hurd ports page
</a
> and ran these
640 commands as root to get the machine to accept a IP address from the
641 kvm internal DHCP server:
</p
>
643 <p
><blockquote
><pre
>
644 settrans -fgap /dev/netdde /hurd/netdde
645 kill $(ps -ef|awk
'/[p]finet/ { print $
2}
')
646 kill $(ps -ef|awk
'/[d]evnode/ { print $
2}
')
648 </pre
></blockquote
></p
>
650 <p
>After this, the machine had internet connectivity, and I could
651 upgrade it and install the sysvinit packages from experimental and
652 enable it as the default boot system in Hurd.
</p
>
654 <p
>But before I did that, I set a password on the root user, as ssh is
655 running on the machine it for ssh login to work a password need to be
656 set. Also, note that a bug somewhere in openssh on Hurd block
657 compression from working. Remember to turn that off on the client
660 <p
>Run these commands as root to upgrade and test the new sysvinit
663 <p
><blockquote
><pre
>
664 cat
> /etc/apt/sources.list.d/experimental.list
&lt;
&lt;EOF
665 deb http://http.debian.net/debian/ experimental main
669 apt-get install -t experimental initscripts sysv-rc sysvinit \
670 sysvinit-core sysvinit-utils
671 update-alternatives --config runsystem
672 </pre
></blockquote
></p
>
674 <p
>To reboot after switching boot system, you have to use
675 <tt
>reboot-hurd
</tt
> instead of just
<tt
>reboot
</tt
>, as there is not
676 yet a sysvinit process able to receive the signals from the normal
677 'reboot
' command. After switching to sysvinit as the boot system,
678 upgrading every package and rebooting, the network come up with DHCP
679 after boot as it should, and the settrans/pkill hack mentioned at the
680 start is no longer needed. But for some strange reason, there are no
681 longer any login prompt in the virtual console, so I logged in using
684 <p
>Note that there are some race conditions in Hurd making the boot
685 fail some times. No idea what the cause is, but hope the Hurd porters
686 figure it out. At least Justus said on IRC (#debian-hurd on
687 irc.debian.org) that they are aware of the problem. A way to reduce
688 the impact is to upgrade to the Hurd packages built by Justus by
689 adding this repository to the machine:
</p
>
691 <p
><blockquote
><pre
>
692 cat
> /etc/apt/sources.list.d/hurd-ci.list
&lt;
&lt;EOF
693 deb http://darnassus.sceen.net/~teythoon/hurd-ci/ sid main
695 </pre
></blockquote
></p
>
697 <p
>At the moment the prebuilt virtual machine get some packages from
698 http://ftp.debian-ports.org/debian, because some of the packages in
699 unstable do not yet include the required patches that are lingering in
700 BTS. This is the completely list of
"unofficial
" packages installed:
</p
>
702 <p
><blockquote
><pre
>
703 # aptitude search
'?narrow(?version(CURRENT),?origin(Debian Ports))
'
704 i emacs - GNU Emacs editor (metapackage)
706 i hurd-recommended - Miscellaneous translators
707 i isc-dhcp-client - ISC DHCP client
708 i isc-dhcp-common - common files used by all the isc-dhcp* packages
709 i libc-bin - Embedded GNU C Library: Binaries
710 i libc-dev-bin - Embedded GNU C Library: Development binaries
711 i libc0.3 - Embedded GNU C Library: Shared libraries
712 i A libc0.3-dbg - Embedded GNU C Library: detached debugging symbols
713 i libc0.3-dev - Embedded GNU C Library: Development Libraries and Hea
714 i multiarch-support - Transitional package to ensure multiarch compatibilit
715 i A x11-common - X Window System (X.Org) infrastructure
716 i xorg - X.Org X Window System
717 i A xserver-xorg - X.Org X server
718 i A xserver-xorg-input-all - X.Org X server -- input driver metapackage
720 </pre
></blockquote
></p
>
722 <p
>All in all, testing hurd has been an interesting experience. :)
723 X.org did not work out of the box and I never took the time to follow
724 the porters instructions to fix it. This time I was interested in the
725 command line stuff.
<p
>