WebLog Olivier Berger

Mon WebLog personnel

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

mardi 17 juin 2008

Starting DVD playing in totem from GNOME's drive_mount applet

My GNOME desktop's setup is configured so that DVDs aren't auto-played when inserted. Inserted media aren't auto-mounted either. Instead I'm using the Drivemount applet to mount, open, start play, when I wish so, by using its menus.

However, I've been annoyed for a while by the fact that when I had mounted a DVD's disc, and I started "Play DVD" from drivemount-applet's menu, totem would start, but it wouldn't play the DVD, complaining that "Totem could not play 'dvd://'. The source seems encrypted, and can't be read. Are you trying to play an encrypted DVD without libdvdcss?" :(

It seems that changing the DVD auto-play command in Gnome settings' Removable drives & Media Preferences configuration dialog from 'totem dvd://' to 'totem dvd://%m' helped achieve what I needed.

Now totem is started with something like 'totem dvd:///media/DVD_MOVIE', and plays the film as expected.

This post helped me figure out how to achieve that : http://people.debian.org.tw/~chihchun/2007/06/20/fix-the-vcd-auto-play-command-in-gnome/

Tags : , , ,

lundi 21 janvier 2008

Régler problème alimentation papier HP PSC1510

Notre imprimante (+scanner) HP PSC 1510 avait bien marché pendant environ 8 à 10 mois, mais récemment, elle s'est mise à merder au niveau de l'alimentation du papier, qui ne voulait plus rentrer, d'où nécessité de relancer l'impression, de forcer la montée des feuilles, bref, la galère dès qu'on veut imprimer plus d'une page !

Mais il y a une solution assez simple... peut-être pas recommandée par HP, mais c'est vous qui voyez, à vos risques et périls.

En fait, il y a un espèce de caoutchouc vert qui freine les pages au moment de leur entrainement par le rouleau, pour qu'une seule feuille monte dans l'imprimante à la fois, je suppose. C'est ce truc qui frottait trop, donc plus aucune feuille ne montait... Il suffit donc de l'enlever.

Tout ça en images.

  1. Répérer là où ça coince (la photo est prise une fois le truc vert enlevé... c'est pour vous donner une idée de la localisation) :
    p1030622
  2. Éteindre l'imprimante et la débrancher. Ouvrir la trappe arrière :
    p1030623
  3. Puis oter le guide noir qui supporte le caoutchouc vert (ici, je l'ai déjà enlevé quand j'ai pris la photo) :
    p1030624
  4. Enfin, oter le fameux caoutchouc. Une fois retiré, il ressemble à ça :
    p1030625
Et voilà, il ne reste plus qu'à replacer le guide noir à sa place (attention à bien le remettre comme il faut pour que le papier ne coince pas), et à refermer. Ca devrait bien mieux imprimer, maintenant !

Tags :

Reprogrammation chaînes téléviseur Sony KV-M2100B depuis télécommande RM-841

Nous avons une assez vielle télé Sony KV-M21008, et suite au déménagement, je voulais la reprogrammer pour adapter aux nouvelles fréquences des chaînes... mais impossible de retrouver le manuel, depuis longtemps parti aux oubliettes...

Heureusement, j'ai trouvé une doc : http://www.agoraquest.com/viewtopic.php?topic=31184&forum=25 ... merci à son auteur

Je traduis (merci google, pour le draft ;), et j'ajoute quelques petits détails :

En bas à gauche de la télécommande (RM-841) du téléviseur, il ya 6 petits boutons, que nous numéroterons de 1 à 6 :

1 2
3 4
5 6

On ne s'intéresse qu'aux boutons 1 (Shift), 2 (Preset), 4 (+) et 6 (-), ainsi qu'aux boutons classiques de numéros de chaînes, dans la partie haute de la télécommande (de 1 à 0)

Appuyer en même temps sur les boutons 1 et 2 (Maj et Présélection). Le numéro de programme clignote, et UHF ||||||| apparaîtra à l'écran.

Appuyer sur le numéro de programme que vous souhaitez régler, puis appuyer sur les boutons 1 (Maj) et soit 4 (+) ou 6 (-) jusqu'à ce que vous trouviez le canal voulu.

Appuyer en même temps sur les boutons 1 et 2 (Maj et Preset), pour sauver le réglage de la chaîne.

Recommencez l'opération pour tous les autres canaux.

C'est un peu lent, mais ça marche !

Cool, la télé peut enfin re-servir.

Tags :

dimanche 17 juin 2007

Bye-bye les spams dans dotclear

Bon, j'ai maintenant une solution à peu près correcte pour filtrer le spam dans Dotclear, en utilisant des plugins complémentaires : SpamTimeout, Captcha et SpamClear.

Le premier met en oeuvre une URL de trackback qui ne dure qu'un temps, permettant de limiter le nombre de spams par trackbacks, le second un captcha sur les commentaires, et enfin, le dernier met en oeuvre un filtrage bayesien sur les trackbacks et commentaires ainsi récupérés.

Tags : ,

jeudi 3 mai 2007

BackupPc saved my life (almost ;)

I've been using BackupPc for quite some time to backup the home network computers on an external disk.

BackupPc offers a nice Web interface which allows retrieving of files from the backups, in the case of an accidental deletion, for instance, which is quite user-friendly. Apart from occasionaly restoring deleted files, I had never had to restore a backup.

I was more or less annoyed by the processing power needed by those backups over and over again (the external disk on which I'm saving the files is quite slow although connected through firewire, and some of the machines are a bit old and don't like the compression, md5 and other computations needed by the backup process)... and even though there's a differential backup mechanism for only saving full backups from time to time, the length of the backups and the slow down and noise of the disk were recurrent annoyances :(

But two days ago, I've had the assurance that all this was worth the game, since one of the disks on which I had saved more or less all my data suddenly broke down :(

I've had to buy a new disk, but I've been able to restore more or less all the files quite easily (using command line and tar format instead of the web interface), and I'm back on tracks with only one day of email lost.

So thanks a lot BackupPc, even though you make my computers slower and more noisy !

Tags :

dimanche 8 avril 2007

Transfering files from/to the Sony Ericsson T610 on GNU/Linux through Bluetooth + OBEX

Based on my successful setup of ObexFS + FUSE to access my K610i through the USB cable, which allows me to retrieve and modify the contents of my phone's memory under Gnome, I have attempted to do the same for the T610 Sony Ericsson phone of my girlfriend.

It works very well too, but this time, as I have no USB cable for that phone, I used a bluetooth connection.

The setup is similar :

  1. creating a directory inside /media, for instance /media/T610
  2. chgrp fuse /media/T610
  3. chmod g+w /media/T610
  4. Modify the contents of /etc/fstab to have the correct entry for mounting it

voilà !

The /etc/fstab entry is of the form :

obexfs#-bxx:xx:xx:xx:xx:xx\040-Byy      /media/T610     fuse    defaults,user 0 0

the xx:xx:xx:xx:xx:xx address is the bluetooth MAC address of the phone, which you can retrieve with hcitool scan (as root ?)

The yy channel number is found by looking for the channel used for ObexFTP transfers in the output of sdptool browse (as root ?)

Note the specific syntax using \040 for the space required in the /etc/fstab line.

More details here, maybe.

Update 2007/04/10 : gnome-vfs-obexftp has just entered testing (now that etch is released, I won't stay stable, and continues on testing ;), which allows use of obex:/// like URIs to access the phone's files via ObexFTP over bluetooth/rfcomm. Great, no need to touch fstab.

Tags : , , ,

samedi 27 janvier 2007

Compatibilité Network-Manager et WPA2 Freebox

J'avais sélectionné l'option par défaut pour le cryptage WPA sur ma Freebox : WPA (TKIP+AES). Or j'avais des problèmes à accrocher le réseau avec NetworkManager dans ce cas (pas grave, ça marchait quand même avec ifupdown).

Je viens de changer pour WPA (AES/CCMP), donc WPA2/802.11i pur, si je comprends bien (plus d'émulation WPA TKIP, donc)... et ô miracle, ça plaît beaucoup plus à Network-Manager. Et en plus, à priori, ça ne nuit pas à la qualité du cryptage, bien au contraire ;)

Hope this helps.

P.S.: au sujet de Network-Manager, voir aussi : dans mon blog pro

Tags : , ,

mardi 23 janvier 2007

Backup du dump SPIP (dand une page perso Free) via CURL

J'ai mis en place un site SPIP dans une page perso Free.

SPIP propose une interface permettant de sauvegarder un fichier de dump SPIP, qui permet de restaurer le site (si tout va bien), mais elle est accessible uniquement en tant qu'administrateur en mode connecté, et nécessite la création d'un truc en FTP... bref, pas cool pour automatiser les sauvegardes.

J'ai donc bidouillé un truc avec CURL qui permet de récupérer le dump et de faire des sauvegardes automatisées, donc, en crontab.

Lire la suite

Tags : , ,