mardi 16 décembre 2008

bash 'type' function

$ type echo
echo is a shell builtin

$ type toto
bash: type: toto: not found

$ type which
which is /usr/bin/which



NAME
type - write a description of command type

SYNOPSIS
type name...

DESCRIPTION
The type utility shall indicate how each argument would be interpreted
if used as a command name.

jeudi 11 décembre 2008

distribution-specific information

Example :

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.1
Release: 8.04
Codename: hardy




lsb_release(1) lsb_release(1)

NAME
lsb_release - print distribution-specific information

SYNOPSIS
lsb_release [options]

DESCRIPTION
The lsb_release command provides certain LSB (Linux Standard Base) and
distribution-specific information.

If no options are given, the -v option is assumed.

mardi 2 décembre 2008

eee bug: Randomly changing mac-address [SOLVED ?]

Bon, en fait je me retrouve avec un p*** de problème pas bien documenté :
à chaque suspend, ma carte réseau se retrouve avec une nouvelle mac-address.

En soit c'est bien pour quand je suis dans un point d'accès anodin, mais au labo où l'IP est alloué en fonction de la mac-addr enregistrée, cela me pose justement pb.

Bon, reprenons.

Diagnostique :
dans le fichier /etc/udev/rules.fr/70-persistent-net.rules à chaque suspend ou hibernate je me retrouve avec une nouvelle entrée de la forme


# Converted from /etc/iftab on upgrade
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="xx:xx:xx:xx:xx:xx", ATTRS{type}=="1", KERNEL=="eth*", NAME="eth1"


mais ce fichier semble généré par "75-persistent-net-generator.rules".

Il y a des chances que ce soit le driver qui se plante et n'aille pas chercher au bon endroit en mémoire l'adresse MAC, donnant ainsi l'impression de la générer à chaque fois.


TO DO


SOLUTION ??? :: http://ge.ubuntuforums.com/showthread.php?s=4d9cb6139d81046390c9da0ac5f7e48f&t=770173&page=6

Autre solution ?????
http://forum.ubuntu-fr.org/viewtopic.php?id=168719
sudo modprobe -r forcedeth
sudo modprobe forcedeth
sudo /etc/init.d/networking restart
et donner les dernières lignes d'un dmesg après cette manip?






solution



Solution trouvée : remplacer le module atl1e par la version trouvée ici :

ATL1E Linux Driver for Ethernet controller: Attansic Technology Corp. Unknown device 1026 (rev b0)
CAUTION: Do NOT confuse this with the ATL1 Driver (without the "E" at the end)









Copy from : http://jan.ucc.nau.edu/wal2/atheros_attansic.html
in order not to loose it.
########################################################################################

ATL1E Linux Driver for Ethernet controller: Attansic Technology Corp. Unknown device 1026 (rev b0)

CAUTION: Do NOT confuse this with the ATL1 Driver (without the "E" at the end)


Symptoms: On an Asus Eee PC 1000H running Ubuntu 8.04 (Hardy Heron) with the 2.6.24-19-generic kernel


lspci yields:

03:00.0 Ethernet controller: Attansic Technology Corp. Unknown device 1026 (rev b0)

and the wired ethernet is nonfunctional.


In addition to what I've written below, you should also read:


http://ubuntuforums.org/showthread.php?t=770173&page=2



http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492029
 
(In Debian, the module will be included in the 2.6.26 kernel.)


In my case, since I had rebooted the machine many times before building the module (see below for building),
udev had added a bunch of lines for "newly discovered"
ethernet cards with all different MAC addresses,
so I had to edit /etc/udev/rules.d/70-persistent-net.rules and delete ALL lines for ethernet devices
named eth0, eth1, eth2, etc.

(See

http://ubuntuforums.org/showthread.php?p=3869356

but do NOT change
75-persistent-net-generator.rules as that post says).


The following worked for me to build the module on an Asus Eee PC 1000H running Ubuntu 8.04 (Hardy Heron).


Jie Yang at Atheros mailed me the Version 1.0.1.0 driver source,
and I saved it as filename
l1e-linux-v1.0.1.0.tar.gz .

md5sum for the tarball above: d83196e507f9b2bea47514ba97fffd6f
sha1sum for the tarball above: 1f6a1ee6280add6e4c8d2f110ecd176c6f0e9134

Do all of the following as root:

Install the build-essential package: apt-get install build-essential

Make a new directory somewhere named l1e-linux-v1.0.1.0

cd into that new empty directory and tar -zxvf /some/dir/l1e-linux-v1.0.1.0.tar.gz

cd to the "src" directory in the module source tree

KBUILD_NOPEDANTIC=1 make
The above should succeed with no errors or warnings.

KBUILD_NOPEDANTIC=1 make install
Expect a warning like "cannot write to /var/cache/man/cat7/atl1e.7.gz in catman mode".

Edit /etc/modules and add on a line by itself,
atl1e
as the first non-comment line, then reboot.

After rebooting, verify the driver loaded as follows:

$ dmesg|grep Atheros

Atheros(R) AR8121/AR8113/AR8114 PCI-E Ethernet Network Driver - version 1.0.1.0
Copyright (c) 2007 Atheros Corporation.

$ sudo modprobe -l atl1e
/lib/modules/your-kernel-version/kernel/drivers/net/atl1e/atl1e.ko

This driver, atl1e, should NOT
be confused with the atl1 driver (which has a lot of info at http://atl1.sourceforge.net/
but which is not pertinent here).

Until the atl1e kernel driver module is included in the Linux kernel, the above build process
will have to be repeated every time you start running a new kernel.











Some links



Reduire l'utilisation du ventillo :
http://hartvig.de/2008/howto-reduce-fan-noise-level-on-the-eee-pc-900-1000-1000h-part-ii/

Laisser le dd se reposer :
http://doc.ubuntu-fr.org/laptop_mode

Contrôler quelles itf réseau sont ouvertes, lesquelles ne le sont pas :
http://greg.geekmind.org/eee-control/

Plus général :
http://doc.ubuntu-fr.org/asus_eee_pc_1000h

encore plus général :

http://www.netvibes.com/ramvi#Ubuntu_Eee

vendredi 28 novembre 2008

Installation de Ubuntu-eee sur Asus Eee Pc 1000H

Quelques petites remarques


  • partitionnement : j'ai fait le partitionnement à la main, en mode manuel, leur GUI ne faisait pas ce que je voulait ou ne marchait pas bien.

  • compiz : compiz n'a pas l'air de tourner, en tout les 3 modes d'affichage disponible dans Preferences > Appearance > Visual Effects sont :
    1. None

    2. Normal

    3. Extra

    et parmis ceux-là, seul le premier fonctionne (les deux autres ont soit des pb de transparence, soit de résolution, etc. mais ne sont en tout cas pas fonctionnels.



  • BIOS : pour aller dans le bios au démarrage s'il est nécessaire d'activer le boot sur USB, ce sont les touches ESC ou F2 (1 ou 2 fois)





Quelques questions non encore résolues :


  • Comment ajouter un plus grand nombre de bureaux virtuels ?


  • Comment ajouter dans les "places" du menu de gauche des liens ouvrant directement un shell dans les repertoires en question (nautilus c'est pas que je m'en fout mais ... en fait si ) ?


  • Comment modifier les icônes affichées au milieu pour qu'elle soient sous la forme de liste ou au moins d'icônes plus petites ?


  • Comment ajouter d'autres applets dans le 'gnome-panel' présent en haut ?


  • Comment accéder au bureau "en tant que tel", c.a.d. sans l'affichage prenant tout l'écran ? (qui est cela dit bien pratique)



Dig -x ...

$ dig -x 69.69.69.69

; <<>> DiG 9.4.2-P2 <<>> -x 69.69.69.69
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17090
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;69.69.69.69.in-addr.arpa. IN PTR

;; ANSWER SECTION:
69.69.69.69.in-addr.arpa. 86400 IN PTR the-coolest-ip-on-the-net.com.

;; AUTHORITY SECTION:
69.69.69.in-addr.arpa. 86400 IN NS dns1.utelfla.com.
69.69.69.in-addr.arpa. 86400 IN NS ns10.embarqservices.net.

;; ADDITIONAL SECTION:
dns1.utelfla.com. 60003 IN A 138.210.81.3
ns10.embarqservices.net. 43433 IN A 205.160.188.2

;; Query time: 338 msec
;; SERVER: 132.227.64.13#53(132.227.64.13)
;; WHEN: Fri Nov 28 14:17:51 2008
;; MSG SIZE rcvd: 181



Par contre, 42.42.42.42 est décevante.



$man dig

DIG(1) BIND9 DIG(1)

NAME
dig - DNS lookup utility

SYNOPSIS
dig [@server] [-b address] [-c class] [-f filename] [-k filename] [-p port#] [-q name] [-t type] [-x addr]
[-y [hmac:]name:key] [-4] [-6] [name] [type] [class] [queryopt...]

dig [-h]

dig [global-queryopt...] [query...]

DESCRIPTION
dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and
displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to
troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have
less functionality than dig.
[...]

jeudi 27 novembre 2008

Unbuntu-eee sur Asus Eee Pc 1000H

ubuntu-eee. Version d'ubuntu customisée pour les eee. Installée sans soucis (pour l'instant), voir les liens suivant pour plus d'info. Le principal intérêt en première prise en main est le thème qui réduit beaucoup l'utilisation de l'écran, et un fond de desktop incluant reprenant ce qui est généralement dans les trois menus "Applications" "Places" "System" sous gnome.
Pour l'instant (Nov 2008) c'est la version 8.04.1 qui sert toujours de base à ce remix ubuntu.

On notera dans la même veine le projet "Ubuntu Netbook Remix"
(description du projet ici)
un autre fork de ubuntu : eeeXUbuntu (à base de XUbuntu).


Ubuntu-eee : usb key bootable, à la main. Leur soft faisant cela en mode feignant ne marchait pas, alors je suis passé par là. Fonctionnement nickel de la clef.



Ubuntu sur un asus Eee PC 1000H : installation de Ubuntu Hardy (non modifiée) et résolution de qq pbs.



Forum Ubuntu, page sur ubuntu eee et sur le eee 1000h




Au final la machine marche bien après installation.



Son ok,
wifi ok,
ethernet ok,
Xwindows ok,
"accélérateurs" clavier ok,
suspend (ok ; il râle mais pas encore identifié le pb. pas apparent en tout cas),
bluetooth : non testé
...


Remarque :
Installé en double boot en redimensionnant la partition windows xp, mais pas encore testé si elle tourne toujours.



Asus Eee PC 1000H

Petit Rappel de la config de la machine



Commençons par faire un petit tour de la machine elle même avant de passer à son installation.
Tout d'abord les des spéc trouvées sur le net, puis quelques infos trouvées sur la machine elle même.

En bref : pour 10" et 1,5kg on a 1Go de Ram, 160Go de DD et un processeur Intel Atom à 1,6GHz (qui semble être constitué en fait de deux coeurs à 800MHz).

Donc pas de SSD contrairement à beaucoup de modèles de ces gammes de netbook, ce qui va de paire avec les 300g de plus environ.

Autre point positif, le chargeur est aussi tout petit.

Trouvé sur le net :


Quelques spéc techniques générales trouvées sur le web pour ce type de machines.

















Display LCD Size: 10" Wide
LCD Resolution: 1024 x 600 (WSVGA)
LCD Type: TFT
Intel CPU & Chipset Intel® Atom N270 (Intel 945 GSE Chipset)
Ethernet Communication 10/100 Mbps / RJ-45
Memory 1GB DDR2 (1 SO-DIMM)
Wireless Data Network Built-in 802.11b/g/n & Bluetooth 2.0
Display Card Intel UMA
Storage HDD Seagate Momentus 5400.4 160GB
Camera 1.3M Pixel webcam
Audio Hi-Definition Audio CODEC
Storage Cards SD / MMC (SDHC)
Input / Output 3x USB2.0 / VGA-out (D-Sub, 15pin) / earphone jack / mic
Battery 6 Cell
Power Output 12V, 3A
Input: 100-240V AC, 50-60Hz universal
Dimensions 10.47" x 7.53" x 1.12" ~ 1.50"


Quelques infos sur la machine elle même :



lspci


Display controller : Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev03)

Ethernet controller : Attansic Technology Corp. Unknown device (rev b0)

cpuinfo



Deux fois un coeur de 800MHz semble-t-il, soit deux fois les infos suivantes

model name : Intel(R) Atom(TM) CPU N270 @1.60GHz

cpu MHz : 800.000
cache size : 512 KB

mardi 25 novembre 2008

Hard Drive recovery / unrm linux ext3 tools

Première chose à faire : démonter la partition.
Après réflexion, c'est peut-être pas une bonne idée d'arrêter la
machine complètement, à moins d'en avoir une autre sous la main
facilement sur laquelle on peut monter le dd en question. Et sur laquelle on aura assez de place pour copier les données retrouvées.


Un des trucs à noter est que je savais précisément le format des
fichiers que je voulais récupérer : des JPEG dans mon cas.
Dans tout les cas il y en a pour un bon bout
de temps de boulot (quelques heures au mieux pour une partition ~40Go, en ne faisant que ça sur la machine).
Ne pas oublier qu'il faut après faire le tri de ce qui a été récupéré puisque la récupération des fichiers perd généralement le nom des fichiers.


Quelques pointeurs



Photorec, qui m'a donné les résultats les plus intéressants pour moi :PhotoRec_Step_By_Step


Je crois que c'est celui que j'avais utilisé, ne pas se fier au nom,
maintenant cela supporte d'autre formats de fichier.


Quelques autres liens avec des infos intéressantes, et il y a un autre soft que j'avais utilisé mais je ne sais plus lequel de ceux-là c'était
(ou peut être même encore un autre) :

lundi 24 novembre 2008

Nautilus user scripts

Possibilité d'ajouter des scripts dans Nautilus (l'explorateur d'arborescence sous Gnome) :

Les ajouter dans

$HOME/.gnome2/nautilus-scripts/





Pour y acceder, après, c'est un menu Scripts (qui n'apparaît pas s'il n'y a rien dans le directory pré-cité), est présent lors du click droit sur la souris.




Par exemple :
$ cat $HOME/.gnome2/nautilus-scripts/Open\ Terminal\ Here

#!/bin/bash
# From Chris Picton
# Replaces a Script by Martin Enlund
# Modified to work with spaces in path by Christophe Combelles

# This script either opens in the current directory,
# or in the selected directory

base="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d'/' -f3- | sed 's/%20/ /g'`"
if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then
dir="$base"
else
while [ ! -z "$1" -a ! -d "$base/$1" ]; do shift; done
dir="$base/$1"
fi

gnome-terminal --working-directory="$dir"





Quelques autres exemples ici.

vendredi 21 novembre 2008

Disk monitoring : smartd


SMARTD(8) 2008/03/10 SMARTD(8)

NAME
smartd - SMART Disk Monitoring Daemon

SYNOPSIS
smartd [options]

FULL PATH
/usr/sbin/smartd

PACKAGE VERSION
smartmontools-5.38 released 2008/03/10 at 10:44:07 GMT

DESCRIPTION
smartd is a daemon that monitors the Self-Monitoring, Analysis and
Reporting Technology (SMART) system built into many ATA-3 and later
ATA, IDE and SCSI-3 hard drives. The purpose of SMART is to monitor the
reliability of the hard drive and predict drive failures, and to carry
out different types of drive self-tests. This version of smartd is
compatible with ATA/ATAPI-7 and earlier standards (see REFERENCES
below).

lundi 17 novembre 2008

sshfs mount

Quand même tellement plus pratique qu'un ssh + scp lorsqu'il s'agit uniquement de transférer qq fichiers !!


# sshfs user@serveur.ext:/home/user/ mountpoint/



lundi 3 novembre 2008

Ext2 attributes


chattr, lsattr : two commands that allow reading and modifying of
file attributes on an ext2 filesystem.



Example :


# chattr +i /etc/shadow


This command will put the "i" attribute (file cannot be modified. This includes deletion or renaming).

See 'man chattr' for detailed description on attributes.




CHATTR(1) CHATTR(1)

NAME
chattr - change file attributes on a Linux second extended file system

SYNOPSIS
chattr [ -RV ] [ -v version ] [ mode ] files...

DESCRIPTION
chattr changes the file attributes on a Linux second extended file sys‐
tem.

The format of a symbolic mode is +-=[ASacDdIijsTtu].

The operator ‘+’ causes the selected attributes to be added to the
existing attributes of the files; ‘-’ causes them to be removed; and
‘=’ causes them to be the only attributes that the files have.

The letters ‘acdijsuADST’ select the new attributes for the files:
append only (a), compressed (c), no dump (d), immutable (i), data jour‐
nalling (j), secure deletion (s), no tail-merging (t), undeletable (u),
no atime updates (A), synchronous directory updates (D), synchronous
updates (S), and top of directory hierarchy (T).




LSATTR(1) LSATTR(1)

NAME
lsattr - list file attributes on a Linux second extended file system

SYNOPSIS
lsattr [ -RVadv ] [ files... ]

DESCRIPTION
lsattr lists the file attributes on a second extended file system. See
chattr(1) for a description of the attributes and what they mean.


lundi 27 octobre 2008

non-root mount for external usb ext3 hard drive

J'ai récemment acquis un disque dur externe USB 2.5", que j'ai formaté en ext3.

Mauvaise surprise à l'auto-détection, il est par défaut (contrairement aux clefs usb en FAT32) mis en lecture seule pour les utilisateurs lambdas, et uniquement en lecture-écriture pour root.

Lors du formatage utilisation de :


sudo fdisk /dev/sdb1
sudo mkfs.ext3 /dev/sdb1
sudo e2label /dev/sdb1 {{snip label}}




Pour modifier le mode de montage et mettre ça dans fstab, j'ai eu recours à la commande vol_id pour trouver les paramètres.


# vol_id /dev/sdb1
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID={{snip}}
ID_FS_UUID_ENC={{snip}}
ID_FS_LABEL={{snip label}}
ID_FS_LABEL_ENC={{snip}}
ID_FS_LABEL_SAFE={{snip}}



J'ajoute alors dans /etc/fstab la ligne suivante :

LABEL={{snip label}} /media/{{snip mount point}} ext3 user,auto 0 0



Ca à l'air de marcher comme il faut !!





VOL_ID(8) vol_id VOL_ID(8)

NAME
vol_id - probe filesystem type and read label and uuid

SYNOPSIS
vol_id [--export] [--type] [--label] [--label-raw] [--uuid]
[--skip-raid] [--probe-all] [--help] [device]

DESCRIPTION
vol_id is usually called from a udev rule, to provide udev with the
filesystem type, the label and the uuid of a volume. It supports most
of the common filesystem formats and detects various raid setups to
prevent the recognition of raid members as a volume with a filesystem.

dimanche 19 octobre 2008

magicrescue

http://www.student.dtu.dk/~s042078/magicrescue/

mardi 14 octobre 2008

fixps - sanitize PostScript files

Linux / Unix Command: fixps
Command Library
NAME
fixps - sanitize PostScript files
SYNOPSIS
fixps [OPTIONS] FILE
DESCRIPTION

Try to fix common PostScript problems that break postprocessing.


http://linux.about.com/library/cmd/blcmdl1_fixps.htm

Couleurs, Agave

Quelques couleurs


Tenter de faire un thème sobre phpbb à partir de ces deux couleurs :

http://www.pixenjoy.com/lharmonie-des-couleurs

# RSS Orange RSS Orange [#FF7400]
# Techcrunch green Techcrunch green [#008C00]


Voir même (triangle) :
#ff9900 orange
#00FF99 vert clair
#9900FF violet

mais je n'aime pas le vert.




agave



On peut faire joujou avec le programme «Agave» qui permet de tester des jeux de couleurs en fonction de critères prédéfinis et généralement admis comme étant de bonnes "alliances de couleurs».


http://home.gna.org/colorscheme/

man agave

NAME
Agave - colorscheme designer for the gnome desktop

SYNOPSIS
agave [options]

DESCRIPTION
Agave is a program for generating colorschemes from a starting color.
It currently supports five different colorscheme types:

[...]

vendredi 10 octobre 2008

Medibuntu packages

From : Medibuntu
Medibuntu (Multimedia, Entertainment & Distractions In Ubuntu) is a repository of packages that cannot be included into the Ubuntu distribution for legal reasons (copyright, license, patent, etc).

Medibuntu is a packaging project dedicated to distributing software that cannot be included in Ubuntu for various reasons, related to geographical variations in legislation regarding intellectual property, security and other issues [...]




From : Ubuntu Forums : Comprehensive Multimedia & Video Howto

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

vendredi 5 septembre 2008

Access BIOS Setup menu Dell Latitude820

Ayant un joli Splashscreen à l'allumage de l'ordi, j'ai du demandé à google quelle était la combinaison de touche pour accéder au Setup du BIOS d'un Dell Latitude D820.

Résultat, il y a deux possibilité pour les Dell Latitude :


  • F2

  • Fn+F1

vendredi 29 août 2008

mount iso Ubuntu and NetBSD

Ubuntu way


$ sudo mkdir /media/iso
$ sudo mount -t iso9660 netbsd/i386cd-4.0.iso /media/iso -o loop
$ ls -la /media/iso/


NetBSD way


$ su
# vnconfig -c vnd0 /home/mark/i386cd-3.0.1.iso
# mount_cd9660 /dev/vnd0d /image/

(from : http://wiki.netbsd.se/How_to_install_NetBSD_from_an_USB_Memory_Stick )

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