Howto: Use rtorrent like a pro

I’m a huge rtorrent fan. I can’t imagine why anyone would use anything else, unless there’s something funky the big-name programs can do, that rtorrent just doesn’t handle yet.

This time, instead of introducing you to rtorrent nice and easy, like I did with cplay, I’m going to give you a brief tour, and then I’ll show you something very cool you can do with it. rtorrent is an amazing, complex, powerful program that is at the same time sleek, clean, comprehensive and ultralight — and I’m giving you just one small idea of its potential.

But first, let’s scratch the surface. Like a lot of console-driven programs, the startup screen for rtorrent is … rather dry.

That’s all you get. Exciting, isn’t it? :roll:

To add a torrent, press return and navigate to the torrent file. In this example, I’m using one of my favorite Revolution Void albums, “Increase the Dosage,” from Jamendo. I can’t guarantee you’ll like it, but it’s a free and legal download and it makes for a good example.

You can use tab completion to make your way to it. Double-tab shows a list of available path options that match the path you’ve already started. Your path starts in your home directory (unless you started it in a lower directory than that), so you don’t have to give it the full root path if you don’t want to. Press enter when you’ve found the one you want, and rtorrent will add it to the list.

Note that it’s still labeled as “INACTIVE.” rtorrent won’t start downloading until you tell it to. Use the arrow up and down keys to highlight the torrent (it will be marked with a bar of asterisks) and press CTRL+S.

Now we’re moving. The torrent is marked as active, the tracker will be contacted, and provided there are adequate seeds, downloading will start.

That’s about it, in a nutshell. There are some customary points that you’d expect from a torrent client. Press the right arrow while a torrent is highlighted, to see a detailed breakdown of the information available.

To get back to the main list, use the left arrow. Bandwidth throttling might be important to you too. If you’re used to capping your bandwidth (I choke my upload speeds to keep my wireless router from having a nervous breakdown), try using the a-s-d, A-S-D, z-x-c and Z-X-C keys to trim the speed to your liking.

If you take a few moments to experiment, you’ll find that pressing the numbers 1-6 gives you a revised view, with different filters applied. That can be useful if you’ve got 10 or 12 torrents running at a time, and you want a clear list of finished torrents, or stopped torrents. And most important, you can quit the program with CTRL+Q.

This is where you can stop if you just wanted the short tour. The next part is for people who really want to put rtorrent to work, and don’t mind getting their hands dirty. :twisted:

When you started rtorrent for the very first time, you probably saw a warning message that told you there wasn’t a .rtorrent.rc file to follow. That configuration file is what morphs rtorrent from a mild-mannered, law-abiding console gimmick into an unholy torrent-wrangling banshee.

In Ubuntu, the sample rtorrent configuration file is hiding at /usr/share/doc/rtorrent/examples/rtorrent.rc. Copy one for your own perusal, and give it the proper hidden file prefix.

cp /usr/share/doc/rtorrent/examples/rtorrent.rc ~/.rtorrent.rc

Edit, 2010-05-07: Please remember that this post was written a few years ago, and the configuration file for the current, vanilla rtorrent may be different from what you see here. — K.Mandla

Now open that file in your favorite text editor. Take a minute or two to peruse the guts. (I’ve copied one to the Ubuntu-nl pastebin for reference, or if you’re reading this at work on your $3,000 DRM-crippled Vista rig. :P )

You should get an idea of what the file can do; setting max uploads and downloads, default throttling and IP masking are all options. But take a closer look at some of these settings.

# Watch a directory for new torrents, and stop those that have been
# deleted.
#schedule = watch_directory,5,5,load_start=./watch/*.torrent
#schedule = untied_directory,5,5,stop_untied=

What’s that mean, you say? Well, it means rtorrent can watch a directory and add torrents to its list automatically, and stop torrents if the corresponding file disappears. Now look at this:

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,stop_on_ratio=200,200M,2000

You can also allow seeding to a specific ratio, a specific total uploaded or both. So if you get tired of carrying the weight of the Internets on your shoulders, you can limit your sharing on any number of criteria.

That’s nothing new, you might say. Azureus does all that, plus it has a feature-rich GUI, is proof of the viability of Java applications and has a cool blue frog as a mascot.

Well, please allow me to retort … with a case study: Imagine you’ve got two machines: Your $3,000 dual-core, dual SATA-drive, LED-bespeckled laptop straight from Dell, with an array of glossy sheen snap covers, eight USB ports, a gigabit connection and a built-in 802.11a-wireless card.

Your other machine is the lowly 166Mhz Pentium laptop. The one with 64Mb of PC66 and a 3Gb hard drive. The one you got from work in 1997 and never took back, even when you left them for another company during the dot-com boom. Burnt-out pixels, loose hinges and one scratchy speaker. The one with the Stone Temple Pilots sticker peeling off the lid. You know what I’m talking about. :mrgreen:

Set up your main rig with a shared network folder (NFS would be perfect for this) on a static IP address. Set up your lowly Pentium machine with a hard line to your router, maybe with a PCMCIA LAN card — something that at least gives you decent access speeds.

Now mount that shared folder directly into your slave’s home directory, maybe under ./watch. Set up the configuration file. Trigger rtorrent on bootup, and tell it to watch that folder.

Now you surf away in the comfort of your shiny dual-core desktop-replacement laptop, and when you find a torrent you like, save it into the local networked folder — perhaps even sending it to that folder automatically, through Firefox’s file extension preferences.

When you save it, rtorrent snaps it up and adds it to its list. It starts downloading it automatically, saving the file locally or perhaps on an external drive. You can set it to follow a certain bandwidth schedule so it doesn’t overwhelm the network, or you could hold all the torrents until the middle of the night, and do all your downloading during the wee hours.

It continues to download until it’s finished, then seeds for as long as you allow it. If it reaches the seeding ratio you set, it stops. If it reaches the upload limit, it stops. And best of all, if you delete the control torrent file out of your local download directory, it halts all the activity on that torrent and subtracts it from the list. Download the torrent, and it starts immediately. Change your mind and delete it, and rtorrent cuts it loose. Clean and neat, all handled automatically and without the least amount of effort on your part. It’s almost like a torrent daemon.

(In my experience, rtorrent never deletes the product files it has already created. So if you start downloading and change your mind an hour later, rtorrent might take the torrent out of the list, but the target files are still available. Conceivably, you could change your mind again and re-download the torrent file, and rtorrent would pick up the already downloaded fraction and get back to work on it. But I’m not 100 percent sure on that because I don’t recall ever doing it, so don’t hold me to that. :) )

I’ll be honest and say I haven’t used Azureus in more than a year, and so it’s possible that you could create the same arrangement with Azureus. But can Azureus run on your leftover Pentium Pro laptop?

rtorrent is highlighted in yellow in that htop window. CPU usage is roughly 1.0 percent of my 300Mhz and the memory profile around 10 percent of my 64Mb, and that’s while it actively downloads the album I started with when I began writing this. Add a few more torrents and of course the profile will go up, but the benefit of running without Java, without the X interface and without two dozen Gnome dependencies should be blatantly obvious. I’m willing to bet your old Pentium could do it.

Spacewise, rtorrent is going to cost you 314Kb for the download and 860Kb to install. libtorrent9 is necessary, so that’s another 284Kb to download and 788Kb on your drive, so you’re looking at less than 600Kb of bandwidth and maybe 1.6Mb installed. Again, I’ve written letters to Mom that took up more space than that.

I hope this is convincing enough to get you to try rtorrent, and maybe even use it on a regular basis. I really believe it’s a better option than most of the prevailing torrent clients, even if it is console-based. If you want to delve even deeper into this amazing little program, take a spin past the rtorrent wiki, which is one of the best-composed and best-written I’ve seen in a long time. The project is very active, and it has the look of it.

Next time: Give up on the Gecko, and browse with elinks instead.

Edit, 2008-02-14: dodger has been kind enough to translate this howto into Spanish; it’s on his blog here. Please remember that my blog is GFDL 1.2, which means you’re free to use or translate this post as you like, so long as you redistribute the content with the same license, or a later version. For more details, see my About page.

Edit, 2008-08-04: If you’d like to see a working example and configuration files for the systems I described here, take a look at this post.

Edit, 2009-01-23: If you’d like to see this setup on exceptionally low-end hardware, consider this example. Even at 100Mhz with only 16Mb for system memory and a lethargic 810Mb hard drive, it’s possible to use rtorrent in a networked arrangement and feed it the work of downloading and seeding.

Edit, 2009-11-14: This post is more than two years old now, but is still one of the heaviest draws to this site. I had to re-upload photos for this page, and likewise had to edit the text slightly to make sure what you saw in the pictures was what you were reading in the text. My apologies if I overlooked any discrepancies. Cheers and enjoy.

Edit, 2010-05-07: It’s ironic that almost exactly on the third birthday of this post, a second image host has expired and I’ve had to reupload the images again. I suppose it’s a testimonial to either this post or to rtorrent (or maybe Revolution Void), take your pick. ;) Once again, if you see something different from what’s in the pictures, please let me know. It might be around for a couple more years still. :shock:

P.S., 2010-05-07: Just for the record, the screenshots that you see currently are of the rtorrent-extended package available in Arch’s AUR. The system is a 300Mhz Celeron laptop running only framebuffer applications on Arch Linux, writing downloads directly over USB1.1 to an external hard drive, accessed across a wireless network with ssh and nfs, and managed by a 120Mhz Pentium laptop running Crux. This is the part where you try to out-geek me. :twisted:

About these ads

285 Responses to “Howto: Use rtorrent like a pro”


  1. 1 Matt Neilson 2007/05/02 at 6:30 PM

    Thanks for this rtorrent mini-howto. I’ve played with it a little bit, but I think it’s almost time to really put it to work. Jamendo, here I come!!!

    • 2 dmsuperman 2009/06/23 at 10:02 PM

      2596 0.00% 17.79M rtorrent

      That’s seeding 70+ torrents totalling far over 300GB in total size. 0.00% CPU usage, 17.79M RAM usage. rtorrent is definitely lightweight.

  2. 3 Harris 2007/05/03 at 4:49 AM

    Well I use the same scheme in my house. An old 366MHz K6 with 192MB RAM for torrents and file server.

    I use tightvnc and open azureus. I have a load average of 2 and so when copying from NFS the speed is small (4-5 MB/sec). Now I have tested ktorrent but while it´s much lighter it crashes every half day!

    I ‘ll give it a try, but I was wondering can you change on the fly the upload/download speed per torrent like you can in azureus?

  3. 4 Paul 2007/05/03 at 12:34 PM

    Thanks, great guide! Really well put across. I looked at rtorrent briefly recently but didn’t see any of the more advanced features you talk about!

    I’ll most certainly be giving it another look now :)

  4. 5 alex 2007/05/03 at 2:32 PM

    Does work rtorrent with a socks proxy?

  5. 6 K.Mandla 2007/05/03 at 3:01 PM

    @Harris: I believe so. Try highlighting the torrent you want to throttle, then press the right arrow to get the detailed information screen. I believe there are individual torrent speed controls available from there.

    @alex: I’m not completely sure. I run it on a home network and don’t have enough experience with socks proxies to answer confidently. Perhaps someone else who has worked with them can chime in.

  6. 7 tigerplug 2007/05/03 at 6:47 PM

    Heres a great link for all torrent freaks out there:

    http://www.scrapetorrent.com

    Its like THE Google of Torrent searches. I’ve always found it very reliable. I’ll be making a few posts about it in the near future so drop by and check it out.

    Cheers

  7. 8 Nico Cesar 2007/05/03 at 8:04 PM

    don’t miss this ubercool tip:

    screen rtorrent

    …and whats so exiting?

    press Ctrl-a d and it will detach, and log out (leave de machine on!) and come back later,

    screen -r

    and will resume your session.

    PS:man screen and will get a lot of Ctrl-a functions!

  8. 10 Zeke Baker 2007/05/03 at 11:13 PM

    Sounds great, but a stripped down version that can run on DD-WRT or OpenWRT would be better don’t you think? A bit more power than your pentium pro and can’t get closer to the router than that :P Unfortunately it would need to be stripped a bit for the most commmon routers (which only have 8 megs of Flash 6.5 of which are filled with either of the above OS’).

    • 11 Carl 2010/01/28 at 5:39 AM

      neat idea, but not too practical. if you have so little flash avail, then where are you planning on putting the torrents and data? if you have nfs/samba mounts available, just run rtorrent from there then.

  9. 12 archonon 2007/05/03 at 11:20 PM

    But how to stop torrent automatically when it has 100% downloaded?

  10. 13 Harris 2007/05/04 at 12:01 AM

    OK started using it. Very nice, fast and (still) stable.

    Though in some torrents from a certain tracker I get:
    Tracker: [Could not parse bencoded data]

    The same thing happens with bittorrnado, but not with azureus and utorrent. Any help?

  11. 14 Commentator Extraordinaire 2007/05/04 at 1:27 AM

    Archonon: “But how to stop torrent automatically when it has 100% downloaded?”

    You don’t, you effing leech.

  12. 15 elmargol 2007/05/04 at 2:01 AM

    rtorrent is a nice lightweight torrent client. The only feature I miss is DHT.

  13. 17 torrenTools 2007/05/04 at 5:38 AM

    also i suggest to use torrenTools, is a browser toolbar for Mozilla Firefox and Internet Explorer; allows to search 41 specialized torrent search sites for needed files (2torrents, bitenova, bitoogle, bittorrent, bittorrentshare, bt.etree, btbot, btjunkie, btwarehouse, bushtorrent, demonoid, extratorrent, fenopy, flextorrents, fulldls, google, isohunt, jabberwalker, letwory, litebay, meganova, mininova, monova, mybittorrent, newtorrents, nova9, orbdesign, smaragdtorrent, snarf-it, thepiratebay, torrentat, torrentbox, torrentfinder, torrentportal, torrentreactor, torrentspy, torrenttyphoon, torrentvalley, torrentz, worldnova, yotoshi).

    Extra feature: torrent newsfeed, links to 30 torrent’s sites, links to 12 torrent’s group of discussion, links to 12 torrent’s forum.

    http://torrentools.communitytoolbars.com/

  14. 18 mrisi 2007/05/04 at 9:14 AM

    I’ve always been pissed with how Azureus takes up so much memory and is so unstable, rTorrent serves my purposes almost perfectly well. The only thing I’m missing is being able to select which files to download within a torrent. Or maybe it’s there and I’m missing it. Any thoughts?

  15. 19 mattgunn 2007/05/04 at 11:25 AM

    Thanks for the info, that is great!

    -Matt
    http://www.mattgunn.ca

  16. 20 mrisi 2007/05/04 at 1:46 PM

    Nevermind, figured it out! Go to the file list, hit space on the file you want to not download. hit space again to tell it it’s priority. I’ve definitely found my new favourite torrent client, just uninstalled azureus! :D

  17. 21 El Cerrajero 2007/05/04 at 3:31 PM

    I love rtorrent and I use it in an old PC running Debian Etch.

    For those of you looking for a GUI client my bet is for Ktorrent.

  18. 22 Michelle 2007/05/04 at 9:57 PM

    DONT KNOW YET. MAY HAVE TO GIVE THIS TORRENT DEAL A SHOT ALWAYS USED B.S. OR L.W. SHAREEZA TYPE. AM SURE WILL BE BACK HERE SNIVELING IF I CANT FIGURE IT OUT THX GUYS ; MICHELLE2U

  19. 23 Adam 2007/05/05 at 7:18 PM

    I’ve written a nice small shell script that adds a download queue facility to rTorrent. So that I don’t have to see once it a torrent finishes downloading. It works like charm.

  20. 24 nik 2007/05/06 at 3:29 PM

    thanks for that article. bookmarked it. i love rtorrent, mostly because my machine is very old and darn slow.
    Good work ;)

  21. 25 TorMan 2007/05/09 at 5:52 AM

    I love rtorrent. Unfortunately, it doesn’t currently support per torrent limits. Here’s the open ticket: http://libtorrent.rakshasa.no/ticket/118

  22. 26 willem 2007/05/18 at 2:11 AM

    By the way, rtorrent also works great on a linksys nslu2 with deb etch … (a 10 watt full linux mini box; compare that to a 200+ watt vista energyguzzler)

    [nslu2: http://www.cyrius.com/debian/nslu2

    • 27 efen 2009/09/16 at 11:45 PM

      rtorrent runs now on my sheevaplug (a plugcomputer), I am controlling it via wtorrent, a web-frontend.

      - btw. the sheevaplug is very nice :) it is really something from the future and only for 100$

      Marvell-SoC Kirkwood 6281 with 1,2 GHz
      512 MB RAM and 512 MB Flash-Memory – with USB slot and SD slot

      I am running it with ubuntu 9.04

      and rtorrent is perfect for its lightweight – wtorrent was quiet a hassel to install though since I wanted to use lighttpd, but it worked out

      # one questions remains with rtorrent – how is the port forwarding managed in regard to NAT on a DSL-router. in the .rtorrent.rc there is a port-range to uncomment but I am unsure if it has to be a range and not only one port like in azureus.

      maybe somebody can shed some light on it

      • 28 Dalif 2010/02/03 at 9:49 PM

        You can set the range as port 1234-1234. In other words, the port range is just that one port. Then nat that port in your router. Or, if your router supports it, nat a port range like 1234-1244 and tell rtorrent to open a random port in that range everytime it starts. Whatever works for you.

  23. 29 chaidir 2007/05/19 at 5:06 AM

    woww…. thanks for the great tutorial.

    now, I’m using rtorrent :-D

    May I link this article into my blog?

    Thanks again ;)

  24. 30 losher 2007/05/19 at 12:29 PM

    Although it’s far from perfect, Azureus lets you run
    safepeer, which is probably a good idea…

  25. 31 christooss 2007/05/22 at 9:22 AM

    Great article!

    One question :) Can I select which files from torrent will be downloaded?

  26. 32 Yeago 2007/05/24 at 8:34 AM

    Gee, that only took 5 minutes.

  27. 33 dgeezer 2007/05/24 at 8:43 AM

    Thanks so much for the excellent tutorial.

    I now have rtorrent running on my Debian Slug (nslu2) with an attached USB hard drive. It only draws about 30w of power and serves the downloaded files to any pc on our network.

    This is my first ever experience doing anything with Linux other than installing Ubuntu from a live CD once. I may become a Linux convert based on my experience with the NSLU2, Debian and rtorrent.

  28. 34 Kuraudo 2007/06/03 at 9:43 AM

    I’m missing one thing with rTorrent (and almost every other torrent client out there). To be able chose a specific path for each of the files in the torrent.

    If you download an album named “abc” rTorrent will automatically save it to /my/path/abc/ but I want to save it to /my/path/abc_2003/

    Anyone has any ideas how to get it working? Because if I can do that rTorrent has everything I need.

    • 35 coconaut 2011/05/09 at 2:57 PM

      [rtfm!]

      $ man rtorrent

      ^O Change the destination directory of the download. The torrent must be closed.

  29. 36 Johnston 2007/06/05 at 11:26 AM

    I’ve been using cli Azureus for a couple of years. It does have dht and per torrent throttling which are for me must have features. But rtorrent is designed as a cli and is more informative so I’ve been thinking about using it for awhile.

    As you know, Az uses only one port while rtorrent defaults to 6890-6999. Can rtorrent be made to use one port? If not, how do you decide the right number? Why is 10 better than 9 or 11?

  30. 37 Hypestar 2007/06/11 at 3:26 AM

    How do you add additional trackers in rtorrent??

  31. 39 pacmon 2007/06/18 at 1:22 AM

    To download only selected files from within a torrent:
    - select the torrent on the main screen then right arrow,
    - down arrow to ‘file list’ option, then right arrow
    - select each file and toggle the priority with asterisk key (*) -> ‘off’,’hig’ (high),” (normal)
    - set the files you don’t want to be ‘off’
    :)

  32. 40 Ihwan 2007/06/20 at 11:24 AM

    Thanks 4 the info. I’ve search it for a long day ago.
    n i found it here. Thx a lot…

  33. 41 Toon 2007/06/23 at 2:57 PM

    Great article, thank you very very much!

    Finally getting rid of Azureus. Running Azureus remote with ssh -X was a pain in the *ss :D

    ssh+screen+rtorrent rocks !

  34. 42 beppe 2007/07/14 at 3:07 AM

    If you like exists a python program called rtorstat that creates a web page HTML with the statys of all torrents managed by rtorrent.
    I modified it so that it is not needed bittorrent installation anymore, I can send to blog if you tell me how to attach it.

    regards

    blu. eagle

  35. 43 Mintz 2007/07/14 at 11:16 AM

    Echoing christooss’s question.

    Can you select the files within a torrent that you don’t wnant to download?

    If I download a discography torrent, can I prevent is downloading some of the tracks?

  36. 44 tim 2007/07/23 at 10:18 PM

    rtorrent is slick!
    but BUT it will not move torrents on completion :(
    this is a major problem for my work-flow or should i say play-flow
    (this is true as of v05.3 24/07/2007)

  37. 45 drew peterson 2007/07/26 at 11:37 PM

    how can i find a list of commands and options for this application? how can i find the man page?

  38. 46 Adam 2007/07/29 at 11:38 AM

    Like I mentioned before. I’ve written a shell script that adds a queue facility to rTrorrent. For example. I can have rTorrent download at most 3 torrents at any point, the rest of the torrents are queued. Once a torrent finishes downloading, it moves the downloaded files to some other directory so that it doesn’t seed this torrent! :)

  39. 47 Simon 2007/07/29 at 11:33 PM

    I’d be interested in this shell script, Adam – can I get a link?

  40. 48 Nikodem 2007/08/05 at 3:54 PM

    Hi there,

    I have a weird problem with rtorrent. The throttle is off (or set to 300/40). I’m connected to internet with a 3 Mbps connection so I get download transfers up to 360 KB per second. Unfortunately in rtorrent (and only there) I cannot get a download rate faster than 60 KB/s. The download speed is always balancing between 55 and 59.5 KB/s.

    It’s very annoying. I thought about the throttle so I set it to 300/40 KB/s and nothing changed. Then I thought about the default config, so I have copied it from /usr/… and nothing changed.

    Rtorrent runs on my second computer (Ubuntu 7.04). Both computers are connected to the internet by a D-Link DI-524 Router, but I haven’t been downloading anything on the first computer while testing rtorrent on the second one.

    Please, help my in any way. Give me a hint or something. I like rtorrent and I wan’t to keep it, but I cannot live on those speeds. For the same reason, I have uninstalled torrentflux earlier (also problems with download rate). But, for example Azureus speeds very nice.

    Thanks for any help.

    Best regards,
    Nikodem Osmialowski

  41. 49 tim 2007/08/13 at 10:01 AM

    where’s that script your talking about Adem?
    please share :)

  42. 50 coolant 2007/08/16 at 2:15 AM

    Great stuff.
    I never realized rtorrent was so capable, although it’s the only client I’ve used (after the initial checking out) so far.

    Thanks for the tips, though, and might I add, that comparison of Azureus vs. rtorrent , well, was like telling my story about my problems ;) . Only that my downloader box is p2 -233(a turbo button boosts its speed too) . hah (better than p1 – 166 huh?)

    Thanks a ton.

  43. 51 Neostar 2007/08/17 at 12:20 AM

    Erm.. does anyone know how to use an ipfilter in rTorrent?

    • 52 ruler 2009/04/26 at 2:16 AM

      there is no built in support for ipfilter in rtorrent.
      rasterbar libtorrent has it.

      perhaps there’s a patch to allow using ipfilter in rtorrent. just check the tickets on the website.

  44. 53 kuron rozu 2007/08/19 at 3:06 AM

    Use MoBlock as an ipfilter. It’s just as good as PeerGuardian or Safepeer, but requires a little more configuration.

    Nikodem: In rtorrent the up/down is reversed 300/40 you have set up is actually 300 upload/ 40 download.

  45. 54 anandus 2007/09/26 at 1:52 AM

    I don’t know if anybody cares, but I’ve got rtorrent running on my external harddisk!

    It’s a Western Digital My Book world edition, and now it works fine as a download machine!
    It’s an ARM-processor (apparently 50 times slower than a P3) with 32Mb, but rtorrent does a good job!

    (Although, I might use ntorrent to connect to it on my Ubuntu desktop machine, because I’m a lazy GUI-man :P )

    But I’m very happy with the minimal footprint and the great performance of rtorrent!
    Like a pro ;)

  46. 55 nikzon 2007/09/26 at 3:07 AM

    Hello! :)
    Great turtorial!
    I have a problem with rTorrent not seeding, leeching works perfectly fine. Tried to google this for day with no luck :(
    There is no problem with portforwarding because azureus works fine on the same ports as i try to run to run rTorrent.
    Do I have to run rTorrent in /home dir ??
    Anyone had the same prob? thankful to any suggestions…
    Gentoo dist btw :)

  47. 56 Ishan Arora 2007/09/29 at 9:29 PM

    is it possible to put the elf binary and all its dependencies in, say a flash drive. I need a text based portable torrent client for i686 linux platform. please help me if you can.

  48. 57 vedang 2007/10/05 at 9:45 PM

    This is the best rtorrent tutorial I have come across, giving me everything I want, without too many details.
    I just have one small problem.
    I set rtorrent to use torrent files automatically from one folder, and use a default location to download. However, once the download occurs, I want to categorize it in separate folders (Music,Movies.etc). If I do this, I have to stop seeding the file, and delete the torrent, else rtorrent will download it all over again. So how do I change the download folder of a currently downloading file?

    I tried Ctrl-D which stops the download, but the torrent status is [OPEN]Inactive. If you do Ctrl-O, it says changing path of Open file.

    Any suggestions?

  49. 59 kameleon 2007/10/12 at 4:25 AM

    This is just totally awesome. Where you say “(In my experience, rtorrent never deletes the product files it has already created. So if you start downloading and change your mind an hour later, rtorrent might take the torrent out of the list, but the target files are still available. Conceivably, you could change your mind again and re-download the torrent file, and rtorrent would pick up the already downloaded fraction and get back to work on it. But I’m not 100 percent sure on that because I don’t recall ever doing it, so don’t hold me to that. :) )” I can attest that it will resume. I started a download on one machine and decided to move my entire rtorrent setup to my server. I just copied over the files my main machine had downloaded and transfered over the .torrent file… It picked up where it left off after a quick hash check.

    Although I too deleted a file but it still shows [OPEN]. Any ideas?

  50. 60 Calomel 2007/10/16 at 1:15 AM

    If anyone is interested in the general weeknesses of the bittorrent protocol and want to see the proof by modifing rtorrent, checkout the detailed study at http://calomel.org/rtorrent_mods.html

    We cover ratios, client ids, and connection timings to name a few.

  51. 61 the2ndHare 2007/10/18 at 1:45 AM

    vedang: Try Ctrl+K, it changes a torrent state to [CLOSED].

    To all of you, who are desperate to make torrents stop once they have completed downloading + move the files automatically — this is where you look: http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks

    A couple of questions for all Debian-NSLU2-torrenters (well, and others too):
    1. The hashing is terribly slow, and it happens *every* time you start rtorrent, even if you have your session saved, and ended the program correctly. Is there a way to speed/skip hashing?
    There are these advanced settings like hash_read_ahead etc. I`m just a bit afraid to use them blindly for that might cause memory/processor stress…
    2. How does rtorrent consume RAM? It looks like NSLU2 runs out of memory every… like 24-26 hours and kills the screen and rtorrent processes. What can be done to prevent this behavior?

    The above two problems currently result in terrible performance, because ¹as rtorrent is started it begins hashing for hours, then eventually uses up all RAM, gets killed, goto¹.

    Thanks in advance for all the answers, and many thanks for this great article!

  52. 62 jn 2007/10/19 at 9:09 PM

    the2ndHare : I run it with slugos and nlsu2, not died yet..
    Thanks for this guide =)

  53. 63 nobody 2007/11/05 at 5:50 PM

    the2ndHare:

    I had the same problem as you with rTorrent crashing (“HandshakeManager::receive_succeeded(…)” error), with Debian Testing (Lenny). rTorrent was running fine in Debian Stable (etch), but it was a very old version.

    I search around google and rTorrent website, seems like this is a known problem:
    http://libtorrent.rakshasa.no/ticket/840
    http://libtorrent.rakshasa.no/ticket/841

    Most websites suggest compiling your own, with the correct boot flag. At the end of Ticket #841, someone posted a website of compiled version of rTorrent. I have been using that and have no problem so far.

  54. 64 Avi Alkalay 2007/11/14 at 7:25 AM

    Some ISPs limit the BitTorrent stream with traffic shaping.

    To workaround such devil limitation on ISPs, ask rtorrent to try encrypted connections. I have this in my ~/.rtorren.rc:

    encryption=allow_incoming,try_outgoing,enable_retry

    Even if you ISP does not implement traffic shaping, please crypt-enable your BT client so your connection with those who are shaped may be faster.

    rTorrent simply rocks. Started to use it today and it is everything I need.

  55. 65 PrinceVlad 2007/11/14 at 6:40 PM

    Very nice program, easy to use…. but my downloads seem to be capped at 50 kbps. I can get 250 kbps on one torrent in windows (utorrent), but if I download the same one on Linux/rtorrent, it never gets higher than 50-52 kbps. What am I doing wrong? My upload is fully utilizing available bandwidth. uploading at app. 100.
    Seems to me to be some sort of capping on uploads in rtorrent, yet I can’t find any tweak for that…

  56. 66 sessner 2007/11/24 at 4:41 AM

    Thanks for the tutorial. I am also up and running with rtorrent.

    Does anyone know if I can copy a download when it reaches 100% but still share until a ratio is met. All the info I’ve seen will move a torrent when finished (ratio met), but doesn’t seem to have any way to act when the download has completed (100% downloaded).

  57. 67 DeAnander 2007/11/27 at 10:15 AM

    I am a bittorrent idiot, I confess. new kid on the block. I picked rtorrent because it was cmd line/curses and looked functional.

    I have so far been able to download only files of the expected size completely filled with NULL. at first I thought “wow that was fast!!!” but then realised what I actually had was Nuttin. is this normal behaviour for rtorrent, to precreate the right size file filled with NULL?

  58. 68 K.Mandla 2007/11/27 at 10:44 AM

    Yes, it allocates the space to the file before it starts piecing it together. Wait for the file to complete downloading before you start playing with it. ;)

  59. 69 Heso 2007/11/29 at 12:42 AM

    Recent version of rtorrent have a “session = /dir” parameter. If you use it, once a hash is fully performed it will write some data to the session dir which will allow it to skip hashing the same pieces next time.

    Crashing, especially on devices with small amounts of RAM, can be related to RAM running out. rtorrent seems to use a lot extra memory during hashes, especially on large torrents. On Linux-enabled routers that are capable of adding extra storage via USB (rack HDD, flash stick) make sure you create and enable a swap partition of at least 64-128 MB (I have 512 MB, just in case). It may help fix this problem.

  60. 70 pa 2007/12/15 at 12:15 AM

    rtorrent is great. I tried the various webui’s but have finally just settled on using the client itself through ssh/screen.

    I have one problem with the watch folder. When I stop a torrent in rtorrent (^d). it is immediately reactivated becuase its .torrent file is still in the watch folder. Is there a solution to this?

    Also, I would like rtorrent to stop deleting files from my watch folder when I remove them from rtorrent. Why can’t it just move them, or rename them .removed?

    I cannot figure out how to use view_add, which I assume would add some organizational functionality, labeling and sorting torrents.

    It would be nice, when using the “move completed torrents to a new location” scheme, if rTorrent could first hash check the FINAL destination, in case you just want to seed something you already have.

    Lastly, how about appending “.incomplete” to files that are incomplete, instead of moving them at the end? uTorrent has this feature.

  61. 71 Daengbo 2007/12/17 at 4:50 PM

    I used btdowloandmanycurses for a long time via screen, which is what I guess you do to check the status of your torrents. It worked well but was too difficult for my SO to handle easily (and she’s pretty bright).

    Eventually, I moved to Torrentflux (a web app) on a headless server. I wrote up a howto at http://ibeentoubuntu.blogspot.com/2007/11/setting-up-dedicated-torrent-server.html

    For the lazy ones, there’s even a NAS which comes with a BT client pre-installed.
    http://ibeentoubuntu.blogspot.com/2007/12/too-lazy-to-build-your-own-filetorrent.html

  62. 72 Artvox 2007/12/19 at 4:29 AM

    Thanks for this! Excellent introduction to the best c-l torrent client out there… IMHO…

  63. 73 Rich 2007/12/25 at 2:49 AM

    “””Your other machine is the lowly 166Mhz Pentium laptop. The one with 64Mb of PC66 and a 3Gb hard drive. The one you got from work in 1997 and never took back, even when you left them for another company during the dot-com boom. Burnt-out pixels, loose hinges and one scratchy speaker. The one with the Stone Temple Pilots sticker peeling off the lid. You know what I’m talking about. “””

    Ha Ha Ha, that got a giggle out of me. There must be a lot of old stolen laptops around like this.

    By the way, great guide on what to do with old hardware.

    Thanks

  64. 74 RobertW 2007/12/27 at 2:24 AM

    Great stuff, did get me going after a couple of minutes. Thanks. Does anyone know a good RSS script to autodownload torrents when they come available to automate this even further :-)

  65. 75 frank 2007/12/29 at 10:21 AM

    how do you compile the latest stable release for gutsy?

  66. 76 Rick 2008/01/11 at 5:47 AM

    Is it in some way possible to move the finished “files” automaticly to an onther location?

  67. 77 MacTwister 2008/01/20 at 3:19 AM

    Hi,

    Just instaled

    I dont understand because when i close the windows and reopen termainal i lose all the torrents in there. dose it not save?

  68. 78 well 2008/01/26 at 10:51 AM

    MacTwister: did you create a session directory?

  69. 79 peter 2008/02/06 at 10:41 PM

    Hey,
    if rtorrent is so good, someone please tell me how I can set upload limit for each torrent. I’m not talking about the throttle can be set with asd/ASD zxc/ZXC, but to be able to adjust the limits of each torrent, like

    1st torrent – upload: 5K/s, download 10K/s
    2nd torrent – upload: 10K/s, download 15K/s
    3rd torrent – upload: off, download 20K/s

    Thanks in advance

  70. 80 Reinis 2008/02/11 at 5:35 AM

    you can’t imagine why anyone would use anything else? how about queueing without annoying scripts? how about labels? meh

  71. 81 peter 2008/02/12 at 4:08 AM

    How about telling me how to do that?

  72. 82 mike 2008/03/09 at 4:43 AM

    i use screen to view rtorrent. is there a way to keep rtorrent running without actually having screen open in the terminal?

  73. 83 Martin 2008/03/19 at 5:31 AM

    @mike: Use the “screen” utility. On Debian, install with “apt-get install screen”. See e.g. http://calomel.org/rtorrent_mods.html (“Increasing rtorrent’s ease of use” about halfway down).

  74. 84 anonymous_coward 2008/04/02 at 12:28 AM

    Hi all. I know only the very basics of bash (i.e. I am hopeless at writing ANY scripts). Currently I am using this:

    1. I put my .torrent files in “torrents/”.
    2. find ./torrents -name “*.torrent” | \
    while read i ; do cp “$i” watch && sleep 12h && date ; done

    (Torrent files will be copied from “torrents/” to “watch/” at intervals of 12 hours. “date” displays the time of day so you can keep track.)

    3. Edit the default “.rtorrent.rc” file.
    Look for these 2 lines:
    #schedule = watch_directory,5,5,load_start=./watch/*.torrent
    #schedule = untied_directory,5,5,stop_untied=
    Change to:
    schedule = watch_directory,60,60,load_start=./watch/*.torrent
    schedule = untied_directory,60,60,stop_untied=./watch/*.torrent
    (The numbers are in seconds.
    60 secs should be frequent enough?)
    (“watch_directory” and “load_start” are self-explanatory.
    “untied_directory” and “stop_untied”: stop a torrent if its torrent file is deleted [untied].)

    Lastly, look for this line:
    #schedule = ratio,60,60,stop_on_ratio=200,200M,2000
    Change to:
    schedule = ratio,60,60,stop_on_ratio=100
    (Stop at the minimum 1:1 ratio. Can be increased if you want to be generous.)

  75. 85 anonymous_coward 2008/04/02 at 12:45 AM

    Dear all,
    The above command,
    (quote)
    find ./torrents -name “*.torrent” | \
    while read i ; do cp “$i” watch && sleep 12h && date ; done
    (endquote)
    does not add .torrent files in order of name, but in order of file creation time.

    To sort all .torrent files in “torrents/” by name and add them to the ‘queue’ in that order, please change the command to:
    find ./torrents -name “*.torrent” | sort | \
    while read i ; do cp “$i” watch && sleep 12h && date ; done

    Sorry for the mistake.

  76. 86 anonymous 2008/04/02 at 5:54 PM

    Hi:
    Would like to point out a mistake in anonymous_coward’s post above.
    The command
    find ./torrents -name “*.torrent” | sort | \
    while read i ; do cp “$i” watch && sleep 12h && date ; done

    should be instead
    find ./torrents -name “*.torrent” | sort | \
    while read i ; do cp “$i” watch && date && sleep 12h ; done

    (“date” and “sleep” are in the wrong order! =p)

  77. 87 eltrax 2008/04/05 at 1:18 AM

    Just fixing pacmon’s post:

    To download only selected files from within a torrent:
    - select the torrent on the main screen then right arrow,
    - down arrow to ‘file list’ option, then right arrow
    - select each file and toggle the priority with the space bar -> ‘off’,’hig’ (high),” (normal)
    - set the files you don’t want to be ‘off’

    The asterisk key (*) changes priority for all files.

  78. 88 Tequeño 2008/04/11 at 3:18 AM

    Please post some information on using the xmlrpc interface.
    I would like to use it to control the upload/download throttling by other programs, eg: crontab, website, etc.

    I know about the schedule commands in the rc file, but I would like to throttle the speeds based on the day of the week, and currently its not possible without xmlrpc.

    Also, is it possible to use it without depending on a webserver?

  79. 89 Macόπουλος 2008/04/19 at 10:30 PM

    I use it with my linksys nslu2 nas device that is flashed with native debian eth and runs it smoothly with one 200gb external disk..!! i just love it!

  80. 90 don jackson 2008/04/22 at 7:50 PM

    hii everyone i need a help about rtorrent i have installed it in fedora8 by using “yum isntall rtorrent” but when i run rtorrent it shows Could not read resource file: ~/.rtorrent.rc what might be the problem could anyone help me in this please…. this is my mail id donjackson.nambi@gmail.com help needed please
    waiting for ur reply

  81. 91 pxshock 2008/04/23 at 7:18 PM

    not much to say, but
    YOUR THE BOSS!!!
    great stuff man

  82. 92 jestergod 2008/04/24 at 1:25 AM

    i’m also having the same problem on my gentoo box as nikzon. i can leech the torrent with no problems but as soon as the torrent finishes downloading, it does not seed. i’ve googled this for days and still no results. can anyone help me out on this? i will post any information that you need to take a look into this. thank you!

  83. 93 jestergod 2008/04/24 at 1:26 AM

    btw, here’s my email address if anyone can contact me to help…

    jestergod@digital-dreamer.org

  84. 94 czecz 2008/05/12 at 10:52 PM

    once again, how to add additional tracker per torrent ?

    thanks.

  85. 95 Andrew 2008/05/16 at 10:39 PM

    I got a problem and i cant find the solution.
    What ever torrent i try to load i got the same message…

    Hashing: Storage error: [Hash checker was unable to map chunk: Not a directory]

    Is there a way to fix my problem???
    Please help

  86. 96 Friend 2008/05/26 at 4:17 AM

    Please, tell how to configure rtorrent to load torrents from specific dir ( for example, /root/.rtorrent/allmytorrets/*.torrent ) in “stopped” mode.

    I want to download different torrents to different dirs, so if rtorrent can keep new torrent in “stop-mode”, i can change dir to download and then manually start it.

    thanks.

  87. 98 ghindo 2008/06/10 at 2:58 AM

    Great tutorial! My only qualm with rTorrent thusfar is its inability to create torrents. Otherwise, quite a nifty little program.

  88. 99 Jon 2008/06/10 at 1:53 PM

    Can somebody help me?

    I love rtorrent too. I have it running on an old laptop from midnight to 8am (off peak). It monitors a directory for .torrent files, and when it has finished downloading one it copies the file to a ‘completed’ directory, and deletes the original .torrent. The only thing is, it keeps the .torrent it has created in the session directory, and therefore never drops any torrent from its list.

    I’m assuming there’s something I can put in the .rtorrent.rc file to make it remove them on completion, but I have no idea what it might be…

  89. 100 phil 2008/06/17 at 12:11 AM

    IMHO a torrent program is crap unless it has DHT…demonoid files were kept alive for over six months due to DHT after the sites CRIA issues (but now its back!). decentralization is essential to the success of the torrent network. imagine tpb going down tomorrow…

  90. 101 K.Mandla 2008/06/18 at 10:34 PM

    phil: http://libtorrent.rakshasa.no/wiki/RTorrentUsingDHT

    Perhaps you should check the home page for more up-to-date information about the software?

  91. 102 digitalpbk 2008/07/23 at 12:06 PM

    Coool Tut!
    How do I queue the torrent downloads?
    So that only 1 is active at a time?
    Please post the shell script.

  92. 103 thebluestreak 2008/08/13 at 7:37 PM

    just wondering how to torrify this for ISP’s that do bandwidth shaping and music / movie copyright holders looking for downloading terrorists to jail.

  93. 104 Erick 2008/08/22 at 2:42 PM

    Rtorrent+screen= download torrents ALL DAY and check on your sessions via SSH from anywhere.
    Rtorrent rox!

  94. 105 Steve W 2008/09/03 at 9:51 AM

    This article helped me.

    Thanks.

  95. 106 spideyman 2008/09/16 at 4:27 AM

    thanx a bunch as iwas ktorrent in kubuntu which was comparible to utorrent but this is so lightweight it barely registers on my system usage rtorrent is the shit.

  96. 107 J 2008/09/21 at 1:35 AM

    Hi ,

    Can rtorrent be set to download into a folder of my choice?
    not a sep folder for each just like a downloads folder so it satys out of my home folder?.
    thx for the TuT v very helpfull.
    any help on the settings for folders would be great.
    J

  97. 109 gev 2008/10/08 at 2:42 AM

    “Commentator Extraordinaire May 4, 2007 at 1:27 am

    Archonon: “But how to stop torrent automatically when it has 100% downloaded?”

    You don’t, you effing leech.”

    Sorry, I didn’t quite catch that. Did you just offer to pay for the uploads that my ISP charges me for in addition to downloads?

  98. 111 Vash 2008/10/08 at 9:47 PM

    Hi,
    Excellent post, But it’s been a little outdated for a while (althou still very valid) if you choose to update it consider including explanations of how to get one of rtorrents web guis running (like rtgui).

  99. 112 Dr Small 2008/10/18 at 9:35 AM

    K.Mandla, could you please either send me a copy of rtorrent.rc or at least update your link in your post to reflect to one. I’m not on no 3,000$ crippled Vista system, but I still don’t have it in /usr/share/doc.. (I’m on Arch, and she apparently don’t have it).

  100. 114 Sean 2008/10/19 at 9:34 PM

    Nico Cesar
    DUDE…
    been trying to work out screen for ages
    thats4d’info

  101. 115 ibob 2008/10/29 at 9:29 PM

    It is the most valuable starter’s documentation of rtorrent currently. Bravo!

    I have seen how to select specific files to download. However, when I use * all to off, and the select one or two files, it still goes and creates ALL the files, allocating space for ALL of them.

    Is the expected behavior or should I look more into that?

  102. 116 NEOCRON.com 2008/11/19 at 11:49 PM

    running rtorrent on my iPaq hx4700 with Linux (angstrom).
    sits next to the router and downloads. lovely.

  103. 118 Spiticus 2008/11/26 at 10:35 PM

    Done…and bumped

  104. 119 Mike Hunt 2008/11/28 at 7:55 AM

    I use rTorrent on my ‘media server’ PC which is powered up all the time, combined with rtGUI for a web based front-end – it rocks :)

    http://rtgui.googlecode.com/

  105. 120 Riccardo 2008/12/13 at 1:10 AM

    Thanks for your tutorial, I didn’t know rtorrent before and as of today I’m running it on a Nintendo Wii console and it runs like a charm. It has minimum power consumption so it is perfect to stay 24/7 on :-)
    I simply can’t imagine which other bt client would fit in its tiny 88MB ram and still retain so many feature as rtorrent!

  106. 121 Mostafa Faridi 2008/12/31 at 5:26 PM

    I use rtgui with rtorrent , but demonoid give file , how I can use demonoid file with rtgui.

  107. 122 Bl4cKd00M 2009/01/08 at 3:33 AM

    Fantastic!!! Really!!! very thnx ^^

  108. 123 Empty 2009/01/08 at 1:58 PM

    This was a really terrible post. You’re basically saying that rtorrent is the most awesome torrent client out there, but this “banshee” that you tried to show us is quite unconvincing. If people would just stop praising rtorrent for a second, holding it to be the BitTorrent messiah, maybe someone would come up with a better curses-based torrent client for Linux one day. rtorrent is outdated, legacy, and the only reason that newbies like yourself love it so much is because it feels oh-so-Linux and wow-an-rc-file.

    “I can’t imagine why anyone would use anything else, unless there’s something funky the big-name programs can do, that rtorrent just doesn’t handle yet.”

    How about labels for torrents? Oh, rtorrent can’t do that? Hm, well… Then how about setting specific “ratio limits” per-torrent? No, not that either, eh? rtorrent sucks and it’s for the better if the rest of you would just realise that sometime soon.

    • 124 The Doctor 2009/04/24 at 5:24 AM

      Very poignant screen name.

      svn://rakshasa.no/libtorrent/trunk/rtorrent , make it happen or STFU. Troll attempt fail. Go back to 4chan.

      • 125 meliral 2009/07/22 at 9:25 AM

        Well said, sirrah.

        No, seriously, “x sucks, someone should make a version that does y” messages get on my nerves.
        If someone wants something done/added to something, they should either do it themselves or, if they can’t (which is not unreasonable) then they can damn well ASK NICELY!

        And anyway, if you manage your file names and directory tree properly, you won’t need labels, and why would you need a specific ratio limit for a given torrent? even if you needed to seed one beyond the others, for instance, you could always, for example, run another instance using a different config file (because it loads the whole re file at startup, you could feasibly write a script that opens multiple instances, swapping in different .rtorrent.rc’s in between) and give it a different max ratio and a different watch folder, where you put that “special” torrent. OK, it’d be a kludge, but it would _work_.

  109. 126 irdial 2009/01/12 at 8:57 PM

    I wish all tutorials were as well made as this one. Not only have I discovered my new bittorent client of choice, but I now also know about htop. Perfection!

  110. 127 vivi 2009/01/16 at 12:43 PM

    well done, good guide

  111. 128 aag 2009/01/17 at 6:39 PM

    I have another way to use rtorrent. I have an Asus router flashed with DD-WRT firmware. The router has 2 USB drives, so, you just have to install rtorrent in the router, plug a USB hard drive and that little box will download files for you all day. You can claim that you can do that with a Western Digital My Book (as anandus said before) and you don’t have to care about two boxes. Well, with a flashed router like mine (or other DD-WRT flashable) you can go even further, you can also install an emule, ares, gnutella, fastrack… and some others P2P clients within the same box.

  112. 129 Shinakuma 2009/01/18 at 9:58 PM

    Rtorrent is great. I love it. Together with hellanzb it makes every old machine usefull

  113. 130 skralljt 2009/01/21 at 3:23 PM

    I love rtorrent, figured out how to use it from this website, but couldnt’ help wonder about the file extension preferences you speak of. I looked through the firefox preferences to figure out if I could send torrents to a separate folder, jpegs to another folder, and zips to a dl folder. Can’t find any dialog for that. Is it in some arcane about:config entry or something?

  114. 131 aag 2009/01/21 at 5:47 PM

    skralljt:

    Maybe you are looking for the add-on below that allows you to configure the folder you want to download files according to its extension

    https://addons.mozilla.org/en-US/firefox/addon/25?id=25

  115. 132 Anthony G 2009/01/22 at 3:32 AM

    Empty’s comment is kind of funny. The author of this article and many of the commentators listed many good solid reasons for using rtorrent. Nobody mentioned the ability to use a .rc file for storing configuration information as being a particular plus. That’s just standard practice. Empty also provides no evidence for their claim that it’s “outdated, legacy” (often synonymous in any case).

    As someone using GNU/Linux for close to 10 years, I’ve found rtorrent to be the best client available that meets my needs (KTorrent was my second favourite). The only two missing features, Empty mentions is torrent labels and per torrent ratios. I’m generally seeding about 40 torrents at any one time and I’ve never needed labels. My default ratio is set to 1:1 which I use whenever I obtain a torrent from a public tracker. For torrents from private trackers, I simply tell rtorrent to ignore the ratio setting for those individual torrents – as I generally want to leave those torrents seeding for as long as I still have the relevant files on my system.

  116. 134 Kristian Z 2009/01/22 at 1:34 PM

    I’d like to use rtorrent, but the lack of labels and sorting of downloads into separate directories is a deal-breaker. I just can’t have movies and apps and music all in the same folder, it would be a mess.

    Ideally rtorrent would auto start a torrent in the watched directory (which it does), add a label automatically by matching tracker URL to a regexp (which it does not), and use that label to sort the download into a purpose-designated directory (which it does not).

    It bugs me that no torrent client can do that. It would demand nearly no attention and maintenance. Just put .torrent files in a directory, and downloads would start and be sorted into directories automatically.

  117. 135 Frank White 2009/01/23 at 9:55 AM

    Thanks for this detailed Howto. I’ve made the switch to rtorrent and can’t see myself ever going back to Azureus.

  118. 136 Anthony G 2009/01/23 at 10:15 AM

    The feature proposed by Kristian Z would be very cool alright and I agree it would be nice to be able to give rtorrent the option of storing different torrents in different directories.

    What I currently do is stop (pause) a torrent after it has fully downloaded, then move the data to the relevant folder / partition depending on the type of data, and then create a symbolic (soft) link in the torrent download directory pointing to the new location. I can then resume the torrent to leave it seeding for as long as I like while having all the music in one set of directories, a latest GNU/Linux distro in the default download directory and video files in another directory. It takes a little bit of extra time and the download directory can get crowded but that doesn’t bother me too much. I just have to remember to delete the symlink if / when I decide to stop seeding a torrent.

  119. 137 Empty 2009/01/30 at 2:17 AM

    Hello.

    Anthony: I’ll start off by telling you what I mean when I say rtorrent is outdated. Back in the days there were nearly no private trackers which kept track of a single user’s “ratio”. Back in the days, you’d just seed as much as you felt like and then stop (or not), because no one could tell you to seed this or that much. Nowadays, there’s an abundance of private trackers which *do* keep track of single users, probably even more private trackers than public ones. For this reason some people with not-that-great Internet connections need to be able to easily decide which torrents they want to keep seeding and which torrents they want to stop as soon as they have been downloaded.

    If rtorrent provided this functionality as a manual chore, I wouldn’t be dissing it that hard. But rtorrent doesn’t. Absolutely terrible. For this reason only, one should conclude that this is a terrible, terrible client.

    And labels. Every single major BitTorrent client out there provides support for labels, except for rtorrent. I’m a member at a tracker which provides music, lots of it actually, and I keep every single album that I download seeding, because ratio is a bitch there. At one point I had 300 albums seeding which in rtorrent would of course clutter up the views *completely*. There simply is no functionality for filtering out which torrents you would like to see, neither by tracker (as far as I know) nor by “label”. And even if you could filter by tracker, that still wouldn’t help, because lots of people STILL need labels.

    I still claim that rtorrent is an absolutely horrible BitTorrent client and shouldn’t be used by anyone who doesn’t desperately need to be able to screen their clients, because that’s honestly pretty much everything that’s good about rtorrent.

  120. 139 Alex Alzueta 2009/01/30 at 6:55 PM

    Hi from Spain.

    Two Questions:

    - On a downloading file, file size and partial file downloaded size is always put on 0MB, why?

    - ì’ve tried to uncomment and comment ratio scheduled line on .rc file but error appears me on console, how can i solve it? (scheduled command failed: command “stop_on_ratio” not found)

  121. 140 Takla 2009/02/02 at 8:53 AM

    I agree to some extent with Empty. He isn’t a troll and has some coherent points to make about the deficiencies of rtorrent. I run rtorrent on a Linksys NSLU2 (slug) running Debian Lenny. rtorrent is the single most unstable console-only application I’ve ever used. Here’s an example of the kind of thing that makes it, finally, unviable: the version in Lenny is a little old, as is normal in a distro. There is a bug where if you choose to have the completed torrents moved to a different folder you cannot stop rtorrent hashing them all over again, despite this config being supported and enabled. On a powerful desktop this would be an inconvenience but on an embedded device with limited CPU resources it’s a showstopper. The bug is known but no fix or patch is available for the version. The advice, as always, is to upgrade to the newest version. To compile on a powerful machine is easy. To compile on embedded is simply unrealistic. To cross compile for armel (the architecture of NSLU2) on amd64 (my desktop) is so full of pitfalls that it’s essentially impossible. So finally the latest version arrives packaged in Debian experimental. I install it and the bug is gone. But there is a new one in the way it interacts with curl which causes it to seg fault. Guess what is the advice from rtorrent bug reports: upgrade to latest version of curl…and so on and so on forever amen. And btw the reason for needing to move completed torrents is because there are no damn labels to keep stuff organised and manageable! rtorrent appears to be brilliant mostly because, like Empty mentioned, *there are no realistic alternatives for use with screen* so for people who need access via screen there isn’t an alternative. And of course it appeals to all the people out there who think console apps are automatically better than GUI apps and get religious about it. I run headless and desktop machines and there are some terrible console apps as well as many great ones, just like with GUI apps. I’ve reached the point where I’m having to move all my torrents to a desktop to be managed with deluge. It’s an excellent client but there goes my savings on the electric bill, going from a 10 watt device to one that uses many times that. Meanwhile the nslu2 now runs amule, rock solid, mature, great interface. It’s not a torrent client, which is what I’d like, but it is totally stable which surely is the first requirement of any application and doubly so for anything which is run remotely. Being kewl is not enough.

  122. 142 Me 2009/02/05 at 12:59 AM

    all obvious from the rtorrent.rc file

  123. 143 karambu 2009/02/16 at 10:49 PM

    Also you can use torrentpump.com for
    serching torrents

  124. 144 Fedorak 2009/02/17 at 3:47 AM

    Well, Transmission keeps crashing, so I needed another torrent client and I decided to use rtorrent. The documentation could be better. Maybe they could just use this article in the main site?

    Anyway, it works, it hasn’t crashed and its pretty simple and clean. Speeds are great and since I only DL one, maybe 3 things at a time its perfect. Stays out of the way and doesn’t seem to hog any resources.

    Lots of haters. They make some interesting points, but if they don’t like rtorrent then don’t use it. Thats the Beauty of free software, we can all like what we want and do our own thing. No need to be a hater. Critique when relevant, but don’t be lame and stir up your bad karma dudes :)

    Also I never knew about mtop. Very nice. Thanks for writing this informational and very helpful article.

  125. 145 MuRRe 2009/02/19 at 10:16 PM

    Hi!
    Thanks for a GREAT guide (you might call it that right?).
    Anyways, rtorrent is great. I use it on my EEE which as EEEbuntu installed.

    I get rtorrent to auto add torrentfiles when put into a special folder, but i can’t get it to remove them automaticly!

    Thanks in advance
    MuRRe

  126. 146 Adam Pritchard 2009/02/23 at 11:00 PM

    Fantastic article – you had me up and running in minutes, including throttling the bandwidth!

  127. 147 Joe 2009/02/26 at 5:20 PM

    bookmarked.
    wonderful!

  128. 148 BiiPiiGii 2009/03/13 at 11:19 AM

    Um, why is it that when I have rtorrent open and utorrent open I’m always told that rtorrent is not connectable. Even if I use the exact same port that was open for utorrent.

  129. 149 lenotops 2009/03/19 at 4:41 PM

    Hey guys. I love rTorrent. It works, and has been on for days/weeks and not even a flutter from it. Its fast and connectable. Im using the latest build though.

    rTorrent does support labels in its own goofy way and does in fact watch for directories and download to custom directories.

    It can even be set to delete stuff once things are finished.

    rTorrent is evolving and extremely customizable. The console/terminal aspect of it, quickly makes many brains go into #$!@#% mode, but the truth is, it is actually quite beastly in features.

    I’ll say however, learning it is not for the faint of heart. Mostly for people who are used to computers and don’t mind living in the console. All the excess gui being ripped off makes it one hella fast client. :)

  130. 150 BiiPiiGii 2009/03/20 at 4:42 PM

    Um…. no dude. You CAN peer exchange dude. http://linux.die.net/man/1/rtorrent

    Look on that website and it will tell you how. I personally never really download from public sites, so I never really use the peer exchange thing.

  131. 151 Gus 2009/03/24 at 3:58 AM

    Just a great tuto!
    Got it running on my Bestie7 and playing nice!
    Thanks a lot.
    Gus

    • 152 La 2009/03/31 at 1:59 PM

      Is it possible to have torrent auto stop if it drops below a certain upload speed ?

      Ex: If I uploaded atleast 1:1 ratio and speed is 300KB/s.

      But if speed drops below 300KB/s I want rtorrent to auto stop it.

      Either 1:1 ratio or lets say atleast 300MB upload.. whichever.

      Thanks.

  132. 153 Syntac 2009/04/03 at 6:15 AM

    Running rtorrent ‘daemon’ on my slug. I drop torrents into a watched directory and manage through ssh from my phone. :) Let’s see Azureus do that! Just wish I could set seed/leech ratio per torrent…Is it in there and I’m just displaying embarrassing noobishness?

  133. 154 dw 2009/04/16 at 2:36 AM

    I installed rtorrent properly on CentOS 4.7, and I can get torrents to download. however the rtorrent UI is totally unresponsive. no keys I press will work. i’m accessing it via ssh from Mac OS X 10.5 using Terminal. any suggestions to get the rtorrent UI to work?

  134. 155 dw 2009/04/16 at 3:00 AM

    ps.i’m running the a recent version of rtorrent. 8.0

  135. 156 Donn Lee 2009/04/18 at 6:52 AM

    Kudos! Perhaps the best rtorrent doc I have read. I just referred to it again for the stop-ratio/seeding settings.

    Nice work

  136. 157 Steve W 2009/04/20 at 9:21 AM

    You are the one that got me to try rtorrent, and you are the one that got me up and running. THANK YOU!!!

    I’ve got a funky question now, so I figure I should return to the Jedi Master. It’s probably a no-brainer, but I don’t feel like taking chances.

    Question: what is the best way to replace a .torrent file in rtorrent when files are appended to a multi-file torrent?

  137. 158 intent 2009/04/21 at 11:23 AM

    Heres an easy way to implement the ability to download your stuff into specific directories. First off you start by creating the catagories (directories) you wish to sort by in a watch/ directory. Then create the same set of directories in a finished/ directory. Finally create a different watch_directory entry for each of these watch directories, being sure to set ‘d.set_custom1′ to the finished directories you created for each of these catagories. The following on_finished command will make sure that your downloads are moved to the custom1 directory you set.

    schedule = watch_directory_1,10,10,”load_start=~/Download/watch/Apps/*.torrent,d.set_custom1=~/Download/finished/Apps/”
    schedule = watch_directory_2,10,10,”load_start=~/Download/watch/Movies/*.torrent,d.set_custom1=~/Download/finished/Movies/”

    on_finished = move_complete,”d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom1=”

    (the important part here is the d.set_custom1 in the watch_directory directive.)

    For those who want to whine about what rtorrent doesn’t do, why not write a patch and submit it to the author(s) of rtorrent? Don’t have the ability to do it?, then maybe you should suggest it politely to someone who can.

    • 159 intent 2009/04/21 at 11:27 AM

      Don’t know why my lines were cut in half for the watch directory lines but i’ll paste them again for completeness.

      schedule = watch_directory_2,10,10,”load_start=~/Download/watch/Apps/*.torrent,
      d.set_custom1=~/Download/finished/Apps/”

      schedule = watch_directory_2,10,10,”load_start=~/Download/watch/Movies/*.torrent,
      d.set_custom1=~/Download/finished/Movies/”

      (These lines are supposed to be in a single line without any spaces or gaps in the text)

      • 160 intent 2009/04/21 at 11:29 AM

        oops watch_directory_2 is supposed to be unique (ie. watch_directory_1, watch_directory_2, etc).. my bad cant edit posts here

  138. 161 The Doctor 2009/04/24 at 5:37 AM

    Great tut. Thanks for introducing me to this app.

    nfs + ssh + screen + rtorrent + torrent-finder.com = WIN!

  139. 162 Tundro Walker 2009/04/26 at 4:18 AM

    This is just what I needed! I decided to turn the old, hacked i-opener I’ve been farting around into a torrent slave to farm out Ubuntu .iso’s. Been doing command-line only, and experimenting with Bittorrent’s CLI. Not only did it suck up ~50% of the CPU & Ram while running, but it crapped out before the files were even 10% d/l’ed. I finally “gave in” to using rtorrent … held off, because frankly it seemed pretty complex at first glance. I’ve been using it for a while and it’s been flying great. HOWEVER, it’s not re-seeding or uploading; it’s just leaching. I stumbled across your post trying to sort that out, and the rtorrent.rc file is exactly what I needed. I happen to also have an old 166mhz Omnibook 800CT, 32mb ram, 2gb HDD .. think I’ll do the same with it. Except take it to work so it’s sucking up “The Man’s” power and internet connection while torrenting. LOL! Good post! Your trick on making a torrent slave out of these things really goes the extra mile and makes them REAL torrent slaves … park them off to the side and have them baby-sit that shared folder. Nice!

  140. 163 Xavier 2009/04/28 at 2:37 AM

    Hi there!

    Great post, great program. Only have one question (i’m a beginner in his first days of xubunut).

    To start the program, I open a terminal type in “rtorrent” and the program starts. “Yeeeees!”
    But if I close the terminal, the program stops. “Noooooo!”

    Isn’t there a cool way to have the program running automatically whenever the server is started and disregarding user sessions? Then I could manage my downloads via the webUI (installed rTgui -great btw).

    Anyone?

    Thanks a lot!

  141. 166 Xmamx 2009/05/15 at 1:33 PM

    Rtorrent not seeding or Rtorrent not seeding completed downloads.

    Just for those people who are having this problem, i found this section in my .rtorrent.rc file that was deleting the *.torrent from the watch directory once the download was complete (therefore not seeding as i could not find the torrent file).

    This is the section below:

    # Move completed downloads
    on_finished = rm_torrent,”execute=rm,$d.get_tied_to_file=”
    on_finished = move_complete,”execute=mv,-u,$d.get_base_path=,/media/fileserver/torrents/Finished/ ;d.set_directory=/media/fileserver/torrents/Finished/”

    Remove the line:
    on_finished = rm_torrent,”execute=rm,$d.get_tied_to_file=”

    I used and automatic installer script to install wtorrent and rtorrent and this setting was automatically loaded.

    Hope this helps someone as this problem has annoyed me for a couple of days.

    Cheers,
    Xmamx

  142. 167 h4mx0r 2009/06/01 at 7:17 PM

    I found these posts about running rtorrent like a daemon I bet you could set your browser to download .torrent extension files into a certain directory to be auto loaded by the rtorrent daemonized in the background.

    http://bbs.archlinux.org/viewtopic.php?id=53395
    http://wiki.archlinux.org/index.php/RTorrent

    Really an amazing app, glad you give credit where it is due. I’m happy to be an avid reader of your blog.

  143. 168 h4mx0r 2009/06/01 at 7:19 PM

    wow wtf that is the same icon I use on some other linux forums. Do you like have some sort of user tracker?

  144. 169 Tigrou 2009/06/10 at 8:57 AM

    Thanks for the guide. I have one extra question: Is there a way to avoid the initial creation of all the files in the torrent ? I would like to download big multifiles torrents, but I don’t have enough space, and rtorrent tries to create every single file (even if I set their priority to “off” before starting the torrent.

  145. 170 bittorrentuser 2009/06/23 at 2:28 PM

    hey i am getting this error : UBFAILED
    can you help me remove this error…?

    • 171 Nick 2009/09/26 at 4:34 PM

      I think you will find that this isnt an error message.

      maximise your torrent window and its simply another 2 colums SNUB and FAILED:

      so the headings are:IP UP DOWN PEER C/RE/LO QS DONE REQ SNUB FAILED

      and because the window isn’t big enough to fit them all its wapped
      NUB FAILED around to the next line… this is very annoying i know, but thats all it is

  146. 172 humpty 2009/07/19 at 12:50 PM

    Where can I get the windows binary for rtorrent ?

  147. 175 nerdbert 2009/07/24 at 5:08 AM

    I’m just another rtorrent/screen user saying thanks for providing such a wonderful explanation of rtorrent’s features. You should write the documentation for the official website.

  148. 176 n0xie 2009/08/13 at 3:06 AM

    A lot of good points have been made about why rtorrent is a good client. I use it exclusively on headless servers on fast 100mbit lines to seed to private trackers.

    Now if someone could explain to me how to add a tracker to a torrent while it’s downloading, rtorrent would be even more awesome.

  149. 177 Michel 2009/08/24 at 12:28 PM

    Great HOWTO, thanks! I’ve been using rtorrent for a while, in conjunction with screen — web interface? who needs ‘em! — it’s really rather convenient if you organize your downloads the old-fashioned way (i.e. with a good directory structure). Just run one rtorrent instance per torrent collection.

    Didn’t know about adding torrents in an inactive state. I normally use Backspace to add a torrent, rather than Enter, and that activates it automatically. Just my twopence :)

  150. 178 Simon P 2009/09/23 at 6:37 PM

    Here’s my rig:
    A linksys NSLU2 hacked with debian on it (£50 from ebay)
    150TB WD hard drive (present from an old employer)
    NFS set up and SSH as well so I can access it either in or outside of my network.
    rtorrent set up as per these instructions (using screen so I can detach and resume the sessions over ssh)

    This means that I can have my (obviously legal) torrents running 24/7 without having to have a full fat computer on. I can also lot in via ssh (from linux or even windows with winscp) when I am away from home and drop torrent trackers into the watch folder so they start downloading.

    Freakin’ sweet, guys. Thanks for posting this.

  151. 180 Paul 2009/10/01 at 4:54 AM

    Rtorrent and screen, MMMMmmm So tasty..

  152. 181 .......... 2009/10/05 at 10:20 AM

    cli bt clients – an evaluation

    rtorrent

    transmission-cli
    transmission-daemon
    transmission-remote

    bittorrent-console (old original python client)

    and some other more obscure cli clients not worth mentioning

    evaluate on two factors only, with default settings:
    1. memory+cpu usage
    2. # of peer connections made+download speeds

    my results:
    transmission-daemon won
    bittorrent console lost on memory usage
    rtorrent lost on # of peers + speed

    your results may differ.

    i will still try any new cli bt client. there is still much room for improvement.

  153. 182 Wigger 2009/10/11 at 9:28 AM

    That _is_ a sweet Dell laptop, with an 802.11-A- card and all!

  154. 183 Anonymous Benz 2009/10/21 at 2:47 PM

    To all of you cli freaks; ever try mldonkey on your little boxes? It’s a cli p2p client, with bittorrent support, gnutella, and more. Perhaps it is able to run on some of these boxes, not sure about memory usage though.

    Would like to hear if anyone makes it work, might get something like that myself. (The Sheevaplug looks cool..:)

  155. 184 nulll 2009/10/26 at 3:54 AM

    Great guide, tanks!

    Just one thing, how to hold rtorrents from downloading and uploading till a certain hour?

  156. 185 enki 2009/10/29 at 3:56 PM

    Someone was asking about a way to automate DLing torrents for rtorrent. I’d suggest they look into rssdler ( http://code.google.com/p/rssdler/ ). It’s a bit of a pain to configure, but works great!

  157. 186 Marcus Friedman | ellipsys... 2009/10/31 at 7:51 AM

    Hi! Contratulations on your excellent post about rtorrent and thanks for sharing your experiences with it.

    Keep up the good work!

    Best regards,
    Marcus

  158. 187 charleston 2009/11/11 at 1:54 AM

    Hey nice work there, r torrent, i wanna try it with ssh, a tutor i got from http://techwor.com/how-to-bypass-throttling-isp-with-ssh/

    anyone tried it?

  159. 188 zorbix 2009/11/18 at 11:12 PM

    How do I queue downloads in rtorrent? Plus I want only one torrent running at a time, after that has been downloaded and the seed ratio hits 2.0 it should stop and the next download should start.

    How do I do this?

  160. 189 nagen 2009/11/19 at 10:24 PM

    Does anyone know how to setup rTorrent for a SSL tracker on Mac OSX.
    Keep getting “Unsupported Protocol Error”
    I presume OSX handles certificates slightly differently than linux!!!!
    Used to work flawlessly on linux!!!
    Just trying to work out this OSX system.

    any help appreciated

    Nagen

  161. 190 AG 2009/12/01 at 12:52 AM

    Can anyone explain to me how to auto-delete the torrent and data after the torrent has reached a ratio limit?

    Thanks.

  162. 191 John 2009/12/06 at 10:23 AM

    Hi,

    thanks very much for your smart tutorial!

    Alas, I’ve been using rtorrent for more than one year, and I have two serious problems:
    1) Often rtorrent does not respond to any keystrokes
    2) Often rtorrent crashes without a cause.

    Believe it or not – these are my problems. I’m using all the time the current Ubuntu version.

    Well, I guess, you’re are not prepared to accept my description – so, let that pass.

    But I have a question:

    Let’s suppose I’d like to download 20 torrents: Torrent-1, Torrent-2 and so on. I want to have rtorrent to use a kind of job list with these torrents – but downloading only (say) 8 torrents at the same time: say Torrent-1 to Torrent-8.

    If one of these torrents is complete (say Torrent-3) rtorrent starts to download Torrent-9, so it is still downloading 8 torrents. If the next torrent is complete (say Torrent-7) rtorrent starts to download the next Torrent-10.

    Is rtorrent able to manage that kind of batch job? How do I have to configure rtorrent to behave in that way?

    If you are familiar with torrent clients you know that vuze or deluge are able to do these things. But what about rtorrent?

    Greetz by John ;-)

  163. 192 Yoosah 2009/12/07 at 6:39 PM

    Thanks!
    Exactly what I was looking for, after trying to run multiple screen-windows with a btdownloadcurses to seed for ratio on a 132MHz 32M laptop with a 1G drive and mounted NAS USB for the downloads, resulting in load averages over 20!
    With rtorrent there is hardly to no machinelag, hashing takes a while but wth, it’s meant to be a 24/7 machine, so a couple of minutes is not going to make a difference..
    Nice clear guide!

  164. 193 evidex 2009/12/20 at 1:51 AM

    This is probably the only reason I can use rTorrent at all, and a huge help in setting up my torrent server, on a 451Mhz PIII with 128Mb of PC-100 and a total of 29Gb of storage, (2^6Gb, 1^8Gb, 1^10Gb) :)

    Thanks! :D

  165. 194 spok 2010/01/06 at 8:49 PM

    You should rename “Howto: rtorrent basis”

    and take a look there :
    http://libtorrent.rakshasa.no/

  166. 195 Otto 2010/01/11 at 10:04 AM

    Many of my torrents do not work with rTorrent, but they do with Transmission. Perhaps rTorrent was banned from the tracker?

    Is it possible to change the user-agent?

  167. 196 PDG1 2010/01/14 at 2:47 AM

    who needs a GUI?

    this saved me the grief of running utorrent with wine and now I’m thoroughly impressed with how much oomf there is behind rtorrent.

    best how-to I’ve read for an application in a long time.

  168. 197 andrew 2010/01/14 at 9:23 AM

    does anyone know if you can copy the downloaded data from a torrent based on tracker?

    i know it can be done via watch directory, but tracker would be best.

    • 198 evidex 2010/02/18 at 7:26 AM

      I’m sure you don’t need me to tell you that this post is popular, but it’s reached the Top 10 referers on omploader.org.

      It was also a great help to me, in setting up my Ubuntu server to download torrents. I would have been lost without this.

      I love your blog, and follow it closely. Keep up the good work KMandla :)

  169. 199 Allen Stiner 2010/02/27 at 1:03 PM

    you guys should get a seedbox with rtorrent and a webgui running on it like i did from RapidPeer.com they even setup the box instantly when i paid via paypal.

  170. 200 Anxious Nut 2010/05/07 at 3:48 PM

    Thanks for the amazing how to!! but the images are missing! fix them please!

  171. 202 JP Senior 2010/06/09 at 3:01 AM

    I figure somebody might make use of a working rtorrentrc that works behind packeteers with encryption. I’ve been rocking rtorrent since it was released, and a simple config works for me.

    My router DNATs ports 28533 for DHT and a small port range for regular bittorrent data. 172.16.60.5 is the IP address of my internal server. I don’t know how rtorrent deals with the tos byte so assuming 00100000 for IP Precedence 1, on my network is ‘bulk traffic’, tos maps out to ’32′.

    (For linux ISOs only!)

    ~/.rtorrent.rc:
    encryption = allow_incoming,try_outgoing,enable_retry
    dht = auto
    dht_port = 28533
    port_range = 28600-28610
    ip = 203.0.113.53
    bind = 172.16.60.5
    directory = /home/user/download
    upload_rate = 50
    tos = 32
    session = /home/user/download/torrent

  172. 203 rtorrent 2010/07/29 at 10:49 AM

    #bind = 192.168.0.10

    #ip = a.b.c.d
    #ip = hostname

    port_range = 55555-55555

    #port_random = no

    #check_hash = yes

    directory = /media/ntfs/Dvd/

    session = ~/rtorrent/session/

    #http_proxy = url

    #encoding_list = encoding

    encryption = allow_incoming, try_outgoing, enable_retry

    #peer_exchange = yes

    schedule = watch_directory,120,120,load_start=~/rtorrent/torrents/*.torrent
    #schedule = tied_directory,120,120,start_tied=
    #schedule = untied_directory,120,120,close_untied=

    #schedule = low_diskspace,120,120,”close_low_diskspace=200M”

    upload_rate = 1
    #download_rate = 0

    #min_peers = 15
    #max_peers = 20

    #min_peers_seed = 1
    #max_peers_seed = 1

    max_uploads = 1

    #max_uploads_div = value
    #max_downloads_div = value

    #max_uploads_global = 1
    #max_downloads_global = 200

    #enable_trackers = yes
    #tracker_dump = filename
    #tracker_numwant = 64

    #use_udp_trackers = yes

    dht = auto
    dht_port = 55554
    #dht_add_node = host[:port]

    #http_capath = path
    #http_cacert = filename

    #max_file_size = -1
    #split_file_size = -1
    #split_suffix = .part

    hash_read_ahead = 8
    hash_interval = 10
    hash_max_tries = 5

    #safe_sync = no

    #max_open_files = 128
    #max_open_sockets = 128
    #max_open_http = 32

    #max_memory_usage = 1024M
    #send_buffer_size = 3358720
    #receive_buffer_size = 3358720

    #umask = 0022
    #cwd = directory

    #session_on_completion = yes
    #session_lock = yes
    #session_save = yes

    #tos = default|lowdelay|throughput|reliability|mincost
    #tos = hex

    #handshake_log = yes

    schedule = snub_leechers,30,30,”snub_leechers=10,5,1M”
    schedule = ban_slow_peers,120,120,”ban_slow_peers=5,2K,64K,2,128K,3,1M,5″

    system.method.set_key = event.download.finished,unban,”d.unban_peers=”
    system.method.set_key = event.download.finished,unsnub,”d.unsnub_peers=”

  173. 204 calmera 2010/08/10 at 9:25 PM

    When I am out off reach of ssh I use my iphone to email myself the torrent url.
    Then procmail picks it up and saves it to my watch directory.

    SUBJECT=`formail -zxSubject:`

    :0 c
    * ^Subject:.*http*
    | wget –directory-prefix=/media/Torrents $SUBJECT

    Works great!
    For better security one can probably add some more filters.

    At first I tried to email the actual torrent file, but rtorrent didnt like files saved from an iphone.

    C

    • 205 calmera 2010/08/13 at 7:36 PM

      Email several torrent links in an email with subject “Torrent”
      Then:

      :0 bc
      * ^Subject:.*Torrent
      | wget –directory-prefix=/media/Torrents -i -

      -C

  174. 206 malakas 2010/09/13 at 5:49 PM

    I don’t know if it’s a bug or a “feature” but while rtorrent works mostly well, sometimes it will present a torrent as Inactive and will remain so. There is no way to start it, ctrl-s doesn’t work, at least under Screen. The only remedy is to delete the torrent and start over again, checking the files that failed to download before.

    • 207 ΤΖΩΤΖΙΟΥ 2010/09/13 at 6:59 PM

      Ctrl-S and Ctrl-Q typically are mapped to the tty “stop” and “start” signals (pause output and unpause output); in order to make them available to “rtorrent”, you have to unset them first via: “stty start undef stop undef”.

      Another note: even when ^S and ^Q are available to “rtorrent”, and the torrent is inactive, before pressing ^S to start it I have to press ^K (stop torrent) first; I don’t know why.

      Here is my own “start_rtorrent” script. Note that I don’t use “screen” in this case, I use “dtach”; if there is no socket named “/tmp/rtorrent_session”, “dtach” starts it; if there is one, then “dtach” connects to the running session. “dtach” is a lighter (i.e. no multi-windows which suits me fine in this case) version of “screen”.

      stty start undef stop undef
      cd ~/downloads/torrents
      exec dtach -A /tmp/rtorrent_session -Ez rtorrent

  175. 208 Pkwok 2010/10/11 at 2:40 AM

    Hi,

    I need some help with DHT. I’m running Lenny Debian on nslu2. I did apt-get update rtorrent. But I still get the below error.

    NAS:~# rtorrent
    rtorrent: Error in option file: ~/.rtorrent.rc:86: Command “dht” does not exist.

    I wonder if the rtorrent is too old to support dht. Is there a way to tell the version ? How do I get the latest Debian rtorrent ?

    # This is an example resource file for rTorrent. Copy to
    # ~/.rtorrent.rc and enable/modify the options as needed. Remember to
    # uncomment the options you wish to enable.

    # Maximum and minimum number of peers to connect to per torrent.
    min_peers = 40
    max_peers = 400

    # Same as above but for seeding completed torrents (-1 = same as downloading)
    #min_peers_seed = 10
    #max_peers_seed = 50

    # Maximum number of simultanious uploads per torrent.
    #max_uploads = 10

    # Global upload and download rate in KiB. “0″ for unlimited.
    download_rate = 0
    upload_rate = 20

    # Default directory to save the downloaded torrents.
    directory = /usbExt/torrent

    # Default session directory. Make sure you don’t run multiple instance
    # of rtorrent using the same session directory. Perhaps using a
    # relative path?
    #session = ./session
    session = /usbExt/torrent

    # Watch a directory for new torrents, and stop those that have been
    # deleted.
    #schedule = watch_directory,5,5,load_start=./watch/*.torrent
    #schedule = untied_directory,5,5,stop_untied=
    schedule = watch_directory,5,5,load_start=/usbExt/torrent/*.torrent
    schedule = untied_directory,5,5,stop_untied=/usbExt/torrent/*.torrent

    # Close torrents when diskspace is low.
    #schedule = low_diskspace,5,60,close_low_diskspace=100M

    # Stop torrents when reaching upload ratio in percent,
    # when also reaching total upload in bytes, or when
    # reaching final upload ratio in percent.
    # example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
    schedule = ratio,60,60,”stop_on_ratio=200,50M,300″

    # The ip address reported to the tracker.
    #ip = 127.0.0.1
    #ip = rakshasa.no

    # The ip address the listening socket and outgoing connections is
    # bound to.
    #bind = 127.0.0.1
    #bind = rakshasa.no

    # Port range to use for listening.
    port_range = 49005-49010

    # Start opening ports at a random position within the port range.
    port_random = no

    # Check hash for finished torrents. Might be usefull until the bug is
    # fixed that causes lack of diskspace not to be properly reported.
    #check_hash = no

    # Set whetever the client should try to connect to UDP trackers.
    use_udp_trackers = yes

    # Alternative calls to bind and ip that should handle dynamic ip’s.
    #schedule = ip_tick,0,1800,ip=rakshasa
    #schedule = bind_tick,0,1800,bind=rakshasa

    # Encryption options, set to none (default) or any combination of the following:
    # allow_incoming, try_outgoing, require, require_RC4, enable_retry,
    # prefer_plaintext
    #
    # The example value allows incoming encrypted connections, starts unencrypted
    # outgoing connections but retries with encryption if they fail, preferring
    # plaintext to RC4 encryption after the encrypted handshake
    #
    encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext

    # Enable DHT support for trackerless torrents or when all trackers are down.
    # May be set to “disable” (completely disable DHT), “off” (do not start DHT),
    # “auto” (start and stop DHT as needed), or “on” (start DHT immediately).
    # The default is “off”. For DHT to work, a session directory must be defined.
    #
    #dht = auto

    # UDP port to use for DHT.
    #
    #dht_port = 49011

    # Enable peer exchange (for torrents not marked private)
    #
    peer_exchange = yes

    #
    # Do not modify the following parameters unless you know what you’re doing.
    #

    # Hash read-ahead controls how many MB to request the kernel to read
    # ahead. If the value is too low the disk may not be fully utilized,
    # while if too high the kernel might not be able to keep the read
    # pages in memory thus end up trashing.
    hash_read_ahead = 3

    # Interval between attempts to check the hash, in milliseconds.
    hash_interval = 10

    # Number of attempts to check the hash while using the mincore status,
    # before forcing. Overworked systems might need lower values to get a
    # decent hash checking rate.
    hash_max_tries = 5

    # Read UTF chinese characters
    encoding_list = UTF-8

  176. 209 RosenRed 2010/10/13 at 7:24 AM

    Excellent guide, congratulations!

    I have one question that was already asked above (by ibob)but never answered, so I figured I could try once more.

    Let’s say I have a torrent with 20 files and I choose to download only one of them. I set everything else to off and rtorrent downloads the one I selected. However, when I look into the destination directory, I see all the files with their proper size (filled with zeros).

    Now I understand that it needs to pre-allocate the space for the download, but is there a way to do it only for the files I select?

    • 210 ΤΖΩΤΖΙΟΥ 2010/10/13 at 7:52 AM

      It’s quite possible that the files do not occupy any space at all, even if they seem to be filled with zeroes. Check the actual disk space taken, using ‘du -sm’ or ‘du -sk’ (megabytes or kilobytes, depending on the torrent you download).

    • 212 trip 2010/11/25 at 5:40 PM

      I know there is a script out there that searches for files like that and deletes them, if you run that as a cron job it should take care of your problem.

  177. 213 Patrick H. 2010/12/30 at 4:31 PM

    Thanks for posting this, was very helpful.

  178. 214 Ben 2011/02/16 at 3:13 AM

    many thanks for the information. I am trying to get it installed on a centos but no luck yet. the rpm got some dependency issues. looks like i have to compile it.

  179. 215 swwing17 2011/02/22 at 6:54 AM

    Very confused. The instructions make it seem like to download a torrent, you already have to have the torrent. That doesn’t seem to make any sense. Why would I want to download something that I already have? Are you talking about seeding (uploading) to others? I would like to know how to get (download, own, or possess) a torrent (that I don’t already have) from a torrent website, like Piratebay, etc.

  180. 217 whiskthecat 2011/04/04 at 2:11 PM

    Just posting to let everyone know that utorrent has recently been released as a linux binary, no longer requiring wine to run. It still uses more resources than rtorrent and is closed source, but I will mention it here because I needed SOCKS proxy support and noticed there were some other comments also seeking this feature. If anyone knows how to get SOCKS peer support in rtorrent please let me know.

  181. 218 Ville Walveranta 2011/04/14 at 4:40 AM

    Thanks, this was very useful for getting me up to speed with rtorrent!

  182. 219 Kevin 2011/05/01 at 1:20 PM

    I’m now a fan of Revolution Void.

  183. 220 Manuel 2011/05/14 at 10:29 PM

    i needed something to be able to run on a remote shell.

    Got it going within minutes. Now it will not only run remote, but will replace Ktorrent on my Desktop.

    Thank you, Cheers
    Manuel


  1. 1 Top Posts « WordPress.com Trackback on 2007/05/04 at 4:58 PM
  2. 2 rtorrent - torrent client berbasis teks « aCh Trackback on 2007/05/19 at 5:34 AM
  3. 3 Utilizzare torrent da shell at Digital Design News Trackback on 2007/05/22 at 3:26 AM
  4. 4 Transparent consoleprograms for linux i use. « Minimalistic Transparent X-Desktop Trackback on 2007/05/28 at 12:31 AM
  5. 5 howto use rtorrent to download torrents « ditoinfo in english Trackback on 2007/06/04 at 7:07 PM
  6. 6 test 07/29/2007 « Strange Kite Trackback on 2007/07/29 at 10:45 AM
  7. 7 My daily readings 07/30/2007 « Strange Kite Trackback on 2007/07/30 at 4:42 AM
  8. 8 NSLU2 Torrent Box « Dgeezer’s Weblog Trackback on 2007/08/29 at 6:44 PM
  9. 9 farhany.com » rtorrent on Debian/Ubuntu Trackback on 2007/08/31 at 11:43 AM
  10. 10 majecek blog » Blog Archive » rtorrent - console client Trackback on 2007/09/20 at 5:33 PM
  11. 11 pebkac thoughts :: links for 2007-09-29 Trackback on 2007/09/29 at 1:22 PM
  12. 12 rtorrent Trackback on 2007/10/07 at 10:08 PM
  13. 13 Tiled window manager « Motho ke motho ka botho Trackback on 2007/12/13 at 10:26 AM
  14. 14 Torrent-Source » Blog Archive » How to set up rtorrent on CentOS Trackback on 2008/01/06 at 9:33 AM
  15. 15 500,000 hits « Motho ke motho ka botho Trackback on 2008/03/17 at 8:31 AM
  16. 16 Terminaldipendenza - La vita in una shell « fox91’s blog Trackback on 2008/03/18 at 4:06 AM
  17. 17 Marco Lancini Weblog » Terminaldipendenza Trackback on 2008/03/19 at 4:33 AM
  18. 18 APT-DEB.COM » Blog Archive » How To Compile rTorrent From SVN In Ubuntu Gutsy Gibbon Trackback on 2008/03/20 at 10:41 AM
  19. 19 How Do I Compile rTorrent From SVN In Ubuntu Feisty Fawn | Linux Tomorrow Trackback on 2008/03/24 at 10:18 PM
  20. 20 A blog needs a title? Damn… » Blog Archive » How to set up rtorrent on CentOS Trackback on 2008/03/29 at 12:45 AM
  21. 21 rtorrent - console torrent client « Majecek’s Weblog Trackback on 2008/04/23 at 7:23 AM
  22. 22 Linux für alle » rTorrent kompilieren von SVN in Ubuntu 8.04 Hardy Heron Trackback on 2008/05/04 at 6:42 PM
  23. 23 Tutoriais de utilização do Rtorrent - Linux « Isso e Ócio Trackback on 2008/05/16 at 7:01 PM
  24. 24 .::virtualizado::.» Blog Archive » Como compilar rTorrent desde SVN en Ubuntu 8.04 Hardy Heron Trackback on 2008/05/22 at 11:59 PM
  25. 25 010#101-C’e’ sempre un altro bug » Blog Archive » FreeNAS+rtorrent: una perfetta download machine Trackback on 2008/06/17 at 6:20 PM
  26. 26 Case in point: An rtorrent slave setup « Motho ke motho ka botho Trackback on 2008/08/04 at 10:26 PM
  27. 27 Web Site Eva » Blog Archive » rtorrent - torrent client berbasis teks Trackback on 2008/08/14 at 6:19 PM
  28. 28 How-To rtorrent (norsk) at Ub00ntu Trackback on 2008/08/30 at 8:14 PM
  29. 29 You know you’ve hit the big time when « Motho ke motho ka botho Trackback on 2008/09/08 at 11:00 PM
  30. 30 rtorrent - первые шаги | librarian@blog:~$ Trackback on 2008/09/20 at 6:45 PM
  31. 31 Ciberterminal: Manejar Rtorrent como un Profesional Trackback on 2008/11/11 at 6:41 PM
  32. 32 Cool Command Line Apps for GNU/Linux and other Unix Systems » Linux, open source and me at Internetling dot com Trackback on 2008/11/29 at 6:40 PM
  33. 33 Everybody Wins « I Occupy Space Trackback on 2008/12/14 at 3:26 PM
  34. 34 Dots and Loops » rTorrent - console *nix client Trackback on 2008/12/23 at 1:40 AM
  35. 35 How to be light « Black Eternal Trackback on 2008/12/27 at 6:29 AM
  36. 36 The Linux Applications Alternative Series: Bittorrent Trackback on 2009/01/11 at 8:43 AM
  37. 37 Latest news « #!/bin/ksh Trackback on 2009/01/17 at 4:55 AM
  38. 38 Dedibox, VPS and Seedbox Hosting Services & Reviews | THE source for BitTorrent & P2P Tips, Tricks and Info. | FileShareFreak Trackback on 2009/01/20 at 12:34 AM
  39. 39 rtorrent | Secondary cortex: online Trackback on 2009/01/29 at 6:49 PM
  40. 40 برامج تحميل التورنت في نظام جنو/لينكس « ubuntu in arabic Trackback on 2009/03/10 at 12:15 AM
  41. 41 Screen and rTorrent - All_about_network Trackback on 2009/04/06 at 8:15 AM
  42. 42 links for 2009-05-05 « H. Kurth Bemis Trackback on 2009/05/06 at 11:30 AM
  43. 43 linuxland » Using rtorrent with screen Trackback on 2009/05/15 at 2:15 AM
  44. 44 Running rtorrent as a daemon « Motho ke motho ka botho Trackback on 2009/05/28 at 6:27 AM
  45. 45 On the menu « Motho ke motho ka botho Trackback on 2009/06/07 at 9:44 PM
  46. 46 Torrent on the command line « No_Gui Trackback on 2009/07/30 at 9:37 PM
  47. 47 rtorrent too slow? try this! « No_Gui Trackback on 2009/08/25 at 4:40 PM
  48. 48 Martes sin X “rTorrent” « Seamos realistas… pidamos lo imposible Trackback on 2009/09/16 at 12:47 AM
  49. 49 rofrol's status on Thursday, 17-Sep-09 17:42:11 UTC - Identi.ca Trackback on 2009/09/18 at 2:42 AM
  50. 50 rofrol's status on Thursday, 17-Sep-09 17:43:34 UTC - Identi.ca Trackback on 2009/09/18 at 2:43 AM
  51. 51 autonomy's status on Tuesday, 27-Oct-09 22:00:37 UTC - Identi.ca Trackback on 2009/10/28 at 7:00 AM
  52. 52 ellipsys Trackback on 2009/10/31 at 8:03 AM
  53. 53 rofrol's status on Friday, 06-Nov-09 13:11:27 UTC - Identi.ca Trackback on 2009/11/06 at 10:11 PM
  54. 54 Case in point: rtorrent slave at 100Mhz 16Mb 810Mb « Motho ke motho ka botho Trackback on 2009/12/10 at 1:12 PM
  55. 55 Comparing torrent clients « Motho ke motho ka botho Trackback on 2009/12/12 at 9:30 PM
  56. 56 No, terminal apps are not dying « Motho ke motho ka botho Trackback on 2009/12/27 at 9:34 PM
  57. 57 URLTick::Comments for Howto: Use rtorrent like a pro « Motho ke motho ka botho Trackback on 2010/01/15 at 2:15 AM
  58. 58 rtorrent demands on very old hardware « Motho ke motho ka botho Trackback on 2010/01/18 at 9:39 AM
  59. 59 Easy on the eyes: rtorrent-extended « Motho ke motho ka botho Trackback on 2010/05/07 at 9:16 PM
  60. 60 How To Compile rTorrent From SVN In Ubuntu Gutsy Gibbon | All Free For You Trackback on 2010/05/14 at 8:26 AM
  61. 61 Top 10 torrent clients for linux « a non-geek's blog Trackback on 2010/09/14 at 10:51 PM
  62. 62 rTorrent wont download Trackback on 2010/09/15 at 7:59 AM
  63. 63 eightcell :: nerdy randomness with a bit of meh Trackback on 2010/09/27 at 3:08 AM
  64. 64 No joke: A full Gnome desktop on 105Mb « Motho ke motho ka botho | Don Bishop's Blog dweb98 Trackback on 2010/12/02 at 1:38 PM
  65. 65 rtorrent: Needs no introduction … again | Inconsolation Trackback on 2014/04/13 at 8:45 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,962,802 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: