Compiz Check

From forlong’s Blog Compiz-Check is a script to test if Compiz is able to run on your system/setup and if not, it will tell you the reason why. Additionally you can use the output of the script to look for support in the official Compiz Fusion forums or the mailing list / forum of your…


How to Install Software from a Tarball in Linux

Posted June 25th, 2009 by Joshua Price in Linux Most of the time, installing software in Linux is a breeze. Package management utilities like Apt, Portage, and Yum have made software installation in Linux even easier than it is in Windows (in my opinion at least). If you know what you want, you simply tell…


Install Smarty

This is a simple guide to get Smarty setup and running quickly. The online documentation includes a very thorough explanation of a Smarty installation. This guide is meant to be a quick and painless way of getting Smarty working, and nothing more. The guide assumes you are familiar with the UNIX system environment. Windows users…


How To Reset Linux Firewall Automatically While Testing Configuration With Remote Server Over SSH Session

Q. I’d like to tell my Linux iptables firewall to flush out the current configuration every 5 minutes. This will help when I’m testing a new rules and configuration options. Some time I find myself locked out of my own remote server. How do I reset Linux firewall automatically without issuing hard reboot? A. You…


Enable register_globals for a single domain

How to enable register_globals for a single website without putting the entire server security at risk? * In your file manager, enter the public_html folder. * In the public_html folder you will see a file called .htaccess. * Select the .htaccess file and click on edit in the upper right hand corner. * Copy and…


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