06/12/2013 Par PJ Michel DansDebian, pense-bête apt-mirror et translation i18 Il faut modifier /usr/bin/apt-mirror pour gérer les translations ligne 355 pour wheezy ligne 363 pour squeeze il vous faut trouver ces lignes de codes foreach (@components) { add_url_to_download($url . $_… Read More
06/06/2013 Par PJ Michel Dansmysql, pense-bête Splitter un dump mysql avec Bash, en 1 dump par table #!/bin/bash file=$1 # the input file directory="$file-splitted" # the output directory output="$directory/header" # the first file containing the header GREP="DROP TABLE" # what we are looking for mkdir $directory #… Read More
27/01/2013 Par PJ Michel DansDebian, mysql, pense-bête Collectd, monitorer mysql coté collectd Host "localhost" User "collectd" Password "Secrets of the Universe with Philo" Database "mysql" # MasterStats true coté Ligne de commande mysql -u root mysql> CREATE USER ‘collectd’@'localhost’ IDENTIFIED… Read More
20/08/2012 Par PJ Michel DansDebian, pense-bête Envoyer des emails avec piece jointe en ligne de commande sous Linux Envoi d'un email + pièce jointeecho "Ci-joint la photo de ma voiture" | mutt -s "Ma voiture" -a voiture.jpg -- toto@toto.comLa même chose sans texte d'explication :echo | mutt -s… Read More
17/08/2012 Par PJ Michel DansDebian, pense-bête Onduleur XP 500VA Infosec Debian Lenny – nut / Onduleur – Z3 Zenergy 700 VA (INFOSEC) Publié le Février 23, 2011 Configuration de nut pour l’onduleur Z3 Zenergy 700 – USB de INFOSEC System… Read More
26/01/2012 Par PJ Michel DansDebian, pense-bête Emulating a high latency network connection using Linux and TC Often it is necessary for testing purposes to recreate the networking conditions found in a high latency network, such as a satellite link. Firstly create a network bridge that can… Read More
26/01/2012 Par PJ Michel DansDebian, pense-bête Emulating a network connection with packet drop IP packet drop can be easily emulated on any section of network using a Linux Bridge and a single iptables command: iptables -t mangle -A FORWARD -m statistic --mode random… Read More
13/01/2012 Par PJ Michel DansDebian, pense-bête ShrimpWorks » Change your console resolution and colour depth Pour la console système kernel : vga= Colors ( depth) 640x480 800x600 1024x768 1280x1024 1600x1200 ---------------+-------+-------+--------+---------+--------- 256 ( 8 bit)| 769 771 773 775 796 32,768 (15 bit)| 784 787… Read More
02/12/2011 Par PJ Michel DansDebian, pense-bête Chroot SSH et PTY allocation avec Debian Lenny Pour mettre en place des serveurs de backup, j’utilise un script chroot-ssh.sh qui permet la construction d’un chroot minimal pour faire tourner… Read More
27/10/2011 Par PJ Michel DansDebian, pense-bête Sonde IPMI sous Collectd et CGP Sous /etc/rc.local modprobe ipmi_devintf modprobe ipmi_msghandler modprobe ipmi_si sous /etc/collectd/collectd/collectd.conf LoadPlugin ipmi plugin sensor.php devient ipmi.php Read More