1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from March
2014</title>
5 <description>Entries from March
2014</description>
6 <link>http://www.hungry.com/~pere/blog/
</link>
10 <title>Debian Edu interview: Roger Marsal
</title>
11 <link>http://www.hungry.com/~pere/blog/Debian_Edu_interview__Roger_Marsal.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Debian_Edu_interview__Roger_Marsal.html
</guid>
13 <pubDate>Sun,
30 Mar
2014 11:
40:
00 +
0200</pubDate>
14 <description><p
><a href=
"http://www.skolelinux.org/
">Debian Edu / Skolelinux
</a
>
15 keep gaining new users. Some weeks ago, a person showed up on IRC,
16 <a href=
"irc://irc.debian.org/#debian-edu
">#debian-edu
</a
>, with a
17 wish to contribute, and I managed to get a interview with this great
18 contributor Roger Marsal to learn more about his background.
</p
>
20 <p
><strong
>Who are you, and how do you spend your days?
</strong
></p
>
22 <p
>My name is Roger Marsal, I
'm
27 years old (
1986 generation) and I
23 live in Barcelona, Spain. I
've got a strong business background and I
24 work as a patrimony manager and as a real estate agent. Additionally,
25 I
've co-founded a British based tech company that is nowadays on the
26 last development phase of a new social networking concept.
</p
>
28 <p
>I
'm a Linux enthusiast that started its journey with Ubuntu four years
29 ago and have recently switched to Debian seeking rock solid stability
30 and as a necessary step to gain expertise.
</p
>
32 <p
>In a nutshell, I spend my days working and learning as much as I
33 can to face both my job, entrepreneur project and feed my Linux
36 <p
><strong
>How did you get in contact with the Skolelinux / Debian Edu
37 project?
</strong
></p
>
39 <p
>I discovered the
<a href=
"http://www.ltsp.org/
">LTSP
</a
> advantages
40 with
"Ubuntu
12.04 alternate install
" and after a year of use I
41 started looking for an alternative. Even though I highly value and
42 respect the Ubuntu project, I thought it was necessary for me to
43 change to a more robust and stable alternative. As far as I was using
44 Debian on my personal laptop I thought it would be fine to install
45 Debian and configure an LTSP server myself. Surprised, I discovered
46 that the Debian project also supported a kind of Edubuntu equivalent,
47 and after having some pain I obtained a Debian Edu network up and
48 running. I just loved it.
</p
>
50 <p
><strong
>What do you see as the advantages of Skolelinux / Debian
51 Edu?
</strong
></p
>
53 <p
>I found a main advantage in that, once you know
"the tips and
54 tricks
", a new installation just works out of the box. It
's the most
55 complete alternative I
've found to create an LTSP network. All the
56 other distributions seems to be made of plastic, Debian Edu seems to
57 be made of steel.
</p
>
59 <p
><strong
>What do you see as the disadvantages of Skolelinux / Debian
60 Edu?
</strong
></p
>
62 <p
>I found two main disadvantages.
</p
>
64 <p
>I
'm not an expert but I
've got notions and I had to spent a considerable
65 amount of time trying to bring up a standard network topology. I
'm quite
66 stubborn and I just worked until I did but I
'm sure many people with few
67 resources (not big schools, but academies for example) would have switched
70 <p
>It
's amazing how such a complex system like Debian Edu has achieved
71 this out-of-the-box state. Even though tweaking without breaking gets
72 more difficult, as more factors have to be considered. This can
73 discourage many people too.
</p
>
75 <p
><strong
>Which free software do you use daily?
</strong
></p
>
77 <p
>I use Debian, Firefox, Okular, Inkscape, LibreOffice and
81 <p
><strong
>Which strategy do you believe is the right one to use to
82 get schools to use free software?
</strong
></p
>
84 <p
>I don
't think there is a need for a particular strategy. The free
85 attribute in both
"freedom
" and
"no price
" meanings is what will
86 really bring free software to schools. In my experience I can think of
87 the
<a href=
"http://www.r-project.org/
">"R
" statistical language
</a
>; a
88 few years a ago was an extremely nerd tool for university people.
89 Today it
's being increasingly used to teach statistics at many
90 different level of studies. I believe free and open software will
91 increasingly gain popularity, but I
'm sure schools will be one of the
92 first scenarios where this will happen.
</p
>
97 <title>Dokumentaren om Datalagringsdirektivet sendes endelig på NRK
</title>
98 <link>http://www.hungry.com/~pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
</link>
99 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
</guid>
100 <pubDate>Wed,
26 Mar
2014 09:
50:
00 +
0100</pubDate>
101 <description><p
><a href=
"http://www.nuug.no/
">Foreningen NUUG
</a
> melder i natt at
102 NRK nå har bestemt seg for
103 <a href=
"http://www.nuug.no/news/NRK_viser_filmen_om_Datalagringsdirektivet_f_rste_gang_2014_03_31.shtml
">når
104 den norske dokumentarfilmen om datalagringsdirektivet skal
105 sendes
</a
> (se
<a href=
"http://www.imdb.com/title/tt2832844/
">IMDB
</a
>
106 for detaljer om filmen) . Første visning blir på NRK2 mandag
107 2014-
03-
31 kl.
19:
50, og deretter visninger onsdag
2014-
04-
02
108 kl.
12:
30, fredag
2014-
04-
04 kl.
19:
40 og søndag
2014-
04-
06 kl.
15:
10.
109 Jeg har sett dokumentaren, og jeg anbefaler enhver å se den selv. Som
110 oppvarming mens vi venter anbefaler jeg Bjørn Stærks kronikk i
111 Aftenposten fra i går,
112 <a href=
"http://www.aftenposten.no/meninger/kronikker/Autoritar-gjokunge-
7514915.html
">Autoritær
113 gjøkunge
</a
>, der han gir en grei skisse av hvor ille det står til med
114 retten til privatliv og beskyttelsen av demokrati i Norge og resten
115 verden, og helt riktig slår fast at det er vi i databransjen som
116 sitter med nøkkelen til å gjøre noe med dette. Jeg har involvert meg
117 i prosjektene
<a href=
"http://www.dugnadsnett.no/
">dugnadsnett.no
</a
>
118 og
<a href=
"https://wiki.debian.org/FreedomBox
">FreedomBox
</a
> for å
119 forsøke å gjøre litt selv for å bedre situasjonen, men det er mye
120 hardt arbeid fra mange flere enn meg som gjenstår før vi kan sies å ha
121 gjenopprettet balansen.
</p
>
123 <p
>Jeg regner med at nettutgaven dukker opp på
124 <a href=
"http://tv.nrk.no/program/koid75005313/tema-dine-digitale-spor-datalagringsdirektivet
">NRKs
125 side om filmen om datalagringsdirektivet
</a
> om fem dager. Hold et
126 øye med siden, og tips venner og slekt om at de også bør se den.
</p
>
131 <title>Public Trusted Timestamping services for everyone
</title>
132 <link>http://www.hungry.com/~pere/blog/Public_Trusted_Timestamping_services_for_everyone.html
</link>
133 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Public_Trusted_Timestamping_services_for_everyone.html
</guid>
134 <pubDate>Tue,
25 Mar
2014 12:
50:
00 +
0100</pubDate>
135 <description><p
>Did you ever need to store logs or other files in a way that would
136 allow it to be used as evidence in court, and needed a way to
137 demonstrate without reasonable doubt that the file had not been
138 changed since it was created? Or, did you ever need to document that
139 a given document was received at some point in time, like some
140 archived document or the answer to an exam, and not changed after it
141 was received? The problem in these settings is to remove the need to
142 trust yourself and your computers, while still being able to prove
143 that a file is the same as it was at some given time in the past.
</p
>
145 <p
>A solution to these problems is to have a trusted third party
146 "stamp
" the document and verify that at some given time the document
147 looked a given way. Such
148 <a href=
"https://en.wikipedia.org/wiki/Notarius
">notarius
</a
> service
149 have been around for thousands of years, and its digital equivalent is
151 <a href=
"http://en.wikipedia.org/wiki/Trusted_timestamping
">trusted
152 timestamping service
</a
>.
<a href=
"http://www.ietf.org/
">The Internet
153 Engineering Task Force
</a
> standardised how such service could work a
154 few years ago as
<a href=
"http://tools.ietf.org/html/rfc3161
">RFC
155 3161</a
>. The mechanism is simple. Create a hash of the file in
156 question, send it to a trusted third party which add a time stamp to
157 the hash and sign the result with its private key, and send back the
158 signed hash + timestamp. Both email, FTP and HTTP can be used to
159 request such signature, depending on what is provided by the service
160 used. Anyone with the document and the signature can then verify that
161 the document matches the signature by creating their own hash and
162 checking the signature using the trusted third party public key.
163 There are several commercial services around providing such
164 timestamping. A quick search for
165 "<a href=
"https://duckduckgo.com/?q=rfc+
3161+service
">rfc
3161
166 service
</a
>" pointed me to at least
167 <a href=
"https://www.digistamp.com/technical/how-a-digital-time-stamp-works/
">DigiStamp
</a
>,
168 <a href=
"http://www.quovadisglobal.co.uk/CertificateServices/SigningServices/TimeStamp.aspx
">Quo
170 <a href=
"https://www.globalsign.com/timestamp-service/
">Global Sign
</a
>
171 and
<a href=
"http://www.globaltrustfinder.com/TSADefault.aspx
">Global
172 Trust Finder
</a
>. The system work as long as the private key of the
173 trusted third party is not compromised.
</p
>
175 <p
>But as far as I can tell, there are very few public trusted
176 timestamp services available for everyone. I
've been looking for one
177 for a while now. But yesterday I found one over at
178 <a href=
"https://www.pki.dfn.de/zeitstempeldienst/
">Deutches
179 Forschungsnetz
</a
> mentioned in
180 <a href=
"http://www.d-mueller.de/blog/dealing-with-trusted-timestamps-in-php-rfc-
3161/
">a
181 blog by David Müller
</a
>. I then found
182 <a href=
"http://www.rz.uni-greifswald.de/support/dfn-pki-zertifikate/zeitstempeldienst.html
">a
183 good recipe on how to use the service
</a
> over at the University of
184 Greifswald.
</p
>
186 <p
><a href=
"http://www.openssl.org/
">The OpenSSL library
</a
> contain
187 both server and tools to use and set up your own signing service. See
188 the ts(
1SSL), tsget(
1SSL) manual pages for more details. The
189 following shell script demonstrate how to extract a signed timestamp
190 for any file on the disk in a Debian environment:
</p
>
192 <p
><blockquote
><pre
>
195 url=
"http://zeitstempel.dfn.de
"
196 caurl=
"https://pki.pca.dfn.de/global-services-ca/pub/cacert/chain.txt
"
197 reqfile=$(mktemp -t tmp.XXXXXXXXXX.tsq)
198 resfile=$(mktemp -t tmp.XXXXXXXXXX.tsr)
200 if [ ! -f $cafile ] ; then
201 wget -O $cafile
"$caurl
"
203 openssl ts -query -data
"$
1" -cert | tee
"$reqfile
" \
204 | /usr/lib/ssl/misc/tsget -h
"$url
" -o
"$resfile
"
205 openssl ts -reply -in
"$resfile
" -text
1>&2
206 openssl ts -verify -data
"$
1" -in
"$resfile
" -CAfile
"$cafile
" 1>&2
207 base64
< "$resfile
"
208 rm
"$reqfile
" "$resfile
"
209 </pre
></blockquote
></p
>
211 <p
>The argument to the script is the file to timestamp, and the output
212 is a base64 encoded version of the signature to STDOUT and details
213 about the signature to STDERR. Note that due to
214 <a href=
"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
742553">a bug
215 in the tsget script
</a
>, you might need to modify the included script
216 and remove the last line. Or just write your own HTTP uploader using
217 curl. :) Now you too can prove and verify that files have not been
220 <p
>But the Internet need more public trusted timestamp services.
221 Perhaps something for
<a href=
"http://www.uninett.no/
">Uninett
</a
> or
222 my work place the
<a href=
"http://www.uio.no/
">University of Oslo
</a
>
228 <title>Video DVD reader library / python-dvdvideo - nice free software
</title>
229 <link>http://www.hungry.com/~pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html
</link>
230 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Video_DVD_reader_library___python_dvdvideo___nice_free_software.html
</guid>
231 <pubDate>Fri,
21 Mar
2014 15:
25:
00 +
0100</pubDate>
232 <description><p
>Keeping your DVD collection safe from scratches and curious
233 children fingers while still having it available when you want to see a
234 movie is not straight forward. My preferred method at the moment is
235 to store a full copy of the ISO on a hard drive, and use VLC, Popcorn
236 Hour or other useful players to view the resulting file. This way the
237 subtitles and bonus material are still available and using the ISO is
238 just like inserting the original DVD record in the DVD player.
</p
>
240 <p
>Earlier I used dd for taking security copies, but it do not handle
241 DVDs giving read errors (which are quite a few of them). I
've also
243 <a href=
"https://people.skolelinux.org/pere/blog/Ripping_problematic_DVDs_using_dvdbackup_and_genisoimage.html
">dvdbackup
244 and genisoimage
</a
>, but these days I use the marvellous python library
246 <a href=
"http://bblank.thinkmo.de/blog/new-software-python-dvdvideo
">python-dvdvideo
</a
>
247 written by Bastian Blank. It is
248 <a href=
"http://packages.qa.debian.org/p/python-dvdvideo.html
">in Debian
249 already
</a
> and the binary package name is python3-dvdvideo. Instead
250 of trying to read every block from the DVD, it parses the file
251 structure and figure out which block on the DVD is actually in used,
252 and only read those blocks from the DVD. This work surprisingly well,
253 and I have been able to almost backup my entire DVD collection using
254 this method.
</p
>
256 <p
>So far, python-dvdvideo have failed on between
10 and
257 20 DVDs, which is a small fraction of my collection. The most common
259 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
720831">DVDs
260 using UTF-
16 instead of UTF-
8 characters
</a
>, which according to
261 Bastian is against the DVD specification (and seem to cause some
262 players to fail too). A rarer problem is what seem to be inconsistent
263 DVD structures, as the python library
264 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
723079">claim
265 there is a overlap between objects
</a
>. An equally rare problem claim
266 <a href=
"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
741878">some
267 value is out of range
</a
>. No idea what is going on there. I wish I
268 knew enough about the DVD format to fix these, to ensure my movie
269 collection will stay with me in the future.
</p
>
271 <p
>So, if you need to keep your DVDs safe, back them up using
272 python-dvdvideo. :)
</p
>
277 <title>Norsk utgave av Alaveteli / WhatDoTheyKnow på trappene
</title>
278 <link>http://www.hungry.com/~pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html
</link>
279 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Norsk_utgave_av_Alaveteli___WhatDoTheyKnow_p__trappene.html
</guid>
280 <pubDate>Sun,
16 Mar
2014 09:
30:
00 +
0100</pubDate>
281 <description><p
>Det offentlige Norge har mye kunnskap og informasjon. Men hvordan
282 kan en få tilgang til den på en enkel måte? Takket være et lite
283 knippe lover og tilhørende forskrifter, blant annet
284 <a href=
"http://lovdata.no/dokument/NL/lov/
2006-
05-
19-
16">offentlighetsloven
</a
>,
285 <a href=
"http://lovdata.no/dokument/NL/lov/
2003-
05-
09-
31">miljøinformasjonsloven
</a
>
287 <a href=
"http://lovdata.no/dokument/NL/lov/
1967-
02-
10/
">forvaltningsloven
</a
>
288 har en rett til å spørre det offentlige og få svar. Men det finnes
289 intet offentlig arkiv over hva andre har spurt om, og dermed risikerer en
290 å måtte forstyrre myndighetene gang på gang for å få tak i samme
291 informasjonen på nytt.
<a href=
"http://www.mysociety.org/
">Britiske
292 mySociety
</a
> har laget tjenesten
293 <a href=
"http://www.whatdotheyknow.com/
">WhatDoTheyKnow
</a
> som gjør
294 noe med dette. I Storbritannia blir WhatdoTheyKnow brukt i
295 <a href=
"http://www.mysociety.org/
2011/
07/
01/whatdotheyknows-share-of-central-government-foi-requests-q2-
2011/
">ca
296 15% av alle innsynsforespørsler mot sentraladministrasjonen
</a
>.
297 Prosjektet heter
<a href=
"http://www.alaveteli.org/
">Alaveteli
</A
>, og
298 er takk i bruk en rekke steder etter at løsningen ble generalisert og
299 gjort mulig å oversette. Den hjelper borgerne med å be om innsyn,
300 rådgir ved purringer og klager og lar alle se hvilke henvendelser som
301 er sendt til det offentlige og hvilke svar som er kommet inn, i et
302 søkpart arkiv. Her i Norge holder vi i foreningen NUUG på å få opp en
303 norsk utgave av Alaveteli, og her trenger vi din hjelp med
304 oversettelsen.
</p
>
306 <p
>Så langt er
76 % av Alaveteli oversatt til norsk bokmål, men vi
307 skulle gjerne vært oppe i
100 % før lansering. Oversettelsen gjøres
308 på
<a href=
"https://www.transifex.com/projects/p/alaveteli/
">Transifex,
309 der enhver som registrerer seg
</a
> og ber om tilgang til
310 bokmålsoversettelsen får bidra. Vi har satt opp en test av tjenesten
311 (som ikke sender epost til det offentlige, kun til oss som holder på å
312 sette opp tjenesten) på maskinen
313 <a href=
"http://alaveteli-dev.nuug.no/
">alaveteli-dev.nuug.no
</a
>, der
314 en kan se hvordan de oversatte meldingen blir seende ut på nettsiden.
315 Når tjenesten lanseres vil den hete
316 <a href=
"https://www.mimesbrønn.no/
">Mimes brønn
</a
>, etter
317 visdomskilden som Odin måtte gi øyet sitt for å få drikke i. Den
318 nettsiden er er ennå ikke klar til bruk.
</p
>
320 <p
>Hvis noen vil oversette til nynorsk også, så skal vi finne ut
321 hvordan vi lager en flerspråklig tjeneste. Men i første omgang er
322 fokus på bokmålsoversettelsen, der vi selv har nok peiling til å ha
323 fått oversatt
76%, men trenger hjelp for å komme helt i mål. :)
</p
>
328 <title>Freedombox on Dreamplug, Raspberry Pi and virtual x86 machine
</title>
329 <link>http://www.hungry.com/~pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</link>
330 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</guid>
331 <pubDate>Fri,
14 Mar
2014 11:
00:
00 +
0100</pubDate>
332 <description><p
>The
<a href=
"https://wiki.debian.org/FreedomBox
">Freedombox
333 project
</a
> is working on providing the software and hardware for
334 making it easy for non-technical people to host their data and
335 communication at home, and being able to communicate with their
336 friends and family encrypted and away from prying eyes. It has been
337 going on for a while, and is slowly progressing towards a new test
338 release (
0.2).
</p
>
340 <p
>And what day could be better than the Pi day to announce that the
341 new version will provide
"hard drive
" / SD card / USB stick images for
342 Dreamplug, Raspberry Pi and VirtualBox (or any other virtualization
343 system), and can also be installed using a Debian installer preseed
344 file. The Debian based Freedombox is now based on Debian Jessie,
345 where most of the needed packages used are already present. Only one,
346 the freedombox-setup package, is missing. To try to build your own
347 boot image to test the current status, fetch the freedom-maker scripts
349 <a href=
"http://packages.qa.debian.org/vmdebootstrap
">vmdebootstrap
</a
>
350 with a user with sudo access to become root:
353 git clone http://anonscm.debian.org/git/freedombox/freedom-maker.git \
355 sudo apt-get install git vmdebootstrap mercurial python-docutils \
356 mktorrent extlinux virtualbox qemu-user-static binfmt-support \
358 make -C freedom-maker dreamplug-image raspberry-image virtualbox-image
361 <p
>Root access is needed to run debootstrap and mount loopback
362 devices. See the README for more details on the build. If you do not
363 want all three images, trim the make line. But note that thanks to
<a
364 href=
"https://bugs.debian.org/
741407">a race condition in
365 vmdebootstrap
</a
>, the build might fail without the patch to the
366 kpartx call.
</p
>
368 <p
>If you instead want to install using a Debian CD and the preseed
369 method, boot a Debian Wheezy ISO and use this boot argument to load
370 the preseed values:
</p
>
373 url=
<a href=
"http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
">http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
</a
>
376 <p
>But note that due to
<a href=
"https://bugs.debian.org/
740673">a
377 recently introduced bug in apt in Jessie
</a
>, the installer will
378 currently hang while setting up APT sources. Killing the
379 '<tt
>apt-cdrom ident
</tt
>' process when it hang a few times during the
380 installation will get the installation going. This affect all
381 installations in Jessie, and I expect it will be fixed soon.
</p
>
383 <p
>Give it a go and let us know how it goes on the mailing list, and help
384 us get the new release published. :) Please join us on
385 <a href=
"irc://irc.debian.org:
6667/%
23freedombox
">IRC (#freedombox on
386 irc.debian.org)
</a
> and
387 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/freedombox-discuss
">the
388 mailing list
</a
> if you want to help make this vision come true.
</p
>
393 <title>How to add extra storage servers in Debian Edu / Skolelinux
</title>
394 <link>http://www.hungry.com/~pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</link>
395 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</guid>
396 <pubDate>Wed,
12 Mar
2014 12:
50:
00 +
0100</pubDate>
397 <description><p
>On larger sites, it is useful to use a dedicated storage server for
398 storing user home directories and data. The design for handling this
399 in
<a href=
"http://www.skolelinux.org/
">Debian Edu / Skolelinux
</a
>, is
400 to update the automount rules in LDAP and let the automount daemon on
401 the clients take care of the rest. I was reminded about the need to
402 document this better when one of the customers of
403 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
>, where I am
404 on the board of directors, asked about how to do this. The steps to
405 get this working are the following:
</p
>
409 <li
>Add new storage server in DNS. I use nas-server.intern as the
410 example host here.
</li
>
412 <li
>Add automoun LDAP information about this server in LDAP, to allow
413 all clients to automatically mount it on reqeust.
</li
>
415 <li
>Add the relevant entries in tjener.intern:/etc/fstab, because
416 tjener.intern do not use automount to avoid mounting loops.
</li
>
418 </ol
></p
>
420 <p
>DNS entries are added in GOsa², and not described here. Follow the
421 <a href=
"https://wiki.debian.org/DebianEdu/Documentation/Wheezy/GettingStarted
">instructions
422 in the manual
</a
> (Machine Management with GOsa² in section Getting
425 <p
>Ensure that the NFS export points on the server are exported to the
426 relevant subnets or machines:
</p
>
428 <p
><blockquote
><pre
>
429 root@tjener:~# showmount -e nas-server
430 Export list for nas-server:
433 </pre
></blockquote
></p
>
435 <p
>Here everything on the backbone network is granted access to the
436 /storage export. With NFSv3 it is slightly better to limit it to
437 netgroup membership or single IP addresses to have some limits on the
438 NFS access.
</p
>
440 <p
>The next step is to update LDAP. This can not be done using GOsa²,
441 because it lack a module for automount. Instead, use ldapvi and add
442 the required LDAP objects using an editor.
</p
>
444 <p
><blockquote
><pre
>
445 ldapvi --ldap-conf -ZD
'(cn=admin)
' -b ou=automount,dc=skole,dc=skolelinux,dc=no
446 </pre
></blockquote
></p
>
448 <p
>When the editor show up, add the following LDAP objects at the
449 bottom of the document. The
"/
&" part in the last LDAP object is a
450 wild card matching everything the nas-server exports, removing the
451 need to list individual mount points in LDAP.
</p
>
453 <p
><blockquote
><pre
>
454 add cn=nas-server,ou=auto.skole,ou=automount,dc=skole,dc=skolelinux,dc=no
455 objectClass: automount
457 automountInformation: -fstype=autofs --timeout=
60 ldap:ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
459 add ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
461 objectClass: automountMap
464 add cn=/,ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
465 objectClass: automount
467 automountInformation: -fstype=nfs,tcp,rsize=
32768,wsize=
32768,rw,intr,hard,nodev,nosuid,noatime nas-server.intern:/
&
468 </pre
></blockquote
></p
>
470 <p
>The last step to remember is to mount the relevant mount points in
471 tjener.intern by adding them to /etc/fstab, creating the mount
472 directories using mkdir and running
"mount -a
" to mount them.
</p
>
474 <p
>When this is done, your users should be able to access the files on
475 the storage server directly by just visiting the
476 /tjener/nas-server/storage/ directory using any application on any
477 workstation, LTSP client or LTSP server.
</p
>
482 <title>Hvordan bør RFC
822-formattert epost lagres i en NOARK5-database?
</title>
483 <link>http://www.hungry.com/~pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</link>
484 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</guid>
485 <pubDate>Fri,
7 Mar
2014 15:
20:
00 +
0100</pubDate>
486 <description><p
>For noen uker siden ble NXCs fri programvarelisenserte
488 <a href=
"http://www.nuug.no/aktiviteter/
20140211-noark/
">presentert hos
489 NUUG
</a
> (video
490 <a href=
"https://www.youtube.com/watch?v=JCb_dNS3MHQ
">på youtube
491 foreløbig
</a
>), og det fikk meg til å titte litt mer på NOARK5,
492 standarden for arkivhåndtering i det offentlige Norge. Jeg lurer på
493 om denne kjernen kan være nyttig i et par av mine prosjekter, og for ett
494 av dem er det mest aktuelt å lagre epost. Jeg klarte ikke finne noen
495 anbefaling om hvordan RFC
822-formattert epost (aka Internett-epost)
496 burde lagres i NOARK5, selv om jeg vet at noen arkiver tar
497 PDF-utskrift av eposten med sitt epostprogram og så arkiverer PDF-en
498 (eller enda værre, tar papirutskrift og lagrer bildet av eposten som
499 PDF i arkivet).
</p
>
501 <p
>Det er ikke så mange formater som er akseptert av riksarkivet til
502 langtidsoppbevaring av offentlige arkiver, og PDF og XML er de mest
503 aktuelle i så måte. Det slo meg at det måtte da finnes en eller annen
504 egnet XML-representasjon og at det kanskje var enighet om hvilken som
505 burde brukes, så jeg tok mot til meg og spurte
506 <a href=
"http://samdok.com/
">SAMDOK
</a
>, en gruppe tilknyttet
507 arkivverket som ser ut til å jobbe med NOARK-samhandling, om de hadde
510 <p
><blockquote
>
511 <p
>Hei.
</p
>
513 <p
>Usikker på om dette er riktig forum å ta opp mitt spørsmål, men jeg
514 lurer på om det er definert en anbefaling om hvordan RFC
515 822-formatterte epost (aka vanlig Internet-epost) bør lages håndteres
516 i NOARK5, slik at en bevarer all informasjon i eposten
517 (f.eks. Received-linjer). Finnes det en anbefalt XML-mapping ala den
519 &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
520 mål er at det skal være mulig å lagre eposten i en NOARK5-kjerne og
521 kunne få ut en identisk formattert kopi av opprinnelig epost ved
523 </blockquote
></p
>
525 <p
>Postmottaker hos SAMDOK mente spørsmålet heller burde stilles
526 direkte til riksarkivet, og jeg fikk i dag svar derfra formulert av
527 seniorrådgiver Geir Ivar Tungesvik:
</p
>
529 <p
><blockquote
>
530 <p
>Riksarkivet har ingen anbefalinger når det gjelder konvertering fra
531 e-post til XML. Det står arkivskaper fritt å eventuelt definere/bruke
532 eget format. Inklusive da - som det spørres om - et format der det er
533 mulig å re-etablere e-post format ut fra XML-en. XML (e-post)
534 dokumenter må være referert i arkivstrukturen, og det må vedlegges et
535 gyldig XML skjema (.xsd) for XML-filene. Arkivskaper står altså fritt
536 til å gjøre hva de vil, bare det dokumenteres og det kan dannes et
537 utrekk ved avlevering til depot.
</p
>
539 <p
>De obligatoriske kravene i Noark
5 standarden må altså oppfylles -
540 etter dialog med Riksarkivet i forbindelse med godkjenning. For
541 offentlige arkiv er det særlig viktig med filene loependeJournal.xml
542 og offentligJournal.xml. Private arkiv som vil forholde seg til Noark
543 5 standarden er selvsagt frie til å bruke det som er relevant for dem
544 av obligatoriske krav.
</p
>
545 </blockquote
></p
>
547 <p
>Det ser dermed ut for meg som om det er et lite behov for å
548 standardisere XML-lagring av RFC-
822-formatterte meldinger. Noen som
549 vet om god spesifikasjon i så måte? I tillegg til den omtalt over,
550 har jeg kommet over flere aktuelle beskrivelser (søk på
"rfc
822
551 xml
", så finner du aktuelle alternativer).
</p
>
555 <li
><a href=
"http://www.openhealth.org/xmtp/
">XML MIME Transformation
556 protocol (XMTP)
</a
> fra OpenHealth, sist oppdatert
2001.
</li
>
558 <li
><a href=
"https://tools.ietf.org/html/draft-klyne-message-rfc822-xml-
03">An
559 XML format for mail and other messages
</a
> utkast fra IETF datert
562 <li
><a href=
"http://www.informit.com/articles/article.aspx?p=
32074">xMail:
563 E-mail as XML
</a
> en artikkel fra
2003 som beskriver python-modulen
564 rfc822 som gir ut XML-representasjon av en RFC
822-formattert epost.
</li
>
568 <p
>Finnes det andre og bedre spesifikasjoner for slik lagring? Send
569 meg en epost hvis du har innspill.
</p
>