Dark Developments Where Knowledge Meets Power

3Oct/110

ASTERISK – Installing Asterisk on Debian

ASTERISK - Installing Asterisk on Debian
These instructions installs the components necessary for a standard asterisk configuration. I assume a fresh installation of Debian is installed.

Begin making sure that the package lists is recent:

Select All Code:
1
root@DEBIANX32: apt-get update

And upgrade the current packages to the most recent version:

Select All Code:
1
root@DEBIANX32: apt-get upgrade

First, we must install a working build environment that includes a compiler, linker, etc so that we can configure, compile and install Asterisk.

Select All Code:
1
2
root@DEBIANX32: apt-get install build-essential
root@DEBIANX32: apt-get install libncurses5-dev bison libssl-dev libnewt-dev zlib1g-dev procps gcc make binutils doxygen

Next install the necessary Linux kernel headers, first we need to find the current version.

Select All Code:
1
2
root@DEBIANX32: uname -r
2.6.32-5-686

Then when we know the version we'll install the correct package.

Select All Code:
1
root@DEBIANX32: apt-get install linux-headers-2.6.32-5-686

Now that the operating system is ready we'll download Asterisk and start the installation. First we'll download the package by issuing wget.

Select All Code:
1
root@DEBIANX32: wget %downloadlinkhere%

When the package is installed we'll unpack the TAR-ball.

Select All Code:
1
root@DEBIANX32: tar -xvf %packagename%

To prepare the installation, run the configure scropt with the Asterisk sources.

Select All Code:
1
2
root@DEBIANX32: cd asterisk-%version%
root@DEBIANX32: ./configure

Now we'll begin the compiling.

Select All Code:
1
root@DEBIANX32: make

Finally install the compiled sources by invoking make install.

Select All Code:
1
root@DEBIANX32: make install

After this all the necessary libraries and other resources are installed but you'll notice that the configuration directory is completly empty. Get the sample configuration files by issuing the make samples command.

Select All Code:
1
root@DEBIANX32: make samples

Note: Use only for a fresh install, might overwrite your config!

To setup Asterisk to start and stop automaticly with the system we'll need to init the scripts.

Select All Code:
1
root@DEBIANX32: make config
Print Friendly
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.