Month: June 2009

An A-Z Index of the Bash command line for Linux

alias Create an alias apropos Search Help manual pages (man -k) apt-get Search for and install software packages (Debian) aspell Spell Checker awk Find and Replace text, database sort/validate/index b bash GNU Bourne-Again SHell bc Arbitrary precision calculator language bg Send to background break Exit from a loop builtin Run a shell builtin bzip2 Compress…


NGINX + PHP-FPM + APC = Awesome

The following guide will walk you through setting up possibly the fastest way to serve PHP known to man. If there is a faster way, I’ve not yet found it climbing through zillions of blog posts out there on the subject. In this article, we’ll be installing nginx http server, PHP with the PHP-FPM patches,…


Making Your Server Talk

Code and config in these examples are tested on a debian box. What we need: -A software for speech synthesis espeak is good for this purpse. quiet configurable and the voice quality is OK. apt-get install espeak -A software that can trigger events, when certain log entries appear swatch is our friend here. it reads…


MySQL log slow queries

edit /etc/my.cnf using # vi /etc/my.cnf Then add log-slow-queries long_query_time = 5 Long_query_time is the number of seconds for a query to be considered long enough to log. The log will be created with detailed information about the queries that are slower than 5 seconds (in this case) for MySQL. The default location of this…


How to change the linux login banner/message

To change the login banner/welcome message, simply edit the /etc/issue file. #vim /etc/issue


How to list the contents or files from a tar.gz file

tar -tvzf tarfile.tar.gz non gzip file: tar -tfv tarfile.tar


How do I re-enable Ctrl+Alt+Backspace?

If you don’t want to use a user interface to change the effect of Ctrl+Alt+Backspace in any flavour of Ubuntu you can follow these steps: 1) Install the “dontzap” package sudo apt-get install dontzap 2) Open Terminal or Konsole and type: sudo dontzap –enable or sudo dontzap –disable Where “disable” means that Ctrl+Alt+Backspace restarts the…


vpsinfo : server status in your browser

from http://www.labradordata.ca/home/13 vpsinfo is a Linux server monitoring script, written in PHP, that provides web access to system status information. It gathers the output from several common Linux commands into one web page, providing a quick overview of the system’s current state. While designed for use on a Linux Virtuozzo or OpenVZ VPS (Virtual Private…


Running Your Own RBL DNS Blacklist

Ever notice how the public RBL databases aren’t enough? spamcop and spamhaus are great, but there are spammers still getting through. Did you ever want to do it yourself? This procedure explains how to run your own RBL DNS Blacklist. It uses a mysql table to store the IP address you want to blacklist and…


Compile an Ubuntu 9.04 Kernel

Compile an Ubuntu 9.04 Kernel The purpose of this tutorial is to show you how to set up a kernel that is highly tuned for your CPU, in this case a Pentium 4 with hyperthreading for a workstation. Caution: If you do something wrong..it happens…be sure to reboot and select an alternative kernel. You should…