While reading Gizmodo, I stumbled across an article about the PirateBox, an offline network for sharing files. I wanted to do this, but I didn't want to buy all the supplies. Instead, I decided to use an old Android phone, my HTC Hero (Sprint) that got abandoned after upgrading to an EVO 4G. In reality, any phone with Android, root, and WiFi woill work just fine.
- Android Device
- Wireless Tether App (market)
- PAW Server (attached)
- Pirate Lunchbox (Not necessary)
- BatteryPack (Not Necessary)
- First, get on the internet and download the "Wireless Tether for Root Users" app. This will establish our PirateBox Network.
- Set up the name to "PirateBox" or anything you like. Make the network "open"
- Download and install the APK below. This version of PAW Server includes PirateBox, and the forwarding stuffz. Credits to joschi70
- Make a folder called "piratebox" on the root of the SDCard
- Next, Start the Tether app.
- Start PAW Server
- Finally, test the system out by uploading a file from another device. If all works well, the file will be at the folder called "piratebox" under the "html" folder where the pages are.
- EXTRA: For an almost-exact replica of the original PirateBox, place your device in a Pirate lunchbox with a battery pack.
This works by the users joining the "PirateBox" network. PAW Server then serves the site. The page uses BeanShell Code because PAW Server does not like PHP and because BeanShell is supported by PAW. In the recent versions, joschi70 has changed PirateBox from a half-working project to a fully-working install-on-the-fly system. He has redesigned PirateBox to an almost-precise replica of the original PirateBox. He is also the one to get forwarding woking, so he deserves all credit for finishing this. I just started it
NOW MORE PROBLEMS!!!!!11!!1!!!!!!1!!!!1
In order for this to work, you have to use "Wireless Tether for Root Users" and NOT the native tethering in ROMS like CyanogenMOD and MIUI. In fact, DO NOT use a rom with Native Tethering functionality. It screws up the ENTIRE connection to PirateBox. Sense is proven to work, since this was all tested on a Sprint Hero. MotoBlur and TouchWiz are not yet proven.
EDIT: Attached is a "server.txt" without the 2MB limit added by PAW. Rename the "server.txt" to "server.xml". Then, place "server.xml" in "sdcard/paw/conf/server.xml". Also, installation process is alot simpler thanks to Joschi70. He is the developer of PAW and has made an APK with PirateBox built in. His version looks more like the original and works more efficiently.
Original PirateBox: http://wiki.daviddarts.com/PirateBox
Credits to David Darts for inspiring me to roll my own with what I had.
Also, credits to joschi70, the developer of PAW, for the PirateBox bundle AND for fixing forwarding! Now enter any website address and it redirects to PirateBox! YAY and HIGH FIVE to joschi70!