#!/bin/bash # Title: nabou setup # Subject: for monitoring your systems for changes # # Home planet of Nabou # # http://www.nabou.org/installation.php # # Pleas change the email address below to # your email address. It is corrently set for my address ################################### # unpack ################################### tar -zxvpf nabou-2.0-BETA1.tar.gz cp nabou-2.0-BETA1/nabou /root/bin/ ################################### # chnage perms on nabou ################################### chmod 700 /root/bin/nabou chown root:root /root/bin/nabou #this will fail if you don't use ext2 file system if chattr +i /root/bin/nabou ################################### # install perl modules ################################### perl -MCPAN -e'install "Config::General"' < /root/nabou_inig_log.txt ################################### # Run the script ################################### script /var/nabou/init.log /root/bin/nabou --config /etc/nabourc --init exit cat /var/nabou/init.log cat "30 01 * * * root /usr/local/sbin/nabou > /var/nabou/syslog.log 2>&1" >> \ /var/spool/cron/tabs/root /etc/init.d/cron restart