Notices


Reply
Thread Tools
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#1
this is my implementation of the piratebox for maemo. tested with n900 and n810 under Diablo and Fremantle.
I also found David Dart's implementation, however his solution requires custom kernel, and mine is much simpler.

It's described at http://norayr.arnet.am/weblog/?p=1909
and in maemo wiki http://wiki.maemo.org/Maemo_PirateBox



you can see this if you'll be around me

Last edited by norayr; 2011-02-23 at 23:13.
 

The Following 6 Users Say Thank You to norayr For This Useful Post:
Posts: 3 | Thanked: 1 time | Joined on Feb 2011
#2
Very interesting!
Some questions:
Why install lighttp?Piratebox uses a python web server with droopy.What do you use for the uploads?
Have you ever noticed problems with the ad-hoc network on some linux machines with network-manager?
What do you use to stop the process?

PS:The custom kernel is required only for the nat rule,without the nat rule every address that doesn't need to be resolved with dns won't redirect to the piratebox.
PPS:I'm not David.
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#3
>Why install lighttp?
>Piratebox uses a python web server with droopy
Because lighttpd it's a native application, which runs faster and requires less resources.
Actually yes, it's not an exactly "piratebox", it's my vision on how to implement idea of file sharing via mobile wifi spots.
We can call it pirate board, or pirate ship then?

(I was thinking to use my friend's http server in bash or implement some minimalistic native code http server myself, but then decided to use lighttpd)

>What do you use for the uploads?
I've created a simple page with Seamonkey Composer, and copied files to the nokia device. This time with scp, but it does not matter how you do that, you may copy it on an sd card, probably. Ah, no, only the server's owner can share content.
I like it more this way

>Have you ever noticed problems with the ad-hoc network on some linux machines with network-manager?
I never use network-manager. I always use systems compiled by myself, and I do not need NM or any graphical tool to connect to wifi, because I am used to do everything myself, in console. However, I have noticed on friend's machines that NM as probably any clever software tries to care too much and spoil some efforts around So, yes, if I connect someones machine to the network manually, I stop NM first.
Anyway, my simple solution works with Diablo and Fremantle very nice, I have tested it a lot.

>custom kernel is required only for the nat rule
what nat rule?

>what about chatting, I think that netsukuko is a best solution in this area. Just take a look if you haven't yet

I am thinking to extend this solution, write my own simple native web server, connect it to the simple gui. Then, probably I guess I need to call it something different from "piratebox" in order to avoid confusion.

Last edited by norayr; 2011-02-24 at 21:07.
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#4
>PPS:I'm not David

Ah, I'll edit the wiki right now and fix that. Sorry! Did not notice.
 
Posts: 3 | Thanked: 1 time | Joined on Feb 2011
#5
Originally Posted by norayr View Post
Ah, no, only the server's owner can share content.
I like it more this way
In my opinion that's a pity.

Originally Posted by norayr View Post
what nat rule?
This:
iptables -t nat -A PREROUTING -i wlan0 --protocol tcp --match tcp --destination-port 80 -j DNAT --to-destination piratebox-ip:80

Originally Posted by norayr View Post
>what about chatting, I think that netsukuko is a best solution in this area. Just take a look if you haven't yet
I don't get this.

Originally Posted by norayr View Post
I am thinking to extend this solution, write my own simple native web server, connect it to the simple gui.
Good!
It's very interesting.
Keep us up to date.
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#6
netsukuku - sorry I've made a typo in the previous post - is described here:
http://netsukuku.freaknet.org/
http://en.wikipedia.org/wiki/Netsukuku
and by scrolling down here http://pyntk.blogspot.com/ you can find the screenshot of maemo which is also used in development
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#7
I would like to suggest you to rewrite the wiki and add your piratebox implementation installation instructions, as mine is actually a piratebox subset without a file uploading, and even may be considered a different project.
Another option is to rename the current wiki page and put your implementation as Maemo_Piratebox there.
 
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#8
 
knobtviker's Avatar
Posts: 665 | Thanked: 2,388 times | Joined on Feb 2012 @ Zagreb, Croatia
#9
Bump up the thread...
I'm trying to port this to Harmattan and I'm 1 line short of success.
Dnsmasq is giving me problems but the rest works fine, fully like a normal PirateBox on Linux.
Any hints or help, please? Can I somehow use something else rather than Dnsmasq?
 

The Following User Says Thank You to knobtviker For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Oct 2010
#10
Hello, I'm stuck with the installation on my N900 at the part of creating the access point, I just don't get how to run that script exactly and where?
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:14.