Currently browsing category

Debian

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 –probability 0.01 -j DROP (where probability is expressed as a value between 0 and 1) If the intention is to …

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 …

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 …

QuepasaSHV4 « Pad « netfrag.org

A – search for rootkits B – more detailed investigation C – more trails D – remove it! E – refresh system F – Todo G – Infos Start with these tools: chkrootkit rkhunter A – search for rootkits chkrootkit: Checking `ifconfig’… INFECTED Checking `pstree’… INFECTED Searching for t0rn’s v8 …

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 …

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 …