In this guide I will explain how to install and use KVM to create and run virtual machines on a Debian Squeeze Server.
In this tutorial I will show how to create image-based virtual machines.
KVM makes use of hardware virtualization. For that you need a CPU that supports hardware virtualization such as Intel VT or AMD-V.

Step 1. Check if your CPU supports hardware virtualization using the following command:

egrep ‘(vmx|svm)’ –color=always /proc/cpuinfo

If your result is nothing, then your processor doesn’t support hardware virtualization.

Step 2. Install KVM and virtinst :

apt-get install kvm qemu-kvm libvirt-bin virtinst

Step 3. Now we need to add the user as which we’re currently logged in to the groups libvirt and kvm. Run the following commands:

adduser `id -un` libvirt
adduser `id -un` kvm

Step 4. You also  need to set up a network bridge on our server.  You need that for virtual machines to can be accessed from outside.
For that you need to  install the package bridge-utils.

apt-get install bridge-utils

Continue Reading…

Piwik is a  source, open (GPL) web real-time analysis software. It provides detailed reports about visitors on your website like: search engines,  keywords used, the language they speak, your popular pages .
Piwik is an alternative to Google Analytics, and is already used by more than 150,000 websites.
Piwik is an PHP MySQL software program that you can download and install on your own web server. At the end of installation process you will be given five minutes JavaScript code.
Simply copy and paste this tag on websites that wish to track  and access your reports real-time analysis.

You can Download the latest Piwik release and install it on your server. You will need at least PHP5.1 and MySQL to make piwik to work.

Install Piwik on Debian Squeeze:

Step1.  First we need to download the latest release of Piwik from :


Step2. Then unzip the downloaded file. This will  create a “piwik” folder containing files and directories.


Continue Reading…

This bash script was cread for you to help you to set up a VPN that will let you do many things.

This bash script is based primarily on another tutorials, but I have updated and I added some more infos.

This is the script:

# OpenVPN install script
# Tested on Debian Squeeze
# Please submit feedback and questions at [email protected]

ip=`grep address /etc/network/interfaces | grep -v | awk ‘{print $2}’`
apt-get update
apt-get install openvpn libssl-dev openssl
cd /etc/openvpn/
cp -R /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn/
cd /etc/openvpn/easy-rsa/2.0/
chmod +rwx *
. ./vars
source ./vars

echo -e “\n\n\n\n\n\n\n” | ./build-ca

Continue Reading…

Example DNS Zone File for BIND9

Valic —  August 18, 2011 — 2 Comments

Sample DNS zone file for BIND9 with a domain with two nameservers and

You can use this example to define your own name servers.Just make changes to the domain name and IP addresses.

Be sure to include first the following statement in named.conf:

zone "" {
type master;
file "”;

The zone file looks like this:

@    IN    SOA   [email protected]. (
86400 )
Continue Reading…

How to purge Varnish cache

Valic —  August 10, 2011 — 3 Comments

If you’re new varnish user, this is some words about varnish:

Varnish is an HTTP accelerator designed for content-heavy dynamic web sites. Unlike other HTTP accelerators, such as squid, which began as a cache on the client, or Apache2, which is mainly an origin server, Varnish was designed from the ground up as an HTTP accelerator..

Now I will show you how to purge all the cache without restarting the daemon.
The following coomand will do this for you:

varnishadm -T url.purge .*


Page 1 of 212