Archive for May, 2008

How to change Dell’s BIOS settings from a Linux command-line

Wednesday, May 21st, 2008

To be able to change BIOS settings from the command-line on a Dell Poweredge, you need the syscfg utility. It’s very useful when you want to change a configuration on, for example, 32 nodes at once, without having to plug screen, plug keyboard, reboot, change setting, reboot 32 times. Here is how I installed it on the CentOS 5 distribution :

# cd ; wget -q -O – http://linux.dell.com/repo/hardware/bootstrap.cgi | bash
# yum install srvadmin-hapi
# wget ftp://ftp.us.dell.com/sysman/dtk_2.5_80_Linux.iso
# mkdir dtk
# mount -o loop dtk_2.5_80_Linux.iso dtk/
# cd dtk/isolinux/
# cp  SA.2 ~/SA.2.gz
# cd; gunzip SA.2.gz
# mkdir stage2
# cd stage2
# cpio -i < ../SA.2
# cd lofs
# mkdir dell
# mount -o loop dell.cramfs dell/
# mkdir -p /usr/local/sbin ; cp dell/toolkit/bin/syscfg /usr/local/sbin/
# umount dell
# cd
# umount dtk

And voilà! You can now use syscfg:

# /usr/local/sbin/syscfg –biosver
biosver=1.5.1
# /usr/local/sbin/syscfg –virtualization=enable
virtualization=enable

I’d have preferred an easier way, but couldn’t find syscfg’s RPM.

When deploying that to a lot of nodes, you probably don’t want to go through all the associated network downloads of the first phase (wget of the yum repository, yum, and wget of the 230MB iso), so you can take shortcuts:

# for node in $(list_of_nodes); do scp /usr/local/sbin/syscfg /var/cache/yum/dell-hardware-auto/packages/srvadmin-*.rpm $node: ; ssh $node “mkdir -p /usr/local/sbin; mv syscfg /usr/local/sbin; rpm -ivh srvadmin-*.rpm”; done;

Lazily testing memory

Tuesday, May 13th, 2008

I had, until recently, a problem when it came to test memory on the nodes in my lab. Until now, I was able to PXE boot memtest+, but had to go down to the lab and plug a screen to check the output. Multiple annoyances: first I had to move my ass to the lab room, then I add to do some difficult things to plug a screen to the node, then I had to come back from time to time and look at the output. All of these right in front of the cooling units, which blow some really cold air now that they work correctly.

This morning I investigated in the source code of memtest+ and found out it supports output to serial consoles since recently!

A little upgrade later, I can now boot memtest+ with the console=ttyS0,57600 command line parameter and just watch my serial line output, without moving at all! Yay!

DEFAULT memtest console=ttyS0,57600
LABEL memtest
KERNEL images/tools/memtest

Viva PXE!

(Btw for those who’ll find funny to use DEFAULT memtest… PXE boot choices are updated via a cgi script called from an intranet tool, which itself is wrapped in a little GTK systray applet. This applet allows to reboot, shut down, power on, reinstall various distributions, follow serial line, open an ssh connection, on the lab’s nodes. This tool is also useable via command line for scripting power).

Infractions sans voiture

Sunday, May 11th, 2008

Encore une fois aujourd’hui, j’ai entendu quelqu’un expliquer que ne pas respecter le code de la route à vélo, ça fait perdre des points sur son permis. Comme ça commence à m’agacer, je l’écris:

Conformément à une circulaire du 23 novembre 1992, il ne peut y avoir retrait de points que pour les infractions commises au moyen de véhicules pour la conduite desquels un permis de conduire est exigé. (3.1d)

Griller un feu rouge, prendre un sens interdit, faire des excès de vitesse sur la rocade… Vous pouvez faire tout ceci à vélo, et vous risquerez une amende pécuniaire – mais certainement pas un retrait de points sur votre permis.

De la même manière, vous pouvez faire n’importe quoi à rollers et vous exposer à une amende maximale de 4 €, si vous vous faites choper sur la route : en tant que piéton (statut légal des personnes à rollers ou skate board), l’article R.412-34 de code de la route vous interdit d’utiliser la chaussée lorsqu’un trottoir existe. 4 €, pas plus, pas moins.

En 2008, comment déclarer ses impôts en ligne

Saturday, May 3rd, 2008

Hier, j’ai essayé de déclarer mes impôts en ligne sur www.impots.gouv.fr. Jusqu’ici, ça marchait impeccablement depuis 2003 pour moi. Hier, j’ai eu des soucis:

  • Avec Firefox 3 beta 5, ça plante dès le début avec une zone d’applet grisée et “Applet signview bail” dans la barre d’état du navigateur. Qu’à celà ne tienne!
  • sudo apt-get install firefox-2
  • Avec Firefox 2, pas de java. Un symlink manquant: sudo ln -s /etc/alternatives/xulrunner-1.9-javaplugin.so /usr/lib/firefox/plugins/
  • Ensuite, avec Firefox 2 toujours, la déclaration elle même se passe bien; le seul problème est au moment de la signature numérique: “Erreur technique (n° 100)“. Argh!

Finalement, voici comment en 2008, j’ai réussi à déclarer mes impôts avec mon ordinateur sous Linux:

Je pense que c’est de la faute de Sarko.

news for few, stuff no-one cares about