run webalizer over existing (also compressed) logs 
LogFile /var/log/apache2/access.log.1
OutputDir /var/www/webalizer
Incremental yes
To have the right sorting order (oldest logs first) i use ls -tr.
for i in $(ls -tr access.log*); do \
webalizer -c /etc/webalizer/webalizer.conf $i; \

[ view entry ] ( 1663 views )   |  print article
ip crossover: send packets on eth0 out and receive them via eth1  
For testing my intellon driver on one pc i need to send packets on eth0 (intellon usb) out and receive them via eth1 (intellon ethernet).

The only solution i found was a not anymore supported module for netfilter from Rusty Russell.

I tried to fix the compiler errors/warnings and finally it worked.


ifconfig eth0
ifconfig eth1
arp -s <hardware address of eth1> -i eth0
arp -s <hardware address of eth0> -i eth1
modprobe ip_crossover dev1=eth0 dev2=eth1

Then doing ping, ICMP ping goes out eth0 and comes back in eth1.


for testing packets with differenz sizes i did:

for i in $(seq 0 1472); do ping -q -c1 -s$i >/dev/null || echo fail $i; done

for i in $(seq 0 1472); do ping -q -c1 -s$i >/dev/null || echo fail $i; done

[ view entry ] ( 1303 views )   |  print article
Intellon int51x1 PLC usb net driver for devolo dlan duo 
Here is how i made the patch for inclusion:

git config --global "Peter Holik"
git config --global "peter AT"

check kernel out with git

git clone git://

first i had to export usbnet_get_ethernet_addr from usbnet.c
and to fix cdc_ether.c

git commit -am "export get_ethernet_addr from cdc.ether.c in usbnet"

then copy my new driver int51x1.c to /usr/src/linux-2.6/drivers/net/usb/ and modify /usr/src/linux-2.6/drivers/net/usb/Kconfig and /usr/src/linux-2.6/drivers/net/usb/Makefile

git add /usr/src/linux-2.6/drivers/net/usb/int51x1.c

git commit -am "usb driver for intellon int51x1 based PLC like devolo dlan duo"

git format-patch -s origin/master

Then mail the created file to linux kernel mailinglist:

cat 0001-export-usbnet_get_ethernet_addr-from-usbnet-and-fixe.patch | \

cat 0002-usb-driver-for-intellon-int51x1-based-PLC-like-devol.patch | \

Many thanks to the guys at for suggestions and improvements.

Undo last commit with git reset --soft HEAD^

My driver will be part of linux kernel 2.6.31

git quick reference

[ view entry ] ( 955 views )   |  print article
Show installed packages sorted by disc usage 
dpkg-query --show --showformat='${Installed-Size}\t${Package}\t${Status}\n' | grep -v deinstall | sort -nr | less

adapted from Martins Blog

Clear dpkg status file

dpkg-Status sorted:
grep Status /var/lib/dpkg/status|sort|uniq -c

purge rc packages:
dpkg -P $(dpkg -l \*|grep ^rc|awk '{print $2}')

purge for other status:
grep -B 2 'deinstall ok config-files' /var/lib/dpkg/status|sed /^$/d |grep Package|awk '{print $2}'

[ view entry ] ( 835 views )   |  print article
apt-get on many hosts with clusterssh 
Clusterssh opens for each connection a xterm and sends a keystroke to each window.

You can also work in only one xterm.

#> apt-get install clusterssh

I use approxd for caching .deb's using port 9999. This port is not reachable by all my hosts,
therefore i use remote port forwarding from ssh.

I can type

#> cssh -o "-R9999:approxy:9999" host1 host2 host3

or create a default config

#> cssh -u > $HOME/.csshrc

You can define different clusters aliases. Each alias consists of some hosts:
clusters = apt mon
apt = host1 host2 host3
ssh_args= -x -o ConnectTimeout=10 -R9999:approxy:9999
now i only type

#> cssh apt

a small patch makes "retile windows" working for me:

--- 2010-09-27 13:23:02.561375883 +0200
+++ /usr/share/perl5/App/ 2010-09-27 13:09:27.011375882 +0200
@@ -1319,7 +1319,7 @@
logmsg( 3,
"x:$current_x y:$current_y, r:$current_row c:$current_col" );

- $xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );
+# $xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );

if ( $config{unmap_on_redraw} =~ /yes/i ) {
$xdisplay->req( 'UnmapWindow', $servers{$server}{wid} );

[ view entry ] ( 719 views )   |  print article

<<First <Back | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | Next> Last>>