PirateBox
First, you should set a password for the root account (which also
will enable SSH). Telnet into the router, and run
passwd.
The next thing you need to do is set up your network interfaces. Modify /etc/config/network to look similar to this:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.2.111'
option netmask '255.255.255.0'
option gateway '192.168.2.1'
list dns '192.168.2.1'
list dns '8.8.8.8'
assuming that the router's IP address will be 192.168.2.111 and your gateway is at 192.168.2.1.
Next, modify the beginning of the firewall config file (/etc/config/firewall) to look like this:
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
#Uncomment this line to disable ipv6 rules
# option disable_ipv6 1
config zone
option name 'lan'
option network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
option network 'wan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'
Leave the rest of the file untouched.
In /etc/config/wireless, find the line that reads "option disabled" and change it to "option disabled 0" to enable wireless. At this point, you need to reboot the router.
Now, connect a FAT32-partitioned USB Flash drive to the router, and run the following commands on the router:
cd /tmp
wget http://piratebox.aod-rpg.de/piratebox_0.3-2_all.ipk
opkg update && opkg install piratebox*
When you restart the device, you should see a new wireless network called "PirateBox - Share Freely". Plug your router in to a USB battery, and place everything into an enclosure of some kind (preferably something black with the Jolly Roger emblazoned on the side). Congratulations! With little to no hassle, you've created a mobile, anonymous sharing device!
Using the PirateBox
The point of the PirateBox is to be integrated easily into a public space with zero effort on the part of the end user; otherwise, no one ever would use it! This means using it has to be incredibly simple, and it is. If you are connected to the "PirateBox - Share Freely" network and you try to open a Web page, you automatically will be redirected to this page (Figure 1).
Figure 1. PirateBox Home Screen
As you can see, you are given choices as to what you wish to do: browse and download files, upload files or chat with other users—all of which is exceedingly easy to do. Go build your own PirateBox and get sharing!
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
| Non-Linux FOSS: Seashore | May 10, 2013 |
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- Using Salt Stack and Vagrant for Drupal Development
- New Products
- A Topic for Discussion - Open Source Feature-Richness?
- Drupal Is a Framework: Why Everyone Needs to Understand This
- Validate an E-Mail Address with PHP, the Right Way
- RSS Feeds
- Readers' Choice Awards
- Tech Tip: Really Simple HTTP Server with Python
- DynDNS
2 hours 49 min ago - Reply to comment | Linux Journal
3 hours 21 min ago - All the articles you talked
5 hours 45 min ago - All the articles you talked
5 hours 48 min ago - All the articles you talked
5 hours 49 min ago - myip
10 hours 14 min ago - Keeping track of IP address
12 hours 5 min ago - Roll your own dynamic dns
17 hours 18 min ago - Please correct the URL for Salt Stack's web site
20 hours 30 min ago - Android is Linux -- why no better inter-operation
22 hours 45 min ago
Enter to Win an Adafruit Pi Cobbler Breakout Kit for Raspberry Pi

It's Raspberry Pi month at Linux Journal. Each week in May, Adafruit will be giving away a Pi-related prize to a lucky, randomly drawn LJ reader. Winners will be announced weekly.
Fill out the fields below to enter to win this week's prize-- a Pi Cobbler Breakout Kit for Raspberry Pi.
Congratulations to our winners so far:
- 5-8-13, Pi Starter Pack: Jack Davis
- 5-15-13, Pi Model B 512MB RAM: Patrick Dunn
- 5-21-13, Prototyping Pi Plate Kit: Philip Kirby
- Next winner announced on 5-27-13!
Free Webinar: Hadoop
How to Build an Optimal Hadoop Cluster to Store and Maintain Unlimited Amounts of Data Using Microservers
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Some of key questions to be discussed are:
- What is the “typical” Hadoop cluster and what should be installed on the different machine types?
- Why should you consider the typical workload patterns when making your hardware decisions?
- Are all microservers created equal for Hadoop deployments?
- How do I plan for expansion if I require more compute, memory, storage or networking?



Comments
Mobilya Modelleri
this kind of box. I wonder what's inside?
Fantastic concept but...
What's the point of being able to share your files, if there's no1 to share them with? How many people have ever heard of Pirate Box? This is certainly my first time and I'm a huge nerd. Let's say I go fully mobile and take it to a public location, what are the odds of me finding someone who is looking for a pirate box as well? Probably slim. And if they did know about it, why wouldn't they try to bring their own? Then everyone's sharing with each other, yet nobody is connected to one another. Neat concept, but far from practical use.
Veronica @ http://www.bluepelicanloans.com/
PirateBox
One of the most fun aspects of a LAN party was exploring the shared files of all the other users on the network. There were people that would show up, solely for the file swapping. That is exactly what this project is about.PirateBox is a mobile p2p sharing and collaboration platform. Basically it is a wireless hotspot with a slick interface and a shared folder.
regards.
bizworldusa
This will be useful for our
This will be useful for our last finals this coming Saturday. Well, that is, to set it up today so we can pass notes and the other files we have to one another via a centralized location. This way we won't have to format our own individual mess of files in a way that everyone in the group can understand.
I just got it to work in the
I just got it to work in the dorm. Instead of what we normally did before, now everyone can just grab what they want instead of interrupting studying just to ask for the USB again...walking back and forth,..getting frustrated...you know the deal. I must admit, we "kids today" are pretty spoiled in some ways with respect to how convenient some things are. I made a page (well took some notes) on how I was able to get it to work at school: (Actually my brother had to stand over my shoulder when doing it haha)
http://www.baseops.net/aviationbooks/history.html
one question:
how do the dead-drop folks prevent their USB sticks from becoming malware vectors? For that matter, how does the Pirate Box prevent this?
is this essentially an ad
is this essentially an ad hock network that you setup?
The is incredible!
This is a totally awesome idea. I will have to make one my self now lol.
Source code
Any link of the piratebox_0.3-2_all.ipk source code?
:)
I believe it's on Source
I believe it's on Source Forge somewhere but I have the documentation posted on my page: http://www.daplayersclubz.net/networksetups/linux.html