Archive for January 16, 2012

PBX in a Flash on a Corgi VPS

Setting up a VPS from Corgi Tech as a PBX doesn’t work right out the box. This is because the kickstart file on the ISO is set to look for IP settings etc via DHCP – which Corgi don’t use :) So, what we need to do is to do the first part, set the IP details and then resume from where it got to…

I’m using a Standard VPS with a discount code of CORGI50

If you want to also install Incredible PBX 3, be sure to use the 32-bit PIAF2 ISO and choose Asterisk 1.8 and FreePBX 2.9.

Step 1: Mount the ISO – support may do this for you!
Step 2: Boot from the Virtual CD (ISO).
Step 3: Choose the Timezone.
Step 4: Set your root password.
Step 5: Go make a coffee, and wait for the install to complete and reboot (make sure the vMware bios is set to boot from HDD first).
Step 6: Login with your root username and password.
Step 7: Type ” setup ” at the prompt.
Step 8: Choose Network Configuration (press enter).
Step 9: Choose Device Configuration, and select the eth0 device (press enter).
Step 10: Unstar the use DHCP option and enter your details – then press OK. If you have more IP’s, choose New Device and repeat starting with eth0:1 in the first two boxes… for more IP’s, use eth0:2 and so on. Press Save.
Step 11: Choose DNS configuration – enter your hostname in the first box, the DNS stuff in primary and secondary. Then press OK and then Save & Quit, and Quit again.
Step 11b: type ” nano /etc/hosts ” and modify it so it displays the following:
::1 localhost.localdomain localhost hostname localhost.localdomain localhost hostname
YOU.RIP.ADD.RESS hostname.domain.tld hostname

Obviously the last entry needs fixing to the correct details for you..
Step 12: Reboot your VPS by typing ” reboot ” in the console.
Step 13: SSH in to your IP and copy and paste the following in:
cd /etc/yum.repos.d/;nano /etc/yum.repos.d/CentOS-Base.repo;yum 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 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 -y;yum update -y;yum upgrade -y;/usr/sbin/ntpdate -su;mkdir -p /etc/pbx;date --iso-8601=minutes > /etc/pbx/.installdate;echo "20621" > /etc/pbx/.isoversion;echo "ks" > /etc/pbx/.installmethod;echo "/usr/local/sbin/piafdl" >> /etc/rc.d/rc3.d/S99local;cd /root;wget;wget;rpm -ivh piafdl-1.0-1.i686.rpm;rpm -ivh piafxtras-1.0-1.i686.rpm;rm -vf piafdl-1.0-1.i686.rpm;rm -vf piafxtras-1.0-1.i686.rpm;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;sed -i 's|quiet||' /boot/grub/grub.conf;sed -i 's|rhgb||' /boot/grub/grub.conf;sed -i 's/[ ]*$//' /boot/grub/grub.conf;sed -i '/vmlinuz-2.6/ s|$| vga=791|' /boot/grub/grub.conf;reboot;
Step 14: Enable the centosplus repository by setting enabled to 1, then CTRL+X, press Y and press return. Wait for it to copy the stuff over and it’ll reboot.
Step 15: Console in via vSphere (or SSH and run piafdl). It should be waiting for you… CentOS 6 has some keyboard quirks – I use the first letters (highlighted) and enter to select.. running poafdl via SSH works 100000% better.
Step 16: Follow the prompts…. again keyboard could be quirky – I let it generate a password for me, and I write it down. Sometimes (before it starts to actually install), you need to press the key again for your choice.
Step 17: Leave it to it! (I use the capslock key to wake the display)

Now…. jump to the FreePBX Setup section of Introducing PBX in a Flash 2 with CentOS 6.2 on the NerdVittles website.

If you want to install IncrediblePBX 3, copy and paste the following in to the SSH terminal install-incredpbx3.

Developing Web Apps for iOS

I’ve been playing around with HTML allowing my new application to be used as a web-app on the iPad and iPhone…. Read more