ruby 1.9.3 for Debian Squeeze

# From a fresh install of squeeze
apt-get install ruby rubygems # Need ruby to use fpm
gem1.8 install fpm –no-ri –no-rdoc

apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev

wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -zxvf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125
rm -rf /tmp/ruby193
time (./configure –prefix=/usr && make && make install DESTDIR=/tmp/ruby193)

/var/lib/gems/1.8/bin/fpm -s dir -t deb -n ruby193 -v 1.9.3-p125 –description “Self-packaged Ruby 1.9.3 patch 125” -C /tmp/ruby193 \
-p ruby193-VERSION_ARCH.deb -d “libstdc++6 (>= 4.4.3)” \
-d “libc6 (>= 2.6)” -d “libffi5 (>= 3.0.4)” -d “libgdbm3 (>= 1.8.3)” \
-d “libncurses5 (>= 5.7)” -d “libreadline6 (>= 6.1)” \
-d “libssl0.9.8 (>= 0.9.8)” -d “zlib1g (>= 1:1.2.2)” \
-d “libyaml-0-2 (>= 0.1.3)” \
usr/bin usr/lib usr/share/man usr/include

# Post installation test
apt-get remove ruby rubygems
apt-get install libffi5 libyaml-0-2
dpkg -i dpkg -i ruby193-1.9.3-p125_amd64.deb
ruby -ropenssl -rzlib -rreadline -ryaml -e “puts :success”

credit:
https://gist.github.com/futuremill/2318876

zabbix 1.9.3 on Debian squeeze

[QUICK INSTALL]

# aptitude install build-essential mysql-server libmysqlclient-dev php5 php5-gd php5-mysql snmp libsnmp-dev snmpd libcurl4-openssl-dev fping libiksemel3 libiksemel-dev

# adduser zabbix
# adduser zabbix adm

# mysql -u root -p -e “create database zabbix;”
# mysql -u root -p -e “grant all privileges on zabbix.* to [email protected] identified by ‘zabbix’;”

# su – zabbix
$ cd /home/zabbix

$ wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Development/1.9.3/zabbix-1.9.3.tar.gz
$ tar zxvf zabbix-1.9.3.tar.gz
$ cd zabbix-1.9.3/

$ mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/schema/mysql.sql
$ mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/data/images_mysql.sql
$ mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/data/data.sql

$ ./configure –prefix=/usr –with-mysql –with-net-snmp –with-libcurl –with-jabber=/usr/ –enable-server –enable-agent
$ make
$ su – root
# cd /home/zabbix/zabbix-1.9.3/
# make install

# mkdir /etc/zabbix
# cp -R /home/zabbix/zabbix-1.9.3/misc/conf/* /etc/zabbix/
# chown -R zabbix.zabbix /etc/zabbix/

# nano /etc/zabbix/zabbix_server.conf

# DBUser=zabbix
# DBPassword=zabbix

# cp /home/zabbix/zabbix-1.9.3/misc/init.d/debian/zabbix-* /etc/init.d/
# nano /etc/init.d/zabbix-server

change
DAEMON=/usr/local/sbin/${NAME}
to
DAEMON=/usr/sbin/${NAME}

nano /etc/init.d/zabbix-agent

change
DAEMON=/usr/local/sbin/${NAME}
to
DAEMON=/usr/sbin/${NAME}

# chmod 755 /etc/init.d/zabbix-server
# update-rc.d zabbix-server defaults
# chmod 755 /etc/init.d/zabbix-agent
# update-rc.d zabbix-agent defaults

# /etc/init.d/zabbix-server start
# /etc/init.d/zabbix-agent start

# nano /etc/apache2/sites-enabled/000-default

Alias /zabbix /home/zabbix/public_html/
<Directory /home/zabbix/public_html>
  AllowOverride FileInfo AuthConfig Limit Indexes
  Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
  </Limit>
  <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
  </LimitExcept>
</Directory>

# /etc/init.d/apache2 restart

# su – zabbix
$ mkdir /home/zabbix/public_html
$ cp -R zabbix-1.9.3/frontends/php/* /home/zabbix/public_html/

# http://localhost/zabbix
# Login with user “admin” and password zabbix”

[TIP]

memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 16M
max_execution_time = 600
max_input_time = 600
date.timezone = “Asia/Bangkok”

edit : Sep 10, 2011

debian squeeze + freeradius 2.1.10 + daloradius

Install Prerequisites

Apache 2
PHP 5
PHP GD
PHP DB Abstraction Layer (may require PHP Pear)
MySQL 5

Install

# aptitude install mysql-server php5 php5-mysql php5-gd php-pear php-db freeradius freeradius-mysql subversion

# aptitude install mysql-server php5-gd php-pear php-db freeradius freeradius-mysql subversion -V
The following NEW packages will be installed:
apache2-mpm-prefork{a} [2.2.16-6+squeeze1] apache2-utils{a} [2.2.16-6+squeeze1] apache2.2-bin{a} [2.2.16-6+squeeze1] apache2.2-common{a} [2.2.16-6+squeeze1] fontconfig-config{a} [2.8.0-2.1]
freeradius [2.1.10+dfsg-2] freeradius-common{a} [2.1.10+dfsg-2] freeradius-mysql [2.1.10+dfsg-2] freeradius-utils{a} [2.1.10+dfsg-2] libapache2-mod-php5{a} [5.3.3-7+squeeze1] libapr1{a} [1.4.2-6]
libaprutil1{a} [1.3.9+dfsg-5] libaprutil1-dbd-sqlite3{a} [1.3.9+dfsg-5] libaprutil1-ldap{a} [1.3.9+dfsg-5] libdbd-mysql-perl{a} [4.016-1] libdbi-perl{a} [1.612-1] libfontconfig1{a} [2.8.0-2.1]
libfreeradius2{a} [2.1.10+dfsg-2] libgd2-xpm{a} [2.0.36~rc1~dfsg-5] libhtml-template-perl{a} [2.9-2] libjpeg62{a} [6b1-1] libltdl7{a} [2.2.6b-2] libmysqlclient16{a} [5.1.49-3] libnet-daemon-perl{a} [0.43-1]
libonig2{a} [5.9.1-1] libpcap0.8{a} [1.1.1-2] libperl5.10{a} [5.10.1-17] libplrpc-perl{a} [0.2020-2] libpng12-0{a} [1.2.44-1] libpython2.6{a} [2.6.6-8+b1] libqdbm14{a} [1.8.77-4] libt1-5{a} [5.1.2-3]
libxpm4{a} [1:3.5.8-1] mysql-client-5.1{a} [5.1.49-3] mysql-common{a} [5.1.49-3] mysql-server [5.1.49-3] mysql-server-5.1{a} [5.1.49-3] mysql-server-core-5.1{a} [5.1.49-3] php-db [1.7.13-2]
php-pear [5.3.3-7+squeeze1] php5-cli{a} [5.3.3-7+squeeze1] php5-common{a} [5.3.3-7+squeeze1] php5-gd [5.3.3-7+squeeze1] php5-suhosin{a} [0.9.32.1-1] ssl-cert{a} [1.0.28] ttf-dejavu-core{a} [2.31-1] libneon27-gnutls{a} [0.29.3-3] libserf-0-0{a} [0.3.1-1] libsvn1{a} [1.6.12dfsg-5] subversion [1.6.12dfsg-5]
0 packages upgraded, 46 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.3 MB of archives. After unpacking 96.6 MB will be used.
Do you want to continue? [Y/n/?]

# mysql -V
mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (i486) using readline 6.1

# freeradius -v
freeradius: FreeRADIUS Version 2.1.10, for host i486-pc-linux-gnu, built on Nov 14 2010 at 20:41:03

# svn co https://daloradius.svn.sourceforge.net/svnroot/daloradius/trunk daloradius

Checked out revision 2047.

# cp daloradius/ /var/www -R
# chown www-data:www-data /var/www/daloradius -R
# chmod 644 /var/www/daloradius/library/daloradius.conf.php

# mysql -u root -p
Enter password:mysqladminsecret
mysql> CREATE DATABASE radius;
mysql> quit

# cd /var/www/daloradius/contrib/db/
# mysql -u root -p radius < fr2-mysql-daloradius-and-freeradius.sql
# nano /var/www/daloradius/library/daloradius.conf.php

$configValues['CONFIG_DB_PASS'] = 'mysqlpassword';

And then

http://your ip address/daloradius
username: administrator
password: radius

credit : https://help.ubuntu.com/community/CategoryNetworking/daloRADIUS