Note (February 2010) : This page is going to be an archived page. From now on all of my hacks and writings will be published on my blog site.
This page contains small codes that I wrote (hacked) in order to make my system softwares work. Usually they are just patches.
The default rc.lighttpd file included with lighttpd-1.4.10 has typo error in the "reload/force-reload" section. Apply the above patch to fix the error.
In my system, the spec file included in tcpreplay-3.0.beta7 cannot be used to generate the RPM package. So I modified the spec file to make it work.
(updated : Oct 18, 2008) I fix several bugs and change the initscript above from the previous version (for SUSE 9.x).
Download the initscript above and rename it to snortd, then move it to /etc/init.d/ directory.
To use it :
/etc/init.d/snortd [start|stop|restart|status|stats {long|opt}]
Caution : if you monitor your messages file, you will notice that there will be an error message from snort :
snort[16326]: Could not remove pid file /var/run//snort_eth0.pid: Permission denied
I have checked that directory and I can't find the file. It looks like the removing process is success.
If you know how to fix this error, please contact me. Thank you.
(updated : Oct 12, 2008) If you install TrueCrypt from sourcecode, then you will need this script to remove it.:D
More information about the reason why I wrote this, can be read here
(added : Oct 12, 2008) You can read the information regarding this patch at aircrack-ng website. The patch mentioned in the documentation can't be used in my system, so I fix it a little bit.