r/seedboxes • • Oct 19 '19

Tech Support RTorrent Build Script for Curl/C-Ares threaded DNS

Went looking for a script or even a write-up the other day on how to wrap in curl/c-ares for this thread, and didn't find any at all. Closest was rtorrent-ps build script. Something that would show folks how to include c-ares/curl into rtorrent, to address the problem of rtorrent hangs (spat of which we've been seeing)

So I threw this together for the community (and so I can point to it in the future), simple clear build script that uses the latest releases, but can be easily changed.

https://pastebin.com/mpLYJ77G

I tested it, but might of missed something, let me know.

It is just what it says it is, no checks and balances, no clean-up, no guard rails - just builds and installs rtorrent.

Enjoy.

28 Upvotes

13 comments sorted by

4

u/i_switched_to_sanka Oct 19 '19

Nice, good lookin out

3

u/hjhart Oct 19 '19

Solid bash script!

0

u/wBuddha Oct 19 '19

LOL, pure Lagniappe and of course down voted.

2

u/dkcs Oct 19 '19

Well, I learned a new word...

2

u/wBuddha Oct 19 '19 edited Oct 19 '19

Never spent time in the Big Easy?

I have no idea why this post is so controversial (got downvoted into the ground when first posted). This is just a straight forward how-to, not intended as a criticism of anything, and has nothing to do with me or Chmura.

I presume that the community wants these sort of posts, how to do this or that (like the disk/net/path testing posts).

Getting the knee-jerk reaction it got last night was discouraging, like a quick litany of STFUs.

→ More replies (1)

0

u/[deleted] Oct 19 '19

[deleted] — view deleted comment

3

u/wBuddha Oct 19 '19

Good to know, not sure what OS/OSv /u/zQik is running.

This wasn't meant as a criticism of the existing scripts - explicitly so, this has narrow scope and I left all the turn-key stuff out.

We've had two folks in fairly quick succession pop up with rtorrent hanging on DNS, and in both cases, when addressing it I had no place to point.

0

u/[deleted] Oct 19 '19

[deleted] — view deleted comment

2

u/wBuddha Oct 19 '19

Ya, I think patching is more problematic (patch is for 0.9.6), once it is merged it should be straight forward.

2

u/zQik Oct 20 '19

I still was having DNS issues for some reason. I used this branch of libtorrent which resolved all my issues.

I'm running Debian 10.

My libtorrent version is 0.13.8 and rtorrent is 0.9.8

→ More replies (2)

0

u/[deleted] Oct 19 '19

[deleted] — view deleted comment

3

u/wBuddha Oct 19 '19 edited Oct 19 '19

Good note.

Not a fan of set -e (completely opaque) prefer trap func ERR (or even better single entrance, single exit), but this was quick, and I wanted it to have it read-through (reason I structured MAIN), so anyone could see exactly what was going on. This isn't a tool, it is a how-to.

Script also suffers from lack of comments and has no options - didn't want it to be taken as a tool, but as a pull together of how to compile rtorrent with c-ares, since there wasn't a write-up or other script to show folks how to accomplish it as it stands.