Random stuff about this and that

Sorry to disappoint you, but yes, this boring guy is still around and bloggin’ :).

With school, a WordPress upgrade (see below for more details), the strange fact that I only have ideas for posts when I can’t write them, etc. this has been pretty abandoned for some months but well, I guess I’ll be posting something from time to time again, and as a start I thought that I might write one of those nice random-stuff-which-nobody-wants-to-know posts.

WordPress
First of all, I now understand why there were that many “Yay! I upgraded WordPress!” posts. After skipping two new versions I decided to finally upgrade as there were some important security fixes, but for some reason it failed to update the database correctly and my blog was kinda broken for some weeks until I took the time to mess with it and create the new tables manually… I hope that everything works again now, please tell me if you find something that doesn’t. Ah, and of course they’ve already released a new version by now… Let’s see when I upgrade to that one :P.

The important stuff
Just two posts ago I explained that I had become an Ubuntu Member. Well, now I’m also a MOTU :). I’ve also become 17 two months ago, but as by that time the blog was already broken I couldn’t write one of those cool “myself.age += 1″ posts xD.

Packaging Jam
I’ll be running a little Packaging Jam together with Jonathan Davies during our LoCo Team’s Hardy Release party (in Catalan). So if you speak Catalan, always wanted to learn how that packaging stuff works and and happen to be near Caldes de Montbui the 26th of this month, have a look at this wiki page (in Catalan) and inscribe yourself.

Shell history memo
Well, everyone is doing this, so I can’t be less:
[rainct, ~]$ history|awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
70 geany
68 bzr
59 cd
25 ls
24 rm
22 cat
16 egrep
16 apt-cache
14 debuild
11 ping

Introduction to Debian’s Bug Tracking System (BTS)

I assume you all know that Ubuntu is based on Debian, and that a lot of the packages available in the repositories are directly “copied” from Debian. Some of this packages, however, have been patched by Ubuntu developers and thus have diverged from those in Debian: such packages have to be merged (i.e., the same changes, if they are still necessary, have to be applied again to each new version of them that gets into Ubuntu). Hence, since a) we are very good people and want Debian to enjoy those patched too, and b) such packages represent an unneeded maintenance overheat, as the same changes have to be applied again and again, it’s obvious that they have to be forwarded to Debian for their inclusion there.

So, why am I writing this? You all know our friend Launchpad, right? Now let’s have a look at Debian’s BTS… One word, intimidating. At least this was what I thought the first time I saw it, so I decided that I would write this post to introduce you to it’s basic use (it doesn’t make much sense, as there’s a big link to the help on the start page, but well… perhaps if you read it here you’ll fell more like reading it… or not :P).

Reporting a bug

How does it work? Just send an e-mail to submit@bugs.debian.org, with the following content:

Package: <package name>
Version: <package version>

<Bug description here>

Easy, isn’t it? The mail subject will be the title for the bug, and the version field can even be omitted if you don’t know it… Now, there’s something more you should know as an Ubuntu user: if you want to recognize a bug as coming from Ubuntu (for example if you are forwarding it from Launchpad), add the two following lines after the package name:

User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu hardy

OK. Now this is all. Just send such a mail and after some minutes you will receive a message telling you the bug number it got. If you want to send additional information just mail to <bug number>@bugs.debian.org. You won’t need much time to feel comfortable with it ;).

Searching bugs

Searching for bugs can still be somewhat unfriendly. If you think so, this might help a bit: «sudo aptitude install reportbug-ng». Now look on Applications -> System Tools. Now you are ready to rock on forwarding bugs to Debian!

This doesn’t look like an introduction, does it? :)

It was somewhat around one and half years ago when I discovered Planet Ubuntu and started reading the thoughts that many of these great persons that make Ubuntu possible take the time to write down there. Some months later I stumbled upon the list of LoCo Teams, and seeing that there was something going on about a Catalan Team (which was an inactive project when I read about it the first time) I immediately joined it’s mailing list, with the time becoming an active member of it.

Not much time had passed when, early this summer, after I had been messing a bit with Launchpad, I had the idea to visit the #ubuntu-motu channel and perhaps try fixing some little bug; and well, that’s how the evil awesome guys there achieved to wash my mind letting me forget about the web projects I was working on by that time and helped me to successfully start contributing to Ubuntu with packaging related stuff :D.

So that’s the story of how that «planet were many great Ubuntu guys post», became the «planet were many great Ubuntu Members post and were my messages might appear, too, some day», and now is «the planet for which I’m writing this message right now».

Well, what more can I say now that I got you all bored, beside this last words?

Join us now and package software;
You’ll enjoy it, MOTU Contributors, you’ll enjoy it.

Yehaaa!

ubuntumember.png

Vull donar les gràcies a tots els que m’heu donat el vostre suport!

I… bé, ja diré més a planet.ubuntu.com :D

Instal·lar fàcilment programes de la Hardy

La Hardy és la versió de l’Ubuntu que actualment es troba en desenvolupament i que incorpora les últimes versions de molts programes, i fins i tot alguns de nous. No és gaire difícil trobar-nos amb que vulguem instal·lar alguna aplicació (o una versió nova d’aquesta) que estigui als repositoris de la Hardy però no als de la versió estable que estiguem fent servir. Podríem pensar que en aquest cas l’única possibilitat d’aconseguir aquest programa (o actualització) és baixar els paquets que calguin, un per un, des de packages.ubuntu.com… Doncs, per sort, no és així :).

En un post al planet anglès, en Raphaël Pinson ens explica com gaudir dels «backports» de forma segura; segurament aquesta no és una cosa que interessi gaire (se suposa que els backports no han de portar problemes), però sí que és molt útil el que escriu: el mateix procediment pot ser adaptat molt fàcilment per tal de que ens possibiliti la instal·lació de paquets de la Hardy utilitzant les mateixes eines amb que treballem habitualment.

Per a això poder fer això només cal:
1) obrir una terminal,
2) executar-hi «sudo gedit /etc/apt/sources.list», afegir la línia «deb http://archive.ubuntu.com/ubuntu/ main restricted universe multiverse» al document que s’obrirà a l’editor de textos i guardar,
3) executar (altre cop a la terminal) «sudo gedit /etc/apt/preferences», escriure les quatre línies que hi ha a continuació a l’editor i guardar,
Explanation: Hardy packages have a lower priority
Package: *
Pin: release a=hardy
Pin-Priority: 75

4) Executar l’ordre «sudo aptitude update» per tal d’actualitzar les llistes de paquets.

Un cop fetes aquestes quatre coses, ja està! Ara ja podeu córrer a obrir el gestor de paquets Synaptic, buscar-hi aquell programa que voleu actualitzar i al menú «Paquet» triar l’opció «Força la versió…», on ens apareixerà aquella que hi ha a la Hardy. Si sou d’aquells que, com jo, preferiu la terminal, podeu actualitzar un paquet fent: «sudo aptitude install reportbug-ng/hardy» (on «reportbug-ng» és el nom del paquet en qüestió) o en cas de que això no funcioni «sudo aptitude -t hardy install reportbug-ng» (per agafar les dependències també de la Hardy).

 
web development