Generate crontab scripts
Someone recently passed me this link and it looks great! You can generate crontab scripts via a website. Here’s the link:
Someone recently passed me this link and it looks great! You can generate crontab scripts via a website. Here’s the link:
this script will reset a user’s password and email it to them. It accepts two parameters (username) (email address) Example Usage: . someuser [email protected] #!/usr/local/bin/bash if [ $# -ne 2 ]; then echo “Please provide a username and email address”;…
To install Apache Ant on Cent-OS follow these steps: # yum install ant # yum install xml-commons-apis You should see something like this: # ant -version Apache Ant version 1.6.5 compiled on January 6 2007 Here is a good tutorial…
Here’s the fix CentOS 4 X86_64 rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh rpm -Uvh …
Download files wget wget Check the MD5 or SAH1 to make sure they are legit (Don’t skip!!) md5sum ossec-hids-latest.tar.gz cat ossec-hids-latest_sum.txt Extract the files from the tar tar zxvf ossec-hids-latest.tar.gz Cd into the directory and run the…
This is a quick tutorial on how to install the OSSEC web interface on Ubuntu (covers 8.04 and 8.10): Installing Apache root@home:/# cd /tmp root@home:/tmp# apt-get install apache2 libapache2-mod-php5 # said yes to all required packages root@home:/tmp# restart Downloading…
A ssh port forwarding example would be to map a remote host’s 3306 port to your local machines 3306 port over ssh. Remote Host: 192.168.0.1 Your Host: localhost To port forward a mysql connection on a remote host to your…
You can Tar + gzip on the fly in linux # tar cvf – somedir | gzip -c > somedir.tar.gz
To recursively delete all .svn folders below a given path follow these instructions: Linux Run this command: #rm -rf `find . -type d -name .svn` Or: # find . -type d -name .svn | xargs rm Windows 1. Open up…
To set your time properly on ubuntu run this command and follow the instructions: dpkg-reconfigure tzdata