Monday, November 12, 2012

Debian Squeeze 6.0 Installer

URL from Debian Website (netinst cd image)  :

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

# add into the list
deb squeeze/updates main
deb-src squeeze/updates main

deb squeeze main non-free
deb-src squeeze main non-free

deb squeeze-updates main
deb-src 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


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

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
make menuselect

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


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!