Asterisk Installation Script for Debian 4

Hi Asterisk Friends

I wrote a little Asterisk 1.2 installation script which automatically installs:

All Dependencies






SpanDSP for FAX Support

on a Debian OS. Its a very basic script, but saves a hell of time during installations.

You will get a perfect PBX system without the need of using Trixbox etc. :smiley: :smiley: :smiley:
This script is not changing or adding any proprietary software. It’s just a simple installation routine… smile.

Why i use Asterisk 1.2

  • most stable Asterisk so far
  • FreePBX is not running well on Asterisk 1.4 yet
  • Asterisk GUI (Asterisk Now) still in Beta…

You can download the installation script from here

How to use the script?

Install a basic Debian OS 4 Netinstall systemthen copy and execute the asterisk installation script. (make sure you have internet connection).

The install script needs executing rights (chmod +x asteriskinstall)



Stay tuned, i’m working on a automated installation for a Asterisk cluster.


Thank you very much for this.

sorry about this begginer question
when i click the link for the script i get a text file.
how i run the script in my debian?


Just copy the content into a file (any name).
copy this file onto your debian machine

anywhere except /usr/src

set execution rights like:

chmod +x youfilename

execute script:


It can take a while to download everything… just hang in there and dont stop the script.

you can reach me via

best regards

thanks novecento
i just did that
is running yet but i got
…libxml2 its already…
…livxml2-dev not available but other pack reference it…
…might mean the pack is missing obsolete or only available from other source…
…pack livxnl2-dev has no candidate to install
All dependecies sucsesfully installed

is that ok?

thanks a lot!

I started all over
installed the cd
problem is debian starts only in cli mode (not gui) where i could pull files from my windows pc
how i get the script in my debian?


[quote=“tony2003”]I started all over
installed the cd
problem is debian starts only in cli mode (not gui) where i could pull files from my windows pc
how i get the script in my debian?


The whole point is to run the OS in CLI mode.

yo can copy the link and then do a wget from the debian system.



that should work.

i did the script step by step
this are some lines i got:

debian2:~# ./asteriskinstall
Install Depenencies
Reading package lists… Done
Building dependency tree… Done
E: Couldn’t find package build-essential
All Depenencies Successfully Installed

FreePBX was downloaded
LAME download started
./asteriskinstall: line 176: [: missing `]'
LAME was downloaded
SPANDSP download started

Configure Makefile for LAME
./asteriskinstall: checking build system type… i686-pc-linux-gnuoldld
checking host system type… i686-pc-linux-gnuoldld
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… no
checking for mawk… mawk
checking whether make sets $(MAKE)… no
checking whether to enable maintainer-specific portions of Makefiles… no
checking for style of include used by make… none
checking for gcc… no
checking for cc… no
checking for cc… no
checking for cl… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details. Exiting.

So there is a problem in these 3 error lines
all the other lines were ok
what can be the problem?

Thanks a lot!