How do I install and configure common options to collect SNMP data and various other data (such as system load, network link status, hard disk space, logged in users etc) into an RRD? From the official project site: Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs […]
Category: Grep
Backtrack 4 – USB/Nessus Boot with Persistent Changes
This how-to will show you a method for building a USB thumb drive with the following features: Persistent Changes – Files saved and changes made will be kept across reboots. Nessus and NessusClient installed – Everybody needs Nessus Encryption configured (Note: This is not whole drive encryption) Tools and Supplies A USB thumbdrive – minimum […]
Windows Command Line Find and replace – Made easy with FART.exe
Here is a great little application that does a find and replace on a particular file, file type or file contents, then replaces it with a string of your choice. It can look in sub directories as well.The small app is called FART, yes that’s right FART – Find And Replace Text! Usage: FART [options] […]
Windows Command Line Tricks
Here are a few Windows command line tricks that might make your life easier. Save A List of Files to a Text File by Extension dir *.ext /s /b > files.txt This command line will create a file called files.txt. When you open this file, there will be a complete list of all the files […]
Windows (XP, Vista, Windows 7, 2003, 2008) Commands
Here is a great list Windows XP/2000 commands that will make any Linux user feel at home at the command prompt. A lot of these commands are intended for administrating a network, but they are great for savvy home users as well. at – Windows Scheduling utility bootcfg – This utility allows you to set […]
Detecting listening network ports on Linux
It is importand to check for ports that are open and there are not needed. For a list of network ports that are open you can use the following commands: netstat -tulp orlsof -i -n | egrep ‘COMMAND|LISTEN|UDP’ Or, you are not limited to netstat or lsof but you can always use a port scanner, […]
MySQL Backup Shell Script
***TO CREATE BACKUP SCRIPT ON LOCAL SERVERmkdir /root/binvi /root/bin/mysqlbak.sh (then copy script into this file)change parameters in script to match databasechmod 755 /root/bin/mysqlback.sh ***TO VERIFY SCRIPT WORKS1. run this command/root/bin/mysqlbak.sh2. when script is done, check subdirs of /var/backup/db/daily for tarred & gzipped backups ***TO SCHEDULE THIS TO RUN DAILY, CREATE SYMBOLIC LINKln -s /root/bin/mysqlbak.sh /etc/cron.daily/mysqlbak.sh […]
Set Apache Password Protected Directories With .htaccess File
There are many ways you can password protect directories under Apache web server. This is important to keep your file privates from both unauthorized users and search engines (when you do not want to get your data indexed). Here you will see the basics of password protecting a directory on your server. You can use […]
CentOS / Redhat Iptables Firewall Configuration Tutorial
How do I configure a host-based firewall called Netfilter (iptables) under CentOS / RHEL / Fedora / Redhat Enterprise Linux? Netfilter is a host-based firewall for Linux operating systems. It is included as part of the Linux distribution and it is activated by default. This firewall is controlled by the program called iptables. Netfilter filtering […]
Closing open ports and services on Linux
It is important to close any unneeded open ports. To view a list of running services you can execute the following command: chkconfig –list | grep on To disable a running service you can execute the command: chkconfig service name off Then you should stop this service from running by executing: /etc/init.d/service stop