You are on page 1of 4

1st step

$ sudo su
$ passwd #(set the root user's password)

2nd step

$ apt-get update #(retrieves the latest repository information)


$ apt-get upgrade #(upgrades any out of date packages
$ apt-get install linux-headers #(Used for zaptel compile) or
$ apt-get install linux-headers-server
$ apt-get install linux-source #(needed if you are going to recompile the
linux kernel)
$ apt-get install linux-image-server
$ reboot #(reboot to use the new kernel)

3rd step

$ apt-get install apache2 #(web server)


$ apt-get install apache2-mpm-prefork #(multi threaded portion to apache2)
$ apt-get install build-essential #(this is the build tool chain for gcc)
$ apt-get install lame #(this is a mp3 encoding tool)
$ apt-get install libmysqlclient15-dev #(library that lets programs connect
to mysql)
$ apt-get install libncurses5-dev
$ apt-get install libploticus0-dev
$ apt-get install libsox-fmt-all #(encoding and decoding libraries for sox)
$ apt-get install mpg123 #(mp3 playback utility for the commandline)
$ apt-get install mysql-client-5.0 #(command for connecting to mysql)
$ apt-get install mysql-doc-5.0 #(documentation for mysql)
$ apt-get install mysql-server-5.0 #(this will ask for a password you can
just press enter a bunch of times)
$ apt-get install mtop #(utility for monitoring mysql)
$ apt-get install mytop #(utility for monitoring mysql)
$ apt-get install ntp #(time synchronization utility)
$ apt-get install openssh-server #(ssh server allows for remote connection)
$ apt-get install php5 #(base php files)
$ apt-get install php5-cli #(php command line interface (allows us to run php
-v for eaccelerator))
$ apt-get install php5-dev #(development tools for php5 allows us to compile
eaccelerator
$ apt-get install php5-mysql #(allows php5 to connect to a mysql server)
$ apt-get install phpmyadmin #(vicidial uses apache2 as its webserver please
select this)
$ apt-get install ploticus #(this is what creates the graphs for the server
performance screen)
$ apt-get install screen #(vicidial runs its core scripts in screen so this
is REQUIRED)
$ apt-get install sipsak #(tool for sending various information to sip
phones)
$ apt-get install sox #(command line encoding and decoding tool)
$ apt-get install subversion #(code versioning tool)
$ apt-get install subversion-tools
$ apt-get install unzip
$ apt-get install libcurl3
$ apt-get install curl
$ apt-get install vim
$ apt-get install phpsysinfo
$ apt-get install iftop #(this is a useful tool for looking at the network
interface)
$ apt-get install htop #(this is a useful tool for looking at the network
interface)

4th step

$ cd /usr/src
$ tar -xjf linux-source-*.tar.bz2 #(where * is the kernel version)
$ cpan

5th step

(press enter to go through the prompts. If you have a multi cored system you
should enter the -j option when specified with n+1 as the value, where n is
the number of CPUs you have in your system. Also enter UNINST=1 when asked.
until you get to the mirror selection portion) (select 3 mirror sites in your
area)

> install MD5


> install Digest::SHA1
> install readline
> install Bundle::CPAN #(do not change settings)
> quit
$ cpan (enter through questions until you get to the cpan prompt)
> o conf commit (saves the config changes)
> force install Scalar::Util
> install DBI
> force install DBD::mysql
> install Net::Server
> install Time::HiRes
> install Net::Telnet
> install Unicode::Map
> install Jcode
> install OLE::Storage_Lite
> install Spreadsheet::WriteExcel
> install Proc::ProcessTable
> install Spreadsheet::ParseExcel
> install Mail::Sendmail
> quit

6th step

$ cd /usr/src
$ wget http://asterisk.gnuinter.net/files/asterisk-perl-0.08.tar.gz
$ tar xzf asterisk-perl-0.08.tar.gz
$ cd asterisk-perl-0.08
$ perl Makefile.PL
$ make all
$ make install

7th step

$ cd /usr/src
$ wget http://www.daveltd.com/src/util/ttyload/ttyload-0.5.tar.gz
$ tar xzf ttyload-0.5.tar.gz
$ cd ttyload-0.5
$ make
$ make install

8th step

$ cd /usr/src
$ wget http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.zip
$ unzip eaccelerator-0.9.5.3.zip
$ cd eaccelerator-0.9.5.3
$ phpize
$ ./configure
$ make
$ make install
$ cd /etc/php5/conf.d/
$ pico eaccelerator.ini
> add the following to the eaccelerator.:
extension="eaccelerator.so"
eaccelerator.shm_size="48"
eaccelerator.cache_dir="/var/lib/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
$ mkdir /var/lib/eaccelerator
$ chmod 0777 /var/lib/eaccelerator
$ php -v

9th step

NOTE: You should see a line mentioning eaccelerator. If you do not or you get
an error you have done something wrong

$ mkdir /usr/src/asterisk
$ cd /usr/src/asterisk

10th step

FOR 1.4 asterisk do the following:

$ wget http://download.vicidial.com/required-apps/asterisk-1.4.27-vici.tar.gz
$ wget http://downloads.digium.com/pub/zaptel/zaptel-1.4.12.1.tar.gz
$ wget http://downloads.asterisk.org/pub/telephony/libpri/releases/libpri-
1.4.10.1.tar.gz
$ tar xzf asterisk-1.4.27-vici.tar.gz
$ tar xzf zaptel-1.4.12.1.tar.gz
$ tar xzf libpri-1.4.10.1.tar.gz
$ cd libpri-1.4.10.1
$ make clean; make; make install
$ cd ../zaptel-1.4.12.1
$ ./configure; make clean; make; make install
$ cd ../
$ mv asterisk-1.4.27-vici asterisk-1.4.27
$ cd asterisk-1.4.27
$ ./configure; make clean; make; make install
$ make samples
$ modprobe zaptel
$ modprobe ztdummy

11th step

$ asterisk -vvvvvvvvvvvvvvvvvvvvvvvvvvvvgc (to see if Asterisk runs)


> show version
> zap show status
> show application meetme
> stop now

12th step

$ mkdir /usr/src/astguiclient
$ cd /usr/src/astguiclient
$ wget
http://downloads.sourceforge.net/project/astguiclinent/astguiclient_2.2.0rc7.z
ip?use_mirror=nchc
$ unzip astguiclient 2.2.0rc7.zip
$ perl install.pl

13th step

You might also like