How to install rtorrent

November 10th, 2009 by tech Leave a reply »

This isn’t really cPanel related, and probably shouldn’t be run from your cPanel production server, but I’m posting nonetheless, as I like to be able to reference this stuff for myself at times :)

If you don’t want to compile rtorrent from source, you can install via RPM by adding Fedora’s EPEL repository:

http://fedoraproject.org/wiki/EPEL/FAQ#howtouse

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
yum install libtorrent rtorrent libsigc++20-devel
  • Share/Bookmark
Post Sponsored by

7 comments

  1. linkup says:

    I was happy to see this as I wasn’t even sure this could be done on a cPanel server. I was told that you couldn’t use an RPM to install rtorrent because I was told it had to be compiled with xmlrpc??

    Even after quoting to the person information from the rtorrent site saying it was “built in” to the latest version, I was told that was wrong and I needed to compile it.

    I am actually trying to get rutorrent working, which uses rtorrent. I don’t even know if it works as I had hoped, i.e. running on a domain vs. running on the server? With help, I got rtorrent and libtorrent and the libraries installed on the server from RPMs. However with the other information I received, they might not be good enough?

    What isn’t clear, is if you install rtorrent on the server but want to run rutorrent on a domain, how you can configure it in that environment. The main rutorrent person insists the help file he provides is adequate, i.e. one size fits all, but despite all my efforts, I seem to be getting nowhere on this, not even knowing if what I am trying to do would work, even if I knew what I was doing.

    At least finding this reference to rtorrent and cPanel gives me some hope, I still don’t understand the architecture such that it can be ran as I wish it to be ran.

    As an aside, it appears there might be a problem with this WP template and adding text longer than the width of the column? On my screen, the rpm line ense with 5-3. I am guessing the 3. is not the end of the line??

    Thanks!

    Lew

  2. tech says:

    Lew,

    I’m not familiar with rutorrent, as I use rtorrent via SSH with screen, but in looking at the installer for rutorrent, it appears you just need to upload the content to your public_html directory, and configure config.php, setting the correct port that you have rtorrent set to run on, the path to PHP and curl.

    As far as the links are concerned, thanks for bringing it to my attention. I’ll need to tweak the theme a bit, it seems, to allow for line wrapping :)

  3. linkup says:

    I have been getting help from one of the rutorrent gurus, and so far we can’t even get libtorrent and rtorrent installed. The last error we are working on is a MAKE error regarding EPOLL, or something like that. Unfortunately I am not a Linux person so this is really tough for me. I have already had to add about 10-12 RPM/YUM files and we are still fussing with it.

    I am still trying to understand the relationship between the files installed on the server side of things vs. the domain side of things and how they interract. Also, how to handle SGIC or whatever it is called. Supposed RPC keeps you from having to do SGIC, but despite having been told that, the SIGC lib had to be installed.

    It is really confusing to me. I have been doing Linux hosting for 7 years but never really learned much about Linux other than what I have had to. For most of the time I hosted on Ensim servers and have converted to cPanel as of my last server. Running latest cPanel with RHEL4.

    The guy helping me says he has installed this software on a cPanel server before, but seems to be stuck trying to do it again. He prefers to use Solaris, or about any *ix that doesn’t have a GUI.

    I quoted him your initial message about installing rtorrent and he insists it simply won’t work that way. He says there is no way around compiling the torrent programs with XMLRPC. I showed him what you wrote, and what the rtorrent author wrote here:

    http://libtorrent.rakshasa.no/wiki/RTorrentXMLRPCGuide

    He still thinks that despite what you both said, that it just won’t work that way??

    I would love to get this thing going as I have wasted a good part of this past week, first on Torrentflux, and then rtorrent.

    Thanks!

  4. linkup says:

    Would love to see a guide on how to use RTORRENT through SSH as you said you use it. BTW, when I tried to access the comment link from my dashboard I got this error:

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 49854 bytes) in /home/cpanelad/public_html/wp-includes/class-simplepie.php on line 14370

  5. tech says:

    First, I created a custom .rtorrent.rc file in my user’s home folder which contains my custom configuration. When rtorrent is installed, it comes with a sample rtorrent.rc file which you can then modify as needed to suit your needs.

    I then use a screen session, so that I can run rtorrent, and connect to it remotely:

    #screen
    #rtorrent

  6. linkup says:

    Thanks for the info…. I had to put this project on hold as my sever was hacked seriously twice this month. Hacker for a 777 folder, dropped a piece of code in it, and executed it. Caused 2 TB of outbound traffic in two days. Seems there is no security that would stop this? Working on hardening the server and/or migrating to a new server. Thanks!

  7. tech says:

    linkup,

    Having world-writable (777) folders is a big no-no. Have you looked into using SuPHP as your PHP handler? That is definitely one piece of security that you want in your arsenal, as it won’t even process a request for a folder/file with world-writable permissions.

Leave a Reply


cPanel Web Site Hosting by IntraHost