PIAF 1.4 Remote Installation Help

lloyd

New Member
Joined
Mar 9, 2009
Messages
14
Reaction score
0
Hello,

Could you please guide me where can I get information for the
PIAF Remote Installation.

I mean How can Install PIAF 1.4 version on a Minimal CentOS .

Thank you
Lloyd
 
Joined
Feb 22, 2008
Messages
152
Reaction score
0
How minimal are you talking about? If it's an extremely stripped-down system you will have to remove a lot of the features. If you're setting it up on a router or other dedicated low-end hardware, you're probably better off just running Asterisk without all the nice features of PiaF.

My suggestion is to use a machine capable of running the full distribution - it's not that high-end of a requirement, PC-wise. I really like my home server, based on an Everex green-PC, and it uses very little electrical power.
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

Assuming the installation is on a remote server, where you cannot physically put a CD in and reboot.

If you look at the root of the CD, you will see ksnet.cfg

By inspection this tells you what you have to do.

First install the packages from the yum repository listed in the file. anything with an @ in front will be yum groupinstall <package>

anything else will be a simply yum install <name>

Inspect the script at the end of the install, do what it says, and before long you will be resisting various urges concerning the enter key.

Joe
 

lloyd

New Member
Joined
Mar 9, 2009
Messages
14
Reaction score
0
Hi

Assuming the installation is on a remote server, where you cannot physically put a CD in and reboot.

If you look at the root of the CD, you will see ksnet.cfg

By inspection this tells you what you have to do.

First install the packages from the yum repository listed in the file. anything with an @ in front will be yum groupinstall <package>

anything else will be a simply yum install <name>

Inspect the script at the end of the install, do what it says, and before long you will be resisting various urges concerning the enter key.

Joe
Hi Joe,

I follow everything . But my problem after install the PIAF 1.4 .

1. update-scripts

2. When I type status .. It is saying the PBx in a Flash 1.2 daemon status. Why i am getting a 1.2 daemon status.

Lloyd
 

lloyd

New Member
Joined
Mar 9, 2009
Messages
14
Reaction score
0
Hi ,

In the ksnet.cfg end

mkdir -p /etc/pbx
date --iso-8601=minutes > /etc/pbx/install-date
echo "ISO=1.3.0" > /etc/pbx/ISO-Version
date --iso-8601=minutes > /etc/pbx/install-date
echo "method=pbx=1.3.0 netinstall" > /etc/pbx/install-method

----

This ksnet.cfg file from the ISO 1.4 . Why it is saying ? Then I modified the 1.3 to 1.4

mkdir -p /etc/pbx
date --iso-8601=minutes > /etc/pbx/install-date
echo "ISO=1.4.0" > /etc/pbx/ISO-Version
date --iso-8601=minutes > /etc/pbx/install-date
echo "method=pbx=1.4.0 netinstall" > /etc/pbx/install-method

cd /usr/local/sbin

wget http://pbxinaflash.org/files/piafdl.gz
gunzip piafdl.gz
chmod +x piafdl
./piafdl 14

After install I update-scripts then I try to see the status

status command giving out put "PBX In A falsh 1.2 Daemon Status"

Why I am getting 1.2? Where I am making mistake.

LLoyd
 

nlucier

New Member
Joined
Aug 5, 2008
Messages
28
Reaction score
1
First install the packages from the yum repository listed in the file. anything with an @ in front will be yum groupinstall <package>

anything else will be a simply yum install <name>

While testing this out in preparation for a possible deployment at a hosting facility, I ran into something that I'm not sure of.

I tested out using a machine here, but only putting a CentOS 5.2 net install disc in. Put on a Minimal CentOS 5.2 and then started patching as directed in the ksnet.cfg file and when I was done, noticed that CentOS 5.3 was now there.

I proceded to do the PBXIAF part and ended up with an install that looked vastly different than I had ever seen. Apache wasn't running, genzaptelconf wouldn't run, and few more services were not running when I did a 'status'. I thought it might be that the machine had issues with it (P4 1.6GHz, 128MB RDRAM) so I did a "normal" install using the PBXIAF disc and it installed like I remember it should.



As an aside, is the following the current ksnet.cfg file? This is what is on the 1.4 image I downloaded a few days ago:

Code:
install
url --url ftp://mirrors.kernel.org/centos/5.1/os/i386/
lang en_US.UTF-8
network --device eth0 --bootproto dhcp --hostname pbx.local
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --disabled
 
%packages
@admin-tools
@base
@base-x
@core
@development-libs
@development-tools
@dns-server
@ftp-server
@mail-server
@mysql
@network-server
@server-cfg
@smb-server
@sound-and-video
@system-tools
@web-server
@x-software-development
kernel-devel
php-mysql
php 
php-gd 
php-mbstring
php-pear
php-mysql
php-pear-DB
perl 
perl-libwww-perl 
perl-DateManip 
perl-DBD-MySQL 
perl-DBI 
perl-Net-DNS 
perl-suidperl 
perl-XML-Parser 
audiofile-devel 
dhcp 
gd 
lm_sensors
mc 
mysql-devel
gcc-c++
automake
xinetd
t*f*t*p-server
joe
 
 
 
 
%post
/usr/sbin/ntpdate -su pool.ntp.org
mkdir -p /etc/pbx
date --iso-8601=minutes > /etc/pbx/install-date
echo "ISO=1.3.0" > /etc/pbx/ISO-Version
date --iso-8601=minutes > /etc/pbx/install-date
echo "method=pbx=1.3.0 netinstall" > /etc/pbx/install-method
 
 
 
echo "cd /usr/local/sbin" >> /etc/rc.d/rc3.d/S99local
echo "wget http://pbxinaflash.org/files/piafdl.gz" >> /etc/rc.d/rc3.d/S99local
echo -e "if [ -e \042/usr/local/sbin/piafdl.gz\042 ]; then" >> /etc/rc.d/rc3.d/S99local
echo " gunzip piafdl.gz" >> /etc/rc.d/rc3.d/S99local
echo " chmod +x piafdl" >> /etc/rc.d/rc3.d/S99local
echo " /usr/local/sbin/piafdl 14" >> /etc/rc.d/rc3.d/S99local 
echo "else" >> /etc/rc.d/rc3.d/S99local
echo -e " echo \042 I am sorry but I was unable to download piafdl.gz! Check your internet connection\042" >> /etc/rc.d/rc3.d/S99local
echo "fi" >> /etc/rc.d/rc3.d/S99local
 
eject

Notice that there are two "php-mysql" lines, CentOS is 5.1 and pbxiaf is 1.3
 

awair

Member
Joined
Mar 10, 2009
Messages
87
Reaction score
4
Having searched around the forum, I am still a little unsure of how to finish off the remote install. I know that this has been [mostly] answered before...

My ksnet.cfg was as above: in the %post section:-
1. Do I need to reboot before this?
2. Do I copy the entire lines as above (I think my edited file ended up the same) -OR- is the echo stuff only needed for a batch file? [Do the commands HAVE to be executed in a batch file?]

Many thanks
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
interesting I will look into this. I am out of time at the moment as I am preparing to move house and move my office which includes all of the technology used to develop PIAF so I must ask you to be patient.


Tom
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Do I copy the entire lines as above (I think my edited file ended up the same) -OR- is the echo stuff only needed for a batch file?

It sounds as if you have not got all the dependencies.

In the packages section, this lists everything that has to be installed with centos before begining a centos installation.

So can you confirm you have followed these directions:-

First install the packages from the yum repository listed in the file. anything with an @ in front will be yum groupinstall <package>

anything else will be a simply yum install <name>

Joe
 

nlucier

New Member
Joined
Aug 5, 2008
Messages
28
Reaction score
1
So can you confirm you have followed these directions:-

Joe

Yes Sir, I can comfirm that, multiple times over. I am going to attempt again with full client logging on to see if any errors are happening during the package adds. There are so many and they fly up the screen that sometimes it's difficult seeing if everything installed correctly.

Nate
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi Nate

Basically, the procedure is to get Centos into the same state that it would be had you installed the standard supplied ISO.

The packages required to get it into this state are listed primarily in ks.net - the standard installation.

The rpm usually found found on the ISO image piafdl.rpm is the installation file, and that pulls down a payload from PiaF, and launches the installation scripts.

You can use the piafdl rpm and upload it from your ISO to the remote installation, or the download location for it is listed in the ksnet.cfg file in root.

You would also have to run the commands in the %post section, as the install refers to some of the these files.

Then it should be a case of running piafdl 14 (or 16!) and the installation commences in the normal way.

Just for interest, is your hosted server a real one, or a virtualised one, as that may account for the issues experienced with installing Zaptel.

Joe
 

nlucier

New Member
Joined
Aug 5, 2008
Messages
28
Reaction score
1
Hi Nate

Basically, the procedure is to get Centos into the same state that it would be had you installed the standard supplied ISO.

The packages required to get it into this state are listed primarily in ks.net - the standard installation.

The rpm usually found found on the ISO image piafdl.rpm is the installation file, and that pulls down a payload from PiaF, and launches the installation scripts.

You can use the piafdl rpm and upload it from your ISO to the remote installation, or the download location for it is listed in the ksnet.cfg file in root.

You would also have to run the commands in the %post section, as the install refers to some of the these files.

Then it should be a case of running piafdl 14 (or 16!) and the installation commences in the normal way.

Just for interest, is your hosted server a real one, or a virtualised one, as that may account for the issues experienced with installing Zaptel.

Joe

It is a VPS. I have no need for conferencing, so as far as I'm concerned Zaptel doesn't even need to be running.

I just re-imaged the VPS to 5.2 Minimal and will go through the ks.net file now instead of the ksnet.cfg file.

Nate
 

nlucier

New Member
Joined
Aug 5, 2008
Messages
28
Reaction score
1
I attempted the reinstall and it crapped out completely again. For some reason the installation is not making an /etc/asterisk directory but making a file called asterisk in the /etc directory. Is it possible that this is a 64-bit installation problem? One thing that I did do successfully is run all of the package adds while keeping the installation a CentOS 5.2 one, but it didn't help.

This line is present in both the ks.cfg and ksnet.cfg:
Code:
network --device eth0 --bootproto dhcp --hostname pbx.local
That line does not work on the VPS. It says that 'network' doesn't exist. An ifconfig shows the following 3 interfaces:
Code:
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2486919641190247371 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14986973411850207168 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12289571201292512922 (1.0 EiB)  TX bytes:15499125901862681336 (0.6 EiB)
venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:586 errors:0 dropped:0 overruns:0 frame:0
          TX packets:459 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:342089 (334.0 KiB)  TX bytes:78581 (76.7 KiB)
venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:[removed]  P-t-P:[removed]  Bcast:[removed]  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
All 3 IPs in the venet0:0 interface are identical.


I noticed in the installation that it seemed to hiccup on the pbx.local not being set. Again the /etc/asterisk folder is not a folder but a file which is also throwing things for a loop.

Pasting the stuff that shows after you run the install command in the next post since it's too long.
 

nlucier

New Member
Joined
Aug 5, 2008
Messages
28
Reaction score
1
/var/pbx_load.tar.gz is validated. Now continuing with install
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now installing asterisk user *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now installing Digium Source *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now Compiling Zaptel *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now compiling Libpri *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now Compiling Asterisk *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now Compiling Asterisk-Addons *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now installing extra sounds *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
./install-pbx: line 208: cd: /var/lib/asterisk/sounds: No such file or directory
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now installing Asterisk-perl *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
Checking if your kit is complete...
Looks good
Writing Makefile for asterisk-perl
***********************************************************************
*Now Setting some services to start on boot *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now altering sshd permissions *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now modifying Webmins default port to 9001 *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now Configuring apache *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now untarring freepbx *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now configuring MySQL *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
mysqladmin: connect to server at 'pbx.local' failed
error: 'Unknown MySQL server host 'pbx.local' (1)'
Check that mysqld is running on pbx.local and that the port is 3306.
You can check this by doing 'telnet pbx.local 3306'
***********************************************************************
*Now creating manager_conf and associated files *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
./install-pbx: line 365: /etc/asterisk/manager.conf: Not a directory
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now fixing MOH to play MP3 files! *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now installing FreePbx *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
***********************************************************************
*Now Web pages *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
./install-pbx: line 468: cd: /var/www/html/admin/modules: No such file or directory
***********************************************************************
*Now setting permissions *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
touch: cannot touch `/etc/asterisk/sip_nat.conf': Not a directory
touch: cannot touch `/etc/asterisk/sip_custom.conf': Not a directory
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
*Now installing PIAF scripts *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
eth0: error fetching interface information: Device not found
***********************************************************************
*Now performing some cleanup duties *
*PLEASE RESIST THE URGE TO TAP THE ENTER KEY THE INSTALL IS PROCEEDING*
***********************************************************************
sed: can't read /var/www/html/recordings/includes/main.conf.php: No such file or directory
./install-pbx: line 591: cd: /etc/asterisk: Not a directory
./install-pbx: line 593: modules.conf.orig: No such file or directory
cp: accessing `/etc/asterisk/cdr_mysql.conf': Not a directory
./install-pbx: line 749: cd: /etc/asterisk: Not a directory
install-pbx Version 1.4.0 released on Date 021209
CentOS release 5.2 (Final) - 64 Bit
***********************************************************************
* Complete the system will now reboot *
* A detailed log for your review is /root/install-pbx.log *
* A copy has also been emailed to the root user on the local machine *
* *
* You may notice a few errors while the final bits are being put in *
* place. THIS IS NORMAL AND CAN SAFELY BE IGNORED! Please do not send *
* us bug reports about anything you see after this message as they go *
* away after the system restarts. *
* *
* Pausing for 5 seconds while the disks are synced. *
* A reboot will now occur *
***********************************************************************
warning: /var/pbx_load/netconfig-0.8.24-1.2.2.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
1:netconfig ########################################### [100%]
removed `f2btemp/logger.conf'
removed directory: `f2btemp'
It seems that zapata.conf or zapata-channels.conf does not exist!
Broadcast message from root (pts/0) (Fri May 15 02:38:29 2009):
The system is going down for reboot NOW!
[root@s15346685 /]#
[/code]
 

jroper

Guru
Joined
Oct 20, 2007
Messages
3,832
Reaction score
71
Hi

That may be the case.

Try installing manually

cd /usr/src/zaptel
make clean
./configure
make
make install

and see if there is an error

Joe
 

Members online

Forum statistics

Threads
25,825
Messages
167,848
Members
19,250
Latest member
mark-curtis
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top