SARK V4.0.0 Debian install

From sailpbx
Revision as of 15:52, 28 December 2014 by Adminwiki (talk | contribs) (Clean up)
Jump to: navigation, search

back to SARK v4.0.0 contents

Debian Wheezy Install

Debian install onto Wheezy is quick and easy. First burn and install a vanilla Wheezy iso. You can get the iso from this page:-

http://www.debian.org/releases/stable/debian-installer/

Assuming you have line-of-site to the internet and a DHCP server on your network, choose from the netinst CD image group. For a test install on X86 hardware choose the i386 image. Either burn it to a CD or point your VM hypervisor at it if you're installing sail as a VM.

Follow the Debian installer instructions. When Tasksel runs during the install, turn off all of the options except ssh server (uncheck everything except ssh server). Complete the installation normally. It should be very quick because you are performing a minimal server-only install.

Sail will install onto i386, amd64, armhf and armel based hardware (provided you have at least 4Gb of drive space). If you are using ARM you will likely need to follow the individual hardware vendors' instructions to get a base Wheezy installed. However, once done, the sail install is the same as any other Debian install.

Set up the sail repo

Once the install is complete, log in to your new Debian. You can do this with a screen and keyboard if you have them attached to your server, but it is much better to use ssh (use Putty if you are working from a Windows desktop). That way you can copy and paste the commands below so there should be less chance of an error.

From the CLI, run the following commands to download and install the public key from the Sail servers and identify the sail repo to Debian. Best to copy and paste these commands because if you get 'em just a tiny bit wrong it won't be nice.

wget  http://sailpbx.com/sail/sail-4.0/debs/sail.gpg.key
apt-key add sail.gpg.key
echo deb http://sailpbx.com/sail/sail-4.0/debs/repo/ wheezy main >> /etc/apt/sources.list
apt-get update

On some older S200 installs you may see a key verification error. You can fix this with the following (run apt-get update again after you apply).

gpg --keyserver keys.gnupg.net --recv-key 8B48AD6246925553
gpg -a --export 8B48AD6246925553 | apt-key add -

Installing a Mail agent

You can use whatever mail agent you like on your server. Exim, sendmail, whatever is your favourite. SARK has on-board support for a lightweight mail agent called ssmtp. If you install it then sark will provide a tab in the networking section for you to configure it. Install it now (so that SARK can set the correct perms) with...

apt-get install ssmtp

There is a setup guide for Asterisk vmail to email HERE

Installing SARK/SAIL

apt-get install sail

The install will take a good few minutes depending upon the speed of the donor box and your internet link. During the install you will be asked to enter a root password for MySQL (make a note of it, you'll need it later). You will also be asked to enter the international dial code (IDD) for your country. For example, if you are in the UK, this would be 44.

Let the install run to its conclusion.

Seed the CDR database

Now you can seed the Asterisk MySQL CDR database with the following command (substitute the MySQL root password you gave during the sail installation).

mysql -u root --password={your mysql root password} < /opt/sark/stat/asterisk-stat-v2/cdr-mysql-setup.sql

Install Asterisk extra sounds package

SAIL requires the Asterisk extra sounds package. If you want UK English, there is a deb on the repo

apt-get install ast-en-gb-gpl-gsm-sounds

If you want "Alison" (US American), there is no deb available for this but it's pretty easy to install. At the linux CLI do the following

cd /usr/share/asterisk/sounds
wget http://downloads.asterisk.org/pub/telephony/sounds/asterisk-extra-sounds-en-gsm-current.tar.gz
tar xvfz asterisk-extra-sounds-en-gsm-current.tar.gz
rm asterisk-extra-sounds-en-gsm-current.tar.gz

Clean up

You're done - reboot it

reboot

your sail app will be at http://your.server.ip.address

  • UID - admin
  • PWD - sarkadmin

Installing DAHDI Support

Installing DAHDI support

If you also need to install DAHDI see here