How To Manage Apache Resources Limits With mod_slotlimit (Debian Etch)

November 13th, 2010 by jennyamy 
1. Installation In order to compile mod_slotlimit, you will need to have apxs2 (APache eXtension tool) installed and configured with Apache. The follow command will install it: apt-get install apache2-prefork-dev Now we download the source package present at http://sourceforge.net/projects/mod-slotlimit/ or download it using wget application and this direct link to the repository: wget http://kent.dl.sourceforge.net/sourceforge/mod-slotlimit/mod_slotlimit.tar.gz Next...

How To Configure Apache To Use Radius For Two-Factor Authentication On Ubuntu

November 12th, 2010 by jennyamy 
This document describes how to add WiKID two-factor authentication to Apache 2.x using mod_auth_radius on Ubuntu 8.1. A previous article described how to add two factor authentication to apache on Fedora. Interestingly, a patch has been created to update mod_auth_radius to work with Apache 2.2+, however, it has only been updated for Debian and Ubuntu. For Fedora and other RedHat flavors of Linux,...

How To Set Up A Caching Reverse Proxy With Squid 2.6 On Debian Etch

November 12th, 2010 by jennyamy 
This article explains how you can set up a caching reverse proxy with Squid 2.6 in front of your web server on Debian Etch. If you have a high-traffic dynamic web site that generates lots of database queries on each request, you can decrease the server load dramatically by caching your content for a few minutes or more (that depends on how often you update your content). I do not issue any guarantee...

How To Convert Physical Systems And Xen VMs Into OpenVZ Containers (Debian Etch)

November 12th, 2010 by jennyamy 
This guide explains how you can convert physical systems (running Debian Etch) or Xen domUs (also running Debian Etch) into an OpenVZ container. This procedure should also work for converting VMware VMs, VirtualBox VMs, or KVM VMs into OpenVZ containers, but I haven’t tried this. It should work for other Linux distributions as well, with minor modifications (for example, the network configuration...

How To Upgrade A Debian Etch System (Server & Desktop) To Debian Lenny

November 12th, 2010 by jennyamy 
This article shows how you can upgrade a system running Debian Etch to Debian Lenny. It is intended for both server and desktop systems. I do not issue any guarantee that this will work for you! 1 Preliminary Note You should take a backup of your Debian Etch system (you can find some suitable tutorials for this in the Backup category), just in case something goes wrong (but the upgrade worked fine...

How To Install A Public Git Repository On A Debian Server

November 12th, 2010 by jennyamy 
Git is a free distributed revision control, was initially created by Linus Torvalds for Linux kernel development. It is primarily developed on Linux, but can be used on other Unix operating systems including BSD, Solaris and Darwin. Git is extremely fast on POSIX-based systems such as Linux. It differs from svn and creates a private repository on a remote server too. Some popular projects using Git: *...

How To Add Bash Completion In Debian

November 11th, 2010 by jennyamy 
Introduction Bash completion is a useful tool for completion of file paths, commands etc. By default it is enabled on Ubuntu but not on Debian. With two simple steps it can also be enabled on Debian. 1. Install bash-completion First of all we need the install the according package: apt-get install bash-completion 2. Add it to the bash profile Either edit the ~/.bash_profile file to enable it only...

How To Compile virt-df, virt-top, virt-mem & virt-ctrl On Debian Lenny

November 11th, 2010 by jennyamy 
This short guide explains how you can build virt-df, virt-top, virt-mem and virt-ctrl from the sources on a Debian Lenny system. These tools are currently available for Fedora in binary format. virt-top – “top”-like utility for showing stats of virtualized domains. virt-df – “df” for virtual guests. Run this on the host/dom0 to find out how much disk space is used...

How To Set Up Journaled Quota On Debian Lenny

November 11th, 2010 by jennyamy 
This tutorial shows how you can set up journaled quota on a Debian Lenny system. With journaled quota, you don’t need to run quotacheck after an unclean shutdown. Journaled quota works on ext3 and ext4 file systems. I do not issue any guarantee that this will work for you! 1 Preliminary Note If you set up quota the “normal” way (e.g. as shown in chapter nine on The Perfect Server...

How To Defend slowloris DDoS With mod_qos (Apache2 On Debian [Lenny])

November 11th, 2010 by jennyamy 
From the Slowloris description: Slowloris is designed so that a single machine (probably a Linux/UNIX machine since Windows appears to limit how many sockets you can have open at any given time) can easily tie up a typical web server or proxy server by locking up all of it’s threads as they patiently wait for more data. Some servers may have a smaller tolerance for timeouts than others, but...

How To Connect To A WPA Wifi Using Command Lines On Debian

November 11th, 2010 by jennyamy 
This tutorial will explain how to connect to a WPA (1-2) wireless network without installing any graphical tool. I assume that your wireless drivers are activated in the kernel and that your card is detected in Linux with the command: ifconfig -a Mine is identified by wlan0 but that may change for you. For Intel users, you may need firmware-iwlwifi from the non-free repository. For the others let’s...

How To Set Up Software RAID1 On A Running LVM System (Incl. GRUB Configuration) (Debian Lenny)

November 11th, 2010 by jennyamy 
This guide explains how to set up software RAID1 on an already running LVM system (Debian Lenny). The GRUB bootloader will be configured in such a way that the system will still be able to boot if one of the hard drives fails (no matter which one). I do not issue any guarantee that this will work for you! 1 Preliminary Note In this tutorial I’m using a Debian Lenny system with two hard drives,...