Pirate Box: A Simple LAMP Stack Live Server Build

I first came across the PirateBox DIY project late last year, and thought it would be fun to set one up, but I didn’t really have an idea of where it could be put to good use. And then one day it hit me. I'm in a band and we play shows fairly regularly here in NYC. After shows people often ask if they can download any of our songs online (which, of course, they can), or they want to share pics they took during the set, or they want to get in touch with us and need our contact info, and so on. So I thought, hey, I’ll set up a Pirate Box for the band and run it as a live server during shows, and then people could share pics with us and one another directly, download songs directly from us rather than through an online middleman, get general info about the band, upcoming shows and so on.

I began hunting on Craig’s List for an appropriate router to install the PirateBox ISO, but had no luck. Being the impatient type, I broadened my search criteria and found someone selling an old Mac Mini for $50. Perfect. That weekend, I went to a local flea market and picked up a cheap soho router and some cables for another $10, and set to work.

Because of some apparent incompatibilities between the PirateBox ISO and the Mac Mini hardware, I decided to scratch the idea of installing the PirateBox ISO and instead create my own build from scratch rather than spend endless amounts of time troubleshooting and tweaking to get the hardware and software to play nice with each other.

After a couple weeks of research and tinkering, I managed to put together a nice little LAMP stack running a main portal page, a band Wiki, a chat room, and a song downloads page (see below for full details). I keep the setup in an old laptop case with the Mac Mini and the router inside, plugged into a power cord. I’ve since brought it along to two shows and set it up somewhere inconspicuous on stage. When we’re doing sound check I just plug in the extension cord, turn on the router and the server, and it’s good to go!

I configured the network and server so that once someone has hopped onto the wifi, all they have to do is navigate to serverhostname.local to access the server, and I set the wifi broadcast name and the host name of the server to the name of the band.  Here are some screen caps from the initial setup.  Once someone connects to the wifi and navigates to the correct url (in the present case: utm.local), they are greeted with a success page. 


Clicking the portal link takes them to the site's main navigation page.


From there, users can navigate to the wiki:


Or to the chat room:


 Or to the download page:


Try not to laugh at the download page, this was what it looked like after initial setup, it's since been spiced up a bit.  If you want to see it now, you'll just have to come out to one of our shows!

All in all this was a fun little project.  It took about a month's worth of work (mostly on weekends) to get everything up and running, including preliminary research, installation, configuration and customization, as well as the time spent setting up an initial test on a VirtualBox VM on my laptop. 

There were, however, some frustrating hurdles along the way: finding an Ubuntu Server ISO that worked without problems on the Mac hardware, getting hostname resolution to operate correctly for both iOS and Android devices (avahi-daemon eventually did the trick, though a bug in older generations of the Android OS prevents those devices from being able to resolve the hostname.local URL to the IP address of the server), and, perhaps most ridiculously, uploading the band's logo into the MediaWiki (though drinking a bit less beer during configuration would have probably made that process go a bit more smoothly!).   

There's a lot more that one could go into here: installing Ubunutu Server onto the Mac Mini, installing and configuring the LAMP stack, comparisons of the various open source software packages I decided to include, as well as those that I decided against, potential security issues running an open wifi at bars and clubs in NYC, and so on.  But perhaps those are best left to their own individual posts. So for now, that's all folks!


UTM Live Server Build

Hardware
• Mac Mini, $50 on Craig’s List
• Netgear router, $10 at a local flea market
• Cables, $5 at the same flea market
Total Hardware Cost: $65

Software
• OS: Ubuntu Server
• LAMP Stack:
    • Apache2 Web Server
    • PHP5
    • MYSQL DB
    • PHPMyAdmin
    • OpenSSH
• Web Interface:
    • MediaWiki
    • Blueimp’s AJAX Chat
    • PHP login module for the downloads page (adapted from Harvard’s Building Dynamic Websites online course)
    • Noir HTML5 Template optimized for mobile devices
Total Software Cost: $0

31 comments:

  1. Open the screen that you would like to capture. This might be any display within your smartphone, within an app or even the home display. Read more: screenshot android We highly propose S Be aware, an exceedingly strong Be aware-having application, and Kid Manner, which simplifies the UI for kids. SnapBizCard lets you increase any person to your Call listing just by getting a photograph of a company card.

    ReplyDelete
  2. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained!
    box file

    ReplyDelete
  3. Another group of thirteen specialists from Canada issued guidelines for treating SAD seasonal depression

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. The fundamental parts are a vigorous stockpiling framework with abundant hard drive space and preparing force and Random Access Memory sufficiently adequate to convey consistent playback of HD content. published here

    ReplyDelete
  6. Littler undertakings might be served by the building range of abilities controlled by the DBA.https://www.dbdesigner.net/

    ReplyDelete
  7. Users who have access to the VPS can make changes to their website, store information on the hard drive, and even reboot their part of the system without having any effect on the other virtual servers that computing resources are being shared with.ubuntu dedicated servers

    ReplyDelete
  8. Since we have inspected the constraints and dealt with a portion of the more doubtful desires, those of regardless you needing to figure out how to code will be glad to realize that programming is definitely not a hard thing to begin learning and won't expect you to pay out immense totals of cash. Ihttps://www.techpally.com/serverless-architecture-advantages/

    ReplyDelete
  9. Along these lines data recovery authorities really work in spotless and clean rooms that can put a medical clinic's task theater to disgrace! data recovery london

    ReplyDelete
  10. Savaliya Oil Maker Machine for Home Usage. This Product is Easy to Use and it produces health oil for your family. There are also some other products of savaliya industry, like coconut oil maker machine, peanut oil maker machine, sesame oil maker machine.

    ReplyDelete
  11. This service is completely different from the typical shared hosting where multiple clients share the server resources and don't have much freedom to choose the choice of operating system.minecraft server hosting

    ReplyDelete
  12. Laxmi pipe industries is leading Steel Pipe Manufacturer In India. we manufacture and supply various shape pipes like eye shape, grooved pipes etc.

    ReplyDelete
  13. Shreeja Health Care is leading Manufacturer, exporter, supplier, and Wholesaler of Oil Extraction machine

    ReplyDelete
  14. IENERGY NATURAL RESOURCES LIMITED (INRL) is leading us coal supplier in india.

    ReplyDelete
  15. However, nowadays databases are operating close https://www.dbdesigner.net to the front lines of business and are responsible for driving corporate profits.

    ReplyDelete
  16. Around 44% of all data misfortune is brought about by equipment disappointment. It's imperative to ensure that you promptly shut your framework down on the off chance that you speculate that hard drive has slammed.data recovery tips

    ReplyDelete
  17. We Offer all types of Finance Business Personal Cash
    Quick Cash Advance. Fast Credit Check. Cash Today.
    Fast Cash Online
    low interest rate as low as 2%
    Financial Cash Available Here
    Business Personal Cash
    I'll advise All Cash seeker should contact us
    Contact Us At : abdullahibrahimlender@gmail.com
    whatspp Number +918929490461
    Mr Abdullah Ibrahim

    ReplyDelete
  18. Arabian Yachting is the luxury yacht charter specialist in the Middle East. We having been helping to create unforgettable yacht charter experiences for over 10 years. We can arrange the ideal Yacht Party in Dubai. yacht for rent dubai

    ReplyDelete