We are delighted to announce our first of many releases of PBX in a Flash™ 22.214.171.124 running atop the just released Scientific Linux™ 6.5. In keeping with our historical methodology (minus CentOS™), today’s PIAF-Green™ VM release with Asterisk 11® and FreePBX® 2.11 provides everyone an opportunity to kick the tires and provide some feedback before the tailorable PIAF™ 126.96.36.199 hits the street. What’s missing is the CentOS operating system. Good riddance! See last week’s article for why. We are pleased to introduce our new OS platform:
“From the beginning Scientific Linux was designed to be a community project. We solicited input from the labs and Universities that originally contacted [Fermilab™ computer scientists], as well as other interested parties. We also designed the sites area to make it easy for sites to create their own distribution, as well as add to the mirrors without disturbing the main core distribution.”
Feel free to read up on its history, its legal footing, and its incredible growth over the past decade. If you’d like to build your own creation from Scientific Linux, there’s a well-documented tutorial to get you there. Incredible Linux™ here we come! And what a terrific contribution to the open source community by the Scientific Linux developers. Imagine actually being able to spin off GPL code into enhanced products just as the GPL license envisioned. What a concept!
We’ll have more news about Scientific Linux in coming weeks. But, for today, we hope you’ll take the new PIAF-Green Virtual Machine for a spin. This new release was put together within days of the release of Scientific Linux 6.5. That speaks volumes about SL platform stability and its enthusiastic community. We’re delighted to be the newest member!
The Ultimate VoIP Appliance: PIAF Virtual Machine for VirtualBox
Today brings us to a new plateau in the virtual machine development era. We’re pleased to introduce a new product that can be installed in under 5 minutes and will run on any Windows PC, Mac, or Linux machine as well as Solaris. And, unlike the dedicated machine platforms and OpenVZ compromises of years past, today’s PIAF-Green Virtual Machine is state-of-the-art giving you everything a bare metal install from source code would have provided. Most importantly, the components are truly portable. They can be copied to a 4GB flash drive1 for the price of a good hamburger and installed from there onto any type of machine that happens to be in front of you. Five minutes later, you have a fully functional Asterisk server with FreePBX and exactly the same feature set and source code that you would have had doing a bare metal PIAF install to a dedicated server. And we’ve built this 32-bit production-ready PIAF-Green Virtual Machine with Asterisk 11.7 and FreePBX 2.11. No Internet access required to perform the install. Sound too good to be true? Keep reading or, better yet, try the PIAF appliance for yourself. The install process is simple:
- Download and install VirtualBox onto a Desktop Machine of your choice
- Download and double-click on the PIAF-Green Virtual Machine to import it into VirtualBox
- Select the PIAF-Green Virtual Machine in VirtualBox Manager Window and click the Start button
Introducing Oracle VM VirtualBox
We’re late to the party, but Virtual Box®, Oracle’s virtual machine platform inherited from Sun, is really something. It’s not only free, but it’s pure GPL2 code. VirtualBox gives you a virtual machine platform that runs on top of any desktop operating system. In terms of limitations, we haven’t found any. We even tested this on an Atom-based Windows 7 machine with 2GB of RAM, and it worked without a hiccup. So step #1 is to download one or more of the VirtualBox installers from VirtualBox.org or Oracle.com. As mentioned, our recommendation is to put all of the 100MB installers on a 4GB thumb drive. Then you’ll have everything in one place whenever and wherever you happen to need it. Once you’ve downloaded the software, simply install it onto your favorite desktop machine. Accept all of the default settings, and you’ll be good to go. For more details, here’s a link to the Oracle VM VirtualBox User Manual.
Installing the PIAF Virtual Machine
Step #1 is to download the PIAF-Green Open Virtualization Appliance (.ova) from SourceForge.
Step #2: Verify the checksums for the 32-bit .ova appliance to be sure everything got downloaded properly. To check the MD5/SHA1 checksums in Windows, download and run Microsoft’s File Checksum Integrity Verifier.
For Mac or Linux desktops, open a Terminal window, change to the directory in which you downloaded the .ova file and type the following commands:
md5 PIAF-Green-SL.ova (use md5sum for Linux) MD5: 33fcda3badc7cae025905b59d59f8213
openssl sha1 PIAF-Green-SL.ova SHA1: f3aa8d966cd8e7bed1d0d6e16d29806056b81e6a
Step #3: Double-click on the downloaded .ova file which will begin the import process into VirtualBox. It only takes a couple minutes, and you only do it once. IMPORTANT: Be sure to check the Reinitialize the Mac address of all network cards box before clicking the Import button.
Once the import is finished, you’ll see the new PIAF-Green virtual machine in the VM List of your VirtualBox Manager Window. You’ll need to make a couple of one-time adjustments to the VM configuration to account for differences in sound and network cards on different host machines.
Click on the PIAF-Green-SL Virtual Machine in the VM List. Then click Settings -> Audio and check the Enable Audio option and choose your sound card. Save your setup by clicking the OK button. Next click Settings -> Network. For Adapter 1, check the Enable Network Adapter option. From the Attached to pull-down menu, choose Bridged Adapter. Then select your network card from the Name list. Then click OK. That’s all the configuration that is ever necessary for your PIAF-Green Virtual Machine. The rest is automagic.
Running the PIAF-Green Virtual Machine in VirtualBox
Once you’ve imported and configured the PIAF Virtual Machine, you’re ready to go. Highlight PIAF Virtual Machine in the VM List on the VirtualBox Manager Window and click the Start button. The PIAF boot procedure with Scientific Linux 6.5 will begin just as if you had installed PBX in a Flash on a standalone machine. You’ll see a couple of dialogue boxes pop up that explain the keystrokes to move back and forth between your host operating system desktop and your PIAF VM.
Here’s what you need to know. To work in the PIAF Virtual Machine, just left-click your mouse while it is positioned inside the VM window. To return to your host operating system desktop, press the right Option key on Windows machines or the left Command key on any Mac. For other operating systems, read the dialogue boxes for instructions on moving around. Always shut down PIAF gracefully! Click in the VM window with your mouse, log in as root, and type: shutdown -h now.
Run the PIAF Virtual Machine behind a hardware-based firewall with no Internet port exposure!
To begin, position your mouse over the VM window and left-click. Once the PIAF VM has booted, log in as root with password as the password. Change your root password immediately by typing passwd at the command prompt. Now set up a secure maint password for FreePBX as well. Type passwd-master. If you’re not in the Eastern U.S. time zone, then you’ll want to adjust your timezone setting so that reminders and other time-sensitive events happen at the correct time. While logged into your server as root, issue this command:
Next, use a browser to log into your PIAF server by pointing to the IP address of the PIAF VM that’s displayed in the status window of the CLI. Click on the User button to display the Admin choices in the main PIAF Menu. Click on the FreePBX option to load the FreePBX GUI. You will be prompted for an Apache username and password. For the username, use maint. For the password, use whatever password you set up with passwd-master.
Now read the latest PIAF Quick Start Guide and begin your VoIP adventure. Then you’ll want to do some reading on VirtualBox. We’ve barely scratched the surface. Setting up Headless VMs that run in the background on any server is a breeze. From the command line, here’s an article to get you started. But you also can start Headless VMs from within the GUI by highlighting the VM and clicking Shift->Start. Always shut down VMs gracefully: Close->ACPI Shutdown. You’ll find more great tips at virtualbox.org and GitHub.
One of the real beauties of VirtualBox is you don’t have to use a GUI at all. The entire process can be driven from the command line. Other than on a Mac, here is the procedure to import, configure, and run the PIAF-Green-32 Virtual Machine:
VBoxManage import PIAF-Green-SL.ova
VBoxManage modifyvm "PIAF-Green-SL" --nic1 nat
VBoxManage modifyvm "PIAF-Green-SL" --acpi on --nic1 bridged
VBoxHeadless --startvm "PIAF-Green-SL" &
# Wait 1 minute for PIAF-Green-SL to load. Then decipher IP address like this:
VBoxManage guestproperty get "PIAF-Green-SL" /VirtualBox/GuestInfo/Net/0/V4/IP
# Now you can use SSH to login to PIAF-Green-SL at the displayed IP address
# Shutdown the PIAF-Green-SL Virtual Machine with the following command:
VBoxManage controlvm "PIAF-Green-SL" acpipowerbutton
On a Mac, everything works the same way except for deciphering the IP address. Download our findip script for that.
Adding Incredible PBX 11 and Incredible Fax
You can read all about the Incredible PBX 11 and Incredible Fax feature set in our recent Nerd Vittles article. If you decide you’d like to add one or both to your PIAF-Green Virtual Machine, just log into your server as root and issue the following commands. NOTE: You must install Incredible Fax after installing Incredible PBX, or you will lose the ability to install Incredible PBX at a later time. With Incredible Fax, there are a number of prompts during the install. With the exception of the prompt asking for your local area code, just press Enter at every other prompt.
chmod +x incrediblepbx11
The Incredible PBX 11 Inventory. For those that have never heard of The Incredible PBX, here’s the current 11.0 feature set in addition to the base install of PBX in a Flash with Scientific Linux 6.5, Asterisk 11, FreePBX 2.11, and Apache, SendMail, MySQL, PHP, phpMyAdmin, IPtables Linux firewall, Fail2Ban, and WebMin. Incredible Fax, NeoRouter and PPTP VPNs, and all sorts of backup solutions are still just one command away and may be installed using the scripts included with Incredible PBX 11 and PBX in a Flash. Type help-pbx and browse /root for dozens of one-click install scripts.
- CallerID Superfecta (FreePBX Module adds Names to CID Numbers)
- CallWho for Asterisk (Dial 411)
- Digium Phone Support (install-digiphones)
- Preconfigured Email That Works with SendMail and Incredible Fax
- OSS Endpoint Manager
- Extensions (1 preconfigured with random password)
- Festival Server and Festival TTS for Asterisk (festival –server &)
- Flite TTS for Asterisk
- FreePBX Backups
- Google Dictionary by Phone (Dial 333)
- Google News by Phone (Dial 951)
- Google Stocks by Phone (Dial 950)
- Google Voice (FreePBX GV/Motif Module)
- Hotel-Style Wakeup Calls (FreePBX Module)
- Incredible Backups… and Restores (install-incredbackup2)
- ISN: FreeNum SIP Calling from Any Phone
- MeetMe Conference Bridge (just dial C-O-N-F)
- Mondo Full System Backups (install-diskbackup)
- Incredible Fax 11 (/root/incrediblefax11.sh)
- Incremental Daily Backups (install-dailybackup)
- Munin Reports (install-munin)
- NeoRouter VPN Client (nrclientcmd)
- NewsClips from Yahoo
- ODBC Database Support (Dial 222, 223)
- OpenFire Instant Messaging & Chat Server (install-openfire)
- New PBX in a Flash Registry (show-registry)
- PPTP VPN for PIAF (/root/install-pptp)
- Reminders by Phone and Web
- SAMBA Windows Networking (configure-samba)
- SMS Dictator with Google Voice (Dial S-M-S)
- Speech-to-Text Directory Assistance (Dial 411)
- Stealth AutoAttendant
- TFTP Server (setup-tftp)
- Tide Reports with xTide (Dial T-I-D-E)
- Travelin’ Man 2 & 3 (Secure, remote access)
- Trunks (Vitelity, Gtalk, SIPgate, IPkall, VoIP.ms, and more)
- Weather by ZIP Code
- Worldwide Weather by Phone (Dial 949)
- Wolfram Alpha by Phone (/root/wolfram)
Originally published: Wednesday, January 29, 2014
Need help with Asterisk? Visit the PBX in a Flash Forum.
Awesome Vitelity Special. Vitelity has generously offered a terrific discount for Nerd Vittles readers. You now can get an almost half-price DID from our special Vitelity sign-up link. If you’re seeking the best flexibility in choosing an area code and phone number plus the lowest entry level pricing plus high quality calls, then Vitelity is the hands-down winner. Vitelity provides Tier A DID inbound service in over 3,000 rate centers throughout the US and Canada. When you use our special link to sign up, Nerd Vittles gets a few shekels down the road to support our open source development efforts while you get an incredible signup deal as well. The going rate for Vitelity’s DID service is $7.95 a month which includes up to 4,000 incoming minutes on two simultaneous channels with terminations priced at 1.45¢ per minute. Not any more! For our users, here’s a deal you can’t (and shouldn’t) refuse! Sign up now, and you can purchase a Tier A DID with unlimited incoming calls and four simultaneous channels for just $3.99 a month. To check availability of local numbers and tiers of service from Vitelity, click here. NOTE: You can only use the Nerd Vittles sign-up link to order your DIDs, or you won’t get the special pricing! Vitelity’s rate is just 1.44¢ per minute for outbound calls in the U.S. There is a $35 prepay when you sign up. This covers future usage. Any balance is refundable if you decide to discontinue service with Vitelity.
3CX is a software PBX that’s easy to install & manage. It includes integrated softphones, WebRTC conferencing and essential add-ons out of the box, at no additional cost. Try the free edition at www.3cx.com.
Some Recent Nerd Vittles Articles of Interest…
- Many of our purchase links refer users to Amazon when we find their prices are competitive for the recommended products. Nerd Vittles receives a small referral fee from Amazon to help cover the costs of our blog. We never recommend particular products solely to generate Amazon commissions. However, when pricing is comparable or availability is favorable, we support Amazon because Amazon supports us. [↩]