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://people.skolelinux.org/pere/blog/
</link>
10 <title>Freedombox on Dreamplug, Raspberry Pi and virtual x86 machine
</title>
11 <link>http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Freedombox_on_Dreamplug__Raspberry_Pi_and_virtual_x86_machine.html
</guid>
13 <pubDate>Fri,
14 Mar
2014 11:
00:
00 +
0100</pubDate>
14 <description><p
>The
<a href=
"https://wiki.debian.org/FreedomBox
">Freedombox
15 project
</a
> is working on providing the software and hardware for
16 making it easy for non-technical people to host their data and
17 communication at home, and being able to communicate with their
18 friends and family encrypted and away from prying eyes. It has been
19 going on for a while, and is slowly progressing towards a new test
20 release (
0.2).
</p
>
22 <p
>And what day could be better than the Pi day to announce that the
23 new version will provide
"hard drive
" / SD card / USB stick images for
24 Dreamplug, Raspberry Pi and VirtualBox (or any other virtualization
25 system), and can also be installed using a Debian installer preseed
26 file. The Debian based Freedombox is now based on Debian Jessie,
27 where most of the needed packages used are already present. Only one,
28 the freedombox-setup package, is missing. To try to build your own
29 boot image to test the current status, fetch the freedom-maker scripts
31 <a href=
"http://packages.qa.debian.org/vmdebootstrap
">vmdebootstrap
</a
>
32 with a user with sudo access to become root:
35 git clone http://anonscm.debian.org/git/freedombox/freedom-maker.git \
37 sudo apt-get install git vmdebootstrap mercurial python-docutils \
38 mktorrent extlinux virtualbox qemu-user-static binfmt-support \
40 make -C freedom-maker dreamplug-image raspberry-image virtualbox-image
43 <p
>Root access is needed to run debootstrap and mount loopback
44 devices. See the README for more details on the build. If you do not
45 want all three images, trim the make line. But note that thanks to
<a
46 href=
"https://bugs.debian.org/
741407">a race condition in
47 vmdebootstrap
</a
>, the build might fail without the patch to the
48 kpartx call.
</p
>
50 <p
>If you instead want to install using a Debian CD and the preseed
51 method, boot a Debian Wheezy ISO and use this boot argument to load
52 the preseed values:
</p
>
55 url=
<a href=
"http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
">http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
</a
>
58 <p
>But note that due to
<a href=
"https://bugs.debian.org/
740673">a
59 recently introduced bug in apt in Jessie
</a
>, the installer will
60 currently hang while setting up APT sources. Killing the
61 '<tt
>apt-cdrom ident
</tt
>' process when it hang a few times during the
62 installation will get the installation going. This affect all
63 installations in Jessie, and I expect it will be fixed soon.
</p
>
65 Give it a go and let us know how it goes on the mailing list, and help
66 us get the new release published. :) Please join us on
67 <a href=
"irc://irc.debian.org:
6667/%
23freedombox
">IRC (#freedombox on
68 irc.debian.org)
</a
> and
69 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/freedombox-discuss
">the
70 mailing list
</a
> if you want to help make this vision come true.
</p
>
75 <title>How to add extra storage servers in Debian Edu / Skolelinux
</title>
76 <link>http://people.skolelinux.org/pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</link>
77 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/How_to_add_extra_storage_servers_in_Debian_Edu___Skolelinux.html
</guid>
78 <pubDate>Wed,
12 Mar
2014 12:
50:
00 +
0100</pubDate>
79 <description><p
>On larger sites, it is useful to use a dedicated storage server for
80 storing user home directories and data. The design for handling this
81 in
<a href=
"http://www.skolelinux.org/
">Debian Edu / Skolelinux
</a
>, is
82 to update the automount rules in LDAP and let the automount daemon on
83 the clients take care of the rest. I was reminded about the need to
84 document this better when one of the customers of
85 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
>, where I am
86 on the board of directors, asked about how to do this. The steps to
87 get this working are the following:
</p
>
91 <li
>Add new storage server in DNS. I use nas-server.intern as the
92 example host here.
</li
>
94 <li
>Add automoun LDAP information about this server in LDAP, to allow
95 all clients to automatically mount it on reqeust.
</li
>
97 <li
>Add the relevant entries in tjener.intern:/etc/fstab, because
98 tjener.intern do not use automount to avoid mounting loops.
</li
>
100 </ol
></p
>
102 <p
>DNS entries are added in GOsa², and not described here. Follow the
103 <a href=
"https://wiki.debian.org/DebianEdu/Documentation/Wheezy/GettingStarted
">instructions
104 in the manual
</a
> (Machine Management with GOsa² in section Getting
107 <p
>Ensure that the NFS export points on the server are exported to the
108 relevant subnets or machines:
</p
>
110 <p
><blockquote
><pre
>
111 root@tjener:~# showmount -e nas-server
112 Export list for nas-server:
115 </pre
></blockquote
></p
>
117 <p
>Here everything on the backbone network is granted access to the
118 /storage export. With NFSv3 it is slightly better to limit it to
119 netgroup membership or single IP addresses to have some limits on the
120 NFS access.
</p
>
122 <p
>The next step is to update LDAP. This can not be done using GOsa²,
123 because it lack a module for automount. Instead, use ldapvi and add
124 the required LDAP objects using an editor.
</p
>
126 <p
><blockquote
><pre
>
127 ldapvi --ldap-conf -ZD
'(cn=admin)
' -b ou=automount,dc=skole,dc=skolelinux,dc=no
128 </pre
></blockquote
></p
>
130 <p
>When the editor show up, add the following LDAP objects at the
131 bottom of the document. The
"/
&" part in the last LDAP object is a
132 wild card matching everything the nas-server exports, removing the
133 need to list individual mount points in LDAP.
</p
>
135 <p
><blockquote
><pre
>
136 add cn=nas-server,ou=auto.skole,ou=automount,dc=skole,dc=skolelinux,dc=no
137 objectClass: automount
139 automountInformation: -fstype=autofs --timeout=
60 ldap:ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
141 add ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
143 objectClass: automountMap
146 add cn=/,ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
147 objectClass: automount
149 automountInformation: -fstype=nfs,tcp,rsize=
32768,wsize=
32768,rw,intr,hard,nodev,nosuid,noatime nas-server.intern:/
&
150 </pre
></blockquote
></p
>
152 <p
>The last step to remember is to mount the relevant mount points in
153 tjener.intern by adding them to /etc/fstab, creating the mount
154 directories using mkdir and running
"mount -a
" to mount them.
</p
>
156 <p
>When this is done, your users should be able to access the files on
157 the storage server directly by just visiting the
158 /tjener/nas-server/storage/ directory using any application on any
159 workstation, LTSP client or LTSP server.
</p
>
164 <title>Hvordan bør RFC
822-formattert epost lagres i en NOARK5-database?
</title>
165 <link>http://people.skolelinux.org/pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</link>
166 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Hvordan_b_r_RFC_822_formattert_epost_lagres_i_en_NOARK5_database_.html
</guid>
167 <pubDate>Fri,
7 Mar
2014 15:
20:
00 +
0100</pubDate>
168 <description><p
>For noen uker siden ble NXCs fri programvarelisenserte
170 <a href=
"http://www.nuug.no/aktiviteter/
20140211-noark/
">presentert hos
171 NUUG
</a
> (video
172 <a href=
"https://www.youtube.com/watch?v=JCb_dNS3MHQ
">på youtube
173 foreløbig
</a
>), og det fikk meg til å titte litt mer på NOARK5,
174 standarden for arkivhåndtering i det offentlige Norge. Jeg lurer på
175 om denne kjernen kan være nyttig i et par av mine prosjekter, og for ett
176 av dem er det mest aktuelt å lagre epost. Jeg klarte ikke finne noen
177 anbefaling om hvordan RFC
822-formattert epost (aka Internett-epost)
178 burde lagres i NOARK5, selv om jeg vet at noen arkiver tar
179 PDF-utskrift av eposten med sitt epostprogram og så arkiverer PDF-en
180 (eller enda værre, tar papirutskrift og lagrer bildet av eposten som
181 PDF i arkivet).
</p
>
183 <p
>Det er ikke så mange formater som er akseptert av riksarkivet til
184 langtidsoppbevaring av offentlige arkiver, og PDF og XML er de mest
185 aktuelle i så måte. Det slo meg at det måtte da finnes en eller annen
186 egnet XML-representasjon og at det kanskje var enighet om hvilken som
187 burde brukes, så jeg tok mot til meg og spurte
188 <a href=
"http://samdok.com/
">SAMDOK
</a
>, en gruppe tilknyttet
189 arkivverket som ser ut til å jobbe med NOARK-samhandling, om de hadde
192 <p
><blockquote
>
193 <p
>Hei.
</p
>
195 <p
>Usikker på om dette er riktig forum å ta opp mitt spørsmål, men jeg
196 lurer på om det er definert en anbefaling om hvordan RFC
197 822-formatterte epost (aka vanlig Internet-epost) bør lages håndteres
198 i NOARK5, slik at en bevarer all informasjon i eposten
199 (f.eks. Received-linjer). Finnes det en anbefalt XML-mapping ala den
201 &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
202 mål er at det skal være mulig å lagre eposten i en NOARK5-kjerne og
203 kunne få ut en identisk formattert kopi av opprinnelig epost ved
205 </blockquote
></p
>
207 <p
>Postmottaker hos SAMDOK mente spørsmålet heller burde stilles
208 direkte til riksarkivet, og jeg fikk i dag svar derfra formulert av
209 seniorrådgiver Geir Ivar Tungesvik:
</p
>
211 <p
><blockquote
>
212 <p
>Riksarkivet har ingen anbefalinger når det gjelder konvertering fra
213 e-post til XML. Det står arkivskaper fritt å eventuelt definere/bruke
214 eget format. Inklusive da - som det spørres om - et format der det er
215 mulig å re-etablere e-post format ut fra XML-en. XML (e-post)
216 dokumenter må være referert i arkivstrukturen, og det må vedlegges et
217 gyldig XML skjema (.xsd) for XML-filene. Arkivskaper står altså fritt
218 til å gjøre hva de vil, bare det dokumenteres og det kan dannes et
219 utrekk ved avlevering til depot.
</p
>
221 <p
>De obligatoriske kravene i Noark
5 standarden må altså oppfylles -
222 etter dialog med Riksarkivet i forbindelse med godkjenning. For
223 offentlige arkiv er det særlig viktig med filene loependeJournal.xml
224 og offentligJournal.xml. Private arkiv som vil forholde seg til Noark
225 5 standarden er selvsagt frie til å bruke det som er relevant for dem
226 av obligatoriske krav.
</p
>
227 </blockquote
></p
>
229 <p
>Det ser dermed ut for meg som om det er et lite behov for å
230 standardisere XML-lagring av RFC-
822-formatterte meldinger. Noen som
231 vet om god spesifikasjon i så måte? I tillegg til den omtalt over,
232 har jeg kommet over flere aktuelle beskrivelser (søk på
"rfc
822
233 xml
", så finner du aktuelle alternativer).
</p
>
237 <li
><a href=
"http://www.openhealth.org/xmtp/
">XML MIME Transformation
238 protocol (XMTP)
</a
> fra OpenHealth, sist oppdatert
2001.
</li
>
240 <li
><a href=
"https://tools.ietf.org/html/draft-klyne-message-rfc822-xml-
03">An
241 XML format for mail and other messages
</a
> utkast fra IETF datert
244 <li
><a href=
"http://www.informit.com/articles/article.aspx?p=
32074">xMail:
245 E-mail as XML
</a
> en artikkel fra
2003 som beskriver python-modulen
246 rfc822 som gir ut XML-representasjon av en RFC
822-formattert epost.
</li
>
250 <p
>Finnes det andre og bedre spesifikasjoner for slik lagring? Send
251 meg en epost hvis du har innspill.
</p
>