SARK V4.0.0 Raspi

From sailpbx
Revision as of 15:06, 9 November 2012 by Adminwiki (talk | contribs)
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.

Raspi Install

Install the Raspberrypi "Raspbian" image onto a 4Gb (or larger) SD Card (see here - http://www.raspberrypi.org/downloads). Then follow this guide to install a full function SARK image.

Step 1 run raspi-config (as root) and expand the partition to fill the SD Card reboot


Step 2 - run the follwing commands at the CLI

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 libdbi-perl libdbd-sqlite3-perl runit sox mysql-server asterisk-mysql php5-mysql nmap zip ntp ssmtp php-net-ipv4

specify the mysql root password when it asks specify your country-code for Asterisk when it asks

get a cup of tea; this 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


All done