Monday, November 12, 2012

Debian Squeeze 6.0 Installer

URL from Debian Website (netinst cd image)  :
http://cdimage.debian.org/debian-cd/6.0.6/i386/iso-cd/debian-6.0.6-i386-netinst.iso


Sources:
# edit the file
nano /etc/apt/sources.list


# add into the list
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main

deb http://ftp.de.debian.org/debian/ squeeze main non-free
deb-src http://ftp.de.debian.org/debian/ squeeze main non-free

deb http://ftp.de.debian.org/debian/ squeeze-updates main
deb-src http://ftp.de.debian.org/debian/ squeeze-updates main


# update the repositories
apt-get update

Thursday, November 8, 2012

Install Asterisk 11 on Debian 6 / Debian Squeeze

Asterisk 11 - Debian Squeeze

INSTALLATION:

1. You need to install the dependencies.
apt-get install build-essential linux-headers-2.6.32-5-686 libxml2-dev libncurses5-dev libgtk2.0-dev libnewt0.52 libnewt-dev

2. Download the asterisk 11 package. I usually download it in the "/usr/src/" directory.
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz

3. Extract the asterisk 11 source.
tar -zxvf asterisk-11-current.tar.gz

4. Go to the extracted directory.
cd /usr/src/asterisk-11-current

5. Configure and compile asterisk 11
./configure
make menuselect

OPTIONAL:
---------------
Depending on your needs, you can enable some add-ons like format_mp3. Go to Add-ons and enable "format_mp3".

For this to work, you need to install subversion and get the mp3 source.


apt-get install subversion
contrib/scripts/get_mp3_source.sh

----------------

make all
make install
make samples
make config
make install-logrotate

6. Run asterisk in verbose mode to check if it was installed properly.
asterisk -vvvvvvvvvvc

7. Automate asterisk service to run on startup.
update-rc.d asterisk defaults

8. You're done! Enjoy!