Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torrent #1819

Open
ShalokShalom opened this issue Feb 15, 2021 · 11 comments
Open

Torrent #1819

ShalokShalom opened this issue Feb 15, 2021 · 11 comments

Comments

@ShalokShalom
Copy link

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.

@enoch85
Copy link
Member

enoch85 commented Feb 15, 2021

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?

@ShalokShalom
Copy link
Author

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. :)

@lukaspavelka
Copy link

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

@enoch85
Copy link
Member

enoch85 commented Mar 12, 2021

@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.

@lukaspavelka
Copy link

lukaspavelka commented Mar 12, 2021

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

@enoch85
Copy link
Member

enoch85 commented Mar 12, 2021

Thanks @lukaspavelka!

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

@lukaspavelka
Copy link

@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.

@enoch85
Copy link
Member

enoch85 commented Mar 15, 2021

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. ;)

@szaimen
Copy link
Collaborator

szaimen commented Apr 29, 2021

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
Copy link
Collaborator

szaimen commented Apr 29, 2021

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

@enoch85
Copy link
Member

enoch85 commented Feb 6, 2023

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/main/torrent

Anyone that have an idea what might be wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants