vm icon indicating copy to clipboard operation
vm copied to clipboard

Torrent

Open ShalokShalom opened this issue 4 years ago • 11 comments

Hi there

Since your downloads are quite sizable and since my download just failed, do I suggest offering torrent files next to the casual downloads.

This also reduces the load on your server, if that's any concern.

ShalokShalom avatar Feb 15 '21 13:02 ShalokShalom

Thanks, have been thinking about it. But I'm not that good with how torrents work, and I wouldn't know how to automate the process of uploading one.

Maybe you can help?

enoch85 avatar Feb 15 '21 16:02 enoch85

Yeah, good call.

Let's try this, I havent done this myself, while I am open doing so.

I do work on this, once my instance of Nextcloud is productive. :)

ShalokShalom avatar Feb 15 '21 22:02 ShalokShalom

Maybe i can also help with it, if you need my help please let me know

lukaspavelka avatar Mar 12 '21 09:03 lukaspavelka

@lukaspavelka

Maybe i can also help with it, if you need my help please let me know

Sure, would be great if a torrent could be created. We need to script it so that it can be done automatically each time a new release is made.

enoch85 avatar Mar 12 '21 10:03 enoch85

Maybe some basic stuff where to start is: for ova in $(find . -type f -name "*.ova" | awk -F '.*/var/www' '{print $2}'); do bash -c "create-torrent $ova --urlList 'http://127.0.0.1/$ova/{}' -o ${1%.ova}.torrent" sh {} \; -print; done

Or implement php-torrent solution from here: https://github.com/christeredvartsen/php-bittorrent

lukaspavelka avatar Mar 12 '21 12:03 lukaspavelka

Thanks @lukaspavelka!

Would be great if you could have a look exactly how it's done and then send a PR this way. :+1:

enoch85 avatar Mar 12 '21 14:03 enoch85

@enoch85 can you specify what exactly need to be done in what order so i can prepare some solution for it? I need more specifics.

lukaspavelka avatar Mar 15 '21 16:03 lukaspavelka

When I do releases I work with VMware Workstation (on Windows, yeah I know). So for each new release I would need a script, Powershell maybe (?)(I don't know) which creates a torrent for each new release I make.

The torrent itself should then be auto uploaded to some public tracker so that downloads could start immediately. Another alternative would be to just create the torrent so that I could upload it using any BitTorrent client out there.

I hope that makes sense, I'm not that good with creating torrents, only VMs. ;)

enoch85 avatar Mar 15 '21 19:03 enoch85

I mean the coolest thing would be if there was an app for Nextcloud that would integrate a torrent server into Nextcloud but that's most likely at least currently not doable...

szaimen avatar Apr 29 '21 19:04 szaimen

Here was a proposal that might work: https://help.nextcloud.com/t/torrent-server-for-file-share/88707/5

szaimen avatar Apr 29 '21 20:04 szaimen

I've now implemented a script that checks out OK, but it doesn't seem to work out of the box: https://github.com/nextcloud/vm/tree/master/torrent

Anyone that have an idea what might be wrong?

enoch85 avatar Feb 06 '23 15:02 enoch85