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 –probability 0.01 -j DROP (where probability is expressed as a value between 0 and 1) If the intention is to emulate packet drop to the […]
ShrimpWorks » Change your console resolution and colour depth
Pour la console système kernel : vga= Colors ( depth) 640×480 800×600 1024×768 1280×1024 1600×1200 —————+——-+——-+——–+———+——— 256 ( 8 bit)| 769 771 773 775 796 32,768 (15 bit)| 784 787 790 793 797 65,536 (16 bit)| 785 788 791 794 798 16.8M (24 bit)| 786 789 792 795 799 viaShrimpWorks » Change your console resolution […]
Load Testing and Benchmarking With Siege
Siege is a fantastic utility for helping with Linux server management by exposing problems before they go into production. It’s open source software (GPLv2 or later) and easy to get started with. Siege is packaged for Debian and Ubuntu, but it doesn’t look to be packaged for Fedora and openSUSE (at least in the default […]
Build cross-compiled kernel debian package – Sysmic.org
Build cross-compiled kernel debian package Par Jérôme Pouiller le vendredi, octobre 29 2010, 09:37 – Lien permanent As you may know, you have juste to add options ARCH and if necessary CROSS_COMPILE to command line: make ARCH=powerpc CROSS_COMPILE=ppc-linux-gnu- XXX_defconfig make ARCH=powerpc CROSS_COMPILE=ppc-linux-gnu- XImage My primary concern is to compile an x86 32bits kernel in 64bits […]
Run PHP with a light weight webserver | box.matto.nl
Multiple light-weight httpd server In search for a lightweight solution to run some php pages on my Debian diskless shellserver it appears there are several lightweight httpd daemons in Debian that can do php. I created some virtual machines on KVM to do some testing. Here follows a short howto to get the different httpd […]
Debian Linux: Set a Serial Console
Debian Linux: Set a Serial Console by Vivek Gite on January 22, 2011 · 2 comments How do I set up a serial console on Debian Linux HP server for troubleshooting and login purpose? To setup a serial console you need to edit the following files under Debian Linux: /boot/grub/menu.lst or /etc/default/grub (recommended for grub2) […]
Variables en shell Bash
Variables en shell Bash Manipulation de variables simples var=val ou var= »a b » affectation de la variable « var » $var ou ${var} contenu de la variable « var » ${#var} longueur de la variable « var » export var ou declare -x var exportation de la variable « var » vers les shells fils set affichage de l’ensemble des variables définies dans le […]
X.Y.Z: How to debug or test cron script
How to debug or test cron script If your simple cron script (/etc/cron.daily, etc/cron.hourly etc) does not run as expected, do the following: 1. be sure to have ‘#!/bin/sh’ as the first line 2. make sure the script’s name does not contains ‘.’. for example, you should rename ‘yourscript.sh’ to ‘yourscript’. 3. use absolute path […]
cirpack et asterisk / Freephonie
Remarque très constructive de Ludovic L. « Le message Cirpack n’est pas un bug, mais un message de keepalive pour le nat upd des routeurs des internautes (maintien de l’entrée nat entre votre poste et le serveur free). Bref … pour asterisk le patch est ceci : éditer le fichier : ./channels/chan_sip.c … e = ast_skip_nonblanks(e); […]