Quick shell script to convert ifcfg-ethX-rangeY to ifcfg-ethX:Y format

Quick shell script to convert ifcfg-ethX-rangeY to ifcfg-ethX:Y format:

for i in `ls ifcfg-eth1-range*`;
  . ./$i
  D1=`echo $IPADDR_START|cut -d. -f4`;
  D2=`echo $IPADDR_END|cut -d. -f4`;
  D=`expr $D2 - $D1`;
  echo $D;
  S=`echo $IPADDR_START|cut -d. -f1,2,3`;
  for j in `seq 0 $D`;
  do …

How to check SpamAssassin version

Quick one-liner for checking spamassassin version:

[root@server ~]# perl -MMail::SpamAssassin -e 'print $Mail::SpamAssassin::VERSION;'

OpenSUSE developers announced csync

Andreas Schneider has unleashed the first public release candidate of csync 0.42, which is now available as source from the csync Web site, or via one-click for openSUSE 11.0 and 11.1.

Project homepage: http://www.csync.org/

This tool looks like a promising alternative to unison, which …


Parallels decided to drop qmail?

While installing latest Parallels Plesk version (9.0), noticed an unusual option :) :

Different mailservers
16. (*) Qmail mailserver
17. ( ) Postfix mailserver

Could this be true, that Parallels finally decided to drop Qmail?
Now don't get me wrong, but qmail wasn't updated for 10 years already, and any additional feature requires a …


2009 will be a second longer | Happy new year!

Found a confirmation of this in my system logs:

Jan  1 01:59:59 (none) kernel: Clock: inserting leap second 23:59:60 UTC



( Happy new Year! ) 
    \   ^__^      
     \  (oo)\_______
        (__)\       )\/\
           ||----w |
           ||     ||

vsftpd - chroot users to their homedir

Open the vsftpd configuration file - /etc/vsftpd/vsftpd.conf

nano /etc/vsftpd/vsftpd.conf

Make sure following line exists (and uncommented):


Save and close the file. Restart vsftpd.

/etc/init.d/vsftpd restart

Using vnstat for simple traffic accounting

vnStat is a network traffic monitor for Linux that keeps a log of daily network traffic for the selected interface(s). vnStat isn't a packet sniffer. The traffic information is analyzed from the /proc vfs, so vnStat can be used without root permissions. However at least a 2.2.x …


Setting up MadWifi on a Samsung r20 laptop, running Zenwalk as an os

I always liked the Slackware distribution, everything (well, almost) is really simple and straightforwar. For some time i'm using Zenwalk, a slackware-based distro, on my laptop.

At some point, i needed to connect to a nearby access point, and fortunately this samsung r20 has built-in an Atheros wireless adapter.

At …


Using remote logging on a dd-wrt enabled Linksys wrt54g

On the machine you want to log to (i have a slackware one):

root[floyd]# nano /etc/rc.d/rc.syslog


echo -n "/usr/sbin/syslogd"/usr/sbin/syslogd


echo -n "/usr/sbin/syslogd -r "/usr/sbin/syslogd -r

Restart syslog:

root[floyd]# /etc/rc.d/rc.syslog …

Zakang ZX410 CDMA phone on linux, connect to the Internet with it

Few days ago I bought a brand-new Zakang ZX-400 phone, from a local CDMA Operator, Unite
Also, I have opted for a monthly subscription, including unlimited internet access.
The main issue is that they provide drivers/instructions for WinXP/2000, and I'm not going to use Windows just because of …