How to install PIAF on a Xen VPS

Written by admin on November 22, 2014. Posted in PIAF

This method was tested on  Centos 6 - 32bit

1. Download Media

# cd /media
 
# wget 'http://downloads.sourceforge.net/project/pbxinaflash/PIAF-2.0.6.2.4-CentOS-6.2-32bit/pbxinaflash20624-i386.iso?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpbxinaflash%2Ffiles%2FPIAF-2.0.6.2.4-CentOS-6.2-32bit%2F'

2. Mount Iso

# mkdir iso

# mount -o loop pbxinaflash20624-i386.iso /media/iso

 

3. Create Repo

# echo 

'[c6-local]
name=CentOS-$releasever - Local
baseurl=file:///media/iso/
gpgcheck=0
enabled=0
' > /etc/yum.repos.d/CentOS-Local.repo

# yum --disablerepo=\* --enablerepo=c6-local upgrade

4. Install dependencies

# yum --disablerepo=\* --enablerepo=c6-local groupinstall additional-devel base cifs-file-server compat-libraries console-internet core debugging development mail-server ftp-server hardware-monitoring java-platform legacy-unix mysql network-file-system-client network-tools php performance perl-runtime security-tools server-platform server-policy system-management system-admin-tools web-server

# yum --disablerepo=\* --enablerepo=c6-local install kernel-devel php php-mysql php-gd php-mbstring php-pear 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 libusb-devel mysql-devel gcc-c++ flite flite-devel automake xinetd tftp-server piafdl piafxtras joe gtk2 gtk2-devel arts arts-devel esound-devel jack-audio-connection-kit lcms libart_lgpl-devel libogg-devel libvorbis-devel nas pulseaudio-libs SDL alsa-lib-devel libmng libtool-ltdl libtool-ltdl-devel qt dialog coreutils sqlite-devel libstdc++-devel tzdata ntp ntpdate php-process php-imap php-xml

# /usr/sbin/ntpdate -su pool.ntp.org mkdir -p /etc/pbx mkdir -p /etc/viaf mkdir -p /etc/siaf date --iso-8601=minutes > /etc/pbx/.installdate echo "20624" > /etc/pbx/.isoversion echo "20624" > /etc/viaf/.isoversion echo "20624" > /etc/siaf/.isoversion echo "ks" > /etc/pbx/.installmethod echo "ks" > /etc/viaf/.installmethod echo "ks" > /etc/siaf/.installmethod echo "/usr/local/sbin/isomenu" >> /etc/rc.d/rc3.d/S99local /bin/cp -f /usr/src/piafxtras/preinstallmenu/piafxtras-menu /usr/local/sbin/piafxtras-menu chmod +x /usr/local/sbin/piafxtras-menu cat /usr/src/piafxtras/preinstallmenu/motd.tmp >/etc/motd

5.Unmount media and reboot to continue with installation

# umount /media/iso

# reboot

6. Once rebooted login via console. and follow the installation instructions and you are done.