lundi 18 août 2008
Comment verrouiller Caps Lock au démarrage?
lundi 18 août 2008 à 11:29 :: CLI
sudo apt-get install numlockx
Doc & news d'Olivier Heinry
lundi 18 août 2008
lundi 18 août 2008 à 11:29 :: CLI
sudo apt-get install numlockx
samedi 16 août 2008
samedi 16 août 2008 à 14:05 :: EchtZeit
I decided to purchase a Matrox DualHead2Go Analog Edition to connect to the VGA output of my laptop. It's quite cheap (around 140€) and allows me to have two outputs instead of a single one, running either a dual 1024*768 pixels resolution or, as you can see on this screenshot, a dual 1280*1024 + the orginal 144*900 display of the laptop. Dont bother to scroll all the way right!
Here is the working /etc/X11/xorg.conf conf file that works on a Ubuntu Studio 8.04 laptop with a nVidia GeForce 7300. Beware if you use the nvidia-settings GUI application, since it removes the references to any non-US keyboard, you might get in trouble at login if you dont manually edit your /etc/X11/xorg.conf in the "InputDevice" section according to your own langauge! Once you logged in, your desktop shoudl work fine.
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@vernadsky) Thu Jun 5 09:26:53 UTC 2008
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "type1"
Load "freetype"
Load "glx"
EndSection
Section "ServerFlags"
Option "Xinerama" "0"
EndSection
Section "InputDevice"
# generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "fr" Option "XkbVariant" "oss" Option "XkbOptions" "lv3:ralt_switch"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid Identifier "Monitor0" VendorName "Unknown" ModelName "Matrox" HorizSync 31.0 - 91.0 VertRefresh 60.0 - 85.0 Option "DPMS"
EndSection
Section "Device"
Identifier "Videocard0" Driver "nvidia" VendorName "NVIDIA Corporation" BoardName "Quadro NVS 110M"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "CRT: 2560x1024_60 +1440+0, DFP: 1440x900_60 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection

vendredi 15 août 2008
vendredi 15 août 2008 à 19:47 :: Diary
L'asso Ping a mis en ligne une interview réalisée peu après une série (à partir de deux , c'est une série, non?) d'ateliers ouverts intitulés OSCream à Main d'oeuvres et au Labomédia. Vous pouvez la lire sur leur blog: pingbase.net. Catherine en a eu de la patience pour tout retranscrire!
vendredi 13 juin 2008
vendredi 13 juin 2008 à 13:57 :: CLI
Jusqu'ici pour tuer les instances d'un programme, j'utilisais un bout de code bash punk d'apo33:
ps -e|grep pd 2>&1 > /dev/null
if $? -eq 0 ; then
killall -9 pd
fi
Problème avec les scripts python: on risque de tuer d'autres programmes si on tue sans discernement.
La solution tient sur une seule ligne:
ps x | grep python | grep nomduscriptatueravecdiscernement.py | cut -f 2 -d ' ' | xargs kill
mercredi 11 juin 2008
mercredi 11 juin 2008 à 09:34 :: Linux
J'ai d'abord suivi ce tutoriel:
http://www.howtoforge.com/debian_etch_samba_standalone_server_with_tdbsam_backend
Puis j'ai regardé du côté de la fin de celui-ci:
http://www.debianadmin.com/file-server-configuration-in-debian-using-samba.html
Le plus gros problème pour le montage automatique grace à /etc/fstab est d'ajouter les bonnes options, trouvées dans un message de liste de diffusion
http://lists.ze-linux.org/2004-03/msg00280.html
Enfin, j'ai installé un logiciel de backup écrit en python et doté d'une interface Gnome pour la configuration du démon nommé sbackup sur ma station de travail.
Pour l'envoi de mails, j'ai ôté exim qui prenait trop de RAM, pour passer par le SMTP de mon fournisseur d'accès. J'ai désormais le choix entre esmtp-run, nullmailer, msmtp ou ssmtp pour accomplir la rude tache d'un simple relay-only mail transport agent.