Koozali.org: home of the SME Server

Best Fresh Stable Install?

Offline apmuthu

  • *
  • 244
  • +0/-0
Best Fresh Stable Install?
« on: December 19, 2009, 04:17:46 PM »
Looks like all the rpms are haywire for a fresh install.

What is the best way to install a fresh stable SARK_2.3.2-19 on a stable SME-7.4?

Did the following with reboots between each step:
Installed SME 7.4 on a new machine.
Included the ATrpms repo from the SME Wiki.
Hit the restorecon SME 7.4 Bug:
Code: [Select]
  Updating  : kudzu                        ##################### [120/379]
  Updating  : samba-common                                       [121/379]
warning: /etc/samba/smb.conf created as /etc/samba/smb.conf.rpmnew
  Updating  : samba-common                 ##################### [121/379]
/var/tmp/rpm-tmp.52376: line 7: restorecon: command not found
error: %post(samba-common-3.0.33-0.18.el4_8.1.i386) scriptlet failed, exit status 127
  Updating  : qmail                        ##################### [122/379]
Addressed it by checking and installing:
Quote
yum install policycoreutils

# uname -r
2.6.9-89.0.16.EL

# rpm -qf /sbin/restorecon
policycoreutils-1.18.1-4.13

# rpm -q samba
samba-3.0.33-0.18.el4_8.1

Followed instructions at the SARK-SAIL Wiki choosing the ATrpms repo for the DAHDI rpms (as they were absent in the smecontribs) :
Code: [Select]
yum install dahdi-linux-kmdl-`uname -r` --enablerepo=atrpms
yum install dahdi-tools --enablerepo=atrpms
yum install asterisk --enablerepo=smecontribs

Hit a wall with the last yum command:
Quote
# yum install asterisk --enablerepo=smecontribs
.
.
.
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package asterisk.i386 1:1.4.25.1-78.el4 set to be updated
--> Running transaction check
--> Processing Dependency: libasound.so.2 for package: asterisk
--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4) for package: asterisk
--> Processing Dependency: libvorbis.so.0 for package: asterisk
--> Processing Dependency: libtonezone.so.2.0 for package: asterisk
--> Processing Dependency: libogg.so.0 for package: asterisk
--> Processing Dependency: libasound.so.2(ALSA_0.9) for package: asterisk
--> Processing Dependency: libspeex.so.1 for package: asterisk
--> Processing Dependency: libvorbisenc.so.2 for package: asterisk
--> Processing Dependency: libpri.so.1.4 for package: asterisk
--> Processing Dependency: libodbc.so.1 for package: asterisk
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Package libvorbis.i386 1:1.1.0-3.el4_8.3 set to be updated
---> Package libpri1.i386 1:1.4.10-23.el4 set to be updated
---> Package libogg.i386 2:1.1.2-1 set to be updated
---> Package alsa-lib.i386 0:1.0.6-5.RHEL4 set to be updated
---> Package unixODBC.i386 0:2.2.11-1.RHEL4.1 set to be updated
---> Package speex.i386 0:1.2-0.11.rc1.el4 set to be updated
--> Running transaction check
--> Processing Dependency: libtonezone.so.2.0 for package: asterisk
--> Finished Dependency Resolution
Error: Missing Dependency: libtonezone.so.2.0 is needed by package asterisk
« Last Edit: December 20, 2009, 03:08:07 AM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Best Fresh Stable Install?
« Reply #1 on: December 19, 2009, 04:26:57 PM »
Looks like the SARK wiki at http://sarkpbx.com/twiki/bin/view/Main/DocChapter03c should be updated for the install instructions:

Quote
yum install policycoreutils
yum install mysql-devel
yum -y update
signal-event post-upgrade; signal-event reboot

yum install dahdi-linux-kmdl-`uname -r` --enablerepo=atrpms
yum install dahdi-tools --enablerepo=atrpms
# Installed Packages
# dahdi-linux.i386                                  2.2.0.2-65.el4
# dahdi-linux-kmdl-2.6.9-89.0.16.EL.i686   2.2.0.2-65.el4
# dahdi-tools.i386                                 1:2.2.0-63.el4

yum install libpri  --enablerepo=atrpms
# Installed: libpri.i386 1:1.4.10.2-25.el4

yum install asterisk14 --enablerepo=atrpms
# Installed: asterisk14.i386 1:1.4.26.3-87.el4

yum install asterisk-addons14  --enablerepo=atrpms
# Installed: asterisk-addons14.i386 1:1.4.9-24.el4

The mysql-devel needs to be installed at the beginning as otherwise we will get the following errors in the asterisk/messages log:
Code: [Select]
ERROR[6472] res_config_mysql.c: MySQL RealTime: Failed to connect database server  on  (err 2002). Check debug for more info.
WARNING[6472] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
NOTICE[6472] config.c: Registered Config Engine mysql
And this works so far....
« Last Edit: December 20, 2009, 03:34:25 AM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Best Fresh Stable Install?
« Reply #2 on: December 20, 2009, 03:29:06 AM »
The next steps for SAIL integration:

Code: [Select]
cd /usr/src
Download sox-12.17.7-3.i386.rpm from one of the links at
Quote
http://rpm.pbone.net/index.php3/stat/4/idpl/11416247/com/sox-12.17.7-3.i386.rpm.html
and upload to the /usr/src folder and execute:
Code: [Select]
rpm -ivh sox-12.17.7-3.i386.rpm
Download sox-devel-12.17.7-3.i386.rpm from one of the links at
Quote
http://rpm.pbone.net/index.php3?stat=26&dist=44&size=172747&name=sox-devel-12.17.7-3.i386.rpm
and upload to the /usr/src folder and execute:
Code: [Select]
rpm -ivh sox-devel-12.17.7-3.i386.rpm
Install SAIL dependancy (wiki states -Uvh to use same script for upgrades as well):
Quote
wget http://sarkpbx.com/sail/sail-2.3.2/perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
rpm -ivh perl-File-ReadBackwards-1.04-1.2.el4.rf.noarch.rpm
Now install SAIL (TFTP Sever gets installed with it):
Quote
wget http://sarkpbx.com/sail/sail-2.3.2/sail-2.3.2-19.noarch.rpm
yum localinstall -y --enablerepo=base sail-2.3.2-19.noarch.rpm
# Installed: sail.noarch 0:2.3.2-19
Final Step:
Code: [Select]
/sbin/e-smith/signal-event console-save
signal-event post-upgrade; signal-event reboot
« Last Edit: December 20, 2009, 03:32:57 AM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Best Fresh Stable Install?
« Reply #3 on: December 20, 2009, 03:46:09 AM »
Notes on the above install:

Generally we can find the CentOS Release version from
Code: [Select]
cat /etc/issue
In a OpenVZ KVM, /etc/issue is a 0 byte file and hence the command fails. We can use the following workaround:
Code: [Select]
rpm -qa | grep -i "centos-release"
This will currently show:
Quote
warning: only V3 signatures can be verified, skipping V4 signature
centos-release-4-8
warning: only V3 signatures can be verified, skipping V4 signature

Earlier versions of SARK had many files and folders chown-ed by asterisk:asterisk - notably /etc/asterisk/*. In this version, in the initial install, the number of such entities has been limited to:
Quote
# find / -user asterisk
/var/log/asterisk
/var/log/asterisk/cdr-custom
/var/log/asterisk/cdr-csv
/var/spool/asterisk
/var/spool/asterisk/system
/var/spool/asterisk/dictate
/var/spool/asterisk/tmp
/var/spool/asterisk/meetme
/var/spool/asterisk/voicemail
/var/spool/asterisk/voicemail/default
/var/spool/asterisk/voicemail/default/1234
/var/spool/asterisk/voicemail/default/1234/INBOX
/var/spool/asterisk/sms
/var/spool/asterisk/sms/mtrx
/var/spool/asterisk/sms/motx
/var/spool/asterisk/monitor
/var/run/asterisk
find: /proc/6646/task/6646/fd/4: No such file or directory
find: /proc/6646/fd/4: No such file or directory



Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Best Fresh Stable Install?
« Reply #4 on: December 20, 2009, 03:53:26 AM »
VoiceMail notes on above install:
There are 2 monitor folders:
  • /home/selintra/var/spool/asterisk/monitor assigned to root user
  • /var/spool/asterisk/monitor assigned to asterisk user
It is the latter that we need to assign in the
Quote
SME Manager -> Global Settings -> GENERAL SETTINGS -> Path to recording directory
The default LOGGING -> VLIB folders will be:
Code: [Select]
/var/log /var/lib/mysql /var/lib/dhcp /var/lock /var/qmail /var/spool /var/tmp /tmp /tftpboot
« Last Edit: December 20, 2009, 03:55:35 AM by apmuthu »

Offline apmuthu

  • *
  • 244
  • +0/-0
Re: Best Fresh Stable Install?
« Reply #5 on: December 20, 2009, 04:29:17 AM »
And the final SME Manager -> Global Settings page should look like:

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Best Fresh Stable Install?
« Reply #6 on: December 21, 2009, 12:11:14 PM »
This is good work

We will update the Wiki.  If you, or anyone else, wishes to help with docs then you can opbtain Wiki update privileges by sending an email to admin@aelintra.com

Kind Regards

S



 

 
« Last Edit: December 21, 2009, 12:13:24 PM by SARK devs »