Ubuntu 11.10 x86/x64 rtorrent/rutorrent setup
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 5 1 2 3 4 ... LastLast
Results 1 to 10 of 45
Like Tree14Likes

Thread: Ubuntu 11.10 x86/x64 rtorrent/rutorrent setup

  1. #1

    Join Date
    Oct 2010
    Location
    St Louis, Missouri
    Posts
    56

    Default Ubuntu 11.10 x86/x64 rtorrent/rutorrent setup

    This tutorial is in no way a complete setup of a server. It is ONLY for rtorrent/rutorrent in Ubuntu 11.10 - x86/x64, but might work in Ubuntu 11.04 as well. Maybe even the new Ubuntu 12.04 LTS...it would be nice. :)

    First we want to compile in rTorrent because the version in Ubuntu Karmic is only 0.8.2 which doesnt work nicely with newest version of ruTorrent.

    sudo apt-get install subversion build-essential libtool automake1.11 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev php-xml-rss libxmlrpc-c3-0 libxmlrpc-c3-dev rtorrent

    Now to make the .rtorrent.rc file which should be in the home folder of the user running rtorrent

    cd ~/
    nano .rtorrent.rc

    Paste this in

    # Maximum and minimum number of peers to connect to per torrent.
    min_peers = 100
    max_peers = 200
    # Same as above but for seeding completed torrents (-1 = same as downloading)
    min_peers_seed = 10
    max_peers_seed = 500
    # Maximum number of simultanious uploads per torrent.
    max_uploads = 200
    # Global upload and download rate in KiB. "0" for unlimited.
    download_rate = 0
    upload_rate = 0
    # Default directory to save the downloaded torrents.
    directory = ~//torrents/downloads
    # Default session directory.
    session = ~//torrents/rtorrent.session
    # Watch a directory for new torrents, restart torrents that have been copied back and stop those that have been
    # deleted.
    schedule = watch_directory,10,10,"load_start=~//torrents/torrentfiles/*.torrent"
    schedule = tied_directory,10,10,start_tied=
    schedule = untied_directory,10,10,close_untied=
    # Close torrents when diskspace is low.
    schedule = low_diskspace,5,60,close_low_diskspace=100M
    #Stop torrents when reaching upload ratio 300 percent
    ratio.enable= ratio.min.set=300
    # Port range to use for listening.
    port_range = 63001-63001
    # Start opening ports at a random position within the port range.
    port_random = no
    # Set whetever the client should try to connect to UDP trackers.
    use_udp_trackers = no
    # Encryption options. This can be useful when using an ISP that uses traffic shaping.
    encryption=allow_incoming,try_outgoing,enable_retr y,prefer_plaintext
    scgi_port = 127.0.0.1:5000
    xmlrpc_dialect=i8
    #DHT
    dht = disable
    #dht_port = 6881
    peer_exchange = no

    **NOTE**

    You MUST change the red highlighted area to the user on your server. All other options can be set to however you want such as min/max peers, dht, peer exchange, etc...This is set to what I use on 100 Mbit servers.
    Now we need to activate scgi support in Apache 2

    sudo apt-get install libapache2-mod-scgi
    sudo a2enmod scgi

    Next you need to add the SCGI mount for rTorrent
    First open sites-available for editing
    sudo nano /etc/apache2/sites-available/default

    Paste the red highlighted area at the bottom just above <VirtualHost>

    SCGIMount /RPC2 127.0.0.1:5000
    <location /RPC2>
    <Limit GET POST>
    order deny,allow
    deny from all
    allow from 127.0.0.1
    allow from 192.168.1.254
    allow from 192.168.1.0/24
    </Limit>
    </location>
    <VirtualHost>
    Now we need to restart Apache 2
    sudo /etc/init.d/apache2 restart
    Now download ruTorrent and move this folder to /var/www
    wget http://rutorrent.googlecode.com/file...ent-3.3.tar.gz
    tar xvzf rutorrent-3.3.tar.gz
    sudo mv rutorrent /var/www/rtorrent

    You need to change the ownership of the directory of rtorrent in /var/www to the user you will be using

    sudo chown -R <your user>:www-data /var/www/rtorrent
    **NOTE**
    Make sure you add your username where it is highlighted in red.
    Now we’re ready to start rtorrent with the selected user. Login with your normal user and run
    rtorrent

    Now you can login to http://<your servers IP>/rtorrent


    Last edited by Deatherage; January 10th, 2012 at 02:46 PM.


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

    Join Date
    Apr 2011
    Location
    Florida, US
    Posts
    46

    Default

    Nice but is /var/www/rtorrent a typo? usually that would be /var/www/rutorrent

  4. #3

    Join Date
    Oct 2010
    Location
    St Louis, Missouri
    Posts
    56

    Default

    you can make it rutorrent if you want. i use rtorrent. just make sure throught the rest of the tutorial that you use the same name where it says rtorrent.
    -Example-
    sudo mv rutorrent /var/www/sillywillydilly
    sudo chown -R <your user>:www-data /var/www/sillywillydilly
    http://<your servers IP>/sillywillydilly

  5. #4

    Join Date
    Apr 2011
    Location
    Florida, US
    Posts
    46

    Default

    oh sorry for causing confusion. If you were to use rutorrent instead of renaming to rtorrent you wouldn't need to move directory at all you could just extract it directly to your webroot.

    sudo tar xvf rutorrent-3.3.tar.gz -C /var/www
    Deatherage likes this.

  6. #5

    Join Date
    Oct 2010
    Location
    St Louis, Missouri
    Posts
    56

    Default

    Indeed. :) Thanks for the tip. The more info, and the more options are always welcomed and better for users really. So they can get a better feel for the Linux Environment since most dont know much about it.

    I am in the works of a complete server setup with Ubuntu 11.10 just like this one.
    Ubuntu Server w/ GUI, Permenant Auto Connecting SSH Tunnel, Fail2Ban, etc....

    It will be a couple weeks though as these things take time. I will use your rutorrent method on that as I could see how it would confuse others. Thanks.

  7. #6

    Join Date
    Apr 2011
    Location
    Florida, US
    Posts
    46

    Default

    You can have rtorrent run a command or script after the download completes. I don't know how useful that would be on a server maybe send an email. I use linux at home as my desktop computer so what I did was have a sound play and send pop-up notification similar to transmission then fades away and is completely gone after 5 secs.

    .rtorrent.rc
    Code:
    system.method.set_key = event.download.finished,notify_dbus,"execute=/usr/local/bin/rtor-download-complete.sh,$d.get_name="

    rtor-download-complete.sh

    Code:
    #!/bin/sh
    #
    ICON=emblem-default
    EXPIRE=5000
    MESSEGE="Download Complete"
    SOUND="/usr/share/sounds/freedesktop/stereo/complete.oga"
    VOL="12000"
    ##
    #
    DISPLAY=:0 notify-send -t $EXPIRE -i $ICON " $MESSEGE " "$1" &
    paplay --volume=$VOL $SOUND

    Deatherage likes this.

  8. #7

    Join Date
    Dec 2011
    Location
    Norway
    Posts
    43

    Default

    Didn't want to post a new thread as this as it isn't a really complete guide..

    Used 2 days following a similar outdated guide my self. Real pain figure out what was missing all the time (all the apt-get ...) But since most of it is already mentioned here I thought I might share the other parts here for other people.

    My setup is Ubuntu 11.10 on VirtualBox. Multiuser support, all the plugins for ruTorrent. Screenshots, mediainfo etc etc. I won't write everything down, as it can be found elsewhere.


    [Make rTorrent download the files to a shared network folder (or Virtual host)]
    A In Windows
    Since I run Windows 7, I'd like my downloads to be accessible on windows. I tried with the "normal" way with the built-in folder sharing (samba/SMB) with windows and smbmount in Ubuntu as well as the "Shared folder" stuff with VirtualBox, but ruTorrent threw ""Storage error: [File chunk write error: Invalid argument.]"" Also tried the " watch -n 1 `sync; echo 1 > /proc/sys/vm/drop_caches` " but this didn't help at all. Either way... NFS worked perfectly and also gave me a performance boost as well.


    So I created an empty folder on one of my harddrives in windows, and downloaded "haneWin NFS" (google it). Follow these steps Configuring Windows 7 as NFS Server for XTreamer - YouTube from 0:55-2:11. Important: Tick the box with "Allow mount of remote devices". In the text file, write the path of the folder you want to make rTorrent download to. Here is my file:
    Code:
    # exports example
    
    
    D:\Downloads\box
    Next, find your local IP on the windows machine (Start>Cmd>ipconfig somewhere) and remember it.

    B In Ubuntu


    Install this stuff:
    Code:
     sudo apt-get install nfs-common 
    Now, replace 123.123.123.123 with the local IP you found of the file server.
    After the first "/", type the path of the folder in step A.
    Replace "/home/exampleuser/rutorrrent/downloads" with the directory you set rTorrent to download to.
    Code:
    sudo mount -t nfs 123.123.123.123:/d/Downloads/box /home/exampleuser/rutorrrent/downloads
    If you get any errors, compare my examples from step A and B. This code has to be run every time you reboot. I know there is a way to do this by "sudo nano /etc/fstab" but I am too lazy right now.. (Maybe "theiphere:/D/downloads/box /home/user/rutorrent nfs"?)


    [Installing mediainfo and screenshot plugins] (Except host name resolver, zip on the web is corrupt, maybe you have a working one?)

    Mediainfo allows you to view technical information about a given media file in ruTorrent. Select torrent>Files tab>Rightclick at the file and select mediainfo.
    Screenshot is a plugin that takes screenshots of your movie files and shows you them in ruTorrent. The settings can be adjusted (Settings>Screenshots).

    Code:
    sudo add-apt-repository ppa:shiki/mediainfo
    sudo apt-get update
    sudo apt-get install ffmpeg cd /var/www/rutorrent/plugins sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/mediainfo sudo svn checkout http://rutorrent.googlecode.com/svn/trunk/plugins/screenshots cd /var/www sudo chown -R www-data:www-data rutorrent sudo chmod -R 777 rutorrent
    Deatherage and MPAA like this.

  9. #8

    Join Date
    Apr 2011
    Location
    Florida, US
    Posts
    46

    Default

    Why would you want to run ubuntu vm? Its not like windows doesn't have any good bittorrent clients. To me it seems stupid to install an OS via VM so you can install a bittorrent client that has a webui that immolates a bittorrent client you could have installed natively on original OS.

  10. #9

    Join Date
    Oct 2010
    Location
    St Louis, Missouri
    Posts
    56

    Default

    Its a good tutorial, but I agree with res0. Windows has plenty of clients that work well. Especially on a server where you would pay extra to run windows server...why install Ubuntu on VM when it is free? Also you could just install rtorrent/rutorrent in Cygwin and use less resources than a VM would.

    None the less it is a great tutorial and would be useful for Home servers, but not for a remote CLI. You should make this its own tutorial, Im sure there are circumstances where it would be needed and someone would find it useful. :)

  11. #10

    Join Date
    Apr 2011
    Location
    Florida, US
    Posts
    46

    Default

    only way I see it worth the memory to run rtorrent from virtual machine is if you didn't have a seperate home server and you were to use it for more than just bittorent. I've heard of people running monowall as VM for their firewall so why not ubuntu.or even freebsd.

Page 1 of 5 1 2 3 4 ... LastLast

Similar Threads

  1. Ubuntu Seedbox with rtorrent/rutorrent and security
    By Deatherage in forum Operating Systems
    Replies: 9
    Last Post: 3 Weeks Ago, 01:32 AM
  2. Replies: 4
    Last Post: February 21st, 2012, 05:52 PM
  3. Some help on Linux OS Distribution for rtorrent/rutorrent
    By pjkp20 in forum Seedbox Discussions
    Replies: 5
    Last Post: October 20th, 2010, 05:42 AM
  4. Replies: 10
    Last Post: October 5th, 2010, 07:53 PM
  5. Replies: 2
    Last Post: October 4th, 2010, 08:36 AM

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
  •