Month: January 2010

cPanel Sendmail Logger WHM Plugin

From http://scriptmantra.info After the release of the FFMPEG Installer, we are releasing a new WHM Plugin to log all mails sent through the server using the sendmail binary. You can see the logs inside the WHM and identify the the spammer instantaneously. Details regarding the Plugin is available at : http://admin-ahead.com/sendmail_logger.html All instructions pertaining to…


WHM APF Interface 2

From http://scriptmantra.info APF WHM Interface. After the success of our ffmpeg installer and sendmail logger , we are moving ahead with an installer to deploy an interface for APF firewall. The APF firewall is one that is widely used and trusted for years now. You can download the installer from http://scriptmantra.info/scripts/A-AST_APF_Interface Please note that you…


Oh Noes, my is load high! Part 2

We have seen what a server load consists of and now we will look at how to reduce that load. How do we define high? Please see the Server load link here. Server load can be elevated for any reasons and we will look at a few ways to determine where the increased load is…


Oh Noes, my is load high! Part 1

Server Load: Server load is a measure of the amount of work that a computer system performs. The load average represents the average system load over a period of time. A server load average will measure the number of active processes at any given time. The load average seen in top is simplistic and uses…


du one liner

Here is a CLI du command one liner to list all of the files and folders in a directory nicely sorted by size. This is handy for when someones /var or /usr directory is full and causing issues on the server; du -sk ./* | sort -nr | awk ‘BEGIN{ pref[1]=”K”; pref[2]=”M”; pref[3]=”G”;} { total…


Clone Your Ubuntu installation

From ubuntugeek.com If you want to create a system that is similar to a different system you have already set up, it can be difficult to remember each and every package you had installed.This method works best when you are exporting to and importing from the same distribution and, specifically, the same release for example,…


Domain Expiration Check Shell Script

From www.cyberciti.biz I’ve already written about a shell script to check / monitor domain renew / expiration date here. Now I’ve modified matt’s domain-check script to support additional C/TLDs .in, .biz, .org and .info domains. I’ve also added 5 seconds delay to avoid whois server rejecting query. This script checks to see if a domain…


Shutdown via CLI

To shutdown linux from the command line, open an ssh connection to the server and by adding this function to roots’ .bashrc file vim /root/.bashrc file insert quit () { poweroff -d } save and quit the file. Now all you have to do is type quit from the command line and voila! server is…


Transfer files via netcat

From; http://www.linux.com/archive/articles/114093 http://www.g-loaded.eu/2006/11/06/netcat-a-couple-of-useful-examples/ In the simplest terms, netcat is a utility that reads and writes data across the network. The netcat utility, or just nc, works on the same principle as the cat utility, but over the network. This can be very useful in a number of situations, such as testing remote services, or for…


Free VPN access to the web

From itshidden.com ItsHidden.com is the ultimate FREE surfing privacy service on the Internet with huge capacity and no complicated software to install, you already have everything you need on your computer right now! We are now also proud to launch our new paid service for more demanding uses! * ItsHidden.com is fast and reliable with…