Aller au contenu | Aller au menu | Aller à la recherche

Le skyblog de bochecha

dimanche, juin 13 2010

Wrap-up des Rencontres Fedora 13 à Paris

Le 5 juin 2010 avaient lieu les Rencontres Fedora 13 à la Cité des Sciences pour fêter la sortie de Fedora 13. Cet événement s'est tenu dans le cadre du Premier Samedi du Libre. [Comment ça je suis à la bourre ?]

Nous avons ainsi pu accueillir 150 visiteurs venus pour installer Fedora, résoudre leurs problèmes, assister aux conférences et ateliers ou tout simplement discuter avec d'autres membres de la communauté.

Une conférence sur Zarafa a eu lieu, ainsi que deux ateliers sur l'administration Linux et sur LaTeX. Les slides sont disponibles sur la page de l'événement.

La bonne surprise est venue de Firas qui a filmé l'événement, la conférence sur Zarafa et a même réalisé une interview. [dans laquelle j'ai surement dit plein de conneries, flamewars welcome :-) ]

Merci à ceux d'entre vous qui étaient présents, et à bientôt pour les Rencontres Fedora 14 ! [ou le prochain premier samedi]

mardi, juin 1 2010

De retour de l'Ubuntu-Party 10.04

Ce week-end, j'étais à l'Ubuntu-Party 10.04 à la Cité des Sciences.

J'y donnais une conférence intitulée « La diversité des OS libres : diviser pour mieux régner », et j'y ai passé le reste des deux jours à donner un coup de main aux amis marrons aubergines. En particulier, j'ai passé pas mal de temps à accueillir les visiteurs et tenir la boutique Ubuntu-Fr.

Mon bilan des deux jours ? Il tient en un mot : « wow ». Ubuntu-Fr fait vraiment un boulot énorme, jugez plutôt :

  • une centaine de bénévoles
  • un cuisinier (l'un des bénévoles) ayant préparé les repas du midi pour tout le staff
  • une demi douzaine d'autres groupes invités (l'April, In Libro Veritas, JeuxLinux, la Quadrature, Mozilla, OxyRadio, LProd, ...)
  • un studio de radio ad-hoc couvrant l'événement en direct
  • 17 conférences, 7 ateliers et 4 cours
  • une tombola [1]
  • 3000 visiteurs environs [2]
  • 2 Fedoristas :-)

Un grand bravo donc à Olive, YoBoY, Didrocks, Kinouchou, Zzzzzzz (j'espère avoir mis le bon nombre de « z »), VX, Annie, le « cuisto en kilt » (désolé, je suis nul pour les prénoms :-/) et plus généralement à toute la communauté francophone d'Ubuntu (si on a discuté pendant les deux jours et que je ne vous ai pas cité, envoyez-moi des flammes en commentaire :-)). De même, un grand merci à David, Malik et Thomas de la Cité des Sciences pour leur participation. La présence d'interlocuteurs de la Cité des Sciences a souvent été un manque cruel lors des événements du libre au Carrefour Numérique, et le succès de cette Ubuntu-Party leur est à mon avis en partie du.

C'était ma première Ubuntu-Party, mais certainement pas ma dernière.

En ce qui concerne Fedora, je ne peux que souhaiter que l'on rencontre un succès comparable. La communauté francophone autour de Fedora est particulièrement active sur d'autres aspects (forum, packaging, traduction, rédaction de documentation,...), quand est-ce qu'on s'y met sérieusement ? :-)


[1] J'ai gagné le deuxième lot : un Linutop2. Moi je dis, ça sent la magouille :-P

[2] Le chiffre est celui donné par la Cité des Sciences, dont le mode de comptage est... particulier. En effet, à certains intervalles de temps, une personne de la Cité des Sciences passe dans toutes les salles et ajoute le nombre de personnes au compte précédent. Le risque de compter plusieurs fois une même personne est donc important, mais il est aussi tout à fait possible de rater des visiteurs. De plus, ce mode de comptage est utilisé pour tous les événements ayant lieu là-bas. Si le compte en lui-même n'est donc pas très fiable, la comparaison entre différents événements se tient tout à fait.

vendredi, mai 14 2010

Packaging Unity (part 1)

Ubuntu recently announced Unity, an attempt at creating a new user experience for netbooks.

Some concepts made me think about Gnome-Shell. Being a huge fan of the latter, I wanted to give a try to Unity, and so I started to package it for Fedora 13.

Didier Roche, one of the Canonical desktop team developers, gave me some hints about this. Unity is composed of several packages, mainly:

  • wncksync: A library and dbus daemon that matches .desktop files to window xid's and the reverse.
  • liblauncher: A library to build launchers
  • dbusmodel: No idea what that is yet, as the description is rather terse
  • Unity: The netbook specialized user experience

However, I'll probably have to build most of the packages in the Unity PPA, as well as some needed libraries that might not be included in Fedora yet.

Figuring out in which order to build those took some trial and error, and the first bad news came when trying to build wncksync: it requires a patched GLib. Then came the happy time of DSO linking failures for both wncksync and liblauncher.

Because of the GLib patch, I'll probably not be able to push those packages to the Fedora repositories, so I'll be uploading them into a (hopefully temporary) Fedorapeople repository.

A lot is still missing, but I have the first 3 components: GLib, wncksync and liblauncher (only available as source and x86_64 RPMs, i386 will follow).

No repository configuration yet, as there's nothing ot test anyway. I'll post more updates as I get to build other packages.

Feedback is welcome on the quality of the packages though, so that any future review is made easier. ;-)

dimanche, janvier 24 2010

Cloture des Rencontres Fedora 12

Les Rencontres Fedora 12 ont eu lieu les 12 et 13 décembre 2009 à la Cité des Sciences et de l'Industrie à Paris.

Avec un peu (qui a dit beaucoup ? :-)) de retard, les slides des conférences et ateliers sont désormais disponibles sur la page de l'événement, chacune dans la section correspondante. Le reportage vidéo, ainsi que les compte-rendus y sont aussi disponibles en bas de page.

La plupart des conférences ont été filmées. Malheureusement, les vidéos ne sont toujours pas disponibles, mais nous espérons qu'elles le seront prochainement.

Les intervenants ont tous accepté de mettre leurs documents sous licence CC-BY-SA. N'hésitez donc pas à les télécharger, les utiliser, vous en inspirer,...

mardi, novembre 24 2009

Ubuntu Party 9.10 à Paris

Voila, maintenant que j'ai bien attiré l'attention de tout le monde avec un titre qui fait du buzz, on va pouvoir passer aux choses sérieuses. :-)

Les 12 et 13 décembre 2009 auront lieu les Rencontres Fedora 12 à la Cité des Sciences et de l'industrie.

Évidemment, vous pourrez amener votre ordinateur pour y installer Fedora 12. Mais vous pourrez surtout venir assister à des conférences passionnantes ou participer à des ateliers incroyables !

Non, l'événement n'est pas réservé aux Fedoristas purs et durs (même si c'est les meilleurs et qu'on les préfère forcément), vous êtes en effet tous les bienvenus. Si si, même vous les Ubunteros. De toutes façons j'étais invité à l'Ubuntu-Party, donc je peux plus vous refuser l'entrée maintenant... Je te remercie pas Didier :-).

Histoire d'essayer de vous donner l'eau à la bouche, nous recevrons des invités prestigieux comme par exemple Grégoire Coustenoble de Mozilla, Michael Scherer de Mandriva-Fr, et Mark Shuttlew... Hein quoi ? Il vient à Paris uniquement le week-end prochain ? Tant pis, on aura aussi Sean Daly des Sugar Labs, William Hoffmann de Red Hat et l'équipe de JeuxLinux.fr. Pas mal hein ?

Pour ma part, j'animerai un atelier « administration plus ou moins avancée ». Évidemment, je suis plus à l'aise avec Fedora/RHEL/CentOS, mais si vous avez envie de participer et utilisez une autre distribution, viendez quand même, on vous fera une petite place :-).

Espérant vous voir nombreux, veuillez agréer, madame, monsieur, l'expression... tout ça...

vendredi, octobre 2 2009

Yay ! \o/

I just received the results: 805009568343075

/me is happly going back to hack :]

samedi, août 15 2009

A git-aware prompt (part2)

It seems I've been doing some unnecessary stuff in my previous post. Once again, when one tries to do something, he should always remember that someone most probably already had the same idea :-)

Someone pointed to me in the comments that Git already provided a way to have a Git-aware prompt in Bash. Here is an attempt to explain how to use it to have the same result as my previous attempt at scripting it.

One would only need to set the following in their ~/.bashrc file:

PS1='[\u@\h \W]$(__git_ps1 " (%s)")\\$ '

This gives you the following prompt:

[mathieu@localhost ~]$
[mathieu@localhost rpmbuild] (master)$

As you can see, when you enter a Git repository, your prompt displays the name of the current branch.

But that's not quite enough. One might want to show the current changes, to help with their workflow. Just add the following in your ~/.bashrc file, right above the previous line:

export GIT_PS1_SHOWDIRTYSTATE=true

Now, your prompt will look like this:

[mathieu@localhost rpmbuild] (master)$ echo "titi" > SPECS/dummy.spec 
[mathieu@localhost rpmbuild] (master*)$ git add SPECS/dummy.spec
[mathieu@localhost rpmbuild] (master+)$ git commit
[mathieu@localhost rpmbuild] (master)$

The above should be pretty self-explainatory, but in case you didn't get it:

  • prompt displays the name of the current branch
  • a file was modified, the prompt displays a « * »
  • the modified file was staged, the « * » becomes a « + »
  • staged file was commited, there are no more changes (either staged or unstaged) in the working dir, prompt goes back to only displaying the branch name.

That's better, but something is still missing compared to what I had written:

[mathieu@localhost rpmbuild] (master)$ touch foobar
[mathieu@localhost rpmbuild] (master)$

That's right, untracked files are not shown on the prompt!

The solution came from a second comment on my previous post. All that is necessary is to add the following in your ~/.bashrc file:

export GIT_PS1_SHOWUNTRACKEDFILES=true

Now, you'll get:

[mathieu@localhost rpmbuild] (master)$ touch foobar
[mathieu@localhost rpmbuild] (master%)$

That's it! The exact same fonctionality as what I had hacked in an ugly way, with only the following 3 lines:

export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
PS1='[\u@\h \W]$(__git_ps1 " (%s)")\\$ '

Nice isn't it? :)

Remark 1: the env vars GIT_PS1_SHOWDIRTYSTATE and GIT_PS1_SHOWUNTRACKEDFILES only need to be set to something not empty. I used « true » because it kinda made sense, but setting them to « iamagitn00bz » would produce the exact same result.

Remark 2: Fedora 11 comes with Git 1.6.2.5 which doesn't support GIT_PS1_SHOWUNTRACKEDFILES in the bash completion script it ships. To make the above work I simply grabbed the file from the Rawhide Git 1.6.4 package. You could alternatively take it in the Git Git repository.

Remark 3: as mentioned in the comments on my previous blog article, there also is the GIT_PS1_SHOWSTASHSTATE env var that can be used to display other things in your prompt. This article was only about replicating the behavior I described before, and this variable is not part of it. But go play with it yourself :)

samedi, août 8 2009

A git-aware prompt

UPDATE: Gitigit in the comment talked about another env var that would show unstaged changes. This article thus contains wrong informations, see the next one to do things properly.

Thanks for pointing me my mistakes Gitigit and Blah! :-)


UPDATE: Blah pointed out in the comments that something already existed, but as I stated, it doesn't quite match my workflow with Git. However, this lead me to think a little and I saw that I didn't understand anything about the difference between staged and unstaged changes :)

After looking at it a bit more, I finally got it, and as such, I updated the below function so that it takes unstaged changes into account.

So once again, thank you blah :-)


I read Peter's post today about how happy he was to have switched to zsh.

Now, this isn't one of those « you're right man, zsh is so much more awesomer » or even « dude, bash can do it too, why did you go to the other side ? » posts.

However, Peter had an incredible idea: display the current git branch in your prompt, as well as whether there are uncommited changes or not.

So I don't really care about what shell I'm using, and bash has at least one huge benefit: it's the default on my distro of choice (and I'm too lazy to change it and learn another one :). But this git thingy, I love it!

Here's what I added to my ~/.bashrc file:

# set the prompt, appending the current git branch (if any)
set_prompt() {
if [ -d ./.git ]; then
GITBRANCH="(\[\033[0;32m\]$(awk -F '/' '{ print $NF }' .git/HEAD)\[\033[0m\]"

if [ $(git diff --exit-code > /dev/null 2>&1; echo $?) -eq 1 ] || [ $(git diff-index --cached --quiet --ignore-submodules HEAD --; echo $?) -eq 1 ]; then
GITBRANCH="$GITBRANCH\[\033[1;31m\]*\[\033[0m\]"
else
GITBRANCH="$GITBRANCH\[\033[0;34m\]-\[\033[0m\]"
fi

if [ "x$(git status | grep Untracked)" != "x" ]; then
GITBRANCH="$GITBRANCH\[\033[1;31m\]+\[\033[0m\])"
else
GITBRANCH="$GITBRANCH\[\033[0;34m\]-\[\033[0m\])"
fi
fi

echo -ne "\[\033[0;34m\][\u@\h \W]\[\033[0m\]${GITBRANCH}\[\033[0;34m\]\\$\[\033[0m\] "
}

export PROMPT_COMMAND='PS1="$(set_prompt)"'

This gives me a very nice (and useful!) prompt:

[mathieu@localhost ~]$

Yeah, not so great... But now let's say I enter a folder which turns out to be a git repository. Name of the current branch appears:

[mathieu@localhost rpmbuild](master--)$

If there are uncommited changes to the tree, then the first green dash after the branch name becomes a red star. Just the same, if there are new untracked files in the tree, the second green dash becomes a red plus.

[mathieu@localhost rpmbuild](master*-)$

[mathieu@localhost rpmbuild](master-+)$

[mathieu@localhost rpmbuild](master*+)$

Hope that can be useful to someone. It certainly is for me :).

dimanche, juillet 12 2009

Back from the LSM

This week I was at LSM aka RMLL.

I held the Fedora booth there, alone, for the whole 5 days.

The event was really nice, I met a lot of people and tried to do my best promoting Fedora (which must not be a lot). My only regret is that... well, being alone on a booth for a week is really tiring ^^'

Thomas, Patrice and Max joined me on Friday. Max gave a talk on the Fedora Foundations. Apparently, it was filmed, so I'll try to get a hand on the video. Thomas was interviewed by the event radio, and the recording is available online (in french).

Logistic was kind of shaky. We had a really hard time accessing the Internet, both at the event and at the dorm. The event also moved on Saturday, as the university that hosted us the 4 previous days was closed. However, we were welcomed by an elephant on the Saturday place:

elephant-1

elephant-2

All in all, I had a great time, even if I would have loved to go to more than 3 conferences. I had to let the booth unattended to go to those 3, but the Ubuntu-Fr and Mandriva-Fr booth people were really helpful, especially Marianne who made some delicious cookies (I managed to let some for the visitors :-D) and Michael, who even promoted Fedora while I was away :-D.

On the Shomyu side, the event was also quit... surprising. I finally met Sonny from the Mozilla community who had contacted me earlier about it. I also got in touch with Julien from SliTaz who expressed his interest in using Shomyu for their community. The aforementioned Mandriva Michaël told me the same, and even invited me to the soon to happen AFPyro (an « apéro » organized by the french Python association), and asked me if I would be interested in presenting Shomyu at the next PyCon :-D

I also talked about it with some Ubuntu-Fr guys. It seems they are trying to build such a tool themselves (but with GoogleMaps instead of OpenLayers / OpenStreetMap, and I sincerely hope we can share some code or even merge the two projects.

I can't believe what's happening with what started as a rant on the french Fedora mailing-list. Lot's of people seem to have heard of it and are willing to use it. I sincerely hope that at least some will give me a hand, as it will not be ready any time soon if I have to go on alone.*hint hint* :-)

jeudi, mai 28 2009

Planet-Libre, voici shomyu. Shomyu, voici le Planet-Libre.

UPDATE: Ce billet est une lâche copie d'un précédent publié pour la première fois le 15 septembre 2008. Venant tout juste de sortir la version 0.6, je me permets de le ressortir afin de présenter shomyu au Planet-Libre sur lequel ce billet n'était pas passé.


La communauté Fedora-fr utilise actuellement frappr pour afficher les localisations des membres et ambassadeurs.

Récemment, nous avons reçu un rappel d'Armelk, demandant à tous les ambassadeurs francophones de souscrire au frappr et de se géoréférencer.

Quelle surprise ! frappr est une application non-libre utilisant flash et ne fonctionnant même pas avec swfdec (je n'ai donc pas pu m'inscrire). Ai-je mentionné que l'application était truffée de pub ?... :-/

C'est pourquoi j'ai commencé à développer un équivalent libre : shomyu (screencast).

Côté technique, shomyu est bâtie avec :

  • Javascript et l'API OpenLayers ainsi que des données géographiques venant d'OpenStreetMap
  • Python / Turbogears pour le back-end, afin que si l'envie prenait à certains de l'intégrer au FAS (on peut toujours réver ^^), cela restera cohérent avec toutes les applis Turbogears que l'on a déjà.

Shomyu est disponible sous licence GPLv3+ et est « Fedora Hosted ». Comme dit en préambule, la version 0.6 sort tout juste du four.

Les commentaires, feed-back, aide, argent ou coups à boire sont les bienvenus :-)

- page 1 de 3