mardi 14 octobre 2008

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 :