P2P rather than upload

Posted by diffy 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
P2P rather than upload
April 01, 2013 05:05PM
Hello,

PirateBox allows to upload files to the system thus making them available to all connected users.
This approach requires to store files which requires lots of space.

What about adding a few scripts that will look for shared folders (Samba or FTP) from the users which are connected to the box.
- A user connects to the pirate box
- He checks the option "Share my shared folders" on the webinterface
- A script will list all the files available though the folders shared from this computer
- The files will be stored in a little MySQL or SQLite database
- The web UI allows for users to search for files in the database.

By repeating the scanning operation multiple times, we can know which files needs to be deleted from the database and which are still available.

This was done using my College network to easily share files between students without a cental storage, we called this little search engine "Gogole" aka "stupid" in french slang smiling smiley

Listing shares and files can take some time, and if file names are not properly named it becomes hard to find what we wanted. But overall this system was great for everyone and I would be glad to see that option on the PirateBox. I'm about to buy my router and play with it soon, but if other developers like this idea, we can move forward to it.

Diffy
Re: P2P rather than upload
April 03, 2013 10:14AM
diffy Wrote:

> What about adding a few scripts that will look for
> shared folders (Samba or FTP) from the users which
> are connected to the box.
> - A user connects to the pirate box
> - He checks the option "Share my shared folders"
> on the webinterface
> - A script will list all the files available
> though the folders shared from this computer
> - The files will be stored in a little MySQL or
> SQLite database
> - The web UI allows for users to search for files
> in the database.

Hello Diffy,
Your idea sounds interesting.
At this point, I would suggest that maybe a DB (**SQL**) is a bit overshoot.
(I remember eg reading people saying mySQL is too heavy on RaspPi).


> This was done using my College network to easily
> share files between students without a cental
> storage, we called this little search engine
> "Gogole" aka "stupid" in french slang smiling smiley

are you french ? (I am)

I would be ready for tests.

I'm currently working on a PB with Debian on (very) standard PC :
[opentruc.fr] (sorry it's in french)

--
Vincent, France, trying to install a PB, or PB-like, on a standard PC with Debian.
[entrepierres.net]
Re: P2P rather than upload
April 03, 2013 10:43AM
I'm not sure, If such a feature is very useful, because the mobil-PirateBox only have short-access users -entering-and-leaving .. so the Database would be always outdated - correct? Or did I got this wrong?

Matthias
Re: P2P rather than upload
April 05, 2013 09:47AM
Matthias Wrote:
-------------------------------------------------------
> I'm not sure, If such a feature is very useful,
> because the mobil-PirateBox only have short-access
> users -entering-and-leaving .. so the Database
> would be always outdated - correct? Or did I got
> this wrong?

But, isn't this question very similar to the question of having PBs meshed
and the mesh itself being very dynamic (ie always outdated )
... and thus the mapping of the mesh must be refreshed very often.
(I have to try to understand how forban works).

--
Vincent, France, trying to install a PB, or PB-like, on a standard PC with Debian.
[entrepierres.net]