Your Ad Here Your Ad Here
Page 1 of 6 1234 ... LastLast
Results 1 to 10 of 51

Thread: How to install and use rTorrent properly on CentOS

  1. #1
    fstokebanget's Avatar j-e-ib BT Rep: +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60
    Join Date
    Jun 2007
    Location
    planet torrent
    Posts
    1,278
    Hi,
    Many ppl here come to ask me about how to install rtorrent on their seedbox. Here I create a quite complete tutorial about how to install it and some tips about how to use it, hope could bless you all, I've managed to use this on CentOS, maybe could work also on Fedora.

    In this tutorial we'll install this package into the box :
    pkg-config
    openSSL
    nCurses
    libsigc++
    libCurl
    libTorrent and rTorrent
    screen or dtach

    That's all. Note that the whole process is relatively *very* long, depends on your seedbox processor.

    Before you can connect to your seedbox you need either putty if you're on Windows, and terminal if you're on unix based machine include Mac OS X. Since I'm on Mac OS X I just launch the terminal and connect to the server using this command :

    ssh xxx.xxx.xxx.xxx -l login_name

    where : xxx.xxx.xxx.xxx = your seedbox IP address
    login_name : usually as root

    Now you're connected to your server. Ready? Follow these step by step instructions.

    pkg-config

    Let’s start by pkg-config, as it is needed for other softwares to check whether a library is installed or not. The installation is trivial and shouldn’t cause any difficulties.

    # cd /tmp/
    # wget http://pkgconfig.freedesktop.org/rel...ig-0.22.tar.gz
    # tar -zxvf pkg-config-0.22.tar.gz
    # cd pkg-config-0.22
    # ./configure
    # make
    # make install

    openSSL

    # wget http://www.openssl.org/source/openssl-0.9.8g.tar.gz
    # tar -zxvf openssl-0.9.8g.tar.gz
    # cd openssl-0.9.8g
    # ./Configure gcc
    # make
    # make install

    ncurses

    A programming API to build text interfaces…

    # wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
    # tar -zxvf ncurses-5.6.tar.gz
    # cd ncurses-5.6
    # ./configure
    # make
    # make install

    libsigc++

    A C++ library…

    # wget http://ftp.gnome.org/pub/GNOME/sourc...-2.0.17.tar.gz
    # tar -zxvf libsigc++-2.0.17.tar.gz
    # cd libsigc++-2.0.17
    # ./configure
    # make
    # make install

    libCurl

    Library that provides URL transferts.

    # wget http://curl.haxx.se/download/curl-7.16.4.tar.gz
    # tar -zxvf curl-7.16.4.tar.gz
    # cd curl-7.16.4
    # ./configure
    # make
    # make install

    if by some reason you can't connect to curl.haxx.se, just google for the files or go here and find the files : http://files.directadmin.com/services/customapache/

    libTorrent

    libTorrent is rTorrent’s engine.

    do this first

    export PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig/

    Then grab libTorrent and compile it:

    # wget http://libtorrent.rakshasa.no/downlo...-0.11.9.tar.gz
    # tar -zxvf libtorrent-0.11.9.tar.gz
    # cd libtorrent-0.11.9
    # ./configure
    # make
    # make install

    rTorrent

    Almost there.

    # wget http://libtorrent.rakshasa.no/downlo...t-0.7.9.tar.gz
    # tar -zxvf rtorrent-0.7.9.tar.gz
    # cd rtorrent-0.7.9
    # ./configure
    # make
    # make install


    Now you can try to launch rtorrent. Type rtorrent.

    dtach / screen

    One thing a bit stupid now is that you can use rTorrent, but it terminates as soon as you close you terminal. Sure you can run it in the background in using rtorrent &, but then you can’t see the GUI anymore. The solution is a terminal multiplexer, which allows you to access multiple terminal sessions. That’s pretty good: you can start rTorrent from one computer with either dtach or screen, leave the session, and then get your window from another computer. Exactly what we need.

    screen is better than dtach, but it's up to you.

    if you want to install dtach, do this :

    # wget http://jaist.dl.sourceforge.net/sour...ach-0.7.tar.gz
    # ./configure
    # make
    # cp /tmp/dtach-0.7/dtach /bin/

    Then you will use dtach and rtorrent this way:

    dtach -c /tmp/socket-rtorrent rtorrent

    to leave the session just hit Ctrl+\
    to go back to your session type
    dtach -A /tmp/socket-rtorrent rtorrent

    if you want to install screen do this :

    #yum install screen

    after it's done, to start rtorrent type :
    screen rtorrent

    to leave the session hit Ctrl+a then press d
    to go back to your session just type
    screen -r

    rTorrent may need the configuration file .rtorrent.rc, if you feel you need to use, you could find it on google. Or here you can find the .rtorrent.rc sample made by filonome :
    https://filesharingtalk.com/vb3/p-any...97/postcount11
    * remember to change the max_memory_usage to the best value that suites you, I have 1GB RAM, i enter 768000000 here

    The first time running rTorrent, you'll be a little confused as there are no toolbars or buttons. rTorrent is used through keyboard shortcuts. These are the basic keys for using rTorrent:

    Load a torrent - backspace (use TAB to auto-complete torrent name)
    Select items - up/down arrow
    Switch to torrent/download view - left/right arrow
    Quit - Ctrl + q

    Increase the upload speed limit by 1/5/50 KB - a/s/d
    Decrease the upload speed limit by 1/5/50 KB - z/x/c
    Increase the download speed limit by 1/5/50 KB - A/S/D (shift + a)
    Decrease the download speed limit by 1/5/50 KB - Z/X/C


    In download view :
    Adjust uploads no - 1/2
    Adjust min peers no - 3/4
    Adjust max peers no - 5/6
    Adjust file priority (in File list) - spacebar for single file / * (shift+8) for all files


    For more control keys, you can find the link below.

    Maybe at this point you're asking about how to upload the torrent files into your seedbox. It's easy, if you're using Mac OS X, it's all in your terminal, just use this command to established an ssh ftp session to your seedbox :
    sftp login_name@xxx.xxx.xxx.xxx
    login_name : usually root
    xxx.xxx.xxx.xxx : your seedbox address same as the ssh command above

    after enter the sftp, just use :
    put your_torrent_file_name . (this period is include in the command)
    e.g : put Desktop/Stargate.The.Ark.Of.Truth.2008.XViD.torrent .
    this will put file Stargate.The.Ark.Of.Truth.2008.XViD.torrent into your seedbox home folder


    Sometimes you have a tracker that has no passkey, this often have to login from the location you want to leech/seed. If you use linux you probably have question about this, don't worry, it's easy, all you need to do is create a dynamic tunnel over SSH to your server. Once created, the dynamic tunnel would act as a SOCKS5 proxy allowing you to browse the web using your servers IP, many thanks to Fibre, if you're a Windows user you could follow his quick tutorial here : https://filesharingtalk.com/vb3/p-hos...84/postcount17
    If you're on Mac or Unix system, connect to your server using this additional option in command line :
    ssh xxx.xxx.xxx.xxx -l login_name -D yyyyy
    yyyyy : the port number you desire
    the rest is the same as above

    and from your browser, point the SOCKS Proxy to 127.0.0.1 with the same port number as you set in the ssh command the don't forget to bypass or set no proxy to localhost and 127.0.0.1

    some references that you may need :
    rtorrent user guides
    http://libtorrent.rakshasa.no/wiki/RTorrentUserGuide

    reviews about rtorrent
    http://en.linuxreviews.org/RTorrent

    SSH Terminal service commands
    http://www.h3c.com/portal/Technical_...446_1285_0.htm

    How to keep remote console session running
    http://www.nslu2-linux.org/wiki/HowT...SessionRunning

    This is a good reading about how to use rtorrent like a pro
    http://kmandla.wordpress.com/2007/05...nt-like-a-pro/

    don’t miss these nifty rtorrent features, such as Watch a directory for torrents
    http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks

    That's all, hope you all would find this useful
    Last edited by fstokebanget; 01-05-2008 at 03:20 AM.

  2. Guides and Tutorials   -   #2
    fstokebanget's Avatar j-e-ib BT Rep: +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60
    Join Date
    Jun 2007
    Location
    planet torrent
    Posts
    1,278
    I just found someone here post my tutorial on here : http://markup-master.blogspot.com/20...on-centos.html

    good to know you all can use this tutorial

    kinda curious who posted it ? maybe this person could PM me

  3. Guides and Tutorials   -   #3
    haha, I love that review of rTorrent.
    rTorrent is probably the best BitTorrent program on the planet.
    That doesn't sound biased at all.

    Nice guide though. It's useful to have a compilation of all of those links in one place. I think I stumbled across a majority of those while searching the net trying to get my rtorrent working like I wanted it to.

  4. Guides and Tutorials   -   #4
    Bunny Hopper BT Rep: +18BT Rep +18BT Rep +18BT Rep +18
    Join Date
    May 2007
    Posts
    177
    I think there's an easier way to install rtorrent on Centos, I will test it once I get my server.

    First, go here to install the extra repositories, it's the Dag RPM Repository that has a compiled rtorrent rpm, after that, just type: yum install rtorrent.

    EDIT: rtorrent 0.7.9 installed fine through yum on Centos 5.
    Last edited by naq; 01-09-2008 at 04:53 AM.

  5. Guides and Tutorials   -   #5
    Dz's Avatar Dz from DZ
    Join Date
    Dec 2007
    Location
    Algeria
    Posts
    83

    Laugh

    that's is pro job thank you very much for this tutoriel

  6. Guides and Tutorials   -   #6
    fstokebanget's Avatar j-e-ib BT Rep: +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60
    Join Date
    Jun 2007
    Location
    planet torrent
    Posts
    1,278
    Quote Originally Posted by naq View Post
    I think there's an easier way to install rtorrent on Centos, I will test it once I get my server.

    First, go here to install the extra repositories, it's the Dag RPM Repository that has a compiled rtorrent rpm, after that, just type: yum install rtorrent.

    EDIT: rtorrent 0.7.9 installed fine through yum on Centos 5.
    good to hear that

  7. Guides and Tutorials   -   #7
    fstokebanget's Avatar j-e-ib BT Rep: +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60BT Rep +60
    Join Date
    Jun 2007
    Location
    planet torrent
    Posts
    1,278
    haha, good, good... I'm very happy to see when ppl would find it useful and can help them setting their seedboxes

    and you have a really nice blog m8

  8. Guides and Tutorials   -   #8
    very good ........nice tutoriel^^

  9. Guides and Tutorials   -   #9
    madbeer's Avatar brewed locally BT Rep: +1
    Join Date
    Sep 2007
    Location
    on an irc near you! Beer:
    Posts
    155
    i have used rtorrent before, but wanted to ask here:

    does it support BT protocol encryption?
    does it support rss?

  10. Guides and Tutorials   -   #10
    Ermm, why use FTP to upload torrent files to your box when you have wget ?? Isn't "wget http://address.of.the.torrent.file" much simpler ?

    @madbeer: AFAIK rtorrent doesn't have built in rss support but you can install 3rd party plugin/utility that has rss support.

Page 1 of 6 1234 ... LastLast

Bookmarks

Posting Permissions

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