X-Git-Url: http://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/14c30fcadbf6b05cee38bda48e476b5393e1e2cf..fcf9995ad796521bbb5e09ff1cd24432b68388f4:/blog/archive/2014/03/index.html diff --git a/blog/archive/2014/03/index.html b/blog/archive/2014/03/index.html index 52506984b7..7821b7ba9b 100644 --- a/blog/archive/2014/03/index.html +++ b/blog/archive/2014/03/index.html @@ -21,6 +21,306 @@

Entries from March 2014.

+
+
+ Video DVD reader library / python-dvdvideo - nice free software +
+
+ 21st March 2014 +
+
+

Keeping your DVD collection safe from scratches and curious +children fingers while still having it available when you want to see a +movie is not straight forward. My preferred method at the moment is +to store a full copy of the ISO on a hard drive, and use VLC, Popcorn +Hour or other useful players to view the resulting file. This way the +subtitles and bonus material are still available and using the ISO is +just like inserting the original DVD record in the DVD player.

+ +

Earlier I used dd for taking security copies, but it do not handle +DVDs giving read errors (which are quite a few of them). I've also +tried using +dvdbackup +and genisoimage, but these days I use the marvellous python library +and program +python-dvdvideo +written by Bastian Blank. It is +in Debian +already and the binary package name is python3-dvdvideo. Instead +of trying to read every block from the DVD, it parses the file +structure and figure out which block on the DVD is actually in used, +and only read those blocks from the DVD. This work surprisingly well, +and I have been able to almost backup my entire DVD collection using +this method.

So far, python-dvdvideo have failed on between 10 and +20 DVDs, which is a small fraction of my collection. The most common +problem is +DVDs +using UTF-16 instead of UTF-8 characters, which according to +Bastian is against the DVD specification (and seem to cause some +players to fail too). A rarer problem is what seem to be inconsistent +DVD structures, as the python library +claim +there is a overlap between objects. An equally rare problem claim +some +value is out of range. No idea what is going on there. I wish I +knew enough about the DVD format to fix these, to ensure my movie +collection will stay with me in the future.

+ +

So, if you need to keep your DVDs safe, back them up using +python-dvdvideo. :)

+ +
+
+ + + Tags: english, multimedia, opphavsrett, video. + + +
+
+
+ +
+
+ Norsk utgave av Alaveteli / WhatDoTheyKnow på trappene +
+
+ 16th March 2014 +
+
+

Det offentlige Norge har mye kunnskap og informasjon. Men hvordan +kan en få tilgang til den på en enkel måte? Takket være et lite +knippe lover og tilhørende forskrifter, blant annet +offentlighetsloven, +miljøinformasjonsloven +og +forvaltningsloven +har en rett til å spørre det offentlige og få svar. Men det finnes +intet offentlig arkiv over hva andre har spurt om, og dermed risikerer en +å måtte forstyrre myndighetene gang på gang for å få tak i samme +informasjonen på nytt. Britiske +mySociety har laget tjenesten +WhatDoTheyKnow som gjør +noe med dette. I Storbritannia blir WhatdoTheyKnow brukt i +ca +15% av alle innsynsforespørsler mot sentraladministrasjonen. +Prosjektet heter Alaveteli, og +er takk i bruk en rekke steder etter at løsningen ble generalisert og +gjort mulig å oversette. Den hjelper borgerne med å be om innsyn, +rådgir ved purringer og klager og lar alle se hvilke henvendelser som +er sendt til det offentlige og hvilke svar som er kommet inn, i et +søkpart arkiv. Her i Norge holder vi i foreningen NUUG på å få opp en +norsk utgave av Alaveteli, og her trenger vi din hjelp med +oversettelsen.

+ +

Så langt er 76 % av Alaveteli oversatt til norsk bokmål, men vi +skulle gjerne vært oppe i 100 % før lansering. Oversettelsen gjøres +på Transifex, +der enhver som registrerer seg og ber om tilgang til +bokmålsoversettelsen får bidra. Vi har satt opp en test av tjenesten +(som ikke sender epost til det offentlige, kun til oss som holder på å +sette opp tjenesten) på maskinen +alaveteli-dev.nuug.no, der +en kan se hvordan de oversatte meldingen blir seende ut på nettsiden. +Når tjenesten lanseres vil den hete +Mimes brønn, etter +visdomskilden som Odin måtte gi øyet sitt for å få drikke i. Den +nettsiden er er ennå ikke klar til bruk.

+ +

Hvis noen vil oversette til nynorsk også, så skal vi finne ut +hvordan vi lager en flerspråklig tjeneste. Men i første omgang er +fokus på bokmålsoversettelsen, der vi selv har nok peiling til å ha +fått oversatt 76%, men trenger hjelp for å komme helt i mål. :)

+ +
+
+ + + Tags: norsk, nuug, offentlig innsyn. + + +
+
+
+ +
+
+ Freedombox on Dreamplug, Raspberry Pi and virtual x86 machine +
+
+ 14th March 2014 +
+
+

The Freedombox +project is working on providing the software and hardware for +making it easy for non-technical people to host their data and +communication at home, and being able to communicate with their +friends and family encrypted and away from prying eyes. It has been +going on for a while, and is slowly progressing towards a new test +release (0.2).

+ +

And what day could be better than the Pi day to announce that the +new version will provide "hard drive" / SD card / USB stick images for +Dreamplug, Raspberry Pi and VirtualBox (or any other virtualization +system), and can also be installed using a Debian installer preseed +file. The Debian based Freedombox is now based on Debian Jessie, +where most of the needed packages used are already present. Only one, +the freedombox-setup package, is missing. To try to build your own +boot image to test the current status, fetch the freedom-maker scripts +and build using +vmdebootstrap +with a user with sudo access to become root: + +

+git clone http://anonscm.debian.org/git/freedombox/freedom-maker.git \
+  freedom-maker
+sudo apt-get install git vmdebootstrap mercurial python-docutils \
+  mktorrent extlinux virtualbox qemu-user-static binfmt-support \
+  u-boot-tools
+make -C freedom-maker dreamplug-image raspberry-image virtualbox-image
+
+ +

Root access is needed to run debootstrap and mount loopback +devices. See the README for more details on the build. If you do not +want all three images, trim the make line. But note that thanks to a race condition in +vmdebootstrap, the build might fail without the patch to the +kpartx call.

+ +

If you instead want to install using a Debian CD and the preseed +method, boot a Debian Wheezy ISO and use this boot argument to load +the preseed values:

+ +
+url=http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
+
+ +

But note that due to a +recently introduced bug in apt in Jessie, the installer will +currently hang while setting up APT sources. Killing the +'apt-cdrom ident' process when it hang a few times during the +installation will get the installation going. This affect all +installations in Jessie, and I expect it will be fixed soon.

+ +Give it a go and let us know how it goes on the mailing list, and help +us get the new release published. :) Please join us on +IRC (#freedombox on +irc.debian.org) and +the +mailing list if you want to help make this vision come true.

+ +
+
+ + + Tags: debian, english, freedombox, sikkerhet, surveillance, web. + + +
+
+
+ +
+
+ How to add extra storage servers in Debian Edu / Skolelinux +
+
+ 12th March 2014 +
+
+

On larger sites, it is useful to use a dedicated storage server for +storing user home directories and data. The design for handling this +in Debian Edu / Skolelinux, is +to update the automount rules in LDAP and let the automount daemon on +the clients take care of the rest. I was reminded about the need to +document this better when one of the customers of +Skolelinux Drift AS, where I am +on the board of directors, asked about how to do this. The steps to +get this working are the following:

+ +

    + +
  1. Add new storage server in DNS. I use nas-server.intern as the +example host here.
  2. + +
  3. Add automoun LDAP information about this server in LDAP, to allow +all clients to automatically mount it on reqeust.
  4. + +
  5. Add the relevant entries in tjener.intern:/etc/fstab, because +tjener.intern do not use automount to avoid mounting loops.
  6. + +

+ +

DNS entries are added in GOsa², and not described here. Follow the +instructions +in the manual (Machine Management with GOsa² in section Getting +started).

+ +

Ensure that the NFS export points on the server are exported to the +relevant subnets or machines:

+ +

+root@tjener:~# showmount -e nas-server
+Export list for nas-server:
+/storage         10.0.0.0/8
+root@tjener:~#
+

+ +

Here everything on the backbone network is granted access to the +/storage export. With NFSv3 it is slightly better to limit it to +netgroup membership or single IP addresses to have some limits on the +NFS access.

+ +

The next step is to update LDAP. This can not be done using GOsa², +because it lack a module for automount. Instead, use ldapvi and add +the required LDAP objects using an editor.

+ +

+ldapvi --ldap-conf -ZD '(cn=admin)' -b ou=automount,dc=skole,dc=skolelinux,dc=no
+

+ +

When the editor show up, add the following LDAP objects at the +bottom of the document. The "/&" part in the last LDAP object is a +wild card matching everything the nas-server exports, removing the +need to list individual mount points in LDAP.

+ +

+add cn=nas-server,ou=auto.skole,ou=automount,dc=skole,dc=skolelinux,dc=no
+objectClass: automount
+cn: nas-server
+automountInformation: -fstype=autofs --timeout=60 ldap:ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
+
+add ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
+objectClass: top
+objectClass: automountMap
+ou: auto.nas-server
+
+add cn=/,ou=auto.nas-server,ou=automount,dc=skole,dc=skolelinux,dc=no
+objectClass: automount
+cn: /
+automountInformation: -fstype=nfs,tcp,rsize=32768,wsize=32768,rw,intr,hard,nodev,nosuid,noatime nas-server.intern:/&
+

+ +

The last step to remember is to mount the relevant mount points in +tjener.intern by adding them to /etc/fstab, creating the mount +directories using mkdir and running "mount -a" to mount them.

+ +

When this is done, your users should be able to access the files on +the storage server directly by just visiting the +/tjener/nas-server/storage/ directory using any application on any +workstation, LTSP client or LTSP server.

+ +
+
+ + + Tags: debian edu, english, ldap. + + +
+
+
+
Hvordan bør RFC 822-formattert epost lagres i en NOARK5-database? @@ -140,7 +440,7 @@ meg en epost hvis du har innspill.

  • February (3)
  • -
  • March (1)
  • +
  • March (5)
  • @@ -321,9 +621,9 @@ meg en epost hvis du har innspill.

  • chrpath (2)
  • -
  • debian (94)
  • +
  • debian (95)
  • -
  • debian edu (144)
  • +
  • debian edu (145)
  • digistan (10)
  • @@ -331,7 +631,7 @@ meg en epost hvis du har innspill.

  • drivstoffpriser (4)
  • -
  • english (236)
  • +
  • english (239)
  • fiksgatami (21)
  • @@ -339,7 +639,7 @@ meg en epost hvis du har innspill.

  • freeculture (12)
  • -
  • freedombox (5)
  • +
  • freedombox (6)
  • frikanalen (11)
  • @@ -349,7 +649,7 @@ meg en epost hvis du har innspill.

  • kart (18)
  • -
  • ldap (8)
  • +
  • ldap (9)
  • lenker (7)
  • @@ -357,17 +657,17 @@ meg en epost hvis du har innspill.

  • mesh network (7)
  • -
  • multimedia (25)
  • +
  • multimedia (26)
  • -
  • norsk (241)
  • +
  • norsk (242)
  • -
  • nuug (161)
  • +
  • nuug (162)
  • -
  • offentlig innsyn (10)
  • +
  • offentlig innsyn (11)
  • open311 (2)
  • -
  • opphavsrett (45)
  • +
  • opphavsrett (46)
  • personvern (69)
  • @@ -385,7 +685,7 @@ meg en epost hvis du har innspill.

  • scraperwiki (2)
  • -
  • sikkerhet (34)
  • +
  • sikkerhet (35)
  • sitesummary (4)
  • @@ -397,17 +697,17 @@ meg en epost hvis du har innspill.

  • stortinget (9)
  • -
  • surveillance (21)
  • +
  • surveillance (22)
  • sysadmin (1)
  • valg (8)
  • -
  • video (39)
  • +
  • video (40)
  • vitenskap (4)
  • -
  • web (28)
  • +
  • web (29)