James Crook, web geek ++

Installing PlugPBX on the Dreamplug

30 Jan 2012

Now that we've successfully connected to our Dreamplug we need to take a step back and load some software on it before we connect again. The Dreamplug can boot from SD card and that is what we want to do here, and the easiest way to do this is to load a disk image onto our SD card before putting it into the Dreamplug.

The PlugPBX project provides a card image that already has the Debian operating system on it as well as Asterisk, FreePBX and some other useful tools. However, the current version of PlugPBX is quite old so our process is to install it as-is then update both the operating system and telephony software.

Installing PlugPBX

To install PlugPBX as-is:

  • Unplug your Dreamplug from power and remove the SD card if there is one in it, otherwise get a blank 4GB or more SD card
  • Download betaimageDec22-dhcpfixed4G.img.bz2 from http://downloads.plugpbx.org/
  • Extract the disk image (.img) file
  • Use Roadkil's Disk Image tool to image the file onto your SD card as explained in the PlugPBX documentation (I found I needed to right-click and 'Run as administrator' to install Roadkil)
  • I've got a 8GB SD card and the PlugPBX image is designed for 4GB so I changed the main partition on the image to fill the rest of the card. I couldn't find a free Windows partition manager that could handle ext2 but gparted provides a bootable CD that will give you the ability. (You'll only need to do this step if you're using an 8GB SD card.)
  • Download Ext2fsd which will allow you to see the ext2 SD card partitions on your windows machine - you need to assign drive letters to two main card partitions and then the files will appear in Windows file manager
  • Download uImage_2.6.33.7, dreamplug_debian_v0.2.zip.001 and dreamplug_debian_v0.2.zip.002 from the Globalscale website
  • Rename uImage_2.6.33.7 to simply uImage and copy it over the uImage file in the root of the first partition on the disk
  • The zip.001 and zip.002 files are two parts of a single zip file. To unzip these on windows you simply right-click and unzip the first file and it will extract the second automatically into the one folder
  • Find the subfolders extracted at /lib/modules and copy both of these into on the second disk partition into /lib/modules there (leave the existing folder in there as well)
  • Edit /etc/fstab and change the UUIDs (the long hash-looking strings) back to real devices (use /dev/sdb1 for boot and /dev/sdb2 for root)

Booting to the SD Card

  • Some of the Dreamplugs you buy will come set up to boot to SD card already. But mine didn't.
  • To make your Dreamplug boot from SD card:
  • Put the SD card back into the Dreamplug
  • Start putty to connect to your device (see previous post)
  • Power up the Dreamplug and interrupt the boot sequence (you only get 3 seconds to press a key)
  • Enter the following commands to tell Dreamplug to boot into PlugPBX on the SD Card:

setenv x_bootargs_root root=/dev/sdb2 rootdelay=15
setenv x_bootcmd_kernel fatload usb 0 0x6400000 uImage
saveenv
reset

Updating Debian

To update the software to the latest versions we need to first update the operating system:

  • Run apt-get update
  • This takes a long time, over half an hour
  • Press enter at various points when it asks you about restarting services or existing configuration files - this uses the default selection which worked for me
  • You'll see loads of 'locale' errors and later on 'missing LSB' errors , these don't seem to matter
  • After the update is complete change /usr/sbin/safe_asterisk line 15 which reads ASTPIDFILE=/var/run/asterisk.pid - change this to be : ASTPIDFILE=/var/run/asterisk/asterisk.pid
  • Type 'reboot' to reboot the Dreamplug
  • The server should now start as normal
  • Log in using 'root' and 'password'
  • Type 'ifconfig' and look for the line near the top that says 'inet addr' followed by an IP address. Your Dreamplug PlugPBX web interface will be visible in your browser at this IP, giving you access to FreePBX, Munin, Webmin and some other tools

Updating FreePBX

To update Asterisk and FreePBX we use the web interface:

  • Visit the IP you found above in your browser
  • Click the 'FreePBX Adminstration' link to open the admin interface
  • Click the 'Tools' tab in the sidebar then 'Module admin'
  • Click the link that says 'Check for module updates online'
  • Click '2.6 Upgrade tool' and and check 'Download and install' then click the 'Process' button top right
  • Once downloaded close the popup then click the orange 'Apply changes' button that appears at the top of the page
  • Click the new '2.6 Upgrade' option in the sidebar and follow the instructions,
  • Update the FreePBX framework module to the latest version
  • Then click 'upgrade all' and confirm, then wait while they all download and install
  • Once finished close the popup then click the orange 'Apply changes' button that appears at the top of the page
  • Repeat the upgrade process until you are at the latest version

(Big thanks to ribblegibble and PlugPBX)

Make a backup, then continue

Now is not the time to let all the hours spent upgrading count for naught. Take a backup of your SD card by slipping it back into your PC card reader and using Roadkil's Disk Image to take an image of it.

Then it's time to set up your PBX using the FreePBX web interface, the same as it would be if FreePBX were running on any other server. I found it confusing at first but once familiar with the interface it allows a lot of functionality and I was able to set up my small office with 5 phones to work quite successfully. There's plenty of information at http://www.freepbx.org/

Let me know how you go!

Categories: 

Comments

06 Apr 2012

Writing betaimageDec22-dhcpfixed4G.img to SD cards creates two ext2 partitions (one for the kernel & the other for the rootfs); however, in your uboot config you have the following: x_bootcmd_kernel fatload usb 2 1x6400000 uImage
The above loads kernel from fat16 filesystem; however, the kernel is on an ext2 partition.

Did you delete the first EXT2 kernel partition(219MB)and create a FAT16 partition? If not, how did you get the dreamplug to load the kernel from ext2 partition when you're specifying "fatload" in uBoot?

03 Sep 2012

hey there and thank you for your info – I've definitely picked up something new from right here. I did however expertise a few technical issues using this website, as I experienced to reload the web site a lot of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I am complaining, but sluggish loading instances times will often affect your placement in google and can damage your high-quality score if advertising and marketing with Adwords. Anyway I'm adding this RSS to my e-mail and could look out for a lot more of your respective fascinating content.
Ensure that you update this again soon.

17 Jan 2014

Czołem, w ten doskonały weekend jestem bardzo

radosna, z powodu, że czytam tę imponującą wiadomość w moim chałupie.

17 Jun 2014

Greetings! Very helpful advice within this post!
It is the little changes that will make the biggest changes.
Many thanks for sharing!

23 Jun 2014

Eхcellent post. I used to be cҺecking continuously this bblog aand I'm impressed!
Extremely helpful information specifically thee remaining part :
) ӏ maintɑin suϲh info much. I was seeking thiѕ сertain info foг a very lengthy time.
Thanks and best oof luck.

26 Jun 2014

This is very attention-grabbing, You are an overly professional blogger.
I've joined your feed and look forward to seeking extra of your excellent
post. Also, I have shared your website in my social networks

29 Jun 2014

This post will help the internet users for setting up new weblog or even a weblog from start to end.

30 Jun 2014

Very nice article. I definitely love this website. Keep it up!

30 Jun 2014

Article writing is also a fun, if you be acquainted with after that you can write otherwise it is complicated to write.

30 Jun 2014

Your method of telling all in this piece of writing is
really good, every one be able to without difficulty understand it,
Thanks a lot.

01 Jul 2014

I am really enjoying the theme/design of your web site.
Do you ever run into any browser compatibility problems?

A couple of my blog audience have complained about my site not working correctly in Explorer but looks great in Firefox.
Do you have any recommendations to help fix
this problem?

01 Jul 2014

Tropical, refreshing and calming - it was as if Thailand grew some
loving arms and poured me a cup of sparkly sunshine.
This can lead to the formation gallstones and diabetes.
Splenda has an aftertaste that is a little stronger, so Pure - Via beats
it in the aftertaste department.

05 Jul 2014

I am really impressed with your writing skills
as well as with the layout on your weblog. Is this a paid theme or
did you modify it yourself? Either way keep up the excellent quality writing, it's rare to see a great blog like this one nowadays.

07 Jul 2014

I was suggested this website by way of my cousin. I am not certain whether or not this publish is written by way of him as no one else recognise such
specified about my difficulty. You are wonderful! Thank you!

10 Jul 2014

I'm not sure exactly why but this weblog is loading very slow for
me. Is anyone else having this issue or is it a issue on my end?
I'll check back later on and see if the problem still exists.

12 Jul 2014

I could not resist commenting. Exceptionally well written!

12 Jul 2014

I just couldn't leave your site before suggesting that
I extremely loved the usual info an individual supply to your visitors?
Is going to be back continuously in order to check out new posts

21 Jul 2014

I'm not sure exactly why but this blog is loading very slow for me.
Is anyone else having this problem or is it a problem on my
end? I'll check back later and see if the problem still
exists.

05 Aug 2014

You will probably recognise some or all of these as some as used more than others with
very great success in carp baits:. At times, your
sailing instructor may need to issue an order and have it followed immediately.

Here are the guild quests along with a handy location and a listing of the reward for completion.

19 Aug 2014

Hi, I do believe this is a great site. I stumbledupon it ;) I'm going to return yet again since i have book-marked it.
Money and freedom is the greatest way to change,
may you be rich and continue to guide other people.

04 Sep 2014

Hi there, just wanted to tell you, I liked this blog post.

It was practical. Keep on posting!

16 Dec 2014

That's a good start to see if it is a taste that you will enjoy.
Those with tresses that lack shine may benefit from using grape
seed oil or perhaps coconut oil. In addition, almost daily use of coconut oil on my body had also left
my fingernails very strong and they are growing at an alarming rate.

20 Nov 2014

The agent manufactures its complete suite of GenDrive hydrogen fuel
cell systems, and also GenFuel hydrogen fueling stations
for customers such as Walmart, P&G, Kroger and also BMW.

20 Nov 2014

Hi fantastic blog! Does running a blog such as this require a large amount of work?

I've no understanding of computer programming however I
had been hoping to start my own blog in the near future.
Anyway, should you have any recommendations or techniques for new blog
owners please share. I know this is off subject however I just
had to ask. Thanks!

21 Nov 2014

Quality posts is the main to be a focus for the viewers to pay a visit the site, that's what this web page is providing.

24 Nov 2014

Hi! Would you mind if I share your blog with my myspace group?
There's a lot of people that I think would really appreciate your content.
Please let me know. Many thanks

01 Dec 2014

With havin so much content do you ever run into any issues of plagorism or copyright violation? My site has a lot of completely unique content I've either authored myself or outsourced but it looks like a lot of it is popping it up all over the internet
without my agreement. Do you know any solutions to help protect against content from
being ripped off? I'd genuinely appreciate it.

22 Dec 2014

It's rеally very complicated іn tҺiѕ busy life to listen news onn TV, so Ι simply use thе web for that reason, aand ǥеt tthe newest news.

05 Jan 2015

You should look out for a service provider with a local office.
Nowadays locksmith's business is not just pertaining to the keys and locks but is also related to other emergency needs
of different kinds of clients. If you want to learn how to market your Locksmith service online you need
to invest some time.

20 Jan 2015

It's appropriate time to make a few plans for the
future and it is time to be happy. I've learn this put up and if I may I wish to suggest you some interesting issues or
advice. Perhaps you could write next articles referring to this article.
I wish to learn even more issues approximately it!

27 Dec 2014

Make sure to grab your readers' attention by making the
content appealing and useful. Gov blogs - Pretty much the exact same technique as above,
although this time we are targeting. Then you survive on the hopes and dreams
that the article is indexed, and shoots to the top of the leader board with the search engine results.

21 Jan 2015

In certain cases, people get refunds through Earned Income Credit or through overpayment
from previous years. He or she can also get a
good publisher who will undertake the responsibility of publishing the e - Book.
Here you will discover how it's possible to generate passive income online without investing anything at all.

23 Jan 2015

Hola ! Esto es un poco fuera de tema pero necesito algunos consejos de un blog de establecida.
¿Es duro muy duro para configurar su propio blog? Yo no soy muy techincal pero puedo entender las cosas bastante rápido rápida.

Estoy pensando en la creación de realización de mi propio,
pero no estoy seguro de por dónde comienzan. ¿Tiene alguna
Ideas o sugerencia? Gracias

20 Dec 2014

Have you ever considered writing an ebook or guest authoring on other blogs?
I have a blog centered on the same subjects you discuss and
would love to have you share some stories/information. I know
my readers would enjoy your work. If you're even remotely interested, feel free to shoot me an e
mail.

05 Aug 2014

The content of the e - Book is divided into seven chapters that attempt to cover these
following points and more. I have written many articles in different
ITcertification as well as he has a vast experience in IT industry.
This indicates the owner of this site has nothing to
hide.

27 Aug 2014

Hi mates, its impressive article about cultureand completely
defined, keep it up all the time.

29 Aug 2014

Steve Walsh also made several digs about Cher this week, branding
the woman "moody and miserable", which can be rather unprofessional coming from one of the X-factor judges.

The modern "X Factor" casualty, Aiden Grimshaw was speedy to defend Lloyd however,
saying, "Cher will be lovely. I think it had been always will be hard for somebody who got such negative stick at such a early age to go around beaming but she's amazing and she actually is done really well. inches

Cher Lloyd is usually on rather shaky ground ready popularity and if Katie Waissel is elected out of the competition soon, she might become the new "villain"
of the show. Louis Walsh was definitely right when he mentioned, " She should learn to be fine to everybody - because you will still meet them along the way down. inch

01 Sep 2014

I have been exploring for a little bit for any high quality articles or weblog posts on this kind of area .
Exploring in Yahoo I eventually stumbled upon this web site.
Studying this info So i'm happy to show that I've an incredibly good uncanny feeling I discovered just what
I needed. I such a lot unquestionably will make sure to don?t
fail to remember this website and give it a look on a constant basis.

03 Sep 2014

Zinavo has an integrated team of web consultants, creative designers, writers, programmers and marketing professionals that
know how to get online results. CODANK is top rated Web Design firm, and Internet Marketing Experts located in Charlotte, NC.

Technology never rests or sits idle; it is an ongoing process that makes all efforts to bring in the necessary changes that can facilitate human life and make it easier,
more comfortable and advanced.

17 Nov 2014

WOW just what I was searching for. Came here by searching for automotive

21 Nov 2014

Thank you for sharing your thoughts. I truly appreciate your efforts and
I am waiting for your further write ups thank you once again.

30 Dec 2014

Hello, i think that i noticed you visited my site thus i came to return the choose?.I'm
attempting to to find issues to improve my web site!I suppose its ok to use
a few of your concepts!!

21 Jan 2015

It alѕo lets you add multiple pߋrtіon sizes for your
own foods. This cann be because your system is using reseгve еxϲess faat and converts these fats into
usable power. Many people have no idea exactly ԝhat homeopathy is actually, so when you've neeveг foun out about the item, homeοpathy is usually an eye-opening encounter.

04 Sep 2014

You're so awesome! I don't think I've truly read through a single thing like this before.
So nice to find another person with original thoughts on this subject.

Seriously.. many thanks for starting this up.
This web site is one thing that is needed on the internet, someone with
a bit of originality!

11 Dec 2014

Marvelous, what a website it is! This weblog presents valuable information to us, keep it up.

19 Sep 2014

Having read this I believed it was rather enlightening.
I appreciate you taking the time and effort to put this informative article together.

I once again find myself spending way too much time both
reading and commenting. But so what, it was still worth it!

19 Jan 2015

Yes, fake tan can look really good when done properly but often by doing
it our self's and even sometimes professionally it can turn out bad and embarrassing.

Top of the line bottle of spray getting brownish naturally solutions
typically result in a stunning bronze tan, nevertheless usually the perfect solution is occurs way too formidable or
perhaps you lose an area. Some Sun Laboratories Spray Tan Solution products contain Aloe Vera
as well as certain botanical extracts.

18 Jan 2015

always i used to read smaller posts which also clear their motive, and that is also happening
with this paragraph which I am reading here.

08 Jan 2015

It's nearly impossible to find experienced
people in this particular subject, however, you seem like you
know what you're talking about! Thanks

22 Jan 2015

This is a topic which is near to my heart... Thank you! Exactly where are your contact details though?

Pages

Add new comment