vendredi 29 août 2008

Ubuntu /proc et usb

Par défaut sous ubuntu il semble que les périph usb ne soient pas montés dans /proc.


# mount -t usbfs /dev/bus/usb /proc/bus/usb/



sources :
http://ubuntuforums.org/showthread.php?t=622964
http://blog.linuxoss.com/2006/05/running-vmware-workstation-55-on-suse-101/

mardi 12 août 2008

cron + ssh + keychain

Keychain :



dans .bash_profile


#!/bin/bash
#example ~/.bash_profile file
/usr/bin/keychain private keys
#redirect ~/.ssh-agent output to /dev/null to zap the annoying
#"Agent PID" message
source ~/.ssh-agent > /dev/null


cron :


crontab -e :

42 4 * * * time /home/cm/usr/bin/script_sauvegarde.sh



script_sauvegarde.sh





#!/bin/bash

keychain $HOME/SSH_PRIV_KEY
source /home/cm/.keychain/MACHINE-NAME-sh

rsync -e ssh --exclude-from=RSYNC_EXCLUDE_FILE -Cavz CLIENT/ SERVER:PATH_ON_SERVER/

jeudi 17 juillet 2008

Documents word sous Linux

Pour convertir un document .doc qui ne s'ouvrait pas avec Ooffice j'ai trouvé une petite appli, antiword qui converti cela très bien vers du txt brute.




NAME
antiword - show the text and images of MS Word documents

SYNOPSIS
antiword [ options ] wordfiles

DESCRIPTION
Antiword is an application that displays the text and the images of Microsoft Word documents.
A wordfile named - stands for a Word document read from the standard input.
Only documents made by MS Word version 2 and version 6 or later are supported.


mercredi 14 mai 2008

Ubuntu 8.04 Hardy Heron

Après avoir fait l'upgrade vers la 8.04, quelques bugs...


  • Le son ne marche plus dans les lecteurs (xine, totem, mplayer, ...), mais marche toujours avec Flash.

    Solution trouvée :
    System > preferences > sound --> tout mettre en Alsa (aucun paramètre "par défaut").
    Puis re-configurer les applis pour leur spécifier d'utiliser ALSA et non "PulseAudio" (qui est maintenant par défaut le système audio sous Ubuntu)


  • alltray Utiliser Alltray avec thunderbird a pour conséquence de mettre un workload de 70% sur le proc (principalement utilisé par Xgl).

    Solution temporaire : ne pas utiliser alltray...


  • Plus d'ouverture directe des liens entre thunderbird et mozilla.

    Solution trouvée : Dans System > Preferences > Prefered Applications mettre (ou remettre) "firefox" comme navigateur par défaut, et "thunderbird" comme client e-mail par défaut.

vendredi 18 avril 2008

Emacs "hook on save"

Pour exécuter automatiquement une commande shell lors d'une sauvegarde dans emacs :





(add-hook 'after-save-hook (lambda () (shell-command "cd /home/web/; make sync -f /home/Makefile")))





    attention :

  • Cela s'exécute à l'emplacement du fichier (d'où le "cd ...")

  • Cela s'applique pour TOUT les buffers ouverts


vendredi 7 mars 2008

Orthographe & cie.

Conjugaisons, sous linux :

samedi 26 janvier 2008

Firebug, tool for web development.

Remplace avantageusement le DOM inspector, puisqu'il est possible de modifier la page directement "on the fly" :-) (HTML, CSS, visualisation des entêtes, etc. )

Firebug

vendredi 25 janvier 2008

Bluetooth sync tool (adressbook + calendar) ?

seems interesting :

http://bluezync.kaarposoft.dk/

needs OpenSync 0.34 ...

Thunderbird Lightning + Google Calendar

Thunderbird (TB) is the popular mail client from Mozilla.

Lightning is the mozilla add-on to integrate a calendar in TB. It also exists as a standalone project named Sundbird.


If you need to store calendars on a central repository (for example to access them from different places), you may already have used Google Calendar.


dimanche 20 janvier 2008

rm or ram (realplayer formats) to audible...


mplayer -playlist playlist.rm -ao pcm -ao pcm:file=tmp.wav -vc dummy -vo null


for example, for Radio-France podcasts, it works very well :


  1. save the given .rm file on your computer

  2. give the file as playlist to mplayer as proposed here