Koozali.org: home of the SME Server

New SAIL 3.x install - update docs

Offline apmuthu

  • *
  • 244
  • +0/-0
New SAIL 3.x install - update docs
« 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 of the SARK Docs.

Code: [Select]
/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

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #1 on: December 04, 2010, 05:14:09 PM »
The following command at this stage is missing from the Docs:
Code: [Select]
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
« Last Edit: December 04, 2010, 05:20:23 PM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #2 on: December 04, 2010, 05:15:17 PM »
The following commands were then executed:
Code: [Select]
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

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #3 on: December 04, 2010, 05:17:28 PM »
After the following were executed:
Code: [Select]
mkdir /home/software
cd /home/software

The following were needed and is missing in the Docs:
Code: [Select]
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:
Code: [Select]
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
« Last Edit: December 04, 2010, 05:34:14 PM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #4 on: December 04, 2010, 05:19:05 PM »
When dependancy issues and yum issues arose, the following was done:
Code: [Select]
yum install yum-utils
yum-complete-transaction
package-cleanup --problems

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #5 on: December 04, 2010, 05:32:38 PM »
The following gave problems:
Code: [Select]
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

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: New SAIL 3.x install - update docs
« Reply #6 on: December 05, 2010, 08:47:44 PM »
Hi Apmutha

Thanks very much for your input.   

Quote
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. 

Quote
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...

Quote
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

Quote
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









 

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #7 on: December 06, 2010, 03:30:48 PM »
perl-Apache-Htpasswd is needed for a standalone CentOS install according to the README.

Code: [Select]
useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk is needed otherwise, it will all revert to root with a long list of warnings.

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #8 on: December 07, 2010, 01:27:59 AM »
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:
Code: [Select]
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.


Offline apmuthu

  • *
  • 244
  • +0/-0
Re: New SAIL 3.x install - update docs
« Reply #9 on: December 07, 2010, 03:12:28 AM »
Script to automate SAIL 3.1.x install - no error checking.....
Make a script say called sail31onsme8 with the following contents:
Code: [Select]
#! /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.
Code: [Select]
cd /root
chmod 700 sail31onsme8
./sail31onsme8
Done!
« Last Edit: December 11, 2010, 05:20:30 AM by apmuthu »