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