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>Anonym ferdsel er en menneskerett
</title>
11 <link>http://people.skolelinux.org/pere/blog/Anonym_ferdsel_er_en_menneskerett.html
</link>
12 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Anonym_ferdsel_er_en_menneskerett.html
</guid>
13 <pubDate>Wed,
15 Sep
2010 12:
15:
00 +
0200</pubDate>
15 <p
>Debatten rundt sporveiselskapet i Oslos (Ruter AS) ønske om
16 <a href=
"http://www.aftenposten.no/nyheter/iriks/article3808135.ece
">å
17 radiomerke med RFID
</a
> alle sine kunder og
18 <a href=
"http://www.aftenposten.no/nyheter/article3809746.ece
">registerere
19 hvor hver og en av oss beveger oss
</a
> pågår, og en ting som har
20 kommet lite frem i debatten er at det faktisk er en menneskerett å
21 kunne ferdes anonymt internt i ens eget land.
</p
>
23 <p
>Fant en grei kilde for dette i et
24 <a href=
"http://www.datatilsynet.no/upload/Microsoft%
20Word%
20-%
2009-
01399-
2%
20H+%C2%A9ringsnotat%
20-%
20Samferdselsdepartementet%
20-%
20Utkas%C3%
94%C3%
87%C2%AA.pdf
">skriv
25 fra Datatilsynet
</a
> til Samferdselsdepartementet om tema:
</p
>
27 <blockquote
><p
>Retten til å ferdes anonymt kan utledes av
28 menneskerettskonvensjonen artikkel
8 og av EUs personverndirektiv.
29 Her heter det at enkeltpersoners grunnleggende rettigheter og frihet
30 må respekteres, særlig retten til privatlivets fred. I både
31 personverndirektivet og i den norske personopplysningsloven er
32 selvråderetten til hver enkelt et av grunnprinsippene, hovedsaklig
33 uttrykt ved at en må gi et frivillig, informert og uttrykkelig
34 samtykke til behandling av personopplysninger.
</p
></blockquote
>
36 <p
>For meg er det viktig at jeg kan ferdes anonymt, og det er litt av
37 bakgrunnen til at jeg handler med kontanter, ikke har mobiltelefon og
38 forventer å kunne reise med bil og kollektivtrafikk uten at det blir
39 registrert hvor jeg har vært. Ruter angriper min rett til å ferdes
40 uten radiopeiler med sin innføring av RFID-kort, og dokumenterer sitt
41 ønske om å registrere hvor kundene befant seg ved å ønske å gebyrlegge
42 oss som ikke registrerer oss hver gang vi beveger oss med
43 kollektivtrafikken i Oslo. Jeg synes det er hårreisende.
</p
>
48 <title>Terms of use for video produced by a Canon IXUS
130 digital camera
</title>
49 <link>http://people.skolelinux.org/pere/blog/Terms_of_use_for_video_produced_by_a_Canon_IXUS_130_digital_camera.html
</link>
50 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Terms_of_use_for_video_produced_by_a_Canon_IXUS_130_digital_camera.html
</guid>
51 <pubDate>Thu,
9 Sep
2010 23:
55:
00 +
0200</pubDate>
53 <p
>A few days ago I had the mixed pleasure of bying a new digital
54 camera, a Canon IXUS
130. It was instructive and very disturbing to
55 be able to verify that also this camera producer have the nerve to
56 specify how I can or can not use the videos produced with the camera.
57 Even thought I was aware of the issue, the options with new cameras
58 are limited and I ended up bying the camera anyway. What is the
59 problem, you might ask? It is software patents, MPEG-
4, H
.264 and the
60 MPEG-LA that is the problem, and our right to record our experiences
61 without asking for permissions that is at risk.
63 <p
>On page
27 of the Danish instruction manual, this section is
67 <p
>This product is licensed under AT
&T patents for the MPEG-
4 standard
68 and may be used for encoding MPEG-
4 compliant video and/or decoding
69 MPEG-
4 compliant video that was encoded only (
1) for a personal and
70 non-commercial purpose or (
2) by a video provider licensed under the
71 AT
&T patents to provide MPEG-
4 compliant video.
</p
>
73 <p
>No license is granted or implied for any other use for MPEG-
4
77 <p
>In short, the camera producer have chosen to use technology
78 (MPEG-
4/H
.264) that is only provided if I used it for personal and
79 non-commercial purposes, or ask for permission from the organisations
80 holding the knowledge monopoly (patent) for technology used.
</p
>
82 <p
>This issue has been brewing for a while, and I recommend you to
84 "<a href=
"http://www.osnews.com/story/
23236/Why_Our_Civilization_s_Video_Art_and_Culture_is_Threatened_by_the_MPEG-LA
">Why
85 Our Civilization
's Video Art and Culture is Threatened by the
86 MPEG-LA
</a
>" by Eugenia Loli-Queru and
87 "<a href=
"http://webmink.com/
2010/
09/
03/h-
264-and-foss/
">H
.264 Is Not
88 The Sort Of Free That Matters
</a
>" by Simon Phipps to learn more about
89 the issue. The solution is to support the
90 <a href=
"http://www.digistan.org/open-standard:definition
">free and
91 open standards
</a
> for video, like
<a href=
"http://www.theora.org/
">Ogg
92 Theora
</a
>, and avoid MPEG-
4 and H
.264 if you can.
</p
>
97 <title>Navteq bruker
3-
12 måneder, OpenStreetmap.org trenger noen dager
</title>
98 <link>http://people.skolelinux.org/pere/blog/Navteq_bruker_3_12_m__neder__OpenStreetmap_org_trenger_noen_dager.html
</link>
99 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Navteq_bruker_3_12_m__neder__OpenStreetmap_org_trenger_noen_dager.html
</guid>
100 <pubDate>Tue,
7 Sep
2010 21:
40:
00 +
0200</pubDate>
102 <p
>Jeg ble riktig fascinert av
103 <a href=
"http://www.aftenposten.no/nyheter/iriks/article3800967.ece
">en
104 artikkel i Aftenposten
</a
> om hvor hardt Navteq jobber for å oppdatere
105 kartene som brukes i navigasjons-GPSer, der det blant annet heter at
106 "på grunn av teknikken tar det alt fra tre til tolv måneder før
107 kartene er oppdatert
". Når en kjenner hva slags oppdateringshastighet
108 som er tilgjengelig på
109 <a href=
"http://www.openstreetmap.org/
">OpenStreetmap
</a
> som
110 oppdateres på dugnad, blir det litt trist å se hva noe av det beste en
111 kan kjøpe for penger får til.
</p
>
113 <p
>Fra en endrer kartdataene i databasen til OpenStreetmap tar det
114 ca.
15 minutter før endringen er synlig på kartet som alle kan se på
115 web. Dernest overføres det daglig til en kartdump som lastes ned av
116 personen som lager Garmin-kart for Norge ca. en gang i uken. Med
117 OpenStreetmap.org og
<a href=
"http://www.frikart.no/
">Frikart.no
</a
>
118 kan en altså ha korreksjonene på plass i sin Garmin-GPS i løpet av en
119 uke. Det er også av tekniske årsaker at det tar så langt tid.
120 Jobbene som tegner kartene, henter ut kartdumpene og konverterer til
121 Garmin-format tar minutter og timer å gjennomføre, slik at de ikke
122 gjøres kontinuerlig men kun regelmessing.
</p
>
127 <title>Some notes on Flash in Debian and Debian Edu
</title>
128 <link>http://people.skolelinux.org/pere/blog/Some_notes_on_Flash_in_Debian_and_Debian_Edu.html
</link>
129 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Some_notes_on_Flash_in_Debian_and_Debian_Edu.html
</guid>
130 <pubDate>Sat,
4 Sep
2010 10:
10:
00 +
0200</pubDate>
132 <p
>In the
<a href=
"http://popcon.debian.org/unknown/by_vote
">Debian
133 popularity-contest numbers
</a
>, the adobe-flashplugin package the
134 second most popular used package that is missing in Debian. The sixth
135 most popular is flashplayer-mozilla. This is a clear indication that
136 working flash is important for Debian users. Around
10 percent of the
137 users submitting data to popcon.debian.org have this package
140 <p
>In the report written by Lars Risan in August
2008
141 («
<a href=
"http://wiki.skolelinux.no/Dokumentasjon/Rapporter?action=AttachFile
&do=view
&target=Skolelinux_i_bruk_rapport_1.0.pdf
">Skolelinux
142 i bruk – Rapport for Hurum kommune, Universitetet i Agder og
143 stiftelsen SLX Debian Labs
</a
>»), one of the most important problems
144 schools experienced with
<a href=
"http://www.skolelinux.org/
">Debian
145 Edu/Skolelinux
</a
> was the lack of working Flash. A lot of educational
146 web sites require Flash to work, and lacking working Flash support in
147 the web browser and the problems with installing it was perceived as a
148 good reason to stay with Windows.
</p
>
150 <p
>I once saw a funny and sad comment in a web forum, where Linux was
151 said to be the retarded cousin that did not really understand
152 everything you told him but could work fairly well. This was a
153 comment regarding the problems Linux have with proprietary formats and
154 non-standard web pages, and is sad because it exposes a fairly common
155 understanding of whose fault it is if web pages that only work in for
156 example Internet Explorer
6 fail to work on Firefox, and funny because
157 it explain very well how annoying it is for users when Linux
158 distributions do not work with the documents they receive or the web
159 pages they want to visit.
</p
>
161 <p
>This is part of the reason why I believe it is important for Debian
162 and Debian Edu to have a well working Flash implementation in the
163 distribution, to get at least popular sites as Youtube and Google
164 Video to working out of the box. For Squeeze, Debian have the chance
165 to include the latest version of Gnash that will make this happen, as
166 the new release
0.8.8 was published a few weeks ago and is resting in
167 unstable. The new version work with more sites that version
0.8.7.
168 The Gnash maintainers have asked for a freeze exception, but the
169 release team have not had time to reply to it yet. I hope they agree
170 with me that Flash is important for the Debian desktop users, and thus
171 accept the new package into Squeeze.
</p
>
176 <title>My first perl GUI application - controlling a Spykee robot
</title>
177 <link>http://people.skolelinux.org/pere/blog/My_first_perl_GUI_application___controlling_a_Spykee_robot.html
</link>
178 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/My_first_perl_GUI_application___controlling_a_Spykee_robot.html
</guid>
179 <pubDate>Wed,
1 Sep
2010 21:
00:
00 +
0200</pubDate>
181 <p
>This evening I made my first Perl GUI application. The last few
182 days I have worked on a Perl module for controlling my recently
183 aquired Spykee robots, and the module is now getting complete enought
184 that it is possible to use it to control the robot driving at least.
185 It was now time to figure out how to use it to create some GUI to
186 allow me to drive the robot around. I picked PerlQt as I have had
187 positive experiences with the Qt API before, and spent a few minutes
188 browsing the web for examples. Using Qt Designer seemed like a short
189 cut, so I ended up writing the perl GUI using Qt Designer and
190 compiling it into a perl program using the puic program from
191 libqt-perl. Nothing fancy yet, but it got buttons to connect and
192 drive around.
</p
>
194 <p
>The perl module I have written provide a object oriented API for
195 controlling the robot. Here is an small example on how to use it:
</p
>
199 Spykee::discover(sub {$robot{$_[
0]} = $_[
1]});
200 my $host = (keys %robot)[
0];
201 my $spykee = Spykee-
>new();
202 $spykee-
>contact($host,
"admin
",
"admin
");
207 $spykee-
>forward();
212 </pre
></p
>
214 <p
>Thanks to the release of the source of the robot firmware, I could
215 peek into the implementation at the other end to figure out how to
216 implement the protocol used by the robot. I
've implemented several of
217 the commands the robot understand, but is still missing the camera
218 support to make it possible to control the robot from remote. First I
219 want to implement support for uploading new firmware and configuring
220 the wireless network, to make it possible to bootstrap a Spykee robot
221 without the producers Windows and MacOSX software (I only have Linux,
222 so I had to ask a friend to come over to get the robot testing
225 <p
>Will release the source to the public soon, but need to figure out
226 where to make it available first. I will add a link to
227 <a href=
"http://wiki.nuug.no/grupper/robot/
">the NUUG wiki
</a
> for
228 those that want to check back later to find it.
</p
>
233 <title>Forslag i stortinget om å stoppe elektronisk stemmegiving i Norge
</title>
234 <link>http://people.skolelinux.org/pere/blog/Forslag_i_stortinget_om____stoppe_elektronisk_stemmegiving_i_Norge.html
</link>
235 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Forslag_i_stortinget_om____stoppe_elektronisk_stemmegiving_i_Norge.html
</guid>
236 <pubDate>Tue,
31 Aug
2010 21:
00:
00 +
0200</pubDate>
238 <p
>Ble tipset i dag om at et forslag om å stoppe forsøkene med
239 elektronisk stemmegiving utenfor valglokaler er
240 <a href=
"http://www.stortinget.no/no/Saker-og-publikasjoner/Saker/Sak/?p=
46616">til
241 behandling
</a
> i Stortinget.
242 <a href=
"http://www.stortinget.no/Global/pdf/Representantforslag/
2009-
2010/dok8-
200910-
128.pdf
">Forslaget
</a
>
243 er fremmet av Erna Solberg, Michael Tetzschner og Trond Helleland.
</p
>
245 <p
>Håper det får flertall.
</p
>
250 <title>Broken hard link handling with sshfs
</title>
251 <link>http://people.skolelinux.org/pere/blog/Broken_hard_link_handling_with_sshfs.html
</link>
252 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Broken_hard_link_handling_with_sshfs.html
</guid>
253 <pubDate>Mon,
30 Aug
2010 19:
30:
00 +
0200</pubDate>
255 <p
>Just got an email from Tobias Gruetzmacher as a followup on my
256 <a href=
"http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
">previous
257 post about sshfs
</a
>. He reported another problem with sshfs. It
258 fail to handle hard links properly. A simple way to spot this is to
259 look at the . and .. entries in the directory tree. These should have
260 a link count
>1, but on sshfs the count is
1. I just tested to see
261 what happen when trying to hardlink, and this fail as well:
</p
>
265 ln: creating hard link `bar
' =
> `foo
': Function not implemented
269 <p
>I have not yet found time to implement a test for this in my file
270 system test code, but believe having working hard links is useful to
271 avoid surprised unix programs. Not as useful as working file locking
272 and symlinks, which are required to get a working desktop, but useful
273 nevertheless. :)
</p
>
275 <p
>The latest version of the file system test code is available via
277 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
></p
>
282 <title>Sikkerhetsteateret på flyplassene fortsetter
</title>
283 <link>http://people.skolelinux.org/pere/blog/Sikkerhetsteateret_p___flyplassene_fortsetter.html
</link>
284 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Sikkerhetsteateret_p___flyplassene_fortsetter.html
</guid>
285 <pubDate>Sat,
28 Aug
2010 10:
40:
00 +
0200</pubDate>
287 <p
>Jeg skrev for et halvt år siden hvordan
288 <a href=
"http://people.skolelinux.org/pere/blog/Sikkerhet__teater__og_hvordan_gj__re_verden_sikrere.html
">samfunnet
289 kaster bort ressurser på sikkerhetstiltak som ikke fungerer
</a
>. Kom
291 <a href=
"http://www.askthepilot.com/essays-and-stories/terrorism-tweezers-and-terminal-madness-an-essay-on-security/
">historie
292 fra en pilot fra USA
</a
> som kommenterer det samme. Jeg mistenker det
293 kun er uvitenhet og autoritetstro som gjør at så få protesterer. Har
294 veldig sans for piloten omtalt i
<a
295 href=
"http://www.aftenposten.no/nyheter/iriks/article2057501.ece
">Aftenposten
</a
> 2007-
10-
23,
296 og skulle ønske flere rettet oppmerksomhet mot problemet. Det gir
297 ikke meg trygghetsfølelse på flyplassene når jeg ser at
298 flyplassadministrasjonen kaster bort folk, penger og tid på tull i
299 stedet for ting som bidrar til reell økning av sikkerheten. Det
300 forteller meg jo at vurderingsevnen til de som burde bidra til økt
301 sikkerhet er svært sviktende, noe som ikke taler godt for de andre
304 <p
>Mon tro hva som skjer hvis det fantes en enkel brosjyre å skrive ut
305 fra Internet som forklarte hva som er galt med sikkerhetsopplegget på
306 flyplassene, og folk skrev ut og la en bunke på flyplassene når de
307 passerte. Kanskje det ville fått flere til å få øynene opp for
310 <p
>Personlig synes jeg flyopplevelsen er blitt så avskyelig at jeg
311 forsøker å klare meg med tog, bil og båt for å slippe ubehaget. Det
312 er dog noe vanskelig i det langstrakte Norge og for å kunne besøke de
313 delene av verden jeg ønsker å nå. Mistenker at flere har det slik, og
314 at dette går ut over inntjeningen til flyselskapene. Det er antagelig
315 en god ting sett fra et miljøperspektiv, men det er en annen sak.
</p
>
320 <title>Skolelinux i Osloskolen
</title>
321 <link>http://people.skolelinux.org/pere/blog/Skolelinux_i_Osloskolen.html
</link>
322 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Skolelinux_i_Osloskolen.html
</guid>
323 <pubDate>Thu,
26 Aug
2010 22:
25:
00 +
0200</pubDate>
325 <p
>Denne høsten skal endelig alle Osloskolene få mulighet til å bruke
326 <a href=
"http://www.skolelinux.org/
">Skolelinux
</a
>. Ny IT-løsning
327 har vært rullet ut i noen måneder nå, og så vidt jeg fikk vite før
328 sommeren skulle alle skoler ha nytt opplegg på plass før oppstart nå i
329 høst. På alle skolene skal en kunne velge ved installasjon om en skal
330 ha Windows eller Skolelinux på maskinene, og en kan i tillegg
331 PXE-boote maskinene over nett som tynne klienter eller diskløse
332 arbeidsstasjoner. Jeg er spent på hvor mange skoler som velger å ta i
333 bruk Skolelinux, og gleder meg til å se hvordan dette utvikler seg.
335 <a href=
"http://www.logica.no/
">Logica
</a
> med
336 <a href=
"http://www.slxdrift.no/
">Skolelinux Drift AS
</a
> som
337 underleverandør, og jeg har vært involvert i utviklingen av løsningen
338 via Skolelinux Drift AS siden prosjektet starter. Jeg synes det er
339 fantastisk at Skolelinux er kommet så langt siden vi startet i
2001 at
340 alle elevene i Osloskolene nå skal få mulighet til å bruke
341 løsningen. Jeg håper de vil sette pris på alle de
342 <a href=
"http://www.skolelinux.no/linux-signpost/
">fantastiske
343 brukerprogrammene
</a
> som er tilgjengelig i Skolelinux.
</p
>
348 <title>Broken umask handling with sshfs
</title>
349 <link>http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
</link>
350 <guid isPermaLink=
"true">http://people.skolelinux.org/pere/blog/Broken_umask_handling_with_sshfs.html
</guid>
351 <pubDate>Thu,
26 Aug
2010 13:
30:
00 +
0200</pubDate>
353 <p
>My file system sematics program
354 <a href=
"http://people.skolelinux.org/pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html
">presented
355 a few days ago
</a
> is very useful to verify that a file system can
356 work as a unix home directory,and today I had to extend it a bit. I
'm
357 looking into alternatives for home directory access here at the
358 University of Oslo, and one of the options is sshfs. My friend
359 Finn-Arne mentioned a while back that they had used sshfs with Debian
360 Edu, but stopped because of problems. I asked today what the problems
361 where, and he mentioned that sshfs failed to handle umask properly.
362 Trying to detect the problem I wrote this addition to my fs testing
366 mode_t touch_get_mode(const char *name, mode_t mode) {
368 int fd = open(name, O_RDWR|O_CREAT|O_LARGEFILE, mode);
372 if (-
1 != fstat(fd,
&statbuf)) {
373 retval = statbuf.st_mode
& 0x1ff;
380 /* Try to detect problem discovered using sshfs */
381 int test_umask(void) {
382 printf(
"info: testing umask effect on file creation\n
");
384 mode_t orig_umask = umask(
000);
386 if (
0666 != (newmode = touch_get_mode(
"foobar
",
0666))) {
387 printf(
" error: Wrong file mode %o when creating using mode
666 and umask
000\n
",
391 if (
0660 != (newmode = touch_get_mode(
"foobar
",
0666))) {
392 printf(
" error: Wrong file mode %o when creating using mode
666 and umask
007\n
",
400 int main(int argc, char **argv) {
407 <p
>Sure enough. On NFS to a netapp, I get this result:
</p
>
410 Testing POSIX/Unix sematics on file system
411 info: testing symlink creation
412 info: testing subdirectory creation
413 info: testing fcntl locking
414 Read-locking
1 byte from
1073741824
415 Read-locking
510 byte from
1073741826
416 Unlocking
1 byte from
1073741824
417 Write-locking
1 byte from
1073741824
418 Write-locking
510 byte from
1073741826
419 Unlocking
2 byte from
1073741824
420 info: testing umask effect on file creation
423 <p
>When mounting the same directory using sshfs, I get this
427 Testing POSIX/Unix sematics on file system
428 info: testing symlink creation
429 info: testing subdirectory creation
430 info: testing fcntl locking
431 Read-locking
1 byte from
1073741824
432 Read-locking
510 byte from
1073741826
433 Unlocking
1 byte from
1073741824
434 Write-locking
1 byte from
1073741824
435 Write-locking
510 byte from
1073741826
436 Unlocking
2 byte from
1073741824
437 info: testing umask effect on file creation
438 error: Wrong file mode
644 when creating using mode
666 and umask
000
439 error: Wrong file mode
640 when creating using mode
666 and umask
007
442 <p
>So, I can conclude that sshfs is better than smb to a Netapp or a
443 Windows server, but not good enough to be used as a home
446 <p
>Update
2010-
08-
26: Reported the issue in
447 <a href=
"http://bugs.debian.org/
594498">BTS report #
594498</a
></p
>
449 <p
>Update
2010-
08-
27: Michael Gebetsroither report that he found the
450 script so useful that he created a GIT repository and stored it in
451 <a href=
"http://github.com/gebi/fs-test
">http://github.com/gebi/fs-test
</a
>.
</p
>