1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <rss version='
2.0' xmlns:lj='http://www.livejournal.org/rss/lj/
1.0/'
>
4 <title>Petter Reinholdtsen - Entries from April
2014</title>
5 <description>Entries from April
2014</description>
6 <link>http://www.hungry.com/~pere/blog/
</link>
10 <title>Half the Coverity issues in Gnash fixed in the next release
</title>
11 <link>http://www.hungry.com/~pere/blog/Half_the_Coverity_issues_in_Gnash_fixed_in_the_next_release.html
</link>
12 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Half_the_Coverity_issues_in_Gnash_fixed_in_the_next_release.html
</guid>
13 <pubDate>Tue,
29 Apr
2014 14:
20:
00 +
0200</pubDate>
14 <description><p
>I
've been following
<a href=
"http://www.getgnash.org/
">the Gnash
15 project
</a
> for quite a while now. It is a free software
16 implementation of Adobe Flash, both a standalone player and a browser
17 plugin. Gnash implement support for the AVM1 format (and not the
18 newer AVM2 format - see
19 <a href=
"http://lightspark.github.io/
">Lightspark
</a
> for that one),
20 allowing several flash based sites to work. Thanks to the friendly
21 developers at Youtube, it also work with Youtube videos, because the
22 Javascript code at Youtube detect Gnash and serve a AVM1 player to
23 those users. :) Would be great if someone found time to implement AVM2
24 support, but it has not happened yet. If you install both Lightspark
25 and Gnash, Lightspark will invoke Gnash if it find a AVM1 flash file,
26 so you can get both handled as free software. Unfortunately,
27 Lightspark so far only implement a small subset of AVM2, and many
28 sites do not work yet.
</p
>
30 <p
>A few months ago, I started looking at
31 <a href=
"http://scan.coverity.com/
">Coverity
</a
>, the static source
32 checker used to find heaps and heaps of bugs in free software (thanks
33 to the donation of a scanning service to free software projects by the
34 company developing this non-free code checker), and Gnash was one of
35 the projects I decided to check out. Coverity is able to find lock
36 errors, memory errors, dead code and more. A few days ago they even
37 extended it to also be able to find the heartbleed bug in OpenSSL.
38 There are heaps of checks being done on the instrumented code, and the
39 amount of bogus warnings is quite low compared to the other static
40 code checkers I have tested over the years.
</p
>
42 <p
>Since a few weeks ago, I
've been working with the other Gnash
43 developers squashing bugs discovered by Coverity. I was quite happy
44 today when I checked the current status and saw that of the
777 issues
45 detected so far,
374 are marked as fixed. This make me confident that
46 the next Gnash release will be more stable and more dependable than
47 the previous one. Most of the reported issues were and are in the
48 test suite, but it also found a few in the rest of the code.
</p
>
50 <p
>If you want to help out, you find us on
51 <a href=
"https://lists.gnu.org/mailman/listinfo/gnash-dev
">the
52 gnash-dev mailing list
</a
> and on
53 <a href=
"irc://irc.freenode.net/#gnash
">the #gnash channel on
54 irc.freenode.net IRC server
</a
>.
</p
>
59 <title>Install hardware dependent packages using tasksel (Isenkram
0.7)
</title>
60 <link>http://www.hungry.com/~pere/blog/Install_hardware_dependent_packages_using_tasksel__Isenkram_0_7_.html
</link>
61 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Install_hardware_dependent_packages_using_tasksel__Isenkram_0_7_.html
</guid>
62 <pubDate>Wed,
23 Apr
2014 14:
50:
00 +
0200</pubDate>
63 <description><p
>It would be nice if it was easier in Debian to get all the hardware
64 related packages relevant for the computer installed automatically.
65 So I implemented one, using
66 <a href=
"http://packages.qa.debian.org/isenkram
">my Isenkram
67 package
</a
>. To use it, install the tasksel and isenkram packages and
68 run tasksel as user root. You should be presented with a new option,
69 "Hardware specific packages (autodetected by isenkram)
". When you
70 select it, tasksel will install the packages isenkram claim is fit for
71 the current hardware, hot pluggable or not.
<p
>
73 <p
>The implementation is in two files, one is the tasksel menu entry
74 description, and the other is the script used to extract the list of
75 packages to install. The first part is in
76 <tt
>/usr/share/tasksel/descs/isenkram.desc
</tt
> and look like
79 <p
><blockquote
><pre
>
82 Description: Hardware specific packages (autodetected by isenkram)
83 Based on the detected hardware various hardware specific packages are
85 Test-new-install: mark show
87 Packages: for-current-hardware
88 </pre
></blockquote
></p
>
90 <p
>The second part is in
91 <tt
>/usr/lib/tasksel/packages/for-current-hardware
</tt
> and look like
94 <p
><blockquote
><pre
>
99 isenkram-autoinstall-firmware -l
101 </pre
></blockquote
></p
>
103 <p
>All in all, a very short and simple implementation making it
104 trivial to install the hardware dependent package we all may want to
105 have installed on our machines. I
've not been able to find a way to
106 get tasksel to tell you exactly which packages it plan to install
107 before doing the installation. So if you are curious or careful,
108 check the output from the isenkram-* command line tools first.
</p
>
110 <p
>The information about which packages are handling which hardware is
111 fetched either from the isenkram package itself in
112 /usr/share/isenkram/, from git.debian.org or from the APT package
113 database (using the Modaliases header). The APT package database
114 parsing have caused a nasty resource leak in the isenkram daemon (bugs
115 <a href=
"http://bugs.debian.org/
719837">#
719837</a
> and
116 <a href=
"http://bugs.debian.org/
730704">#
730704</a
>). The cause is in
117 the python-apt code (bug
118 <a href=
"http://bugs.debian.org/
745487">#
745487</a
>), but using a
119 workaround I was able to get rid of the file descriptor leak and
120 reduce the memory leak from ~
30 MiB per hardware detection down to
121 around
2 MiB per hardware detection. It should make the desktop
122 daemon a lot more useful. The fix is in version
0.7 uploaded to
123 unstable today.
</p
>
125 <p
>I believe the current way of mapping hardware to packages in
126 Isenkram is is a good draft, but in the future I expect isenkram to
127 use the AppStream data source for this. A proposal for getting proper
128 AppStream support into Debian is floating around as
129 <a href=
"https://wiki.debian.org/DEP-
11">DEP-
11</a
>, and
130 <a href=
"https://wiki.debian.org/SummerOfCode2014/Projects#SummerOfCode2014.2FProjects
.2FAppStreamDEP11Implementation.AppStream
.2FDEP-
11_for_the_Debian_Archive
">GSoC
131 project
</a
> will take place this summer to improve the situation. I
132 look forward to seeing the result, and welcome patches for isenkram to
133 start using the information when it is ready.
</p
>
135 <p
>If you want your package to map to some specific hardware, either
136 add a
"Xb-Modaliases
" header to your control file like I did in
137 <a href=
"http://packages.qa.debian.org/pymissile
">the pymissile
138 package
</a
> or submit a bug report with the details to the isenkram
140 <a href=
"http://www.hungry.com/~pere/blog/tags/isenkram/
">all my
141 blog posts tagged isenkram
</a
> for details on the notation. I expect
142 the information will be migrated to AppStream eventually, but for the
143 moment I got no better place to store it.
</p
>
148 <title>FreedomBox milestone - all packages now in Debian Sid
</title>
149 <link>http://www.hungry.com/~pere/blog/FreedomBox_milestone___all_packages_now_in_Debian_Sid.html
</link>
150 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/FreedomBox_milestone___all_packages_now_in_Debian_Sid.html
</guid>
151 <pubDate>Tue,
15 Apr
2014 22:
10:
00 +
0200</pubDate>
152 <description><p
>The
<a href=
"https://wiki.debian.org/FreedomBox
">Freedombox
153 project
</a
> is working on providing the software and hardware to make
154 it easy for non-technical people to host their data and communication
155 at home, and being able to communicate with their friends and family
156 encrypted and away from prying eyes. It is still going strong, and
157 today a major mile stone was reached.
</p
>
159 <p
>Today, the last of the packages currently used by the project to
160 created the system images were accepted into Debian Unstable. It was
161 the freedombox-setup package, which is used to configure the images
162 during build and on the first boot. Now all one need to get going is
163 the build code from the freedom-maker git repository and packages from
164 Debian. And once the freedombox-setup package enter testing, we can
165 build everything directly from Debian. :)
</p
>
167 <p
>Some key packages used by Freedombox are
168 <a href=
"http://packages.qa.debian.org/freedombox-setup
">freedombox-setup
</a
>,
169 <a href=
"http://packages.qa.debian.org/plinth
">plinth
</a
>,
170 <a href=
"http://packages.qa.debian.org/pagekite
">pagekite
</a
>,
171 <a href=
"http://packages.qa.debian.org/tor
">tor
</a
>,
172 <a href=
"http://packages.qa.debian.org/privoxy
">privoxy
</a
>,
173 <a href=
"http://packages.qa.debian.org/owncloud
">owncloud
</a
> and
174 <a href=
"http://packages.qa.debian.org/dnsmasq
">dnsmasq
</a
>. There
175 are plans to integrate more packages into the setup. User
176 documentation is maintained on the Debian wiki. Please
177 <a href=
"https://wiki.debian.org/FreedomBox/Manual/Jessie
">check out
178 the manual
</a
> and help us improve it.
</p
>
180 <p
>To test for yourself and create boot images with the FreedomBox
181 setup, run this on a Debian machine using a user with sudo rights to
182 become root:
</p
>
185 sudo apt-get install git vmdebootstrap mercurial python-docutils \
186 mktorrent extlinux virtualbox qemu-user-static binfmt-support \
188 git clone http://anonscm.debian.org/git/freedombox/freedom-maker.git \
190 make -C freedom-maker dreamplug-image raspberry-image virtualbox-image
191 </pre
></p
>
193 <p
>Root access is needed to run debootstrap and mount loopback
194 devices. See the README in the freedom-maker git repo for more
195 details on the build. If you do not want all three images, trim the
196 make line. Note that the virtualbox-image target is not really
197 virtualbox specific. It create a x86 image usable in kvm, qemu,
198 vmware and any other x86 virtual machine environment. You might need
199 the version of vmdebootstrap in Jessie to get the build working, as it
200 include fixes for a race condition with kpartx.
</p
>
202 <p
>If you instead want to install using a Debian CD and the preseed
203 method, boot a Debian Wheezy ISO and use this boot argument to load
204 the preseed values:
</p
>
207 url=
<a href=
"http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
">http://www.reinholdtsen.name/freedombox/preseed-jessie.dat
</a
>
208 </pre
></p
>
210 <p
>I have not tested it myself the last few weeks, so I do not know if
211 it still work.
</p
>
213 <p
>If you wonder how to help, one task you could look at is using
214 systemd as the boot system. It will become the default for Linux in
215 Jessie, so we need to make sure it is usable on the Freedombox. I did
216 a simple test a few weeks ago, and noticed dnsmasq failed to start
217 during boot when using systemd. I suspect there are other problems
218 too. :) To detect problems, there is a test suite included, which can
219 be run from the plinth web interface.
</p
>
221 <p
>Give it a go and let us know how it goes on the mailing list, and help
222 us get the new release published. :) Please join us on
223 <a href=
"irc://irc.debian.org:
6667/%
23freedombox
">IRC (#freedombox on
224 irc.debian.org)
</a
> and
225 <a href=
"http://lists.alioth.debian.org/mailman/listinfo/freedombox-discuss
">the
226 mailing list
</a
> if you want to help make this vision come true.
</p
>
231 <title>Språkkoder for POSIX locale i Norge
</title>
232 <link>http://www.hungry.com/~pere/blog/Spr_kkoder_for_POSIX_locale_i_Norge.html
</link>
233 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/Spr_kkoder_for_POSIX_locale_i_Norge.html
</guid>
234 <pubDate>Fri,
11 Apr
2014 21:
30:
00 +
0200</pubDate>
235 <description><p
>For
12 år siden, skrev jeg et lite notat om
236 <a href=
"http://i18n.skolelinux.no/localekoder.txt
">bruk av språkkoder
237 i Norge
</a
>. Jeg ble nettopp minnet på dette da jeg fikk spørsmål om
238 notatet fortsatt var aktuelt, og tenkte det var greit å repetere hva
239 som fortsatt gjelder. Det jeg skrev da er fortsatt like aktuelt.
</p
>
241 <p
>Når en velger språk i programmer på unix, så velger en blant mange
242 språkkoder. For språk i Norge anbefales følgende språkkoder (anbefalt
243 locale i parantes):
</p
>
246 <dt
>nb (nb_NO)
</dt
><dd
>Bokmål i Norge
</dd
>
247 <dt
>nn (nn_NO)
</dt
><dd
>Nynorsk i Norge
</dd
>
248 <dt
>se (se_NO)
</dt
><dd
>Nordsamisk i Norge
</dd
>
249 </dl
></p
>
251 <p
>Alle programmer som bruker andre koder bør endres.
</p
>
253 <p
>Språkkoden bør brukes når .po-filer navngis og installeres. Dette
254 er ikke det samme som locale-koden. For Norsk Bokmål, så bør filene
255 være navngitt nb.po, mens locale (LANG) bør være nb_NO.
</p
>
257 <p
>Hvis vi ikke får standardisert de kodene i alle programmene med
258 norske oversettelser, så er det umulig å gi LANG-variablen ett innhold
259 som fungerer for alle programmer.
</p
>
261 <p
>Språkkodene er de offisielle kodene fra ISO
639, og bruken av dem i
262 forbindelse med POSIX localer er standardisert i RFC
3066 og ISO
263 15897. Denne anbefalingen er i tråd med de angitte standardene.
</p
>
265 <p
>Følgende koder er eller har vært i bruk som locale-verdier for
266 "norske
" språk. Disse bør unngås, og erstattes når de oppdages:
</p
>
268 <p
><table
>
269 <tr
><td
>norwegian
</td
><td
>-
> nb_NO
</td
></tr
>
270 <tr
><td
>bokmål
</td
><td
>-
> nb_NO
</td
></tr
>
271 <tr
><td
>bokmal
</td
><td
>-
> nb_NO
</td
></tr
>
272 <tr
><td
>nynorsk
</td
><td
>-
> nn_NO
</td
></tr
>
273 <tr
><td
>no
</td
><td
>-
> nb_NO
</td
></tr
>
274 <tr
><td
>no_NO
</td
><td
>-
> nb_NO
</td
></tr
>
275 <tr
><td
>no_NY
</td
><td
>-
> nn_NO
</td
></tr
>
276 <tr
><td
>sme_NO
</td
><td
>-
> se_NO
</td
></tr
>
277 </table
></p
>
279 <p
>Merk at når det gjelder de samiske språkene, at se_NO i praksis
280 henviser til nordsamisk i Norge, mens f.eks. smj_NO henviser til
281 lulesamisk. Dette notatet er dog ikke ment å gi råd rundt samiske
283 <a href=
"http://www.divvun.no/
">Divvun-prosjektet
</a
> en bedre
286 <p
><strong
>Referanser:
</strong
></p
>
290 <li
><a href=
"http://www.rfc-base.org/rfc-
3066.html
">RFC
3066 - Tags
291 for the Identification of Languages
</a
> (Erstatter RFC
1766)
</li
>
293 <li
><a href=
"http://www.loc.gov/standards/iso639-
2/langcodes.html
">ISO
294 639</a
> - Codes for the Representation of Names of Languages
</li
>
296 <li
><a href=
"http://std.dkuug.dk/jtc1/sc22/wg20/docs/n897-
14652w25.pdf
">ISO
297 DTR
14652</a
> - locale-standard Specification method for cultural
298 conventions
</li
>
300 <li
><a href=
"http://std.dkuug.dk/jtc1/sc22/wg20/docs/n610.pdf
">ISO
301 15897: Registration procedures for cultural elements (cultural
303 <a href=
"http://std.dkuug.dk/jtc1/sc22/wg20/docs/n849-
15897wd6.pdf
">(nytt
304 draft)
</a
></li
>
306 <li
><a href=
"http://std.dkuug.dk/jtc1/sc22/wg20/
">ISO/IEC
307 JTC1/SC22/WG20
</a
> - Gruppen for i18n-standardisering i ISO
</li
>
314 <title>S3QL, a locally mounted cloud file system - nice free software
</title>
315 <link>http://www.hungry.com/~pere/blog/S3QL__a_locally_mounted_cloud_file_system___nice_free_software.html
</link>
316 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/S3QL__a_locally_mounted_cloud_file_system___nice_free_software.html
</guid>
317 <pubDate>Wed,
9 Apr
2014 11:
30:
00 +
0200</pubDate>
318 <description><p
>For a while now, I have been looking for a sensible offsite backup
319 solution for use at home. My requirements are simple, it must be
320 cheap and locally encrypted (in other words, I keep the encryption
321 keys, the storage provider do not have access to my private files).
322 One idea me and my friends had many years ago, before the cloud
323 storage providers showed up, was to use Google mail as storage,
324 writing a Linux block device storing blocks as emails in the mail
325 service provided by Google, and thus get heaps of free space. On top
326 of this one can add encryption, RAID and volume management to have
327 lots of (fairly slow, I admit that) cheap and encrypted storage. But
328 I never found time to implement such system. But the last few weeks I
329 have looked at a system called
330 <a href=
"https://bitbucket.org/nikratio/s3ql/
">S3QL
</a
>, a locally
331 mounted network backed file system with the features I need.
</p
>
333 <p
>S3QL is a fuse file system with a local cache and cloud storage,
334 handling several different storage providers, any with Amazon S3,
335 Google Drive or OpenStack API. There are heaps of such storage
336 providers. S3QL can also use a local directory as storage, which
337 combined with sshfs allow for file storage on any ssh server. S3QL
338 include support for encryption, compression, de-duplication, snapshots
339 and immutable file systems, allowing me to mount the remote storage as
340 a local mount point, look at and use the files as if they were local,
341 while the content is stored in the cloud as well. This allow me to
342 have a backup that should survive fire. The file system can not be
343 shared between several machines at the same time, as only one can
344 mount it at the time, but any machine with the encryption key and
345 access to the storage service can mount it if it is unmounted.
</p
>
347 <p
>It is simple to use. I
'm using it on Debian Wheezy, where the
348 package is included already. So to get started, run
<tt
>apt-get
349 install s3ql
</tt
>. Next, pick a storage provider. I ended up picking
350 Greenqloud, after reading their nice recipe on
351 <a href=
"https://greenqloud.zendesk.com/entries/
44611757-How-To-Use-S3QL-to-mount-a-StorageQloud-bucket-on-Debian-Wheezy
">how
352 to use S3QL with their Amazon S3 service
</a
>, because I trust the laws
353 in Iceland more than those in USA when it come to keeping my personal
354 data safe and private, and thus would rather spend money on a company
355 in Iceland. Another nice recipe is available from the article
356 <a href=
"http://www.admin-magazine.com/HPC/Articles/HPC-Cloud-Storage
">S3QL
357 Filesystem for HPC Storage
</a
> by Jeff Layton in the HPC section of
358 Admin magazine. When the provider is picked, figure out how to get
359 the API key needed to connect to the storage API. With Greencloud,
360 the key did not show up until I had added payment details to my
363 <p
>Armed with the API access details, it is time to create the file
364 system. First, create a new bucket in the cloud. This bucket is the
365 file system storage area. I picked a bucket name reflecting the
366 machine that was going to store data there, but any name will do.
367 I
'll refer to it as
<tt
>bucket-name
</tt
> below. In addition, one need
368 the API login and password, and a locally created password. Store it
369 all in ~root/.s3ql/authinfo2 like this:
371 <p
><blockquote
><pre
>
373 storage-url: s3c://s.greenqloud.com:
443/bucket-name
374 backend-login: API-login
375 backend-password: API-password
376 fs-passphrase: local-password
377 </pre
></blockquote
></p
>
379 <p
>I create my local passphrase using
<tt
>pwget
50</tt
> or similar,
380 but any sensible way to create a fairly random password should do it.
381 Armed with these details, it is now time to run mkfs, entering the API
382 details and password to create it:
</p
>
384 <p
><blockquote
><pre
>
385 # mkdir -m
700 /var/lib/s3ql-cache
386 # mkfs.s3ql --cachedir /var/lib/s3ql-cache --authfile /root/.s3ql/authinfo2 \
387 --ssl s3c://s.greenqloud.com:
443/bucket-name
389 Enter backend password:
390 Before using S3QL, make sure to read the user
's guide, especially
391 the
'Important Rules to Avoid Loosing Data
' section.
392 Enter encryption password:
393 Confirm encryption password:
394 Generating random encryption key...
395 Creating metadata tables...
405 Compressing and uploading metadata...
406 Wrote
0.00 MB of compressed metadata.
407 #
</pre
></blockquote
></p
>
409 <p
>The next step is mounting the file system to make the storage available.
411 <p
><blockquote
><pre
>
412 # mount.s3ql --cachedir /var/lib/s3ql-cache --authfile /root/.s3ql/authinfo2 \
413 --ssl --allow-root s3c://s.greenqloud.com:
443/bucket-name /s3ql
414 Using
4 upload threads.
415 Downloading and decompressing metadata...
425 Mounting filesystem...
427 Filesystem Size Used Avail Use% Mounted on
428 s3c://s.greenqloud.com:
443/bucket-name
1.0T
0 1.0T
0% /s3ql
430 </pre
></blockquote
></p
>
432 <p
>The file system is now ready for use. I use rsync to store my
433 backups in it, and as the metadata used by rsync is downloaded at
434 mount time, no network traffic (and storage cost) is triggered by
435 running rsync. To unmount, one should not use the normal umount
436 command, as this will not flush the cache to the cloud storage, but
437 instead running the umount.s3ql command like this:
439 <p
><blockquote
><pre
>
442 </pre
></blockquote
></p
>
444 <p
>There is a fsck command available to check the file system and
445 correct any problems detected. This can be used if the local server
446 crashes while the file system is mounted, to reset the
"already
447 mounted
" flag. This is what it look like when processing a working
448 file system:
</p
>
450 <p
><blockquote
><pre
>
451 # fsck.s3ql --force --ssl s3c://s.greenqloud.com:
443/bucket-name
452 Using cached metadata.
453 File system seems clean, checking anyway.
454 Checking DB integrity...
455 Creating temporary extra indices...
456 Checking lost+found...
457 Checking cached objects...
458 Checking names (refcounts)...
459 Checking contents (names)...
460 Checking contents (inodes)...
461 Checking contents (parent inodes)...
462 Checking objects (reference counts)...
463 Checking objects (backend)...
464 ..processed
5000 objects so far..
465 ..processed
10000 objects so far..
466 ..processed
15000 objects so far..
467 Checking objects (sizes)...
468 Checking blocks (referenced objects)...
469 Checking blocks (refcounts)...
470 Checking inode-block mapping (blocks)...
471 Checking inode-block mapping (inodes)...
472 Checking inodes (refcounts)...
473 Checking inodes (sizes)...
474 Checking extended attributes (names)...
475 Checking extended attributes (inodes)...
476 Checking symlinks (inodes)...
477 Checking directory reachability...
478 Checking unix conventions...
479 Checking referential integrity...
480 Dropping temporary indices...
481 Backing up old metadata...
491 Compressing and uploading metadata...
492 Wrote
0.89 MB of compressed metadata.
494 </pre
></blockquote
></p
>
496 <p
>Thanks to the cache, working on files that fit in the cache is very
497 quick, about the same speed as local file access. Uploading large
498 amount of data is to me limited by the bandwidth out of and into my
499 house. Uploading
685 MiB with a
100 MiB cache gave me
305 kiB/s,
500 which is very close to my upload speed, and downloading the same
501 Debian installation ISO gave me
610 kiB/s, close to my download speed.
502 Both were measured using
<tt
>dd
</tt
>. So for me, the bottleneck is my
503 network, not the file system code. I do not know what a good cache
504 size would be, but suspect that the cache should e larger than your
505 working set.
</p
>
507 <p
>I mentioned that only one machine can mount the file system at the
508 time. If another machine try, it is told that the file system is
511 <p
><blockquote
><pre
>
512 # mount.s3ql --cachedir /var/lib/s3ql-cache --authfile /root/.s3ql/authinfo2 \
513 --ssl --allow-root s3c://s.greenqloud.com:
443/bucket-name /s3ql
514 Using
8 upload threads.
515 Backend reports that fs is still mounted elsewhere, aborting.
517 </pre
></blockquote
></p
>
519 <p
>The file content is uploaded when the cache is full, while the
520 metadata is uploaded once every
24 hour by default. To ensure the
521 file system content is flushed to the cloud, one can either umount the
522 file system, or ask S3QL to flush the cache and metadata using
525 <p
><blockquote
><pre
>
526 # s3qlctrl upload-meta /s3ql
527 # s3qlctrl flushcache /s3ql
529 </pre
></blockquote
></p
>
531 <p
>If you are curious about how much space your data uses in the
532 cloud, and how much compression and deduplication cut down on the
533 storage usage, you can use s3qlstat on the mounted file system to get
536 <p
><blockquote
><pre
>
538 Directory entries:
9141
541 Total data size:
22049.38 MB
542 After de-duplication:
21955.46 MB (
99.57% of total)
543 After compression:
21877.28 MB (
99.22% of total,
99.64% of de-duplicated)
544 Database size:
2.39 MB (uncompressed)
545 (some values do not take into account not-yet-uploaded dirty blocks in cache)
547 </pre
></blockquote
></p
>
549 <p
>I mentioned earlier that there are several possible suppliers of
550 storage. I did not try to locate them all, but am aware of at least
551 <a href=
"https://www.greenqloud.com/
">Greenqloud
</a
>,
552 <a href=
"http://drive.google.com/
">Google Drive
</a
>,
553 <a href=
"http://aws.amazon.com/s3/
">Amazon S3 web serivces
</a
>,
554 <a href=
"http://www.rackspace.com/
">Rackspace
</a
> and
555 <a href=
"http://crowncloud.net/
">Crowncloud
</A
>. The latter even
556 accept payment in Bitcoin. Pick one that suit your need. Some of
557 them provide several GiB of free storage, but the prize models are
558 quite different and you will have to figure out what suits you
561 <p
>While researching this blog post, I had a look at research papers
562 and posters discussing the S3QL file system. There are several, which
563 told me that the file system is getting a critical check by the
564 science community and increased my confidence in using it. One nice
566 "<a href=
"http://www.lanl.gov/orgs/adtsc/publications/science_highlights_2013/docs/pg68_69.pdf
">An
567 Innovative Parallel Cloud Storage System using OpenStack’s SwiftObject
568 Store and Transformative Parallel I/O Approach
</a
>" by Hsing-Bung
569 Chen, Benjamin McClelland, David Sherrill, Alfred Torrez, Parks Fields
570 and Pamela Smith. Please have a look.
</p
>
572 <p
>Given my problems with different file systems earlier, I decided to
573 check out the mounted S3QL file system to see if it would be usable as
574 a home directory (in other word, that it provided POSIX semantics when
575 it come to locking and umask handling etc). Running
576 <a href=
"http://www.hungry.com/~pere/blog/Testing_if_a_file_system_can_be_used_for_home_directories___.html
">my
577 test code to check file system semantics
</a
>, I was happy to discover that
578 no error was found. So the file system can be used for home
579 directories, if one chooses to do so.
</p
>
581 <p
>If you do not want a locally file system, and want something that
582 work without the Linux fuse file system, I would like to mention the
583 <a href=
"http://www.tarsnap.com/
">Tarsnap service
</a
>, which also
584 provide locally encrypted backup using a command line client. It have
585 a nicer access control system, where one can split out read and write
586 access, allowing some systems to write to the backup and others to
587 only read from it.
</p
>
589 <p
>As usual, if you use Bitcoin and want to show your support of my
590 activities, please send Bitcoin donations to my address
591 <b
><a href=
"bitcoin:
15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
">15oWEoG9dUPovwmUL9KWAnYRtNJEkP1u1b
</a
></b
>.
</p
>
596 <title>EU-domstolen bekreftet i dag at datalagringsdirektivet er ulovlig
</title>
597 <link>http://www.hungry.com/~pere/blog/EU_domstolen_bekreftet_i_dag_at_datalagringsdirektivet_er_ulovlig.html
</link>
598 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/EU_domstolen_bekreftet_i_dag_at_datalagringsdirektivet_er_ulovlig.html
</guid>
599 <pubDate>Tue,
8 Apr
2014 11:
30:
00 +
0200</pubDate>
600 <description><p
>I dag kom endelig avgjørelsen fra EU-domstolen om
601 datalagringsdirektivet, som ikke overraskende ble dømt ulovlig og i
602 strid med borgernes grunnleggende rettigheter. Hvis du lurer på hva
603 datalagringsdirektivet er for noe, så er det
604 <a href=
"http://tv.nrk.no/program/koid75005313/tema-dine-digitale-spor-datalagringsdirektivet
">en
605 flott dokumentar tilgjengelig hos NRK
</a
> som jeg tidligere
606 <a href=
"http://www.hungry.com/~pere/blog/Dokumentaren_om_Datalagringsdirektivet_sendes_endelig_p__NRK.html
">har
607 anbefalt
</a
> alle å se.
</p
>
609 <p
>Her er et liten knippe nyhetsoppslag om saken, og jeg regner med at
610 det kommer flere ut over dagen. Flere kan finnes
611 <a href=
"http://www.mylder.no/?drill=datalagringsdirektivet
&intern=
1">via
612 mylder
</a
>.
</p
>
616 <li
><a href=
"http://e24.no/digital/eu-domstolen-datalagringsdirektivet-er-ugyldig/
22879592">EU-domstolen:
617 Datalagringsdirektivet er ugyldig
</a
> - e24.no
2014-
04-
08
619 <li
><a href=
"http://www.aftenposten.no/nyheter/iriks/EU-domstolen-Datalagringsdirektivet-er-ulovlig-
7529032.html
">EU-domstolen:
620 Datalagringsdirektivet er ulovlig
</a
> - aftenposten.no
2014-
04-
08
622 <li
><a href=
"http://www.aftenposten.no/nyheter/iriks/politikk/Krever-DLD-stopp-i-Norge-
7530086.html
">Krever
623 DLD-stopp i Norge
</a
> - aftenposten.no
2014-
04-
08
625 <li
><a href=
"http://www.p4.no/story.aspx?id=
566431">Apenes: - En
626 gledens dag
</a
> - p4.no
2014-
04-
08
628 <li
><a href=
"http://www.nrk.no/norge/_-datalagringsdirektivet-er-ugyldig-
1.11655929">EU-domstolen:
629 – Datalagringsdirektivet er ugyldig
</a
> - nrk.no
2014-
04-
08</li
>
631 <li
><a href=
"http://www.vg.no/nyheter/utenriks/data-og-nett/eu-domstolen-datalagringsdirektivet-er-ugyldig/a/
10130280/
">EU-domstolen:
632 Datalagringsdirektivet er ugyldig
</a
> - vg.no
2014-
04-
08</li
>
634 <li
><a href=
"http://www.dagbladet.no/
2014/
04/
08/nyheter/innenriks/datalagringsdirektivet/personvern/
32711646/
">-
635 Vi bør skrote hele datalagringsdirektivet
</a
> - dagbladet.no
636 2014-
04-
08</li
>
638 <li
><a href=
"http://www.digi.no/
928137/eu-domstolen-dld-er-ugyldig
">EU-domstolen:
639 DLD er ugyldig
</a
> - digi.no
2014-
04-
08</li
>
641 <li
><a href=
"http://www.irishtimes.com/business/sectors/technology/european-court-declares-data-retention-directive-invalid-
1.1754150">European
642 court declares data retention directive invalid
</a
> - irishtimes.com
643 2014-
04-
08</li
>
645 <li
><a href=
"http://www.reuters.com/article/
2014/
04/
08/us-eu-data-ruling-idUSBREA370F020140408?feedType=RSS
">EU
646 court rules against requirement to keep data of telecom users
</a
> -
647 reuters.com
2014-
04-
08</li
>
652 <p
>Jeg synes det er veldig fint at nok en stemme slår fast at
653 totalitær overvåkning av befolkningen er uakseptabelt, men det er
654 fortsatt like viktig å beskytte privatsfæren som før, da de
655 teknologiske mulighetene fortsatt finnes og utnyttes, og jeg tror
656 innsats i prosjekter som
657 <a href=
"https://wiki.debian.org/FreedomBox
">Freedombox
</a
> og
658 <a href=
"http://www.dugnadsnett.no/
">Dugnadsnett
</a
> er viktigere enn
661 <p
><strong
>Update
2014-
04-
08 12:
10</strong
>: Kronerullingen for å
662 stoppe datalagringsdirektivet i Norge gjøres hos foreningen
663 <a href=
"http://www.digitaltpersonvern.no/
">Digitalt Personvern
</a
>,
664 som har samlet inn
843 215,- så langt men trenger nok mye mer hvis
666 ikke Høyre og Arbeiderpartiet bytter mening i saken. Det var
667 <a href=
"http://www.holderdeord.no/parliament-issues/
48650">kun
668 partinene Høyre og Arbeiderpartiet
</a
> som stemte for
669 Datalagringsdirektivet, og en av dem må bytte mening for at det skal
670 bli flertall mot i Stortinget. Se mer om saken
671 <a href=
"http://www.holderdeord.no/issues/
69-innfore-datalagringsdirektivet
">Holder
672 de ord
</a
>.
</p
>
677 <title>ReactOS Windows clone - nice free software
</title>
678 <link>http://www.hungry.com/~pere/blog/ReactOS_Windows_clone___nice_free_software.html
</link>
679 <guid isPermaLink=
"true">http://www.hungry.com/~pere/blog/ReactOS_Windows_clone___nice_free_software.html
</guid>
680 <pubDate>Tue,
1 Apr
2014 12:
10:
00 +
0200</pubDate>
681 <description><p
>Microsoft have announced that Windows XP reaches its end of life
682 2014-
04-
08, in
7 days. But there are heaps of machines still running
683 Windows XP, and depending on Windows XP to run their applications, and
684 upgrading will be expensive, both when it comes to money and when it
685 comes to the amount of effort needed to migrate from Windows XP to a
686 new operating system. Some obvious options (buy new a Windows
687 machine, buy a MacOSX machine, install Linux on the existing machine)
688 are already well known and covered elsewhere. Most of them involve
689 leaving the user applications installed on Windows XP behind and
690 trying out replacements or updated versions. In this blog post I want
691 to mention one strange bird that allow people to keep the hardware and
692 the existing Windows XP applications and run them on a free software
693 operating system that is Windows XP compatible.
</p
>
695 <p
><a href=
"http://www.reactos.org/
">ReactOS
</a
> is a free software
696 operating system (GNU GPL licensed) working on providing a operating
697 system that is binary compatible with Windows, able to run windows
698 programs directly and to use Windows drivers for hardware directly.
699 The project goal is for Windows user to keep their existing machines,
700 drivers and software, and gain the advantages from user a operating
701 system without usage limitations caused by non-free licensing. It is
702 a Windows clone running directly on the hardware, so quite different
703 from the approach taken by
<a href=
"http://www.winehq.org/
">the Wine
704 project
</a
>, which make it possible to run Windows binaries on
707 <p
>The ReactOS project share code with the Wine project, so most
708 shared libraries available on Windows are already implemented already.
709 There is also a software manager like the one we are used to on Linux,
710 allowing the user to install free software applications with a simple
711 click directly from the Internet. Check out the
712 <a href=
"http://www.reactos.org/screenshots
">screen shots on the
713 project web site
</a
> for an idea what it look like (it looks just like
714 Windows before metro).
</p
>
716 <p
>I do not use ReactOS myself, preferring Linux and Unix like
717 operating systems. I
've tested it, and it work fine in a virt-manager
718 virtual machine. The browser, minesweeper, notepad etc is working
719 fine as far as I can tell. Unfortunately, my main test application
720 is the software included on a CD with the Lego Mindstorms NXT, which
721 seem to install just fine from CD but fail to leave any binaries on
722 the disk after the installation. So no luck with that test software.
723 No idea why, but hope someone else figure out and fix the problem.
724 I
've tried the ReactOS Live ISO on a physical machine, and it seemed
725 to work just fine. If you like Windows and want to keep running your
726 old Windows binaries, check it out by
727 <a href=
"http://www.reactos.org/download
">downloading
</a
> the
728 installation CD, the live CD or the preinstalled virtual machine