How to install PBX in a Flash on your virtual server

Deploy and boot a clean CentOS 6 32bit install onto your virtual server. Next log into the server as root via SSH and do the following

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'
 
mkdir iso
mount -o loop pbxinaflash20624-i386.iso /media/iso
 
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
 
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
 
umount /media/iso
reboot

Once you reboot you will need to connect to your VPS console and complete the installation by running through the wizard.