X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/ba6deb90c9c3372bcb5a7b71860b9907d724fac8..105f9e180ef3a74846475820bfcd7a63a4061808:/blog/index.rss diff --git a/blog/index.rss b/blog/index.rss index 3e1be6b592..09c9ccd44f 100644 --- a/blog/index.rss +++ b/blog/index.rss @@ -7,751 +7,709 @@ - Sandy Island - øya som er synlig hver tirsdag og fredag? - http://people.skolelinux.org/pere/blog/Sandy_Island____ya_som_er_synlig_hver_tirsdag_og_fredag_.html - http://people.skolelinux.org/pere/blog/Sandy_Island____ya_som_er_synlig_hver_tirsdag_og_fredag_.html - Sun, 7 Apr 2013 08:50:00 +0200 - <p>For en stund tilbake gikk nyheten om -<a href="http://en.wikipedia.org/wiki/Sandy_Island,_New_Caledonia">Sandy -Island</a>, en øy som var dukket opp på noen kart, men som ikke var -synlig når en sjekket den på satellittbilder. Dagbladet meldte for -eksempel at -"<a href="http://www.dagbladet.no/2012/11/22/nyheter/google_maps/google/utenriks/ninternett/24496816/">denne -øya finnes på kart, men ikke i virkeligheten</a>". Noe senere begynte -jeg å lese -<a href="http://www.gyldendal.no/Barn-og-ungdom/3-6-aar/Den-store-Ruffen-boken">historier -om Ruffen</a> til mine barn. Dette er historier om sjøormen Ruffen -skapt av Tor Åge Bringsværd, som starter med følgende beskrivelse:</p> - -<p><blockquote> -"Langt ute i havet ligger en mystisk øy. Den er bare synlig hver -tirsdag og fredag. Derfor står den ikke på noe kart. På denne øye -ligger et slott, og i slottet bor en gammel, fin sjøormfamilie. " -</blockquote></p> - -<p>Det virker åpenbart at Hr. Bringsværd tok feil når han trodde den -ikke var på noe kart, og at noen tydeligvis har vært i nærheten en -tirsdag eller en fredag og fått den med på et kart, mens -satellittbildene er tatt på noen av de fem andre dagene i uka og -dermed ikke ser øya. :)</p> - -<p>I følge -<a href="http://www.dagbladet.no/2012/12/03/nyheter/sandy_island/forskning/utenriks/24662158/">en -senere artikkel i Dagbladet</a> hevder Shaun Higgins, en forsker fra -New Zealand, at et hvalfangstskip fra 1876 er opprinnelsen til at -spøkelsesøya i det hele tatt havnet på kartet. Det fremgår ikke fra -historien hvilken ukedag de var innom.</p> - -<p>Jeg har stor sans for Tor Åge Bringsværd. Han viste nylig en svært -fin side av seg selv da han sa ja til EFNs forespørsel om å gi ut -novellen <a href="http://www.efn.no/kodemus/">Kodémus</a> med Creative -Commons-lisens.</p> + Debian init.d boot script example for rsyslog + http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html + http://people.skolelinux.org/pere/blog/Debian_init_d_boot_script_example_for_rsyslog.html + Sat, 2 Nov 2013 22:40:00 +0100 + <p>If one of the points of switching to a new init system in Debian is +<a href="http://thomas.goirand.fr/blog/?p=147">to get rid of huge +init.d scripts</a>, I doubt we need to switch away from sysvinit and +init.d scripts at all. Here is an example init.d script, ie a rewrite +of /etc/init.d/rsyslog:</p> + +<p><pre> +#!/lib/init/init-d-script +### BEGIN INIT INFO +# Provides: rsyslog +# Required-Start: $remote_fs $time +# Required-Stop: umountnfs $time +# X-Stop-After: sendsigs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: enhanced syslogd +# Description: Rsyslog is an enhanced multi-threaded syslogd. +# It is quite compatible to stock sysklogd and can be +# used as a drop-in replacement. +### END INIT INFO +DESC="enhanced syslogd" +DAEMON=/usr/sbin/rsyslogd +</pre></p> + +<p>Pretty minimalistic to me... For the record, the original sysv-rc +script was 137 lines, and the above is just 15 lines, most of it meta +info/comments.</p> + +<p>How to do this, you ask? Well, one create a new script +/lib/init/init-d-script looking something like this: + +<p><pre> +#!/bin/sh + +# Define LSB log_* functions. +# Depend on lsb-base (>= 3.2-14) to ensure that this file is present +# and status_of_proc is working. +. /lib/lsb/init-functions + +# +# Function that starts the daemon/service + +# +do_start() +{ + # Return + # 0 if daemon has been started + # 1 if daemon was already running + # 2 if daemon could not be started + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ + || return 1 + start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ + $DAEMON_ARGS \ + || return 2 + # Add code here, if necessary, that waits for the process to be ready + # to handle requests from services started subsequently which depend + # on this one. As a last resort, sleep for some time. +} + +# +# Function that stops the daemon/service +# +do_stop() +{ + # Return + # 0 if daemon has been stopped + # 1 if daemon was already stopped + # 2 if daemon could not be stopped + # other if a failure occurred + start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --name $NAME + RETVAL="$?" + [ "$RETVAL" = 2 ] && return 2 + # Wait for children to finish too if this is a daemon that forks + # and if the daemon is only ever run from this initscript. + # If the above conditions are not satisfied then add some other code + # that waits for the process to drop all resources that could be + # needed by services started subsequently. A last resort is to + # sleep for some time. + start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 --exec $DAEMON + [ "$?" = 2 ] && return 2 + # Many daemons don't delete their pidfiles when they exit. + rm -f $PIDFILE + return "$RETVAL" +} + +# +# Function that sends a SIGHUP to the daemon/service +# +do_reload() { + # + # If the daemon can reload its configuration without + # restarting (for example, when it is sent a SIGHUP), + # then implement that here. + # + start-stop-daemon --stop --signal 1 --quiet --pidfile $PIDFILE --name $NAME + return 0 +} + +SCRIPTNAME=$1 +scriptbasename="$(basename $1)" +echo "SN: $scriptbasename" +if [ "$scriptbasename" != "init-d-library" ] ; then + script="$1" + shift + . $script +else + exit 0 +fi + +NAME=$(basename $DAEMON) +PIDFILE=/var/run/$NAME.pid + +# Exit if the package is not installed +#[ -x "$DAEMON" ] || exit 0 + +# Read configuration variable file if it is present +[ -r /etc/default/$NAME ] && . /etc/default/$NAME + +# Load the VERBOSE setting and other rcS variables +. /lib/init/vars.sh + +case "$1" in + start) + [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" + do_start + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + stop) + [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" + do_stop + case "$?" in + 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; + 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; + esac + ;; + status) + status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? + ;; + #reload|force-reload) + # + # If do_reload() is not implemented then leave this commented out + # and leave 'force-reload' as an alias for 'restart'. + # + #log_daemon_msg "Reloading $DESC" "$NAME" + #do_reload + #log_end_msg $? + #;; + restart|force-reload) + # + # If the "reload" option is implemented then remove the + # 'force-reload' alias + # + log_daemon_msg "Restarting $DESC" "$NAME" + do_stop + case "$?" in + 0|1) + do_start + case "$?" in + 0) log_end_msg 0 ;; + 1) log_end_msg 1 ;; # Old process is still running + *) log_end_msg 1 ;; # Failed to start + esac + ;; + *) + # Failed to stop + log_end_msg 1 + ;; + esac + ;; + *) + echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 + exit 3 + ;; +esac + +: +</pre></p> + +<p>It is based on /etc/init.d/skeleton, and could be improved quite a +lot. I did not really polish the approach, so it might not always +work out of the box, but you get the idea. I did not try very hard to +optimize it nor make it more robust either.</p> + +<p>A better argument for switching init system in Debian than reducing +the size of init scripts (which is a good thing to do anyway), is to +get boot system that is able to handle the kernel events sensibly and +robustly, and do not depend on the boot to run sequentially. The boot +and the kernel have not behaved sequentially in years.</p> - Isenkram 0.2 finally in the Debian archive - http://people.skolelinux.org/pere/blog/Isenkram_0_2_finally_in_the_Debian_archive.html - http://people.skolelinux.org/pere/blog/Isenkram_0_2_finally_in_the_Debian_archive.html - Wed, 3 Apr 2013 23:40:00 +0200 - <p>Today the <a href="http://packages.qa.debian.org/isenkram">Isenkram -package</a> finally made it into the archive, after lingering in NEW -for many months. I uploaded it to the Debian experimental suite -2013-01-27, and today it was accepted into the archive.</p> - -<p>Isenkram is a system for suggesting to users what packages to -install to work with a pluggable hardware device. The suggestion pop -up when the device is plugged in. For example if a Lego Mindstorm NXT -is inserted, it will suggest to install the program needed to program -the NXT controller. Give it a go, and report bugs and suggestions to -BTS. :)</p> + Browser plugin for SPICE (spice-xpi) uploaded to Debian + http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html + http://people.skolelinux.org/pere/blog/Browser_plugin_for_SPICE__spice_xpi__uploaded_to_Debian.html + Fri, 1 Nov 2013 11:00:00 +0100 + <p><a href="http://www.spice-space.org/">The SPICE protocol</a> for +remote display access is the preferred solution with oVirt and RedHat +Enterprise Virtualization, and I was sad to discover the other day +that the browser plugin needed to use these systems seamlessly was +missing in Debian. The <a href="http://bugs.debian.org/668284">request +for a package</a> was from 2012-04-10 with no progress since +2013-04-01, so I decided to wrap up a package based on the great work +from Cajus Pollmeier and put it in a collab-maint maintained git +repository to get a package I could use. I would very much like +others to help me maintain the package (or just take over, I do not +mind), but as no-one had volunteered so far, I just uploaded it to +NEW. I hope it will be available in Debian in a few days.</p> + +<p>The source is now available from +<a href="http://anonscm.debian.org/gitweb/?p=collab-maint/spice-xpi.git;a=summary">http://anonscm.debian.org/gitweb/?p=collab-maint/spice-xpi.git;a=summary</a>.</p> - EFN nyutgir novellen Kodémus av Tor Åge Bringsværd - http://people.skolelinux.org/pere/blog/EFN_nyutgir_novellen_Kod_mus_av_Tor__ge_Bringsv_rd.html - http://people.skolelinux.org/pere/blog/EFN_nyutgir_novellen_Kod_mus_av_Tor__ge_Bringsv_rd.html - Wed, 27 Mar 2013 09:50:00 +0100 - <p>For noen dager siden nevnte jeg at vi jobbet med å typesette en -novelle med <a href="http://www.docbook.org/">DocBook</a>. I dag ble -utgivelsen annonsert med følgende pressemelding fra Elektronisk -Forpost Norge), som jeg gjengir i sin helhet:</p> - -<p><blockquote> - -<p><strong>EFN nyutgir Kodémus:</strong></p> - -<p><strong>Tor Åge Bringsværd-novelle om IT og overvåkning fra -informasjonsteknologiens spedbarndom får nytt liv</strong></p> - -<p>Elektronisk Forpost Norge (EFN) er veldig glad for anledningen til -å nyutgi Tor Åge Bringsværds novelle Kodémus i digitalt format for nye -(og gamle) generasjoner. Novellen ble skrevet så tidlig som vinteren -1968, og første gang trykt i novellesamlingen Probok på Gyldendal -samme år.</p> - -<p>Informasjonsteknologi spiller en sentral rolle i Kodémus, og det er -spennende å sammenligne beskrivelsen av IT fra 1968 med dagens IT i -2013. Forskjellene er mange -- men det er jammen likhetene også. Ikke -minst det at idag går jo nesten alle rundt med lillebrødre på seg!</p> - -<p>"Riktignok er det ikke påbudt å ha mobil," sier Thomas Gramstad, -leder i EFN. "Men vi holder på å lage et samfunn der det blir så -upraktisk eller tungvint å ikke ha det, at man i praksis ikke slipper -unna. Og disse lillebrødrene sladrer hele tiden til staten (og til -mange andre) om hvor vi er, hva vi gjør, hva vi bryr oss om, hva vi -liker..."</p> - -<p>Det at Kodémus åpenbart er skrevet i en annen tid med en annen type -IT og likevel virker så relevant idag, er i seg selv et hardtslående -tankekors.</p> - -<p>Tross sitt IT-tema fantes ikke Kodémus i elektronisk form, og -frivillige i EFN har skannet inn, OCR-tolket og korrekturlest -novellen, og deretter kodet den i en rekke digitale formater.</p> - -<p>Forfatteren har gitt tillatelse til publisering av Kodémus under ny -lisens, og novellen utgis av EFN med en Creative Commons (CC) -fribrukslisens (nærmere bestemt lisensen CC-BY-NC-ND). For leserne -eller brukerne innebærer dette at de får en klar og standardisert -beskjed om hvilke rettigheter de har til å dele novellen videre med -andre. For forfatteren innebærer dette økt synlighet og -tilgjengelighet for verket, slik at det ikke blir glemt, da -søkemotorer og nettlesere inneholder egne søkevalg for CC-lisenser, og -mange brukere søker etter verk som de vet de kan dele og bruke på -lovlig vis.</p> - -<p>EFN oppfordrer andre forfattere om å gi ut sine gamle tekster med -en fribrukslisens, slik at tekstene ikke blir glemt og for å stimulere -lovlig deling på nettet. EFN kan være behjelpelig med digitalisering -og utlegging på nett, i den grad det finnes kapasitet blant EFNs -medlemmer til dette. Vi mener at nyutgivelser av tekster under frie -lisenser kan øke interessen rundt forfatterskapet, og vil gjerne bidra -til dette.</p> - -<p>EFN utgir og deler med dette en novelle fra den digitale -informasjonsteknologiens tidligste barndom. En novelle som fortsatt er -full av vitalitet og aktualitet, og som derfor kan bidra til, og gi -ettertanke i dagens debatter om IT, personvern, overvåkning og -individets frihet og integritet.</p> - -<p>Du finner novellen her: -<br><a href="http://efn.no/kodemus/">http://efn.no/kodemus/</a></p> - -<p>i flere forskjellige formater, for ulike plattformer. Per idag -finnes novellen i disse formatene: EPUB, MOBI, XML, HTML, PDF og -txt. Det kan bli flere formater senere, og evt. frivillige -bidragsytere til dette er velkommen.</p> - -<p>Kontaktperson for denne pressemeldingen,</p> - -<p>Thomas Gramstad -<br>thomas@efn.no -<br>4817 6875</p> - -<hr> - -<p>EFN arbeider for dine borgerrettigheter i IT-samfunnet, for -nettverks- og delingskultur, personvern og frihet fra overvåkning, -åpne standarder, brukerstyrt programvare, retten til å kopiere, og -styrking av det digitale sivilsamfunnet m.m. -<br><a href="http://efn.no/">www.efn.no</a></p> - -</blockquote></p> - -<p>Jeg håper flere forfattere ser verdien av å gjøre kulturen -tilgjengelig for flere, og slår følge med Hr. Bringsværd i å gi ut -sine verker med bruksvilkår med færre bruksbegrensinger enn -opphavsretten legger opp til. Selv om jeg gjerne skulle sett at han -hadde brukt en Creative Commons-lisens som tillot avledede verker og -kommersiell bruk.</p> + Teaching vmdebootstrap to create Raspberry Pi SD card images + http://people.skolelinux.org/pere/blog/Teaching_vmdebootstrap_to_create_Raspberry_Pi_SD_card_images.html + http://people.skolelinux.org/pere/blog/Teaching_vmdebootstrap_to_create_Raspberry_Pi_SD_card_images.html + Sun, 27 Oct 2013 17:00:00 +0100 + <p>The +<a href="http://packages.qa.debian.org/v/vmdebootstrap.html">vmdebootstrap</a> +program is a a very nice system to create virtual machine images. It +create a image file, add a partition table, mount it and run +debootstrap in the mounted directory to create a Debian system on a +stick. Yesterday, I decided to try to teach it how to make images for +<a href="https://wiki.debian.org/RaspberryPi">Raspberry Pi</a>, as part +of a plan to simplify the build system for +<a href="https://wiki.debian.org/FreedomBox">the FreedomBox +project</a>. The FreedomBox project already uses vmdebootstrap for +the virtualbox images, but its current build system made multistrap +based system for Dreamplug images, and it is lacking support for +Raspberry Pi.</p> + +<p>Armed with the knowledge on how to build "foreign" (aka non-native +architecture) chroots for Raspberry Pi, I dived into the vmdebootstrap +code and adjusted it to be able to build armel images on my amd64 +Debian laptop. I ended up giving vmdebootstrap five new options, +allowing me to replicate the image creation process I use to make +<a href="http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html">Debian +Jessie based mesh node images for the Raspberry Pi</a>. First, the +<tt>--foreign /path/to/binfm_handler</tt> option tell vmdebootstrap to +call debootstrap with --foreign and to copy the handler into the +generated chroot before running the second stage. This allow +vmdebootstrap to create armel images on an amd64 host. Next I added +two new options <tt>--bootsize size</tt> and <tt>--boottype +fstype</tt> to teach it to create a separate /boot/ partition with the +given file system type, allowing me to create an image with a vfat +partition for the /boot/ stuff. I also added a <tt>--variant +variant</tt> option to allow me to create smaller images without the +Debian base system packages installed. Finally, I added an option +<tt>--no-extlinux</tt> to tell vmdebootstrap to not install extlinux +as a boot loader. It is not needed on the Raspberry Pi and probably +most other non-x86 architectures. The changes were accepted by the +upstream author of vmdebootstrap yesterday and today, and is now +available from +<a href="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/vmdebootstrap/">the +upstream project page</a>.</p> + +<p>To use it to build a Raspberry Pi image using Debian Jessie, first +create a small script (the customize script) to add the non-free +binary blob needed to boot the Raspberry Pi and the APT source +list:</p> + +<p><pre> +#!/bin/sh +set -e # Exit on first error +rootdir="$1" +cd "$rootdir" +cat &lt;&lt;EOF > etc/apt/sources.list +deb http://http.debian.net/debian/ jessie main contrib non-free +EOF +# Install non-free binary blob needed to boot Raspberry Pi. This +# install a kernel somewhere too. +wget https://raw.github.com/Hexxeh/rpi-update/master/rpi-update \ + -O $rootdir/usr/bin/rpi-update +chmod a+x $rootdir/usr/bin/rpi-update +mkdir -p $rootdir/lib/modules +touch $rootdir/boot/start.elf +chroot $rootdir rpi-update +</pre></p> + +<p>Next, fetch the latest vmdebootstrap script and call it like this +to build the image:</p> + +<pre> +sudo ./vmdebootstrap \ + --variant minbase \ + --arch armel \ + --distribution jessie \ + --mirror http://http.debian.net/debian \ + --image test.img \ + --size 600M \ + --bootsize 64M \ + --boottype vfat \ + --log-level debug \ + --verbose \ + --no-kernel \ + --no-extlinux \ + --root-password raspberry \ + --hostname raspberrypi \ + --foreign /usr/bin/qemu-arm-static \ + --customize `pwd`/customize \ + --package netbase \ + --package git-core \ + --package binutils \ + --package ca-certificates \ + --package wget \ + --package kmod +</pre></p> + +<p>The list of packages being installed are the ones needed by +rpi-update to make the image bootable on the Raspberry Pi, with the +exception of netbase, which is needed by debootstrap to find +/etc/hosts with the minbase variant. I really wish there was a way to +set up an Raspberry Pi using only packages in the Debian archive, but +that is not possible as far as I know, because it boots from the GPU +using a non-free binary blob.</p> + +<p>The build host need debootstrap, kpartx and qemu-user-static and +probably a few others installed. I have not checked the complete +build dependency list.</p> + +<p>The resulting image will not use the hardware floating point unit +on the Raspberry PI, because the armel architecture in Debian is not +optimized for that use. So the images created will be a bit slower +than <a href="http://www.raspbian.org/">Raspbian</a> based images.</p> - Change the font, save the world (and save some money in the process) - http://people.skolelinux.org/pere/blog/Change_the_font__save_the_world__and_save_some_money_in_the_process_.html - http://people.skolelinux.org/pere/blog/Change_the_font__save_the_world__and_save_some_money_in_the_process_.html - Tue, 26 Mar 2013 15:10:00 +0100 - <p>Would you like to help the environment and save money at the same -time, without much sacrifice? A small step could be to change the -font you use when printing.</p> - -<p>Three years ago, -<a href="http://arstechnica.com/business/2010/04/last-year-printer-comparison-website/">Ars -Technica</a> reported how the University of Wisconsin-Green Bay -changed their default front from -<a href="http://en.wikipedia.org/wiki/Arial">Arial</a> to -<a href="http://en.wikipedia.org/wiki/Century_Gothic">Century -Gothic</a> to save money. The Century Gothic font uses 30% less toner -than Arial to print the same text. In other word, you could cut your -toner costs by 30% (or actually, increase your toner supply life time -by more than 30%), by simply changing the default font used in your -prints.</p> - -<p>But it is not quite obvious how much one will safe by switching. -The University of Wisconsin-Green Bay said it used $100,000 per year -on ink and toner cartridges, according to -<a href="http://www.twincities.com/ci_14833097">a report from -TwinCities.com</a>, and expected to save between $5,000 and $10,000 -per year by asking staff and students to use a different font. Not -all PDFs and documents are created internally, and those from external -sources will most likely still use a different font. Also, the -Century Gothic font is slightly wider than Arial, and thus might use -more sheets of paper to print the same text, so the total saving -depend on the documents printed.</p> - -<p>But it is definitely something to consider, if you want to reduce -the amount of trash, decrease the amount of toner used in the world, -and save some money in the process.</p> + Det er jo makta som er mest sårbar ved massiv overvåkning av Internett + http://people.skolelinux.org/pere/blog/Det_er_jo_makta_som_er_mest_s_rbar_ved_massiv_overv_kning_av_Internett.html + http://people.skolelinux.org/pere/blog/Det_er_jo_makta_som_er_mest_s_rbar_ved_massiv_overv_kning_av_Internett.html + Sat, 26 Oct 2013 20:30:00 +0200 + <p>De siste måneders eksponering av +<a href="http://www.aftenposten.no/nyheter/uriks/Her-er-Edvard-Snowdens-mest-omtalte-avsloringer-7351734.html">den +totale overvåkningen som foregår i den vestlige verden dokumenterer +hvor sårbare vi er</a>. Men det slår meg at de som er mest sårbare +for dette, myndighetspersoner på alle nivåer, neppe har innsett at de +selv er de mest interessante personene å lage profiler på, for å kunne +påvirke dem.</p> + +<p>For å ta et lite eksempel: Stortingets nettsted, +<a href="http://www.stortinget.no/">www.stortinget.no</a> (og +forsåvidt også +<a href="http://data.stortinget.no/">data.stortinget.no</a>), +inneholder informasjon om det som foregår på Stortinget, og jeg antar +de største brukerne av informasjonen der er representanter og +rådgivere på Stortinget. Intet overraskende med det. Det som derimot +er mer skjult er at Stortingets nettsted bruker +<a href="http://en.wikipedia.org/wiki/Google_Analytics">Google +Analytics</a>, hvilket gjør at enhver som besøker nettsidene der også +rapporterer om besøket via Internett-linjer som passerer Sverige, +England og videre til USA. Det betyr at informasjon om ethvert besøk +på stortingets nettsider kan snappes opp av svensk, britisk og USAs +etterretningsvesen. De kan dermed holde et øye med hvilke +Stortingssaker stortingsrepresentantene synes er interessante å sjekke +ut, og hvilke sider rådgivere og andre på stortinget synes er +interessant å besøke, når de gjør det og hvilke andre representanter +som sjekker de samme sidene omtrent samtidig. Stortingets bruk av +Google Analytics gjør det dermed enkelt for utenlands etteretning å +spore representantenes aktivitet og interesse. Hvis noen av +representantene bruker Google Mail eller noen andre tjenestene som +krever innlogging, så vil det være enda enklere å finne ut nøyaktig +hvilke personer som bruker hvilke nettlesere og dermed knytte +informasjonen opp til enkeltpersoner på Stortinget.</p> + +<p>Og jo flere nettsteder som bruker Google Analytics, jo bedre +oversikt over stortingsrepresentantenes lesevaner og interesse blir +tilgjengelig for svensk, britisk og USAs etterretning. Hva de kan +bruke den informasjonen til overlater jeg til leseren å undres +over.</p> - Typesetting a short story using docbook for PDF, HTML and EPUB - http://people.skolelinux.org/pere/blog/Typesetting_a_short_story_using_docbook_for_PDF__HTML_and_EPUB.html - http://people.skolelinux.org/pere/blog/Typesetting_a_short_story_using_docbook_for_PDF__HTML_and_EPUB.html - Sun, 24 Mar 2013 17:30:00 +0100 - <p>A few days ago, during a discussion in -<a href="http://www.efn.no/">EFN</a> about interesting books to read -about copyright and the data retention directive, a suggestion to read -the 1968 short story Kodémus by -<a href="http://web2.gyldendal.no/toraage/">Tore Åge Bringsværd</a> -came up. The text was only available in old paper books, and thus not -easily available for current and future generations. Some of the -people participating in the discussion contacted the author, and -reported back 2013-03-19 that the author was OK with releasing the -short story using a <a href="http://www.creativecommons.org/">Creative -Commons</a> license. The text was quickly scanned and OCR-ed, and we -were ready to start on the editing and typesetting.</p> - -<p>As I already had some experience formatting text in my project to -provide a Norwegian version of the Free Culture book by Lawrence -Lessig, I chipped in and set up a -<a href="http://www.docbook.org/">DocBook</a> processing framework to -generate PDF, HTML and EPUB version of the short story. The tools to -transform DocBook to different formats are already in my Linux -distribution of choice, <a href="http://www.debian.org/">Debian</a>, so -all I had to do was to use the -<a href="http://dblatex.sourceforge.net/">dblatex</a>, -<a href="http://docbook.sourceforge.net/release/xsl/current/epub/README">dbtoepub</a> -and <a href="https://fedorahosted.org/xmlto/">xmlto</a> tools to do the -conversion. After a few days, we decided to replace dblatex with -xsltproc/fop (aka -<a href="http://wiki.docbook.org/DocBookXslStylesheets">docbook-xsl</a>), -to get the copyright information to show up in the PDF and to get a -nicer &lt;variablelist&gt; typesetting, but that is just a minor -technical detail.</p> - -<p>There were a few challenges, of course. We want to typeset the -short story to look like the original, and that require fairly good -control over the layout. The original short story have three -parts/scenes separated by a single horizontally centred star (*), and -the paragraphs do not contain only flowing text, but dialogs and text -that started on a new line in the middle of the paragraph.</p> - -<p>I initially solved the first challenge by using a paragraph with a -single star in it, ie &lt;para&gt;*&lt;/para&gt;, but it made sure a -placeholder indicated where the scene shifted. This did not look too -good without the centring. The next approach was to create a new -preprocessor directive &lt;?newscene?&gt;, mapping to "&lt;hr/&gt;" -for HTML and "&lt;fo:block text-align="center"&gt;&lt;fo:leader -leader-pattern="rule" rule-thickness="0.5pt"/&gt;&lt;/fo:block&gt;" -for FO/PDF output (did not try to implement this in dblatex, as we had -switched at this time). The HTML XSL file looked like this:</p> - -<p><blockquote><pre> -&lt;?xml version='1.0'?&gt; -&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt; - &lt;xsl:template match="processing-instruction('newscene')"&gt; - &lt;hr/&gt; - &lt;/xsl:template&gt; -&lt;/xsl:stylesheet&gt; -</pre></blockquote></p> - -<p>And the FO/PDF XSL file looked like this:</p> - -<p><blockquote><pre> -&lt;?xml version='1.0'?&gt; -&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt; - &lt;xsl:template match="processing-instruction('newscene')"&gt; - &lt;fo:block text-align="center"&gt; - &lt;fo:leader leader-pattern="rule" rule-thickness="0.5pt"/&gt; - &lt;/fo:block&gt; - &lt;/xsl:template&gt; -&lt;/xsl:stylesheet&gt; -</pre></blockquote></p> - -<p>Finally, I came across the &lt;bridgehead&gt; tag, which seem to be -a good fit for the task at hand, and I replaced &lt;?newscene?&gt; -with &lt;bridgehead&gt;*&lt;/bridgehead&gt;. It isn't centred, but we -can fix it with some XSL rule if the current visual layout isn't -enough.</p> - -<p>I did not find a good DocBook compliant way to solve the -linebreak/paragraph challenge, so I ended up creating a new processor -directive &lt;?linebreak?&gt;, mapping to &lt;br/&gt; in HTML, and -&lt;fo:block/&gt; in FO/PDF. I suspect there are better ways to do -this, and welcome ideas and patches on github. The HTML XSL file now -look like this:</p> - -<p><blockquote><pre> -&lt;?xml version='1.0'?&gt; -&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'&gt; - &lt;xsl:template match="processing-instruction('linebreak)"&gt; - &lt;br/&gt; - &lt;/xsl:template&gt; -&lt;/xsl:stylesheet&gt; -</pre></blockquote></p> - -<p>And the FO/PDF XSL file looked like this:</p> - -<p><blockquote><pre> -&lt;?xml version='1.0'?&gt; -&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0' - xmlns:fo="http://www.w3.org/1999/XSL/Format"&gt; - &lt;xsl:template match="processing-instruction('linebreak)"&gt; - &lt;fo:block/&gt; - &lt;/xsl:template&gt; -&lt;/xsl:stylesheet&gt; -</pre></blockquote></p> - -<p>One unsolved challenge is our wish to expose different ISBN numbers -per publication format, while keeping all of them in some conditional -structure in the DocBook source. No idea how to do this, so we ended -up listing all the ISBN numbers next to their format in the colophon -page.</p> - -<p>If you want to check out the finished result, check out the -<a href="https://github.com/sickel/kodemus">source repository at -github</a> -(<a href="https://github.com/EFN/kodemus">future/new/official -repository</a>). We expect it to be ready and announced in a few -days.</p> + A Raspberry Pi based batman-adv Mesh network node + http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html + http://people.skolelinux.org/pere/blog/A_Raspberry_Pi_based_batman_adv_Mesh_network_node.html + Mon, 21 Oct 2013 11:40:00 +0200 + <p>The last few days I have been experimenting with +<a href="http://www.open-mesh.org/projects/batman-adv/wiki">the +batman-adv mesh technology</a>. I want to gain some experience to see +if it will fit <a href="https://wiki.debian.org/FreedomBox">the +Freedombox project</a>, and together with my neighbors try to build a +mesh network around the park where I live. Batman-adv is a layer 2 +mesh system ("ethernet" in other words), where the mesh network appear +as if all the mesh clients are connected to the same switch.</p> + +<p>My hardware of choice was the Linksys WRT54GL routers I had lying +around, but I've been unable to get them working with batman-adv. So +instead, I started playing with a +<a href="http://www.raspberrypi.org/">Raspberry Pi</a>, and tried to +get it working as a mesh node. My idea is to use it to create a mesh +node which function as a switch port, where everything connected to +the Raspberry Pi ethernet plug is connected (bridged) to the mesh +network. This allow me to hook a wifi base station like the Linksys +WRT54GL to the mesh by plugging it into a Raspberry Pi, and allow +non-mesh clients to hook up to the mesh. This in turn is useful for +Android phones using <a href="http://servalproject.org/">the Serval +Project</a> voip client, allowing every one around the playground to +phone and message each other for free. The reason is that Android +phones do not see ad-hoc wifi networks (they are filtered away from +the GUI view), and can not join the mesh without being rooted. But if +they are connected using a normal wifi base station, they can talk to +every client on the local network.</p> + +<p>To get this working, I've created a debian package +<a href="https://github.com/petterreinholdtsen/meshfx-node">meshfx-node</a> +and a script +<a href="https://github.com/petterreinholdtsen/meshfx-node/blob/master/build-rpi-mesh-node">build-rpi-mesh-node</a> +to create the Raspberry Pi boot image. I'm using Debian Jessie (and +not Raspbian), to get more control over the packages available. +Unfortunately a huge binary blob need to be inserted into the boot +image to get it booting, but I'll ignore that for now. Also, as +Debian lack support for the CPU features available in the Raspberry +Pi, the system do not use the hardware floating point unit. I hope +the routing performance isn't affected by the lack of hardware FPU +support.</p> + +<p>To create an image, run the following with a sudo enabled user +after inserting the target SD card into the build machine:</p> + +<p><pre> +% wget -O build-rpi-mesh-node \ + https://raw.github.com/petterreinholdtsen/meshfx-node/master/build-rpi-mesh-node +% sudo bash -x ./build-rpi-mesh-node > build.log 2>&1 +% dd if=/root/rpi/rpi_basic_jessie_$(date +%Y%m%d).img of=/dev/mmcblk0 bs=1M +% +</pre></p> + +<p>Booting with the resulting SD card on a Raspberry PI with a USB +wifi card inserted should give you a mesh node. At least it does for +me with a the wifi card I am using. The default mesh settings are the +ones used by the Oslo mesh project at Hackeriet, as I mentioned in +<a href="http://people.skolelinux.org/pere/blog/Oslo_community_mesh_network___with_NUUG_and_Hackeriet_at_Hausmania.html">an +earlier blog post about this mesh testing</a>.</p> + +<p>The mesh node was not horribly expensive either. I bought +everything over the counter in shops nearby. If I had ordered online +from the lowest bidder, the price should be significantly lower:</p> + +<p><table> + +<tr><th>Supplier</th><th>Model</th><th>NOK</th></tr> +<tr><td>Teknikkmagasinet</td><td>Raspberry Pi model B</td><td>349.90</td></tr> +<tr><td>Teknikkmagasinet</td><td>Raspberry Pi type B case</td><td>99.90</td></tr> +<tr><td>Lefdal</td><td>Jensen Air:Link 25150</td><td>295.-</td></tr> +<tr><td>Clas Ohlson</td><td>Kingston 16 GB SD card</td><td>199.-</td></tr> +<tr><td>Total cost</td><td></td><td>943.80</td></tr> + +</table></p> + +<p>Now my mesh network at home consist of one laptop in the basement +connected to my production network, one Raspberry Pi node on the 1th +floor that can be seen by my neighbor across the park, and one +play-node I use to develop the image building script. And some times +I hook up my work horse laptop to the mesh to test it. I look forward +to figuring out what kind of latency the batman-adv setup will give, +and how much packet loss we will experience around the park. :)</p> - Regjeringen, FAD og DIFI går inn for å fjerne ODF som obligatorisk standard i det offentlige - http://people.skolelinux.org/pere/blog/Regjeringen__FAD_og_DIFI_g_r_inn_for___fjerne_ODF_som_obligatorisk_standard_i_det_offentlige.html - http://people.skolelinux.org/pere/blog/Regjeringen__FAD_og_DIFI_g_r_inn_for___fjerne_ODF_som_obligatorisk_standard_i_det_offentlige.html - Mon, 18 Mar 2013 21:10:00 +0100 - <p>I -<a href="http://standard.difi.no/hoyring/forslag-om-endring-av-forskrift-om-it-standarder-i-offentlig-forvaltning">siste -høring</a> om -<a href="http://standard.difi.no/forvaltningsstandarder">referansekatalogen -for IT-standarder i offentlig sektor</a>, med høringsfrist 2012-09-30 -(DIFI-sak 2012/498), ble det foreslått å fjerne ODF som obligatorisk -standard når en publiserte dokumenter som skulle kunne redigeres -videre av mottaker. NUUG og andre protesterte på forslaget, som er et -langt steg tilbake når det gjelder å sikre like rettigheter for alle -når en kommuniserer med det offentlige. For noen dager siden ble jeg -oppmerksom på at Direktoratet for forvaltning og IKT (DIFI) og -Fornyings-,administrasjons- og kirkedepartementet (FAD) har -konkludert, og oversendt forslag til regjeringen i saken. FADs -dokument -<a href="http://www.oep.no/search/result.html?period=none&descType=both&caseNumber=2012%2F2168&senderType=both&documentType=all&list2=94&searchType=advanced&Search=S%C3%B8k+i+journaler">2012/2168</a>-8, -«Utkast til endring av standardiseringsforskriften» datert 2013-02-06 -har følgende triste oppsummering fra høringen i saken:</p> - -<p><blockquote> -Det kom noen innvendinger på forslaget om å fjerne ODF som -obligatorisk standard for redigerbare dokumenter. Innvendingene har -ikke blitt ilagt avgjørende vekt. -</blockquote></p> - -<p>Ved å fjerne ODF som obligatorisk format ved publisering av -redigerbare dokumenter setter en Norge tiår tilbake. Det som vil skje -er at offentlige etater går tilbake til kun å publisere dokumenter på -et av de mange formatene til Microsoft Office, og alle som ikke -aksepterer bruksvilkårene til Microsoft eller ikke har råd til å bruke -penger på å få tilgang til Microsoft Office må igjen basere seg på -verktøy fra utviklerne som er avhengig av å reversutvikle disse -formatene. I og med at ISO-spesifikasjonen for OOXML ikke komplett og -korrekt spesifiserer formatene til MS Office (men er nyttige å titte i -når en reversutvikler), er en tilbake til en situasjon der en ikke har -<a href="http://people.skolelinux.org/pere/blog/Fri_og__pen_standard__slik_Digistan_ser_det.html">en -fri og åpen standard</a> å forholde seg til, men i stedet må springe -etter Microsoft. Alle andre leverandører enn Microsoft vil dermed ha -en seriøs ulempe. Det er som å fjerne krav om bruk av meter som -måleenhet, og heretter aksepterer alle måleenheter som like gyldige, -når en vet at den mest brukte enheten vil være armlengden til Steve -Ballmer slik Microsoft måler den.</p> - -<p>Jeg er ikke sikker på om forslaget er vedtatt av regjeringen ennå. -Kristian Bergem hos DIFI nevnte på et møte forrige tirsdag at han -trodde det var vedtatt i statsråd 8. mars, men jeg har ikke klart å -finne en skriftlig kilde på regjeringen.no som bekrefter dette. -Kanskje det ennå ikke er for sent...</p> - -<p>Jeg ba i forrige uke om innsyn i dokument 6, 7 og 8 i FAD-saken, og -har i dag fått innsyn i dokument 7 og 8. Ble nektet innsyn i -dokumentet med tittelen «Oppsummering av høring om endringer i -forskrift om IT-standarder i offentlig forvaltning» med hjemmel i -off. lovens §15.1, så det er vanskelig å vite hvordan argumentene fra -høringen ble mottatt og forstått av saksbehandleren hos DIFI. Lurer -på hvordan jeg kan klage på at jeg ikke fikk se oppsummeringen. Fikk -tre PDFer tilsendt fra FAD, -<a href="http://www.nuug.no/pub/offentliginnsyn/from-FAD/20130115%20Notat%20FAD%20-%20EHF.pdf%20(L)(889185).pdf">Endring av underversjon i EHF</a>, -<a href="http://www.nuug.no/pub/offentliginnsyn/from-FAD/Bakgrunnsnotat%20knyttet%20til%20versjon%20av%20EHF%20standarden%20i%20Forskrift%20om%20IT-standarder%20i%20offentlig%20sektor.pdf">Bakgrunnsnotat knyttet til versjon av EHF standarden i Forskrift om IT-standarder i offentlig sektor</a> og -<a href="http://www.nuug.no/pub/offentliginnsyn/from-FAD/Utkast%20Kongelig%20resolusjon.docx%20(L)(898064).pdf">Utkast til endring av standardiseringsforskriften</a>, hvis du vil ta en titt.</p> + Perl library to control the Spykee robot moved to github + http://people.skolelinux.org/pere/blog/Perl_library_to_control_the_Spykee_robot_moved_to_github.html + http://people.skolelinux.org/pere/blog/Perl_library_to_control_the_Spykee_robot_moved_to_github.html + Sat, 19 Oct 2013 10:20:00 +0200 + <p>Back in 2010, I created a Perl library to talk to +<a href="http://en.wikipedia.org/wiki/Spykee">the Spykee robot</a> +(with two belts, wifi, USB and Linux) and made it available from my +web page. Today I concluded that it should move to a site that is +easier to use to cooperate with others, and moved it to github. If +you got a Spykee robot, you might want to check out +<a href="https://github.com/petterreinholdtsen/libspykee-perl">the +libspykee-perl github repository</a>.</p> - Skolelinux 6 got a video review from Pcwizz - http://people.skolelinux.org/pere/blog/Skolelinux_6_got_a_video_review_from_Pcwizz.html - http://people.skolelinux.org/pere/blog/Skolelinux_6_got_a_video_review_from_Pcwizz.html - Sun, 17 Mar 2013 10:30:00 +0100 - <p>Via -<a href="https://twitter.com/pcwizz/status/313044373262716930">twitter</a> -I just discovered that <a href="http://pcwizz.net/">Pcwizz</a> have -done a <a href="http://www.youtube.com/watch?v=wPzTZ61Pcuc">video -review</a> on Youtube of <a href="http://www.skolelinux.org/">Skolelinux -/ Debian Edu</a> version 6. He installed the standalone profile and -the video show a walk-through of of the menu content, demonstration of -a few programs and his view of our distribution.</p> - -<p>There is also some really nice quotes (transcribed by me, might -have heard wrong). While looking thought the Graphics menu:</p> - -<blockquote> -"Basically everything you ever need in a school environment." -</blockquote> - -<p>And as a general evaluation of the entire distribution:</p> - -<blockquote> -"So, yeah, a bit bloated. It kept all the Debian stuff in there, just -to keep it nice and GNU. So, I do not want to go on about it, but -lets give it 7 out of 10. I am not going to use it. That is because -I am not deploying a school network. There may be some mythical -feature to help you deploy Skolelinux on a school network." -</blockquote> - -<p>To bad he did not test the server profile, and discovered the PXE -installation option. It make it possible to install only the main -server from CD, and the rest of the machines via the net, and might be -considered the mythical feature he talk about. :)</p> - -<p>While looking through the menus, there is also this funny comment -about the part of the K menu generated from the Debian menu subsystem: - -<blockquote> -"[The K menu] have a special Debian section for software that no-one -is going to look at, because it contain lots of junky stuff that you -actually don't need in the education distribution, but have just been -included because it isn't stripped out for some reason." -</blockquote> - -<p>I guess it is yet another argument for merging the Debian menu and -Gnome/KDE desktop menu entries into -<a href="http://wiki.debian.org/Proposals/DebianMenuUsingDesktopEntries">one -consistent menu system</a> instead of two incomplete and partly -inconsistent menu systems.</p> - -<p>The entire video is available below for those accepting iframe -embedding:</p> - -<iframe width="560" height="315" src="http://www.youtube.com/embed/wPzTZ61Pcuc" frameborder="0" allowfullscreen></iframe> + Good causes: Debian Outreach Program for Women, EFF documenting the spying and Open access in Norway + http://people.skolelinux.org/pere/blog/Good_causes__Debian_Outreach_Program_for_Women__EFF_documenting_the_spying_and_Open_access_in_Norway.html + http://people.skolelinux.org/pere/blog/Good_causes__Debian_Outreach_Program_for_Women__EFF_documenting_the_spying_and_Open_access_in_Norway.html + Tue, 15 Oct 2013 21:30:00 +0200 + <p>The last few days I came across a few good causes that should get +wider attention. I recommend signing and donating to each one of +these. :)</p> + +<p>Via <a href="http://www.debian.org/News/weekly/2013/18/">Debian +Project News for 2013-10-14</a> I came across the Outreach Program for +Women program which is a Google Summer of Code like initiative to get +more women involved in free software. One debian sponsor has offered +to match <a href="http://debian.ch/opw2013">any donation done to Debian +earmarked</a> for this initiative. I donated a few minutes ago, and +hope you will to. :)</p> + +<p>And the Electronic Frontier Foundation just announced plans to +create <a href="https://supporters.eff.org/donate/nsa-videos">video +documentaries about the excessive spying</a> on every Internet user that +take place these days, and their need to fund the work. I've already +donated. Are you next?</p> + +<p>For my Norwegian audience, the organisation Studentenes og +Akademikernes Internasjonale Hjelpefond is collecting signatures for a +statement under the heading +<a href="http://saih.no/Bloggers_United/">Bloggers United for Open +Access</a> for those of us asking for more focus on open access in the +Norwegian government. So far 499 signatures. I hope you will sign it +too.</p> - Til frikanalens støttespillere - fra styret i Frikanalen - http://people.skolelinux.org/pere/blog/Til_frikanalens_st_ttespillere___fra_styret_i_Frikanalen.html - http://people.skolelinux.org/pere/blog/Til_frikanalens_st_ttespillere___fra_styret_i_Frikanalen.html - Wed, 13 Mar 2013 11:15:00 +0100 - <p>Min venn Erik Vold har på vegne av styret i -<a href="http://www.frikanalen.no/">Frikanalen</a> sendt ut -<a href="http://lists.nuug.no/pipermail/frikanalen/2013-March/000054.html">følgende -epost</a> til alle kanalens medlemmer og støttespillere, i et forsøk -på å redde kanalen etter at kulturdepartementet kuttet all -finansiering i fjor høst. Jeg fikk meldingen som -<a href="http://www.nuug.no/">NUUG</a>-styremedlem, og mener den -trenger et større publikum. Jeg gjengir den derfor i sin helhet, -inkludert lenken til budsjett og regnskapsutkast, etter -<a href="http://lists.nuug.no/pipermail/frikanalen/2013-March/000061.html">avtale -med Erik</a>.</p> - -<p><blockquote> -<p>Til Frikanalens støttespillere</p> - -<p>Frivillighetens TV kanal har med minimal støtte avviklet daglige -sendinger siden 2009 og til tross for at statsstøtten uteble i år, er -vi nå i full gang med å utvikle et nytt TV system som foreningen selv -vil eie. Departementet fikk dessverre ikke med seg at nettet vil -berike TV sendingen fremfor å gjøre den overflødig. De har nå overlatt -finansieringen av videre drift til frivilligheten og vi håper derfor -på deres hjelp til å søke om midler. På kjøpet får dere langt flere -muligheter til å nå ut med deres budskap og med utbyggingen av Hybrid -TV (nett på TV) kan vi sammen motbevise departementets påstand.</p> - -<p>Kostnaden med denne utviklingen er svært lav ettersom de fleste -programmererne jobber gratis og alt er basert på åpen kildekode der -man deler hverandres bidrag til kringkastingsorienterte systemer. I -samarbeid med flere europeiske kanaler i EBU (SVT, BBC, NRK, ZDF, ARD, -France Televisions etc) ønsker vi å bygge opp et nettverk for delt -support og åpen kildekode der Frikanalen er den eneste sandkassen hvor -ny teknologi kan testes på luft. Riks TV åpner for annonsering av -nettinnhold relatert til det du ser på TV (streamevents i HbbTV) -allerede i sommer. Med støtte fra Media Netwerk som drifter Frikanalen -samt Sofia Digital som stiller med Hybrid TV server er vi & NRK sikret -en sentral rolle i utprøvingen. Det vil da bli mulig og streame -direkte til Riks TV sine nye mottakere (og nye IDTV'er) i HD samt at -TV'n kan annonsere en link til deres organisasjonssider, med -oppdaterte nyheter (RSS feeds), relaterte videoer etc., under -avviklingen av deres innslag.</p> - -<p>Vi tror sendingene på den nye nettstyrte TV-kanalen vil bli rikere enn -på den kommersielle plattformen vi har vært på så langt. Brukerne vil -nå få en tettere integrasjon med sosiale medier samt at innholdet -etterhvert kommer ut på Hybrid TV og mobile enheter. Teknisk ansvarlig -i Frikanalen, Erik Vold, er sentral i utviklingen av streamingdelen -for tv.nrk.no (årets produkt i PC World) og erfaringen NRK har gjort -på mobile enheter kan videreføres til oss. Det er heller ingen tvil om -at Hybrid TV vil bli en suksess også i Norge. Erik sitter i Nordig som -har vedtatt en felles standard for de nordiske kringkasterne basert på -HbbTV. Denne standarden bruker web-protokoller som gjør det like -enkelt og billig å utvikle tjenester for Hybrid TV som å lage en -nettside. Samtlige nye TV apparater solgt i Norden vil ha støtte for -HbbTV og med det tror vi oppslutningen vil bli like stor som ellers i -Europa (Tyskland og Frankrike tredoblet antall HbbTV-brukere i -fjor). Vi forventer også mye d rahjelp fra disse foregangslandene. Vår -utvikler Tore Sinding Bekkedal er i skriv ende stund på en HbbTV -workshop med EBU-medlemmer hos IRT i München der han på vegne av NRK -tester og utvikler ny stremingteknologi (MPEG- DASH) for -mobile enheter og hybrid TV.</p> - -<p>Frikanalen har forøvrig flyttet inn i nye kostnadsfrie lokaler på -Chateau Neuf. Med massiv hjelp fra frivillige får vi der en -flerkameraregi i egnede lokaler. Dette åpner for debatter, konserter, -events og mye spennende innhold i samarbeid med Student TV'ene.</p> - -<p>Med hjelp fra NUUG har også streamingdelen av systemet fått plass på -Uninett (Forskningsparken) og dermed er vi på Norges beste -internettlinjer. Vi åpner med dette for live mottak fra samtlige -medlemmer og på sikt kan vi tilby HD på hybrid TV og PC / MAC / mobil.</p> - -<p>Avvikling på luft skjer allerede med egenutviklede løsninger i åpen -kildekode (playout og live-koding). Det er også mulig å se første -byggetrinn med programoversikt og videoer på nett, men foreløpig kun -for nettleserne Opera, Chrome og Firefox: -<a href="http://beta.frikanalen.tv/guide/">http://beta.frikanalen.tv/guide/</a> -og -<a href="http://beta.frikanalen.tv/video/">http://beta.frikanalen.tv/video/</a>. Kom -gjerne med ønsker og tilbakemeldinger til vår hovedutvikler Benjamin -Bruheim: grolgh (at) gmail.com</p> - -<p>Med en tettere tilknytning til Akademia og NRK, er det god grunn til å -tro at utviklingen vil skyte fart og at vi raskere kommer ut med -dagsaktuelt innhold.</p> - -<p>Vi sender i dag på Riks TV og Altibox, men ikke lenger på TV8. Det er -viktig for våre brukere igjen å komme ut på Get og Canal Digital, -dermed er det svært heldig at vi nå har formidlingsplikt på kabel. Til -tross for at det tar noe tid å få nye avtaler på plass, med frivillig -juridisk bistand, vil vi sannsynligvis komme bedre ut i andre enden -også her. Formidlingsplikten gjelder samtlige kabeldistribusjoner i -Norge, ikke bare de regionene TV8 hadde avtale med.</p> - -<p>Om alt dette skal se dagens lys er vi avhengig av en -grunnfinansiering. Deres medlemsavgifter er i så måte et svært viktig -bidrag som vi er veldig takknemlige for. Vi ser oss likevel nødt til -å be dere om å delta i arbeidet med å dekke de resterende -driftskostnader. Frikanalen sin arbeidskapasitet er betydelig redusert -etter at foreningen ikke lenger kunne finansiere en daglig leder, men -allmøtet kan åpne for at flere bidrar til inntjening (Ekstraordinær -generalforsamling foreslo å tillate sponsorplakater på sendeflaten og -deler av disse inntektene kan tilfalle kanalen). Håper alle -medlemmene kan hjelpe oss med å skrive søknader og skaffe sponsorer, -eller i det minste komme med gode forslag til inntjening. Det er ikke -mye som skal til for å klare videre drift, kun 0,5 mill. pr år.</p> - -<p>Med en støtte som tilsvarer en norsk kortfilm vil vi kunne redde -sendearkivet for flere tusen videoer bygget opp av frivilligheten -gjennom 5 år og vi dobler kapasiteten for å ta imot nye (De som -leverer HD vil for øvrig kunne få HD på nett, mobil og hybrid TV).</p> - -<p>Vi vil også kunne videreføre konsesjonen på Riks TV og realisere en -formidlingsplikt på kabel som har en årlig verdi på ca. 5 millioner -kroner (når over 2/3 av Norges befolkning).</p> - -<p>Uten støtte står verdens eneste nasjonale nettstyrte åpne TV kanal i -fare for å forsvinne. En konkursbegjæring vil gjøre at utstyrsparken -går til advokatsalærer i behandling av boet og kreditorene vil ikke -kunne få dekket sine krav. Det mener vi ikke bare er urett ovenfor -långiverne, men det er urett mot alle de som har bidratt med å bygge -opp frivillighetens eneste sendearkiv og ikke minst alle de som i dag -jobber frivillig med å videreutvikle TV-systemet.</p> - -<p>Håper dere i likhet med styret ser verdien i videre drift og kan melde -tilbake innen årsmøtet (Kontaktinformasjon til styret og frivillige -utviklere er i kopifeltet).</p> - -<p>Vennligst fyll ut det blå feltet i regnearket under med det dere tror -er mulig å få inn. Det dere skriver her er ikke bindende, men gir -styret en indikasjon på om videre drift er mulig. Det blir tatt -stilling til av generalforsamlingen medio mars. Setter derfor pris på -om alle kan bidra med forslag til støtte eller antatte verdier fra -søknad/spons innen det.</p> - -<p>Forhåpentligvis når vi også ønsket budsjett på 1 mill. pr år. Med det -kan vi nedbetale gjelden raskere og sørge for en bedre -tilgjengelighet, samt raskere utvikling:</p> - -<p><a href="https://docs.google.com/spreadsheet/ccc?key=0AouVL_e9_H1QdDgyX01kbElvcWI0UjFQbVNGbFIyUmc&usp=sharing#gid=0">https://docs.google.com/spreadsheet/ccc?key=0AouVL_e9_H1QdDgyX01kbElvcWI0UjFQbVNGbFIyUmc&usp=sharing#gid=0</a></p> - -<p>Med vennlig hilsen -<br>Styret i Frikanalen</p> -</blockquote></p> - -<p>Jeg håper noen av mine lesere med dette ser verdien av Frikanalen -og melder seg inn for å sende sine videoer ut på TV til RiksTV og -Altibox-seerne. Det haster. Årsmøtet i foreningen Frikanalen skal -straks avholdes, og innen den tid må en redningsplan være på plass. -NUUG bidrar allerede litt ved å organisere utviklersamlinger og -finansiere litt mat og drikke til de frivillige som stiller opp på -dugnadsbasis for å utvikle den tekniske løsningen. Det er ikke nok -til å redde kanalen, men gir et lite steg i riktig retning.</p> - -<p><strong>Update 2013-03-13 13:00</strong>: Epostlistelenkene -fungerer ikke lenger, da epostarkivet nå ikke lenger er tilgjengelig -for ikke-abonnenter. Korrigerte teksten fra styret litt etter -oppfordring fra Frikanalen-styret.</p> + Oslo community mesh network - with NUUG and Hackeriet at Hausmania + http://people.skolelinux.org/pere/blog/Oslo_community_mesh_network___with_NUUG_and_Hackeriet_at_Hausmania.html + http://people.skolelinux.org/pere/blog/Oslo_community_mesh_network___with_NUUG_and_Hackeriet_at_Hausmania.html + Fri, 11 Oct 2013 14:10:00 +0200 + <p>Wireless mesh networks are self organising and self healing +networks that can be used to connect computers across small and large +areas, depending on the radio technology used. Normal wifi equipment +can be used to create home made radio networks, and there are several +successful examples like +<a href="http://www.freifunk.net/">Freifunk</a> and +<a href="http://www.awmn.net/">Athens Wireless Metropolitan Network</a> +(see +<a href="http://en.wikipedia.org/wiki/List_of_wireless_community_networks_by_region#Greece">wikipedia +for a large list</a>) around the globe. To give you an idea how it +work, check out the nice overview of the Kiel Freifunk community which +can be seen from their +<a href="http://freifunk.in-kiel.de/ffmap/nodes.html">dynamically +updated node graph and map</a>, where one can see how the mesh nodes +automatically handle routing and recover from nodes disappearing. +There is also a small community mesh network group in Oslo, Norway, +and that is the main topic of this blog post.</p> + +<p>I've wanted to check out mesh networks for a while now, and hoped +to do it as part of my involvement with the <a +href="http://www.nuug.no/">NUUG member organisation</a> community, and +my recent involvement in +<a href="https://wiki.debian.org/FreedomBox">the Freedombox project</a> +finally lead me to give mesh networks some priority, as I suspect a +Freedombox should use mesh networks to connect neighbours and family +when possible, given that most communication between people are +between those nearby (as shown for example by research on Facebook +communication patterns). It also allow people to communicate without +any central hub to tap into for those that want to listen in on the +private communication of citizens, which have become more and more +important over the years.</p> + +<p>So far I have only been able to find one group of people in Oslo +working on community mesh networks, over at the hack space +<a href="http://hackeriet.no/">Hackeriet</a> at Husmania. They seem to +have started with some Freifunk based effort using OLSR, called +<a href="http://oslo.freifunk.net/index.php?title=Main_Page">the Oslo +Freifunk project</a>, but that effort is now dead and the people +behind it have moved on to a batman-adv based system called +<a href="http://meshfx.org/trac">meshfx</a>. Unfortunately the wiki +site for the Oslo Freifunk project is no longer possible to update to +reflect this fact, so the old project page can't be updated to point to +the new project. A while back, the people at Hackeriet invited people +from the Freifunk community to Oslo to talk about mesh networks. I +came across this video where Hans Jørgen Lysglimt interview the +speakers about this talk (from +<a href="https://www.youtube.com/watch?v=N2Kd7CLkhSY">youtube</a>):</p> + +<p><iframe width="420" height="315" src="https://www.youtube.com/embed/N2Kd7CLkhSY" frameborder="0" allowfullscreen></iframe></p> + +<p>I mentioned OLSR and batman-adv, which are mesh routing protocols. +There are heaps of different protocols, and I am still struggling to +figure out which one would be "best" for some definitions of best, but +given that the community mesh group in Oslo is so small, I believe it +is best to hook up with the existing one instead of trying to create a +completely different setup, and thus I have decided to focus on +batman-adv for now. It sure help me to know that the very cool +<a href="http://www.servalproject.org/">Serval project in Australia</a> +is using batman-adv as their meshing technology when it create a self +organizing and self healing telephony system for disaster areas and +less industrialized communities. Check out this cool video presenting +that project (from +<a href="https://www.youtube.com/watch?v=30qNfzJCQOA">youtube</a>):</p> + +<p><iframe width="560" height="315" src="https://www.youtube.com/embed/30qNfzJCQOA" frameborder="0" allowfullscreen></iframe></p> + +<p>According to the wikipedia page on +<a href="http://en.wikipedia.org/wiki/Wireless_mesh_network">Wireless +mesh network</a> there are around 70 competing schemes for routing +packets across mesh networks, and OLSR, B.A.T.M.A.N. and +B.A.T.M.A.N. advanced are protocols used by several free software +based community mesh networks.</p> + +<p>The batman-adv protocol is a bit special, as it provide layer 2 +(as in ethernet ) routing, allowing ipv4 and ipv6 to work on the same +network. One way to think about it is that it provide a mesh based +vlan you can bridge to or handle like any other vlan connected to your +computer. The required drivers are already in the Linux kernel at +least since Debian Wheezy, and it is fairly easy to set up. A +<a href="http://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide">good +introduction</a> is available from the Open Mesh project. These are +the key settings needed to join the Oslo meshfx network:</p> + +<p><table> +<tr><th>Setting</th><th>Value</th></tr> +<tr><td>Protocol / kernel module</td><td>batman-adv</td></tr> +<tr><td>ESSID</td><td>meshfx@hackeriet</td></tr> +<td>Channel / Frequency</td><td>11 / 2462</td></tr> +<td>Cell ID</td><td>02:BA:00:00:00:01</td> +</table></p> + +<p>The reason for setting ad-hoc wifi Cell ID is to work around bugs +in firmware used in wifi card and wifi drivers. (See a nice post from +VillageTelco about +"<a href="http://tiebing.blogspot.no/2009/12/ad-hoc-cell-splitting-re-post-original.html">Information +about cell-id splitting, stuck beacons, and failed IBSS merges!</a> +for details.) When these settings are activated and you have some +other mesh node nearby, your computer will be connected to the mesh +network and can communicate with any mesh node that is connected to +any of the nodes in your network of nodes. :)</p> + +<p>My initial plan was to reuse my old Linksys WRT54GL as a mesh node, +but that seem to be very hard, as I have not been able to locate a +firmware supporting batman-adv. If anyone know how to use that old +wifi access point with batman-adv these days, please let me know.</p> + +<p>If you find this project interesting and want to join, please join +us on IRC, either channel +<a href="irc://irc.freenode.net/#oslohackerspace">#oslohackerspace</a> +or <a href="irc://irc.freenode.net/#nuug">#nuug</a> on +irc.freenode.net.</p> + +<p>While investigating mesh networks in Oslo, I came across an old +research paper from the university of Stavanger and Telenor Research +and Innovation called +<a href="http://folk.uio.no/paalee/publications/netrel-egeland-iswcs-2008.pdf">The +reliability of wireless backhaul mesh networks</a> and elsewhere +learned that Telenor have been experimenting with mesh networks at +Grünerløkka in Oslo. So mesh networks are also interesting for +commercial companies, even though Telenor discovered that it was hard +to figure out a good business plan for mesh networking and as far as I +know have closed down the experiment. Perhaps Telenor or others would +be interested in a cooperation?</p> + +<p><strong>Update 2013-10-12</strong>: I was just +<a href="http://lists.alioth.debian.org/pipermail/freedombox-discuss/2013-October/005900.html">told +by the Serval project developers</a> that they no longer use +batman-adv (but are compatible with it), but their own crypto based +mesh system.</p> - Osloskolen bryter loven når de sender politihunder inn i klasserom med elever - http://people.skolelinux.org/pere/blog/Osloskolen_bryter_loven_n_r_de_sender_politihunder_inn_i_klasserom_med_elever.html - http://people.skolelinux.org/pere/blog/Osloskolen_bryter_loven_n_r_de_sender_politihunder_inn_i_klasserom_med_elever.html - Sun, 10 Mar 2013 21:10:00 +0100 - <p>Om noen år skal mine barn antagelig begynne på skolen i Oslo. Der -skal de blant annet lære seg å verdsette og håndheve sine egne grenser -og beskytte sin personlige integritet og privatsfære. Det blir ikke -enkelt når ledelsen i Osloskolen med vitende og vilje legger opp til å -krenke elevenes privatsfære ved å la politiet ransake elevene med -narkohund i klasserommet. Jon Wessel-Aas har publisert noen -interessante kommentarer om hvorfor dette er ulovlig. - -<ul> - - <li><a href="http://www.uhuru.biz/?p=1293">Bruk av narkohund i - klasserom – fra vondt til verre</a> (2013-03-09)</li> - - <li><a href="http://www.uhuru.biz/?p=1018">Ulovlig og - menneskerettsstridig bruk av narkohund i klasserom</a> - (2012-03-12)</li> - -</ul> - -<p>Jeg er veldig glad for at han bidrar med argumenter og forklaringer -vi foreldre kan ta med oss når vi skal protestere på og få en slutt på -denne forkastelige praksisen. Narkotikaproblemet må adresseres på -andre måter som ikke krenker barn og ungdoms integritet. Jeg ønsker -ikke at mine barn skal læres opp til å akseptere radering av -privatlivets fred, men heller at de skal læres opp til å sloss imot -den innføringen av stadig mer totalitær overvåkning som har pågått -over mange år i Norge. </p> + Skolelinux / Debian Edu 7.1 install and overview video from Marcelo Salvador + http://people.skolelinux.org/pere/blog/Skolelinux___Debian_Edu_7_1_install_and_overview_video_from_Marcelo_Salvador.html + http://people.skolelinux.org/pere/blog/Skolelinux___Debian_Edu_7_1_install_and_overview_video_from_Marcelo_Salvador.html + Tue, 8 Oct 2013 17:10:00 +0200 + <p>The other day I was pleased and surprised to discover that Marcelo +Salvador had published a +<a href="https://www.youtube.com/watch?v=w-GgpdqgLFc">video on +Youtube</a> showing how to install the standalone Debian Edu / +Skolelinux profile. This is the profile intended for use at home or +on laptops that should not be integrated into the provided network +services (no central home directory, no Kerberos / LDAP directory etc, +in other word a single user machine). The result is 11 minutes long, +and show some user applications (seem to be rather randomly picked). +Missed a few of my favorites like celestia, planets and chromium +showing the <a href="http://www.zygotebody.com/">Zygote Body 3D model +of the human body</a>, but I guess he did not know about those or find +other programs more interesting. :) And the video do not show the +advantages I believe is one of the most valuable featuers in Debian +Edu, its central school server making it possible to run hundreds of +computers without hard drives by installing one central +<a href="http://www.ltsp.org/">LTSP server</a>.</p> + +<p>Anyway, check out the video, embedded below and linked to above:</p> + +<iframe width="420" height="315" src="http://www.youtube.com/embed/w-GgpdqgLFc" frameborder="0" allowfullscreen></iframe> + +<p>Are there other nice videos demonstrating Skolelinux? Please let +me know. :)</p> - First Skolelinux / Debian Edu Squeeze update released - http://people.skolelinux.org/pere/blog/First_Skolelinux___Debian_Edu_Squeeze_update_released.html - http://people.skolelinux.org/pere/blog/First_Skolelinux___Debian_Edu_Squeeze_update_released.html - Fri, 8 Mar 2013 09:30:00 +0100 - <p>Last Sunday, 2013-03-03,, Holger Levsen announced the first update -of <a href="http://www.skolelinux.org/">Skolelinux / Debian Edu</a> -based on Debian Squeeze. This is the first update since -<a href="http://lists.debian.org/debian-edu-announce/2012/03/msg00001.html">the -initial release 2012-03-11</a>. This is the -<a href="http://lists.debian.org/debian-edu-announce/2013/03/msg00000.html">release -announcement email from Holger</a>:</p> - -<blockquote><p>Hi,</p> - -<p>it's my pleasure to announce the immediate availability of Debian -Edu 6.0.7+r1 ("Debian Edu Squeeze").</p> - -<p>Debian Edu 6.0.7+r1 is an incremental update to Debian Edu -6.0.4+r0, containing all the changes between Debian 6.0.4 and 6.0.7 as -well Debian Edu specific bugfixes and enhancements. See below (in this -mail) for the full list of (edu) changes. Please see -<a href="http://www.debian.org/News/2012/20120311">http://www.debian.org/News/2012/20120311</a> -for more information on "Debian Edu Squeeze".</p> - -<p>Images are available for download at -<a href="http://ftp.skolelinux.org/skolelinux-cd/">http://ftp.skolelinux.org/skolelinux-cd/</a></p> - -<p>md5sums: -<br>1fe79eb4f0f9ae1c58fc318e26cc1e2e debian-edu-6.0.7+r1-CD.iso -<br>a6ddd924a8bd9a1b5ca122e8fe1c34ec debian-edu-6.0.7+r1-DVD.iso -<br>ac6c72cd7925ccec51bfbf58e2a7c69c debian-edu-6.0.7+r1-source-DVD.iso</p> - -<p>sha1sums: -<br>a4b58233b672a99c7df8dc24fb6de3327654a5c3 debian-edu-6.0.7+r1-CD.iso -<br>9b524915e0ff2aa793f13d93123e5bd2bab2dbaa debian-edu-6.0.7+r1-DVD.iso -<br>43997614893fc5e9e59ad6ce066b05d07fd836fa debian-edu-6.0.7+r1-source-DVD.iso</p> - -<p>These images are suitable for amd64+i386.</p> - -<p>Changes for Debian Edu 6.0.7+r1 Codename "Squeeze", released -2013-03-03:</p> - -<ul> - <li>sitesummary was updated from 0.1.3 to 0.1.8 - <ul> - <li>Make Nagios configuration more robust and efficient</li> - <li>Comply with 3.X kernel</li> - </ul></li> - <li>debian-edu-doc from 1.4~20120310~6.0.4+r0 to 1.4~20130228~6.0.7+r1 - <ul> - <li>Minor updates from the wiki</li> - <li>Danish translation now complete</li> - </ul></li> - <li>debian-edu-config from 1.453 to 1.455 - <ul> - <li>Fix /etc/hosts for LTSP diskless workstations. Closes: #699880</li> - <li>Make ltsp_local_mount script work for multiple devices.</li> - <li>Correct Kerberos user policy: don't expire password after 2 days. - Closes: #664596</li> - <li>Handle '#' characters in the root or first users password. - Closes: #664976</li> - <li>Fixes for gosa-sync: - <ul> - <li>Don't fail if password contains "</li> - <li>Don't disclose new password string in syslog</li> - </ul></li> - <li>Fixes for gosa-create: - <ul> - <li>Invalidate libnss cache before applying changes</li> - <li>Multiple failures during mass user import into GOsa²</li> - <li>gosa-netgroups plugin: don't erase entries of attribute type - "memberNisNetgroup". Closes: #687256</li> - <li>First user now uses the same Kerberos policy as all other users</li> - </ul></li> - <li>Add Danish web page</li> - </ul> - <li>debian-edu-install from 1.528 to 1.530 - <ul> - <li>Improve preseeding support and documentation</li> - </ul></li> -</ul> - -<p>End-user documentation in English is available at -<a href="http://wiki.debian.org/DebianEdu/Documentation/Squeeze/">http://wiki.debian.org/DebianEdu/Documentation/Squeeze/</a> -- translations to French, Italian, Danish and German are available in -the debian-edu-doc package. (Other languages could use your help!)</p> - -<p>If you want to contribute to Debian Edu, please join our -mailinglist -<a href="http://lists.debian.org/debian-edu/">debian-edu@lists.debian.org</a>! -</p></blockquote> - -<p>I am very happy to see the fruits of a year of hard work. :)</p> + Finally, Debian Edu Wheezy is released today! + http://people.skolelinux.org/pere/blog/Finally__Debian_Edu_Wheezy_is_released_today_.html + http://people.skolelinux.org/pere/blog/Finally__Debian_Edu_Wheezy_is_released_today_.html + Sun, 29 Sep 2013 10:20:00 +0200 + <p>A few hours ago, the announcement for the first stable release of +Debian Edu Wheezy went out from the Debian publicity team. The +complete announcement text can be found at +<a href="http://www.debian.org/News/2013/20130928">the Debian News +section</a>, translated to several languages. Please check it out.</p> + +<p>There is one minor known problem that we will fix very soon. One +can not install a amd64 Thin Client Server using PXE, as the /var/ +partition is too small. A workaround is to extend the partition (use +lvresize + resize2fs in tty 2 while installing).</p>