Archive for June, 2009
Bacula is good tools for backup
Bacula is good tools for backup the linux system.
bacula-dir is for director and set the client and backup themes here.(Run on the server)
bacula-sd is storage daemon (Run on the server)
bacula-fd is file daemon (Run on the clients)
http://bacula.org/en/dev-manual/Brief_Tutorial.html
Enable two important repo for CentOS 5
Enable two important repo for CentOS 5
EPEL repo
http://fedoraproject.org/wiki/EPEL/FAQ#howtouse
Rpmforge ( many packages )
http://dag.wieers.com/rpm/FAQ.php#B1
warning: Certificate validation failed
warning: Certificate validation failed; consider using the certname configuration option
err: Could not retrieve catalog: Certificates were not trusted: certificate verify failed
warning: Not using cache on failed catalog
edit
/etc/hosts
add
ip puppet puppet.ur_domain.com
puppetd –server puppet.ur_domain.com –waitforcert 60 –test
Use Openssl to create a root CA
In Openssl after a root CA has ben generated here are the following commands to create an intermediate CA;
as root
/etc/pki/tls/misc/CA –newca
/etc/pki/tls/misc/CA -newreq
some Generic Certificate Authority (usually a server)
Enter Enter
/etc/pki/tls/misc/CA –signCA
PassPhrase: Demo
newreq.pem is key with CSR request inside
newcert.pem is certificate
new_to_open_ssl is offline
How to Create Self-Signed SSL Certificates with OpenSSL
http://www.xenocafe.com/tutorials/linux/centos/openssl/self_signed_certificates/index.php
FuzzyOCR , a plugin for SpamAssassin
FuzzyOCR , a plugin for SpamAssassin can filter some Image Spam
http://fuzzyocr.own-hero.net/
Maybe can be used by Donkey Ba
Good bash shell scripts book for newbie
Good bash shell scripts book for beginner
http://www.cyberciti.biz/nixcraft/linux/docs/uniqlinuxfeatures/lsst/
Get the rpms’ files
rpm2cpio file.rpm | cpio -idmv
get the rpm files without install the package!
How do I disabling Email output?
How do I disabling Email output?
By default the output of a command or a script (if any produced),
will be email to your local email account.
To stop receiving email output from crontab you need to append >/dev/null 2>&1.
For example:0 3 * * * /root/backup.sh >/dev/null 2>&
To mail output to particluer email account let us say vivek@nixcraft.in
you need to define MAILTO variable to your cron job:
MAILTO=”vivek@nixcraft.in”
0 3 * * * /root/backup.sh >/dev/null 2>&1
More details:
http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/
redWall, a bootable CD-ROM Firewall
redWall is a bootable CD-ROM Firewall. It’s goal is to provide a feature rich firewall solution, with the main goal, to provide a webinterface for all the logfiles generated!
http://www.redwall-firewall.com/
Install the FUSE modules for CentOS
Install the FUSE modules for CentOS
rpm -ivh http://download.fedora.redhat.com//pub/epel/5/`uname -i`/epel-release-`cut -d” ” /etc/redhat-release -f 3 |awk -F”.” ‘{print $1}’`-`cut -d” ” /etc/redhat-release -f 3 |awk -F”.” ‘{print $2}’`.noarch.rpm
rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum update -y kernel
yum install -y kernel-devel
yum install -y dkms-fuse.noarch
reboot
cd /usr/src/fuse-(some version)/
./configure –with-kernel=/usr/src/kernels/`uname -r`*/
make && make install
depmod -a
modprobe fuse
lsmod |grep fuse
it should print:
fuse 47124 0