Author: <span class="vcard">g33kadmin</span>

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


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…