FORUMS
Remove All Ads from XDA

PirateBox Mobile | PAW Intergrated

841 posts
Thanks Meter: 1,034
 
By pspunderground, Senior Member on 30th January 2011, 08:18 PM
Post Reply Email Thread
Find Jochen's intergrated version here.



OLD:


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.
Materials
  • Android Device
  • root
  • Wireless Tether App (market)
  • PAW Server (attached)
  • SDCard
  • Pirate Lunchbox (Not necessary)
  • BatteryPack (Not Necessary)
Instructions
  1. First, get on the internet and download the "Wireless Tether for Root Users" app. This will establish our PirateBox Network.
  2. Set up the name to "PirateBox" or anything you like. Make the network "open"
  3. Download and install the APK below. This version of PAW Server includes PirateBox, and the forwarding stuffz. Credits to joschi70
  4. Make a folder called "piratebox" on the root of the SDCard
  5. Next, Start the Tether app.
  6. Start PAW Server
  7. 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.
  8. EXTRA: For an almost-exact replica of the original PirateBox, place your device in a Pirate lunchbox with a battery pack.
How It Works

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

Other Stuff

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!
Attached Files
File Type: txt server.txt - [Click for QR Code] (276 Bytes, 3464 views)
File Type: apk PawServer_PirateBox.apk - [Click for QR Code] (715.0 KB, 3926 views)
The Following 6 Users Say Thank You to pspunderground For This Useful Post: [ View ] Gift pspunderground Ad-Free
 
 
31st January 2011, 03:58 AM |#2  
Junior Member
Thanks Meter: 0
 
More
pretty cool
pretty cool, but what it really needs is to also list all of the files in the piratebox folder on the main page so that other people can download them. I haven't actually tried the original piratebox but I thought that was the point, to set up a quick anon local filesharing page so you can swap files between friends at lunch. I've never used BeanShell but it should be easy enough to do.
31st January 2011, 08:06 AM |#3  
joschi70's Avatar
Member
Thanks Meter: 89
 
More
If you need some help with the scripts let me know.

The PAW setup should not be the problem.
What might be more difficult is to get the HTTP traffic redirect working.
31st January 2011, 11:26 AM |#4  
Junior Member
Thanks Meter: 0
 
More
Hi, great work got this working on my HTC Desire (without root) using the normal tether functionality. The only problems so far the files you upload can't be downloaded cause the uploaded files are not visible trough the website. If this functionality can be added this would be awesome.
31st January 2011, 11:37 AM |#5  
joschi70's Avatar
Member
Thanks Meter: 89
 
More
Where can I download the "official" PirateBox web pages?
Exchanging the PHP scripts should be easy.
If someone can provide a link, I would start making the PAW scripts.
31st January 2011, 11:58 AM |#6  
Junior Member
Thanks Meter: 0
 
More
wiki.daviddarts.com/PirateBox_DIY

anything here usefull?
31st January 2011, 12:00 PM |#7  
joschi70's Avatar
Member
Thanks Meter: 89
 
More
I had a look there, but could only found some files, but not all of them.
Maybe I've overlooked something.
31st January 2011, 01:58 PM |#8  
Junior Member
Flag Maastricht
Thanks Meter: 0
 
More
awesome
This is really awesome
31st January 2011, 10:40 PM |#9  
OP Senior Member
Flag Dallas
Thanks Meter: 1,034
 
Donate to Me
More
Quote:
Originally Posted by Mvdbeld

Hi, great work got this working on my HTC Desire (without root) using the normal tether functionality. The only problems so far the files you upload can't be downloaded cause the uploaded files are not visible trough the website. If this functionality can be added this would be awesome.

Quote:
Originally Posted by joschi70

I had a look there, but could only found some files, but not all of them.
Maybe I've overlooked something.

I'm adding the file browsing functionality and the original uses Python.
1st February 2011, 12:37 AM |#10  
OP Senior Member
Flag Dallas
Thanks Meter: 1,034
 
Donate to Me
More
Updated with File Browsing and changed location of uploaded files.
1st February 2011, 03:22 PM |#11  
Junior Member
Flag Maastricht
Thanks Meter: 0
 
More
This must be a pretty stupid question, but the file upload size limit is 2 megabytes if a file is larger than that, the browser gives the error 'connection has been reinitialized'.

Am I the only one having this problem?
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes