SmartMonTools Package for Linux

The smartmontools package contains two utility programs (smartctl and smartd) to control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (SMART) built into most modern ATA and SCSI harddisks. In many cases, these utilities will provide advanced warning of disk degradation and failure.

This is a very handy set of tools for your physical Linux boxes.

More info at main website: http://smartmontools.sourceforge.net/index.html

How to Redirect to virtual folder under default website in IIS

In IIS 6.0 and 7 I want to have this URL www.mysite.com/sitemain to be accessible by anyone typing www.mysite.com (sitemain is a virtual directory setup under the default website) instead of the full URL.

To achieve this, simply enter in the “redirect to” box “/sitemain” and (VERY IMPORTANT) select the “A permanent redirection for …..”.

Note: I had to do this for a website recently and it did take a bit of working out at first.

IPTABLES script to run boot time with Debian


In order to get Debian to start a firewall script on boot up, get the script to run before the network interface starts.

Edit /etc/network/interfaces
and place the script at the start with the path and the pre-up command e.g.
pre-up /etc/fwr.sh

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
pre-up /etc/fwr.sh
address 10.10.10.100
netmask 255.255.255.0
network 10.10.10.0
broadcast 10.10.10.255
gateway 10.10.10.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 10.10.10.2
dns-search winnetworks.com

Note: the fwr.sh is the IPTABLES Script, see IPTABLES posts for details about this.