rtorrent + rutorent server install (Centos5)
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Page 1 of 4 1 2 3 4 LastLast
Results 1 to 10 of 31
Like Tree3Likes

Thread: rtorrent + rutorent server install (Centos5)

  1. #1

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default rtorrent + rutorent server install (Centos5)

    INSTALLING RTORRENT + RUTORRENT ON CENTOS 5

    So i just finished installing/compiling rtorrent + rutorrent, for a friend of mine, on his server running Centos5. I was shocked there werent any good tutorials around on how to do this, so I figured why not make one myself for all those who want to run Centos out there.

    INFO : If u are not good with Linux then i suggest u install your server with Ubuntu/Debian based Distro's, as they are more user friendly. Centos can be a little complicated at times, even for the experienced user.

    NOTE : This tutorial is going off the basis that u already have a created user with sudo and u are ready to get down to the rtorrent install. Lets go ahead and login as root through SSH using a terminal like Putty.



    PART 1 : Update System & get dependencies :


    A : Lets update our system and get some dependencies to compile rtorrent.

    • # yum update
    • # yum install gcc gcc-c++ m4 make automake libtool pkgconfig perl openssl-devel ncurses-devel screen subversion lighttpd lighttpd-fastcgi php




    PART 2 : Required software for rtorrent :

    NOTE : First exit out of root and switch/login with your "super user" and make sure u are in your "home/user" dir > "$ cd /home/user"

    A : Next we need to download our software and rtorrent :

    NOTE : U could also get rtorent from svn, but u need the g++ compiler 4.3 or greater for it to "make" correctly. Im not getting into that and im just gonna use rtorrent stable and g++ from yum for now.




    PART 3 : Compile what we downloaded :


    A : Libsigc++2.2.4

    • $ tar zxfv libsigc++-2.2.4.tar.gz
    • $ cd libsigc++-2.2.4
    • $ ./configure
    • $ make
    • $ sudo make install
    • $ cd ..


    B : Curl 7.19.4

    • $ tar zxfv curl-7.19.4.tar.gz
    • $ cd curl-7.19.4
    • $ ./configure
    • $ make
    • $ sudo make install
    • $ cd ..





    C : xmlrpc-c

    • $ cd xmlrpc-c
    • $ ./configure --disable-cplusplus
    • $ make
    • $ sudo make install
    • $ cd ..


    NOTE : For libtorrent/rtorernt u need to remove the m4 scripts or u will get errors on both installs.

    D : libtorrent

    • $ tar zxfv libtorrent-0.12.6.tar.gz
    • $ cd libtorrent-0.12.6
    • $ rm -f scripts/{libtool,lt*}.m4
    • $ ./autogen.sh
    • $ ./configure
    • $ make
    • $ sudo make install
    • $ cd ..


    E : rtorrent

    • $ tar zxfv rtorrent-0.8.6.tar.gz
    • $ cd rtorrent-0.8.6
    • $ rm -f scripts/{libtool,lt*}.m4
    • $ ./autogen.sh
    • $ ./configure --with-xmlrpc-c
    • $ make
    • $ sudo make install
    • $ cd ..
    • $ rm *.tar.gz
    • $ cd ..




    PART 4 : Make dir's & rtorrent config file :


    A : Now we need to make the dir's rtorrent will use and also give read/write access to them.

    • $ mkdir rtorrent && cd rtorrent
    • $ mkdir downloads
    • $ mkdir torrents
    • $ mkdir .session
    • $ cd .. && chmod 777 rtorrent -R

    B : Next lets make the rtorrent config file. U can copy and paste this file into "nano" (text editor) and save (ctrl + o) & exit (ctrl + x) > pastebin - collaborative debugging tool

    • $ nano .rtorrent.rc


    NOTE : make sure u change the dir's in the sample config file to your path of the folders u created above.



    PART 5 : Start rtorrent in screen


    A : Lets go ahead and start rtorrent in screen. Screen will keep rtorrent session alive after u close out your terminal.

    • $ screen -S rt rtorrent


    NOTE : To detach the rtorrent screen session (ctrl a-d). To re-attach screen session ( $ screen -x rt). To see a list of all current running screen sessions ( $ screen -list)



    PART 6 : lighttpd


    A : We already installed lighttpd from "PART 1", but now we have to make some important changes. First lets "su" then open the config file:

    • $ su

    Password:

    • # nano /etc/lighttpd/lighttpd.conf


    B : Now make the following changes. U need to bind lighttpd on port 81 so look for the following line and un-comment it :

    "server.port =81"

    C : Now make sure u also un-comment the following in the "server.modules" :

    "mod_scgi",
    "mod_fastcgi",
    "mod_auth",


    D : Lighttpd config file on Centos already comes with all the lines we need to add, but u will need to un-comment them all. To make it easier for u, u can just leave them there as is & add this to the very end of file :

    PHP Code:
    scgi.server = (
    "/srv/www/lighttpd/rutorrent/RPC2" => # RT_DIR
     
    "127.0.0.1" =>
      (
       
    "host" => "127.0.0.1",
       
    "port" => 5000,
       
    "check-local" => "disable"
      
    )
     )
    )

    fastcgi.server = ( ".php" => ((
           
    "bin-path" => "/usr/bin/php-cgi",
           
    "socket" => "/tmp/php.socket"
    ))) 


    E :
    Start lighttpd :

    • # /etc/init.d/lighttpd start



    PART 7 : rutorrent :

    A : Now we need to download rutorrent with our web-server user to our Document Root dir, so rutorrent is accessible through our web-browser. In my config the webserver user is "www-data", so this is what ill use in the tutorial.

    NOTE : The default location for this is "/srv/www/lighttpd", but u may need to double check in the lighttpd.conf just to make sure. Look for this line > "server.document.root = " and that will be the location to where u need to install rutorrent.

    B : Switch to web-server user & CD to the document.root dir and download rutorrent :


    C : To install plugins u need to do this :



    D : Switch back to root & Give read/write to the dir rutorrent :

    • # su

    password :

    • # chmod 777 /srv/www/lighttpd/rtorrent -R

    E : Now we need to open the rutorrent config and specify the /RPC2 mount :

    • # nano /srv/www/lighttpd/rtorrent/conf/config.php

    Then look for "XMLRPCMountPoint" and add this to that line :

    • /srv/www/lighttpd/rtorrent/RPC2

    NOTE : Make sure when u add that to the line, u put it in between the '-' or it will not take effect and show errors.

    Restart Lighttpd :

    • # /etc/init.d/lighttpd restart


    Now u can reach rutorrent in your web-browser on your home computer. U need to make sure u specify port #81 in the address > hxxp://serverIP:81/rtorrent

    **Thats it for compiling rtorrent on Centos. Remember if u have any issues, questions or found some mistakes please post here. this tutorial was soley written by me, but i learned this over time through various help & sources**







    Last edited by MikeD; March 10th, 2010 at 07:49 PM.
    yak_vi, LordHades and umecks like this.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Feb 2010
    Posts
    448

    Default

    This is very helpful. CentOS is never easy to master as you had said. I also believe there are no good tutorial out there that explain the correct steps to install rTorrent + ruTorrent together. This is a good mix, and I must thank you for your guide (I've followed it and it works great)!

    A fix for the link, libsigC++,

    http://ftp.acc.umu.se/pub/GNOME/sour...+-2.2.4.tar.gz
    Last edited by Seeyabye; March 9th, 2010 at 04:30 AM.

  4. #3

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default

    Hey, thanks again SeeyaBye. I never even realized the Libsigc link was broken. Thanks and im glad u followed this guide.

  5. #4

    Join Date
    Feb 2010
    Posts
    448

    Default

    I got even after libsigc++ was installed. I found the reason why.
    checking for STUFF... configure: error: Package requirements (sigc++-2.0) were not met:

    No package 'sigc++-2.0' found
    The solution can be found here, CompilationHelp – The libTorrent and rTorrent Project under

    LibTorrent not found by ./configure
    Hope this helps ;)

  6. #5

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default

    Yeah this will happen on some Centos systems and other Distro's as well, but not all. I should still add this just in case for the users it does happen too. At least it never happened to me yet, but i did have to fix users servers that it did happen to recently. Thanks and i will add that later. Good job Seeyabye!

  7. #6

    Join Date
    Dec 2009
    Location
    Bronx, New York
    Posts
    137

    Default

    Very nice and well explained. Probably the best rtorrent install guide on a less than intuitive distro I've seen :)

    What's the reason for using centos over the standard few *nix's?

  8. #7

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default

    Quote Originally Posted by Anon123 View Post
    Very nice and well explained. Probably the best rtorrent install guide on a less than intuitive distro I've seen :)

    What's the reason for using centos over the standard few *nix's?
    Thanks for the post. I honestly dont see a major reason in using Centos over others. Imo, the reason is basically that some swear by, love and feel more comfortable using "Red-Hat" and since Centos is based on that, they go the Centos route. There is no clear cut advantage in using it and truthfully its a lot like other distro's, but im a die-hard Debian guy so ill stick to my Debian based.

    The thing i hate about Centos is there are few packages and i always find myself compiling rather then using "yum". U could always add more repositories though and sometimes u will find what your looking for. I do like Centos though, but i still think there is no major reason and overall it has to do with the users preferences.

  9. #8

    Join Date
    Feb 2010
    Posts
    448

    Default

    Quote Originally Posted by MikeD View Post
    Thanks for the post. I honestly dont see a major reason in using Centos over others. Imo, the reason is basically that some swear by, love and feel more comfortable using "Red-Hat" and since Centos is based on that, they go the Centos route. There is no clear cut advantage in using it and truthfully its a lot like other distro's, but im a die-hard Debian guy so ill stick to my Debian based.

    The thing i hate about Centos is there are few packages and i always find myself compiling rather then using "yum". U could always add more repositories though and sometimes u will find what your looking for. I do like Centos though, but i still think there is no major reason and overall it has to do with the users preferences.
    Well from my research in hosting websites, I found that many people recommend CentOS, and some even asked why. The answer to this may differ from people to people.

    1. The benefits of CentOS is nevertheless Hardware. RHEL are specialise in Enterprise servers, so one of their distro CentOS is well known that it inherits RHEL's for Enterprise Editions. The only difference is that CentOS is free whislt RHEL is paid. Also, they have Fedora, but Fedora is known as Beta Distro because it has consistent new features, but not stable.

    2. CentOS is well known because Cpanel recommends it. Most softwares are based on CentOS.

    3. CentOS is well understood as LTS. Which simply means, you will seldom get latest updates, but you will be very sure that you get STABLE updates. This greatly helps because if updates were to be released every day, or week, it would be so tedious to keep doing update. That's why you can see that not many would use Ubuntu 9.10 as their recommended server edition. Rather, most would choose Ubuntu 8.04 LTS. Because it's Long Term Support :)

    All in all, Ubuntu and CentOS don't have much big difference. In the end, it's still your prefrence. I would use CentOS on a web hosting server. But I would use Ubuntu for the fun of it :D.

  10. #9

    Join Date
    Oct 2010
    Location
    Sky Net
    Posts
    192

    Default

    ok as i can see there is no location after all in rtorrent for : # nano /srv/www/lighttpd/rtorrent/conf/config.php but i got it on rutorrent so why you used here rtorrent ? and even there is no such option in config.php about "XMLRPCMountPoint" & file of : /srv/www/lighttpd/rtorrent/RPC2 because RPC2 is not in rtorrent... its on rutorrent so i think you have to do some correction on it & do you copied from some where or u just used it ? Can you describe details by correct...

  11. #10

    Join Date
    Jul 2009
    Location
    Philadelphia, PA - USA
    Posts
    899

    Default

    Quote Originally Posted by asish006 View Post
    ok as i can see there is no location after all in rtorrent for : # nano /srv/www/lighttpd/rtorrent/conf/config.php but i got it on rutorrent so why you used here rtorrent ? and even there is no such option in config.php about "XMLRPCMountPoint" & file of : /srv/www/lighttpd/rtorrent/RPC2 because RPC2 is not in rtorrent... its on rutorrent so i think you have to do some correction on it & do you copied from some where or u just used it ? Can you describe details by correct...
    As this is my first post in awhile due to me being sick in the hospital and still being sick, i will make it very clear to u.

    First, u need to re-read the tutorial as there will be no location in rtorrent and that location is for the webserver Lighttpd root dir, which on centos is and still is "/srv/www/lighttpd".

    The rtorrent dir in that path is what older versions of rutorrent used to use "rtorrent" as the top dir. Again this tutorial is old and uses rutorrent versions 2 and i havent had time to update it due to me being away for awhile and not many users use Centos.

    Second, there is an option in the rutorrent config.php file for xmlrpc-mount. Maybe if u knew where to look u would find it. It is exactly where i said it was in this tutorial. If there wasnt then rtorrent would not be able to communicate with rutorrent. Also, u will not see any dir for RPC2 as its just a mount point.

    Another reason for using the mount that i use is cause if u dont, then u leave an open gap to your server and anyone could hack u, even if they have no experience.

    Third, please dont insult me and say that i copy my tutorials. I am very well versed in Linux and am a system admin. I believe u need to do some research before u comment on a post. The only thing that needs to be changed is that i need to update the tutorial from rutorrent versions 2 to 3.

    Thanks for ur time and post and i hope i clarified this for u.

Page 1 of 4 1 2 3 4 LastLast

Similar Threads

  1. Replies: 18
    Last Post: March 29th, 2012, 04:14 PM
  2. How to install ruTorrent 3.1 on Server
    By MikeD in forum Seedbox Tutorials
    Replies: 6
    Last Post: March 31st, 2011, 09:23 AM
  3. rtorrent on centOS5 install errors HELP!!!
    By asish006 in forum Help
    Replies: 3
    Last Post: December 12th, 2010, 04:22 AM
  4. Replies: 3
    Last Post: October 21st, 2010, 05:03 AM
  5. HELP install rtorrent in dedi
    By exliablity in forum Help
    Replies: 1
    Last Post: October 11th, 2010, 08:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •