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.

10 Apr 2014

Magnificent beat ! I would like to apprentice whilst you amend your website, how can i subscribe for a weblog site?

The account helped me a acceptable deal. I have been tiny bit acquainted of this your broadcast
provided bright clear idea

14 Sep 2012

I do not even know how I ended up right here, but I thought this
put up was once good. I do not realize who you're but certainly you're going to a well-known blogger
for those who are not already. Cheers!

15 Sep 2012

My brother recommended I might like this blog.
He was entirely right. This post actually made my day. You cann't imagine simply how much time I had spent for this info! Thanks!

15 Sep 2012

After looking into a handful of the blog articles on your blog, I honestly appreciate your way of writing a
blog. I saved as a favorite it to my bookmark site list and will be checking
back soon. Please check out my web site as well and let me know your opinion.

14 Feb 2014

Solar panels are also proved very advantageous
for distant places where grid doesn't provide more electricity.

19 Mar 2014

Excellent article. I will be experiencing some
of these issues as well..

17 Sep 2012

My partner and I absolutely love your blog and find many
of your post's to be precisely what I'm looking for. Would you offer
guest writers to write content for you personally? I wouldn't mind writing a post or elaborating on some of the subjects you write related to here. Again, awesome blog!

23 May 2013

Keep in mind that the top jump ring will be the ring sliding onto necklace chain or cord and therefore, it should be sized
accordingly. You can visit the site with any internet connection, go to Jewelrysaga.
For example, the words gold-plated, 18 karat, 18k,
hammered, cuff, bracelet, semi-precious, smoky quartz, gem, faceted stones,
are all among keywords and phrases that would be good choices for this bracelet.
Jewelry photography is a challenging photography technique that
requires both knowledge and skill.

29 Mar 2014

Appreciate this post. Let me try it out.

20 Nov 2013

Hello too every one, the contents existing aat this site are tuly
remarkable for people knowledge, well, kedep up the good work fellows.

19 Feb 2014

Hello Dear, are you truly visiting this website daily, if so after that you
will definitely get pleasant know-how.

20 Sep 2012

Awesome site you have here but I was wondering if you knew of any user discussion forums that cover the same topics discussed here?
I'd really like to be a part of community where I can get responses from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Thanks!

21 Sep 2012

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

23 Nov 2013

This is really interesting, You are a very skilled blogger.
I've joined your rss feed and look forward to seeking more of your
magnificent post. Also, I have shared your web site in
my social networks!

21 Sep 2012

Good post. I learn something new and challenging on sites I stumbleupon
on a daily basis. It's always exciting to read through articles from other writers and use something from their web sites.

29 Sep 2012

you're truly a excellent webmaster. The website loading pace is incredible. It sort of feels that you're doing any distinctive trick.
Furthermore, The contents are masterpiece. you've performed a great task in this matter!

03 Sep 2013

Excellent post. I was checking continuously this blog and I'm impressed!
Very helpful information specially the last part :) I care for
such information a lot. I was seeking this particular information for a very long time.
Thank you and good luck.

09 Feb 2014

Companies that distribute lots of mail are sure
to gain from these financial savings, along with the velocity where post
can be ready to travel.

14 Feb 2014

An outstanding share! I've just forwarded this onto
a co-worker who was doing a little research on this. And he
actually ordered me breakfast because I stumbled upon it for him...
lol. So allow me to reword this.... Thanks for the meal!!
But yeah, thanks for spending time to discuss this matter here on your site.

01 Oct 2012

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

16 Jan 2014

Twoją stronę. Pozdrawiam

06 Oct 2012

Hi there to every one, the contents existing at this site are truly remarkable for people experience, well, keep up the
nice work fellows.

22 Oct 2012

I'm extremely inspired with your writing skills and also with the format for your blog. Is that this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a nice weblog like this one nowadays..

28 Jun 2013

Try to inform them another game title there will definitely be
described as a follow-up question to that. Intricacies of game is development and also it is growing popularity.
What has catapulted this software to fame will be the fact that is has been used extensively within the video game
development.

22 Oct 2012

Once your knowledge is more complete, then you will feel more confident about
the subject. You must give users a reason to consider visiting your page over and again.
Lastly… While Facebook is highly target and cheap,
the company is very pick on how they ads to be displayed.

17 Nov 2012

This is my first time go to see at here and i am in fact pleassant to read all
at single place.

16 Sep 2013

Definitely imagine that that you said. Your favorite reason seemed to
be at the web the simplest thing to keep in mind of.
I say to you, I definitely get irked whilst
other folks think about concerns that they plainly do
not recognize about. You controlled to hit the nail upon
the top and outlined out the entire thing without having side-effects , other people could take
a signal. Will probably be back to get more.
Thanks

28 Nov 2012

Right now it seems like Drupal is the best blogging platform out
there right now. (from what I've read) Is that what you're using on your blog?

07 Jul 2013

Series: Dragon Age Platforms: Microsoft Windows, Xbox 360, PS 3,
Mac OS X Genre: Role-playing Mode(s): Single-player Ratings:
ESRB = M, PEGI = 18. The negative thing is that there are a
huge number of websites that are for coupons
and vouchers and you have to find the right choice that offers working coupons
and vouchers. - Probably you didn't know that lemons are one from the top detoxifying foods that assist fight degenerative diseases, due to their diuretic qualities and antioxidants.

19 Sep 2013

Wonderful blog! I found it while browsing on Yahoo News.
Do you have any tips on how to get listed in Yahoo News?
I've been trying for a while but I never seem to get there!
Thank you

25 Dec 2013

Thanks for the marvelous posting! I seriously enjoyed reading it, you're a great author.I will remember to bookmark
your blog and will come back later in life.

I want to encourage you to definitely continue your great posts, have a nice holiday weekend!

26 Jan 2014

Ѵeery nice post. I just stumbled upon your blog anԁ wanted to saay that I've
truly enjoyed surfіng around your blog posts. In anʏ case I'll be subscribing
to your feed anԀd I hope you write again soon!

13 Feb 2014

Similarly when there's smallish amount of ice on
a Solar PV panel, light nonetheless gets through to warm the
cell and burn the frost.

20 Mar 2014

Appreciation to my father who stated to me about this weblog, this weblog is really awesome.

01 Jan 2013

Theyve used amazing relevant cultural issues to help and modify the minds of today’s youth
within an optimistic way of humanity. The particular display involves family guy Peter Griffin, full in addition
to body fat which has a mouth-watering pertaining to alcohol.
If you’ve really hit the jackpot, he might be described as a mixture of
all three.

12 Aug 2013

A colleague recommended me to your site.
Thank you for the information.

03 Jan 2013

You have provided an incredible resource.

07 Aug 2013

Hi, just read your post. Thought you might want to know that I found you through Google.

16 Apr 2014

Great post however , I was wondering if you could write
a litte more on this topic? I'd be very thankful if you could elaborate a little bit further.
Kudos!

05 Jan 2013

Amazing! Its actually awesome paragraph, I have got much clear idea concerning from this article.

26 Feb 2014

After examinations around using the Blue ink, it exhibited improvement in method post readability.

21 Jan 2013

I am curious to find out what blog platform you have been utilizing?
I'm experiencing some small security issues with my latest website and I would like to find something more safe. Do you have any solutions?

22 Feb 2013

Goedkoop-afrijden.nl is de ideale hulp bij het kiezen van u autorijschool voor het behalen
van u rijbewijs. Op deze website vind u het complete overzicht van de tarieven van
de meeste autorijscholen in Nederland. Er is namelijk flink
wat keuze in rijscholen en het is nog niet zo
makkelijk om de autorijschool te vinden die het beste bij u past.
Een goed gekozen rijschool kan al snel veel geld schelen .

Een rijschool kiezen met een hoog slagingspercentage is geen garantie maar zegt wel
iets over de vaardigheden van de instructeur of instructeurs.

19 Jul 2013

I was suggested this blog by my cousin. I am not sure whether this post is written
by him as nobody else know such detailed about my trouble.

You are amazing! Thanks!

13 Feb 2014

Affordable investment that lasts for life is an additional edge.

26 Jul 2013

What i don't understood is in reality how you are no longer actually much more smartly-appreciated than you may be now. You are very intelligent. You understand therefore significantly relating to this matter, made me personally consider it from numerous varied angles. Its like women and men aren't
involved unless it's one thing to do with Woman gaga! Your individual stuffs excellent. Always take care of it up!

05 Feb 2014

Yеs! Finally sоmething about business cards templates.

Pages

Add new comment