SARK V4.0.0 Raspi

From sailpbx
Revision as of 12:19, 23 March 2013 by Adminwiki (talk | contribs) (Raspi Install)
Jump to: navigation, search

back to SARK Main Page

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 if you require a low-cost/low-power SIP PBX) but it's 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! Download and unzip a raspberry wheezy image from http://www.raspberrypi.org/downloads Just imagecopy (use dd under linux) the Raspberrypi "Raspbian" image onto a 4Gb (or larger) SD Card on your development box. Under Ubuntu this might look something like this (assuming the sdcard is at /dev/sdb)...


sudo dd bs=1M if=2013-02-09-wheezy-raspbian.img of=/dev/sdb

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
log back into your raspi cli and install the pre-reqs


sudo apt-get update
sudo apt-get upgrade
sudo apt-get apt-get install asterisk apache2 sqlite3 php5-sqlite php-pear xinetd tftpd libio-socket-multicast-perl libapache2-mod-php5 libdbi-perl libdbd-sqlite3-perl runit sox mysql-server asterisk-mysql php5-mysql nmap zip ntp ssmtp php-net-ipv4 libfile-readbackwards-perl shorewall tofrodos dahdi asterisk-dahdi 
  • 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. It's a full V4 install so it will do everything big-sark will do. The only thing missing on this initial release is a timing source so you can't use the Asterisk conference facility.

  • username - admin
  • password - asterisk