SARK V4.0.0 Raspi

From sailpbx
Revision as of 16:07, 9 November 2012 by Adminwiki (talk | contribs) (Raspi Install)
Jump to: navigation, search
Sark Colour HiRes.jpg





INTRODUCTION

SARK V4.0.0 can be run for test and evaluation purposes on the low-cost Raspberrypi ARM platform. This platform is NOT recommended for use in a production environment (we suggest you consider the SARK200 commercial ARM-based platform instead) but its great for learning SARK in a low cost environment. You'll also be surprised at just how fast SARK4 runs on the little ARM processor.

Raspi Install

Installing your Raspberrypi is easy! Just imagecopy (use dd under linux) the Raspberrypi "Raspbian" image onto a 4Gb (or larger) SD Card (see here - http://www.raspberrypi.org/downloads). Then follow the steps below to install a full function SARK image.

Step 1 run raspi-config to expand the partition to fill the SD Card

sudo raspi-config
reboot


Step 2 - install SARK prerequisites

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install asterisk dahdi apache2 sqlite3 php5-sqlite php-pear xinetd tftpd tftp libio-socket-multicast-perl 
sudo apt-get install libdbi-perl libdbd-sqlite3-perl runit sox mysql-server asterisk-mysql php5-mysql nmap zip ntp ssmtp php-net-ipv4 php5-gd
  • specify the mysql root password when it asks
  • specify your country-code for Asterisk when it asks

Now, get a cup of tea; the above takes about 30 minutes to finish...

Step 3 - install sark

wget sailpbx.com/sail/sail-4.0-beta/debs/sailhpe_4.0.0-18_armhf.deb
wget sailpbx.com/sail/sail-4.0-beta/debs/sail_4.0.0-18_all.deb

dpkg -i sailhpe_4.0.0.-17.armhf.deb
dpkg -i sail_4.0.0-17.all.deb

Step 4 - set up the cdr database

mysql -u root --password={whatever-you-picked-when-it-installed} < /opt/sark/stat/asterisk-stat-v2/cdr-mysql-setup.sql

Step 5 - have a play

You can browse to SARK at the IP address of the Raspi.

  • username - admin
  • password - asterisk