Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: apmuthu on December 04, 2010, 05:13:16 PM
-
On a fresh install of SMEServer 8 beta 6 the following were undertaken as per instructions in Chapter 03h (http://sarkpbx.com/twiki/bin/view/Main/DocChapter03h) of the SARK Docs.
/sbin/e-smith/db yum_repositories set asterisk-current repository \
Name 'CentOS-$releasever - Asterisk - Current' \
BaseURL 'http://packages.asterisk.org/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.asterisk.org/RPM-GPG-KEY-Digium \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
/sbin/e-smith/db yum_repositories set digium-current repository \
Name 'CentOS-$releasever - Digium - Current' \
BaseURL 'http://packages.digium.com/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.digium.com/RPM-GPG-KEY-Digium \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
signal-event yum-modify
-
The following command at this stage is missing from the Docs:
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
-
The following commands were then executed:
yum install asterisk14 asterisk14-configs asterisk14-voicemail dahdi-linux dahdi-tools asterisk-sounds-extra-en-ulaw asterisk-sounds-moh-opsound-ulaw --enablerepo=asterisk-current
yum install asterisk14-addons-mysql --enablerepo=asterisk-current
rpm -Uvh http://sarkpbx.com/sail/sail-3.x-development/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
-
After the following were executed:
mkdir /home/software
cd /home/software
The following were needed and is missing in the Docs:
wget http://sarkpbx.com/sail/sail-3.x-development/smesailenv-1.0.0-8.noarch.rpm
yum localinstall smesailenv-1.0.0-8.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
yum localinstall perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
The following were then run:
wget http://sarkpbx.com/sail/sail-3.x-development/sail-3.1.0-66.noarch.rpm
yum localinstall sail-3.1.0-66.noarch.rpm --enablerepo=base
-
When dependancy issues and yum issues arose, the following was done:
yum install yum-utils
yum-complete-transaction
package-cleanup --problems
-
The following gave problems:
wget http://sarkpbx.com/sail/sail-3.x-development/el5sailenv-1.0.0-2.noarch.rpm
yum localinstall el5sailenv-1.0.0-2.noarch.rpm
el5sailenv-1.0.0-2.noarch from /el5sailenv-1.0.0-2.noarch has depsolving problems
--> el5sailenv conflicts with smeserver-support
Error: el5sailenv conflicts with smeserver-support
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
-
Hi Apmutha
Thanks very much for your input.
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
Hmm - are you sure that this isn't done by the Digium Asterisk rpms? Our documentation re the Asterisk install is copied directly from the Digium site (http://www.asterisk.org/downloads/yum) and they don't mention adding an asterisk user.
The following were needed and is missing in the Docs:
wget http://sarkpbx.com/sail/sail-3.x-development/smesailenv-1.0.0-8.noarch.rpm
yum localinstall smesailenv-1.0.0-8.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
yum localinstall perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
Yes, I've looked at the guide and it is a little misleading. We say...
Required perl modules
SV3.1 requires perl-File-ReadBackwards, perl-Apache-Htpasswd and perl-DBD-SQLite which aren't on the CentOS repos. There are copies on the SAIL-3 download directory... Use rpm -Uvh to install each one; e.g. -
rpm -Uvh http://sarkpbx.com/sail/sail-3.x-development/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
I will look at making that section more specific.
Finally
The following gave problems:
wget http://sarkpbx.com/sail/sail-3.x-development/el5sailenv-1.0.0-2.noarch.rpm
yum localinstall el5sailenv-1.0.0-2.noarch.rpm
el5sailenv-1.0.0-2.noarch from /el5sailenv-1.0.0-2.noarch has depsolving problems
--> el5sailenv conflicts with smeserver-support
Error: el5sailenv conflicts with smeserver-support
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
Yes it would give problems. This module is not to be installed onto SME server, which is why the rpm gave a conflict and why the module is not referenced in the documentation. It is present on the directory but it is there for something else. If you have force installed it then please remove it with rpm -e.
Kind Regards
S
-
perl-Apache-Htpasswd is needed for a standalone CentOS install according to the README.
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
is needed otherwise, it will all revert to root with a long list of warnings.
-
Let me first congratulate you on the fine JavaScript in SAIL 3.1.0-83.
A fresh install with the following was done after the code in the first two posts:
yum install asterisk14 asterisk14-configs asterisk14-voicemail dahdi-linux dahdi-tools asterisk-sounds-extra-en-ulaw asterisk-sounds-moh-opsound-ulaw --enablerepo=asterisk-current
yum install asterisk14-addons-mysql --enablerepo=asterisk-current
rpm -Uvh http://sarkpbx.com/sail/sail-3.x-development/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
yum localinstall perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/sail-3.1.0-83.noarch.rpm
yum localinstall sail-3.1.0-83.noarch.rpm --enablerepo=base
wget http://sarkpbx.com/sail/sail-3.x-development/smesailenv-1.0.0-18.noarch.rpm
yum localinstall smesailenv-1.0.0-18.noarch.rpm
Now the sail control page comes up as only https and not as http! Expect that this is the preferred / secure way to go.
Also the steps to make it start on each boot needs to be put in (aka chkconfig dahdi / sark).
The Docs can be updated to reflect this.
-
Script to automate SAIL 3.1.x install - no error checking.....
Make a script say called sail31onsme8 with the following contents:
#! /bin/bash
#
echo "Installing SARK / SAIL on New SME Server 8.0"
echo
/sbin/e-smith/db yum_repositories set asterisk-current repository \
Name 'CentOS-$releasever - Asterisk - Current' \
BaseURL 'http://packages.asterisk.org/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.asterisk.org/RPM-GPG-KEY-Digium \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
/sbin/e-smith/db yum_repositories set digium-current repository \
Name 'CentOS-$releasever - Digium - Current' \
BaseURL 'http://packages.digium.com/centos/$releasever/current/$basearch/' \
EnableGroups no \
GPGCheck no \
GPGKey http://packages.digium.com/RPM-GPG-KEY-Digium \
Visible no \
Exclude freetype,htop,iptraf,rsync,syslinux \
status disabled
signal-event yum-modify
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
yum install asterisk14 asterisk14-configs asterisk14-voicemail dahdi-linux dahdi-tools asterisk-sounds-extra-en-ulaw asterisk-sounds-moh-opsound-ulaw --enablerepo=asterisk-current
yum install asterisk14-addons-mysql --enablerepo=asterisk-current
rpm -Uvh http://sarkpbx.com/sail/sail-3.x-development/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
yum localinstall perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
rm -f perl-DBD-SQLite-1.14-1.el5.rf.i386.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/sail-3.1.0-84.noarch.rpm
yum localinstall sail-3.1.0-84.noarch.rpm --enablerepo=base
rm -f sail-3.1.0-84.noarch.rpm
wget http://sarkpbx.com/sail/sail-3.x-development/smesailenv-1.0.0-18.noarch.rpm
yum localinstall smesailenv-1.0.0-18.noarch.rpm
rm -f smesailenv-1.0.0-18.noarch.rpm
echo
echo "SARK / SAIL 3.1.0.84 has been installed complete"
echo "Browse to https://smeserver_IP/sail"
echo "UserName: admin"
echo "Password: Same as SME Server admin password"
echo "Commit from the Global Settings panel."
echo
Upload to the /root folder of the SMEServer 8 installation and give it execute rights.
Execute it from the SSH console.
cd /root
chmod 700 sail31onsme8
./sail31onsme8
Done!