Archives par mot-clé : ubuntu-qc

Comment visionner tou.tv sur Linux – merci pour rien Radio-Canada!

Depuis quelques jours le site tou.tv offre à tous les canadiens le contenu des émissions les plus populaires de Radio-Canada.

Enfin presque tous. Ça prends Windows ou Mac. Pardon ?

Les utilisateurs d’Ubuntu se sont rapidement rendu compte que le site n’affichait qu’un carré noir à la place des vidéos. Sur la FAQ de tou.tv, aucune mention de Linux. Rien! Sur la liste de discussion d’Ubuntu Québec, groupe d’utilisateurs de cette distribution Linux, les esprits se sont vite enflammés. C’est que ce n’est pas la première fois que Radio-Canada commet cette bévue. Et non, on n’est plus « seulement 1% d’utilisateurs d’ordinateurs ».

Le format Flash choisit n’est pas l’idéal pour les utilisateurs Linux. L’idéal serait une solution basée sur des formats libres. Le format Flash est une forme de contrôle des drois numériques (les DRM pour ses sigles en anglais), mais bon, on se compte presque chanceux que la technologie Silverlight de Microsoft ait été abandonnée. Une multitudes de web-télé privées et publiques fonctionnent en Flash sous Linux, il suffisait donc de tester et s’assurer que ça fonctionnerait.

Non, l’équipe technique vit apparemment sous une roche depuis plusieurs années. Même leurs réponses « cannées » aux incidents techniques signalés par des membres d’Ubuntu Québec et par FACIL n’ont pas changé. Et l’Ombudsman de Radio-Canada, lui, réponds que ce n’est pas ses affaires les choix techniques de celle-ci. C’est quand même nos taxes non ?

UPDATE: ATTENTION – CE CORRECTIF N’EST PLUS NÉCESSAIRE, LE SITE TOU.TV AYANT ÉTÉ CORRIGÉ SUITE À LA PRESSION EXERCÉE PAR NOTRE GROUPE. MERCI!

Bref, j’ai suggéré la création d’un groupe Facebook, ce qui a été fait assez rapidement (merci à Martin Bureau). 24h et presque 300 membres plus tard, Patrick St-Onge a trouvé le petit bout de code qui a provoquée cette tempête. Une ligne qui était en commentaire.

Je vous épargne les détails. Je suis encore un peu étourdi par cette trouvaille!

Comment on peut expliquer ça en 2010 ? C’est si insignifiant qu’ils pourront dire que c’est un simple oubli.

Je savais qu’avec GreaseMonkey on pourrait enlever ledit commentaire, j’ai donc immédiatement invité quiconque lirait le commentaire de Patrick dans le groupe à venir me rejoindre sur le canal de chat IRC de FACIL. Deux personnes ont répondu, ggrz et VanBrooken (de par leur surnom sur IRC). Pour faire une histoire courte, heureusement, ggrz a fourni le script (le mien étant trop pourri 🙂 ) et VanBrooken et moi l’avons testé. Il y a certainement mieux comme solution mais pour l’instant celle-ci semble « faire la job ». On a constaté par exemple qu’il manque les barres pour choisir la qualité… Étant donné que l’auteur original l’a publié en « public domain », nous pouvons en faire ce que nous en voulons.

La solution

Vous devez avoir:

  • Firefox
  • GreaseMonkey

J’ai testé avec FF 3.5.7 et Greasemonkey 0.8.20091209.4. Comme j’ai indiqué plus haut deux autres personnes (l’auteur et une autre) ont confirmé que ça fonctionnait.

UPDATE: ATTENTION – CE CORRECTIF N’EST PLUS NÉCESSAIRE, LE SITE TOU.TV AYANT ÉTÉ CORRIGÉ SUITE À LA PRESSION EXERCÉE PAR NOTRE GROUPE. MERCI!

Une fois GreaseMonkey installé, après redémarrer Firefox:

1) Ouvrez le site tou.tv
2) Allez sur Tools > Grease Monkey > New user Script
3) Remplissez les champs comme suit:

Name: toutv-linux
Namespace: http://www.toutv.com/greasemonkey
Description: Script pour visionner toutv sous LInux
Includes: http://tou.tv/* (ceci devrait déjà être là si vous avez ouvert tou.tv)
Excludes: (laisser ce champ vide)

4) Cliquez OK
5) Allez sur Tools > Grease Monkey > Manage User Scripts. Le script (vide pour l’instant) devrait y être. Choisissez-le (un click)
6) Cliquez Edit (en bas, à gauche)
7) Si on vous demande pour un éditeur de texte, entrez /usr/bin/gedit
8) Ajoutez à la fin du document présenté ceci:


(function() {

window.addEventListener(« load », function(e) {
var player = document.getElementById(« playerDiv »);
if(player) {
var content = player.innerHTML;
content = content.replace(« flashvars=\ » », « flashvars=\ »releaseURL= » + unsafeWindow.toutv.getRelease() + « & »);
player.innerHTML = content;
}
}, false);
})();

C’est aussi disponible ici et ici. Attention aux sauts de ligne! Chaque ligne termine par un « ; ».

9) Sauvegardez le document
10) Re-chargez la page tou.tv, naviguez les émissions
11) Enjoy 🙂

Attention étant donné que le site est tout récent il est possible que les délais habituels vous empêchent de visionner le contenu. Soyez patients!

Merci encore à Patrick St-Onge et aux deux anonymes qui ont répondu à mon invitation sur IRC: ggrz qui a fournit le script final en GreaseMonkey et VanBrooken qui a testé et confirmé la solution. Merci aussi aux presque 300 personnes qui se sont jointes au groupe Facebook et qui ont contribué à sa visibilité.

UPDATE: ATTENTION – CE CORRECTIF N’EST PLUS NÉCESSAIRE, LE SITE TOU.TV AYANT ÉTÉ CORRIGÉ SUITE À LA PRESSION EXERCÉE PAR NOTRE GROUPE. MERCI!

Maintenant qu’on sait que ça fonctionne avec du Flash, il faut bien continuer et exiger que ça soit disponible en format libre, ça sera un autre combat. FACIL en discutera à son prochain conseil d’administration, il est important de devenir membre ou de faire un don si cette cause vous tient à coeur. FACIL est une association à but non lucratif qui fait la promotion de l’informatique libre au Québec. FACIL organise ou participe à plusieurs autres activités au sujet des logiciels libres et des standards ouverts.

Pour ceux qui pensent que je suis extrémiste ou dans une minorité de Fanboy (deux noms auxquels j’ai eu droit dans cette histoire), je vous laisse quelques mots clés pour vous informer: DRM, Ogg Theora, HTML5, YouTube.

 

Ubuntu Global Jam in Montreal, Quebec, Canada

If you’re in Montreal or nearby this weekend… you must know:

ugj09_button_orange_250x148_en

And I won’t be the only one 🙂

All details can be found on the Quebec Team Ubuntu Global Jam page.

Where:

École de technologie supérieure (http://www.etsmtl.ca/)
1100 rue Notre-Dame Ouest
Salles/Rooms A-1300 & A-1238

When:

Friday Oct 2- Sunday Oct. 4 (check the Quebec Team Ubuntu Global Jam page for full schedule info)

See you there!

 

Taking Android screenshots from Ubuntu Jaunty

I’ve just added a detailed guide on how to take Android phone screenshots from Ubuntu Jaunty to the Ubuntu community documentation.

I kept following other guides and blogs without success until I came across this bug report about a missing udev rule for the Android devices. Ew!

I also noticed many guides indicate Eclipse + Android plugins (latest release, manually installed) are needed for this which is not the case! Dalvik Debug Monitor (ddms) works just fine without any other third-party, manually installed apps. This is what it should look like once it « sees » your phone:

ddms

It’s weird that taking screenshots isn’t easier, as this effectively prevents documenting and illustrating many interesting features. I hope the guide makes it easier for anyone to share their findings in using their Android devices. This should also help prepare training or support material, hint, hint 🙂

device

The above screenshot shows missed calls, USB connectivity status, Change Settings shortcut in notifications, TwitDroid pending dents (despite the name, it supports identi.ca which is what I use it for), Wifi connectivity status, Vibration mode, cell phone signal, battery status, alarm enabled and the current time, all in the status bar.

I also have a few widgets on the desktop (if that’s what it’s called…), otherwise I am using the default launcher and configuration.

Unless something specifically involves Ubuntu, I’ll mostly be posting only to Planet Android, which I recently joined. See you there (or here).

 

Drupal 5.x and 6.x LoCo Suite Released

David Giard, a founding member of the Ubuntu Quebec LoCo Team, relayed these news to me this morning (via The Fridge):

NOT A FORK – as soon as I posted this I got a comment about this being a fork, well, it’s not! It’s a collection of modules and a theme, which are managed via a project in Launchpad. This is not a separate fork of Drupal! 🙂

Drupal 5.x and 6.x LoCo Suite Released

That long needed suite of tools has finally been completed.

This suite is designed for any Ubuntu Local Communities wanting to host a website. It is designed to allow any LoCo team to quickly create a website using Drupal for their team.

What this suite offers:

  • An approved theme for any LoCo
  • A highly customizable theme
  • Launchpad OpenID integration
  • -> Users don’t need to create an account on your site
  • Launchpad Teams integration
  • -> Can control access levels in site based on LP team memberships
  • Fast and friendly support

Official project: launchpad.net/loco-drupal/

Release Downloads:

Drupal 5.x: launchpad.net/loco-drupal/5.x/0.5.0

Drupal 6.x: launchpad.net/loco-drupal/6.x/1.1.0

Drupal 7.x: in development

A Special Thanks:

This project would not be possible without all the collaboration involved.

The Ubuntu South Dakota Local CommunityMichael Lustfield

The Ubuntu Quebec Local CommunityDavid Giard

Joey Stanford

Stuart Metcalfe

 

The single most important thing you should know about Ubuntu…

… if you’re new around or if you’re introducing someone else to Ubuntu for the first time, I think a critical read is the following link:

Painfully obvious ? Rightfully so.

Many new (and old) « converts » ask questions about how to compile applications, manually install .deb packages… those should be the last one needs to do when installing applications in Ubuntu (or any Linux for that matter), at least when you want to keep the system as close as possible to regular, supported security/feature updates and upgrades as possible.

I am still a bit surprised when I get a comment like « I’ve been trying to compile/install XYZ for a few days/hours » and there almost always is a solution using packages part of the regular repositories! For those special cases when there isn’t I have a million suggestions, but compiling is far from the top of my list.

Another friendly advice, also consider asking on the Launchpad « Answers » system or showing your new converts how to do that, many times you may find things in Ubuntu are done in a slightly different way – not always obvious, most of the time easier. Don’t take my word for it 😉 Asking where or how to get help is OK too.

Last but not least, http://www.ubuntu.com/support provides links to official docs, free community support and even commercial options. Chances are there is a Local Community Team in your area, know it, promote it, join it, use it!

There’s only one better thing than discovering Ubuntu, and that is knowing where its community is and how to tackle into it and even participate in it. I’ve found when new users are empowered to do this, they don’t have to depend on me at all for future support! Well, unless they want 24/7 immediate phone support, that is 😉