December 2009 Archives

Dec 27 2009

Holiday in Israel

Posted in life; by Miek Gieben; comments: 1

ans in het water

miek in het water

google


Dec 23 2009

Van Windows naar Ubuntu

Posted in dutch; by Miek Gieben; comments: 4

Dit stuk is aangeleverd door Wouter de Boer een collega van Octrooicentrum Nederland. Hij is bereikbaar op wouter.de.boer@pobox.com

Bijna alle besproken programma's zitten standard in Ubuntu.

280 dagen geleden besloot ik Ubuntu 8.10 op een schijf te zetten en te kijken of het m'n Windows XP kon vervangen. Ik had twee dingen die goed moesten werken wilde ik overgaan. Namelijk m'n webcam en m'n Pinnacle TV-kaart. Helaas kreeg ik dat niet goed voor elkaar mede door gebrek aan tijd en ik kon geen goede uitleg vinden op Google. Totdat ik een paar weken geleden las dat Ubuntu 9.10 uit was en ik het toch niet kon laten en het weer probeerde. Ik vond een goed artikel over het laten werken van m'n twee eisen, dus ik deed een upgrade naar Ubuntu 9.10. Het beviel me zo goed, dat ik besloot om Windows XP niet meer als standaard OS te gebruiken.

Ik maakte een lijst met de programma's die ik onder Windows XP gebruikte en zocht een gelijkwaardig programma die onder Ubuntu werkte. Ik moet toegeven dat het beter uitpakte dan ik verwacht had. De programma's die ik heb gevonden zijn mogelijk niet de beste, maar totdat ik betere heb gevonden bevalt dit me prima.

  • Als browser gebruikte ik al FireFox, dus dat was niet erg moeilijk. FireFox onder XP is hetzelfde als onder Ubuntu, en ik copieerde gewoon m'n Windows XP profile over die onder Ubuntu. Alleen de cookie bestanden heb ik niet overgenomen. Lekker makkelijk al m'n bookmarks waren er weer, zelfs de wachtwoorden en de velden van webpagina's werden weer aangevuld indien nodig.

  • Thunderbird gebruikte ik al onder Windows XP, dus dat overzetten ging hetzelfde als bij FireFox. Alleen zette ik hier de mail bestanden over en de message rules zodat alles hetzelfde was als onder XP, raakte geen email kwijt, m'n lokale bestanden met email kon je ook gewoon blijven hanteren.

  • Pidgin gebruik ik voor het chatten met m'n MSN vrienden en Yahoo vrienden dus daarin zien zij ook geen verschil. Ik gebruikte de NOS Teletekst browser onder XP, en die bestaat ook voor Ubuntu. Dus ook hierin geen probleem.

  • Om wat te downloaden gebruikte ik onder Windows XP het FTD programma en ook met Ubuntu kan ik dit blijven gebruiken. Onder Ubuntu is het nu OpenFTD. Verder geen schokkende verschillen.

  • Dan heb je onder Windows XP het programma QuickPar om de Par bestanden te kunnen gebruiken en onder Ubuntu gebruik ik daarvoor Gpar2. Werking is bijna hetzelfde.

  • Om de NZB bestanden te kunnen inlezen gebruikte ik Grabit onder Windows XP. Dat programma is er niet onder Ubuntu, maar met Klibido kan ik prima uit de voeten. De werkwijze is net iets anders, maar het resultaat hetzelfde.

  • Om m'n Pinnalce TV-kaart aan te sturen gebruik in onder Windows XP PCTV. Onder Ubuntu is er een soort gelijk programma te vinden Tvtime. Dus was 1 van m'n eisen meteen opgelost.

  • Skype is een ander programma waar ik gebruik van maakte. Dit programma is ook onder Ubuntu beschikbaar, maar dan als Beta versie. Maar die bevalt me prima, zelfs m'n webcam wordt gedeeltelijk ondersteunt. De microfoon is beschikbaar dus aan de laatste eis was ook voldaan.

  • Winamp was een ander veel gebruikt programma onder Windows XP. Onder Ubuntu gebruik ik op dit moment Audacious2. Prima programma, en ik kan meteen op een directory klikken en de MP3 bestanden worden meteen afgespeeld.

  • OpenOffice gebruikte ik al onder Windows XP, en dat is gewoon beschikbaar onder Ubuntu.

  • Daarnaast waren Seamonkey, Opera net als onder Windows XP gewoon beschikbaar.

  • Eclipse was gewoon onder Ubuntu beschikbaar, dus daarin ook geen probleen voor mij.

  • Als FTP Gui gebruikte in WinSCP en FlashFXP. Maar die zijn niet beschikbaar onder Ubuntu, maar geen nood met gFTP kan ik hetzelfde onder Ubuntu.

  • Het leukste was nog dat m'n Steam account gewoon onder Ubuntu werkt. Ik heb Wine 1.2 geinstalleerd en toen Steam als installer geinstalleerd. Gaat geweldig dus ik kan gewoon op steam kijken en eventuele aanbiedingen meteen kopen zodat ik die op m'n aparte game PC gewoon kan spelen.

Uiteraard werken niet alle programma's onder Ubuntu, zoals TomTom Home2, Nero (heb nog niet gekeken naar een goed equivalent), POEdit, Easy Disc (simpel boekhoud programma), MySQL Tools (nog niet naar gekeken), blueMSX (idem). Maar dat maakt niet, de programma's die ik nu nog mis, zoek ik gewoon een gelijkwaardig programma voor. Ik ben super tevreden met deze programma's en hoe makkelijk het was om een gelijkwaardig programma te vinden onder Ubuntu.


Dec 22 2009

rdup 1.0.3

Posted in rdup; by Miek Gieben; comments: 1

I've just put up 1.0.3 for download on miek.nl. This release fixes a few bugs, mostly dealing with rdup-simple and encryption.

You can download it here. And the SHA-1 should be: 6790aff96e79c184f4b93096c1659b2eac1f71c9.

rdup development branch

In other news, I'm pretty far with a with the 1.1.0-dev branch of rdup, so hopefully the next release will be from that branch. See this blog post for some details on this branch.

Yes, it will have features which make you want it :-)

See the gitweb link in the above posting on how to get to the code.


Dec 20 2009

Snow in Nijmegen

Posted in life; by Miek Gieben; comments: 0

White out

White out


Dec 13 2009

Safe(r) browsing

Posted in news; by Miek Gieben; comments: 3

The following addons make my browsing experience better, safer and I guess it also adds to my privacy (I hope)...

  • Ghostery, block trackers like Google, DoubleClick, etc.;
  • Flashblock, kill those annoying flash ads;
  • Adblock Plus, you should already have that one installed;
  • Cookiesafe, better control the cookies that are set on your computer;
  • SyncPlaces, share bookmarks by placing them on your own server;
  • Speeddial, Opera-like startup screen.

Dec 11 2009

rdup 1.1.0-dev1

Posted in rdup; by Miek Gieben; comments: 0

This is another pre-release of the current development version of rdup. I'm using this myself for a couple of weeks and it looks stable. In a couple of months (maybe sooner) this will become the current release. It sports lesser code, a change in de default output. The output is pretty close to the tar(5) format, with one exception rdup allows information to be stored on file system objects that need to be removed. The format always includes the files' content. (The old -c option of rdup).

Why a format change?

It makes rdup cleaner (less code) and allows for features not possible with the current version of rdup (1.0.x), like setting the correct user- and group name and setting the a- and m-time on files.

Also, in rdup-1.0, rdup is stating and reading files, which is then repeated by rdup-tr, in this new version only rdup reads the files. This saves I/O and allows for rdup-tr to be run on a different host. A side effect of this change is that the -P flag of rdup-tr has been moved to rdup.

Getting the latest code

Go to rdup's git repository and click on "snapshot", next to "commit", "commitdiff" and "tree", this wil give you a tar.gz which you can download, unpack and compile, like so

% tar xvf rdup-*.tar.gz
% cd rdup
% autoreconf; && ./configure && make
% make check # optional

the make check step gives quite a few tests which are not working. Fixing the tests (in testsuite/rdup) or the rdup code is appreciated.

Known bugs: rdup-tr -X/-Y (path encryption) is not working, it needs some OpenSSL foo to fix it.


Dec 04 2009

Inotify

Posted in linux; by Miek Gieben; comments: 1

This is a translation from this article which is published in Dutch

During our work at Octrooicentrum Nederland somebody came up with the following question. During the night a file was created in a directory and he wanted to know who (which process) was responsible for that. My first reaction was: "Can't be done".

However, that evening I thought of inotify which could be of help. With inotify you can watch your file system and get notified when "something" (read, write, create, etc.) happens. For (much) more detailed information look in inotify(7).

You can install the tools with:

% apt-get install inotify-tools

And with that you get two tools inotifywatch and inotifywait.

The inotify framework has a configurable limit on how many directories can be watched at once. To increase this a bit you need to write a value to a file under /proc, like so:

% sudo -s
# echo $((2 ** 16)) > /proc/sys/fs/inotify/max_user_watches

64K should be enough for everyone.

Using inotifywait works with:

% inotifywait -m  -r --format '%:e %f' ~
Setting up watches.  Beware: since -r was given, this may take a while!
Watches established.
  • -m: keep waiting;
  • --format '%:e %f': change the output (see inotifywait(1));
  • -r: recursive.

Now, I'm going to create a file in my home directory:

% touch bliep

And in my other terminal window I see output scrolling by, among which:

CREATE bliep
OPEN bliep
ATTRIB bliep
CLOSE_WRITE:CLOSE bliep

As you can see, the file ~/bliep has been created.

Getting the process

Note: the following creates a blatant race condition, so this is not bullet proof.

Lets start inotifywait and let it trigger for the creation of the file bliep. If it is created try to get to the creating process (if possible).

% inotifywait -m  -r --format '%:e %f' ~ | grep -q 'CREATE bliep' && \
lsof -t ~/bliep | xargs pstree -a -h

Which should be fairly obvious to the trained Unix eye. So if I type the following in one terminal:

% touch bliep && tail -f bliep

Then the inotifywait pipeline will output:

tail -f bliep

Which says: the tail -f is still tailing the file bliep. Note: that touch command is not seen. So we have the culprit -- well one of them, at least.

With inotify you can probably imagine other uses. One idea may be that of a realtime backup (this might even be already implemented by someone).

Other usefull tools based on inotify are:

incron
cron-like daemon with support for filesystem events
inotail
tail replacement with inotify, probably faster than GNU tail -f

You can find more information in this article, which is authored by the original author of inotify Robert Love.