Kandalaya

Free Software

Latest news
About Kandalaya
VishwaKarma, a free Web-Hosting Control Panel Free software downloads
Commercial services
Some of Kandalaya's clients
Miscellaneous stuff
Mailing Lists
Presentations (downloadable)
Links
Mirrors of this site
Contact information, including PGP/GnuPG
      keys

In addition to VishwaKarma, the GPL Web-hosting Control Panel, the following software is available for download from this site:

Spam rules tuning spreadsheet
spamtune is a compact but powerful program that scans spam and ham (non-spam) messages and generates an OpenOffice.org spreadsheet with the scores. In the spreadsheet you can tune the scores of all the rules and dynamically see their effect on your spam/ham scoring.

spamtune currently only works with SpamAssassin, spamass-milter and Sendmail. Requests/patches for getting spamtune to work with other mail server/filter combinations are welcome.

Download spamtune from:

hinv for Linux
Hinv (Hardware Inventory) is a useful tool for SGI's IRIX operating system which displays the current hardware configuration of the system. This small Perl script attempts to do the same for a running Linux system.

Hinv for Linux was originally written by Larry McVoy; Larry is currently at lm@bitmover.com. I'm maintaining the script at the moment.

Sample hinv output looks like this (no, that's not my system :-)


i586 ~ hinv
Main memory size: 255 Mbytes
1 GenuineIntel 00/07 processor
2 16550A serial ports
1 National Semiconductor PC87306 floppy controller
1 1.44M floppy drive
1 vga+ graphics device
1 parallel port:
  lp0: base 0x378, no irq, no dma, modes SPP,ECP,ECPPS2
1 IDE device:
  /dev/hda: ATAPI 32X CD-ROM drive, 128kB Cache
1 ethernet interface
  eth0: OEM i82557/i82558 10/100 Ethernet
1 SCSI disk
  IBM      DNES-309170Y
  ESG-SHV  SCA HSBP M6
Sound devices:
  1 Audio device
    MAD16 WSS (82C930) (DUPLEX)
  1 MIDI device
    Mad16/Mozart
  1 Timer
    System clock
  1 Mixer
    MAD16 WSS (82C930)
PCI bus devices:
    Ethernet controller: Intel 82557 (rev 5).
    SCSI storage controller: NCR 53c810 (rev 35).
    VGA compatible controller: Cirrus Logic GD 5480 (rev 35).
    PIC: Intel Unknown device (rev 0).
    ISA bridge: Intel 82371AB PIIX4 ISA (rev 2).
    IDE interface: Intel 82371AB PIIX4 IDE (rev 1).
    USB Controller: Intel 82371AB PIIX4 USB (rev 1).
    Bridge: Intel 82371AB PIIX4 ACPI (rev 2).
    Host bridge: Intel Unknown device (rev 3).
    Host bridge: Intel Unknown device (rev 2).
    Host bridge: Intel Unknown device (rev 2).
    SCSI storage controller: NCR 53c896 (rev 1).
    SCSI storage controller: NCR 53c896 (rev 1).

The latest version of hinv for Linux is 1.4pre2 (released Sat Sep 11 09:14:24 IST 1999).

Earlier versions:

Note; Running hinv with perl -w will cause 3 (or maybe more) warnings from Perl about "printf interpreted as a function...". These are Perl problems and I'm unwilling to change my coding style to conform to a buggy parser :-) If you don't want to see the warnings, remove the spaces around the opening "(" following the "printf" on the offending lines.

The pre1 release still has some problems in counting number of CPU's. Please send me output of cat /proc/cpuinfo and hinv if you face this.

In general, when reporting errors or bugfixes, please do send me the hinv and kernel versions you are using, the output of the dmesg command, and the contents of any relevant file in /proc which may be causing the problem.

Gmemusage for Linux
Gmemusage
              screenshot Gmemusage is another IRIX tool. As per the manual entry in IRIX, gmemusage is a ``graphical memory usage viewer''. I'd received a request for a similar tool on Linux so I got my Xemacs open and came up with something which can be mistaken for gmemusage -- as long as you don't open your eyes too wide :-)

The mini-screenshot above is clickable (sorry, Lynx users!) to get the full thing.

Gmemusage has shifted to SourceForge

PPP Dial-up scripts
Version 2 Released!

Dialing out to your service provider in Linux isn't exactly the easiest thing for many people to setup, so here's a couple of programs which will do it for you. Main features are:

  • Handles multiple numbers
  • Automatically redials on connection break
  • Can be used by normal users if you make the program SUID
  • User can give standard modem initialisation strings in the script as well as on the command line.

I made these scripts to help a friend out for accessing VSNL but they should work without major modification on any ISP (subject to the conditions given above). The scripts aren't particularly sophisticated but they do their work -- I've been using them for an year now.

How to install (all this must be done as root on your system!):

  1. Get start-ppp and save it as /usr/local/bin/start-ppp
  2. Run
    chown root.root /usr/local/bin/start-ppp
    chmod 4111 /usr/local/bin/start-ppp
  3. Get stop-ppp|/B> and save it as /usr/local/bin/stop-ppp
  4. Run
    chown root.root /usr/local/bin/stop-ppp
    chmod 4111 /usr/local/bin/stop-ppp
  5. Save your current copy of /etc/ppp.options:
    mv /etc/ppp/options /etc/ppp/options.old
  6. Create an empty /etc/ppp/options:
    touch /etc/ppp/options
  7. Edit the first part of /usr/local/bin/start-ppp to enable settings for your system. Be sure to change all the relevant information!
  8. That's it! Now you can connect to your ISP by giving the command "start-ppp" and stop the connection with "stop-ppp". Make sure that /usr/local/bin is in your PATH, though :-)

If you want to use PAP authentication (and most ISP's seem to want it), add a line to /etc/ppp/pap-secrets containing your username and password. For example, if your username is ``user'' and your password is ``pass'', try the following:

echo "user^V<TAB>*^V<TAB>pass" >> /etc/ppp/pap-secrets
chown root /etc/ppp/pap-secrets
chmod 600 /etc/ppp/pap-secrets
            

(You will need to press ^V followed by the <TAB> key to get a literal <TAB> character in most Linux shells.)

Simple SMTP benchmark program|/b>
This small program does a simplistic checking of how fast a mail server is. It does nothing but create 1K messages and pump them into a remote (or local) SMTP server, finally printing out how many messages have been pushed in in a given period of time.

I wrote this program to benchmark sendmail vs qmail on an SGI system at a clients request. Needless to say (?), qmail came out the winner by a fairly large margin :-)

Download sm.c.

All trademarks acknowledged
Copyright © 2001, Kandalaya
Unless specifically stated otherwise, the information on this page is available under the terms of the GNU Free Documentation License