Tuesday, March 27, 2012

RRDtool 1.4.7 in ubuntu 10.04

Install RRDtool
Run the following commands as superuser:
sudo su
apt-get install libpango1.0-dev libxml2-dev
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.7.tar.gz
tar -zxvf rrdtool-1.4.7.tar.gz
cd rrdtool-1.4.7
mkdir /tmp/rrdbuild
export BUILD_DIR=/tmp/rrdbuild
mkdir /opt/rrdtool-1.4.7
export INSTALL_DIR=/opt/rrdtool-1.4.7

Tuesday, March 20, 2012

Traffic Shaping

Note : This is a good article about traffic shaping. Lets go to learn together… :) 
Source : http://blog.edseek.com/~jasonb/articles/traffic_shaping/scenarios.html

1. Introduction

1.1. Intended Audience

I have written this document with the experienced Linux administrator in mind. I make the assumption that the reader is familiar with compiling a kernel, downloading and configuring source packages from project Web sites, the Bash shell, patching sources, and so forth. It is also assumed that the reader has at least passing familiarity with Linux's Netfilter packet filter. Those already familiar with traffic control on other devices or platforms may wish to skip Introduction to QoS and start with Linux Traffic Control.

Sunday, March 18, 2012

Missing File : startup squid

Sometimes, when you install a new version squid , you can not find "start-up" file.
That was happened to me. I used Ubuntu 10.04 LTS, and tried to install a new version squid, which I have previously downloaded from http://www.squid-cache.org. After installation was finished, there was no "start-up" file.
Below, start-up file, which I have modified. The original file is from squid Mandriva 2009.0. :)


#!/bin/bash

Saturday, March 17, 2012

INSTALL HOTSPOT YFI (part 2)

Note :
Source of the original article : 
http://sourceforge.net/apps/trac/hotcakes/wiki/yfi_setup_cake
I have edited some parts according to my experience
This post continued from previous post

Configuring FreeRADIUS
  • Before you compile the souce code of FreeRADIUS, ensure the following packages are installed:
sudo apt-get install build-essential libmysqlclient15-dev libperl-dev \
libxml-simple-perl libmail-sendmail-perl libssl-dev
  • Download FreeRADIUS source code. (http://freeradius.org/download.html )
wget ftp://ftp.freeradius.org/pub/freeradius/freeradius-server-2.1.12.tar.gz
tar -xzvf freeradius-server-2.1.12.tar.gz
cd freeradius-server-2.1.12
./configure | tee config_out.txt
make
sudo make install
sudo ldconfig

Friday, March 16, 2012

INSTALL HOTSPOT YFI (part 1)

Note :
Source of the original article : 
http://sourceforge.net/apps/trac/hotcakes/wiki/yfi_setup_cake
I have edited some parts according to my experience
YFI Hotspot Manager network

 Set-up CakePHP

This is last experience and 100% working properly:
Component
Description
Operating System
Ubuntu 10.04 (Lucid Lynx)
Web Server
LAMP Stack
CakePHP
CakePHP version 1.2.11
Coova Chilli
Coovachilli 1.0.14
Radius
FreeRADIUS Version 2.1.12