Thank you for your donation


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Guide: rTorrent + ruTorrent installation
19th Jan, 2014, 07:47 AM
Post: #1
Information Guide: rTorrent + ruTorrent installation
EDIT: I managed to make a fully automated script for installation and configuration of rtorrent + nginx + rutorrent + php5-fpm, extremly lightweigh, fast downloads, web access, fully customizable installation - (every setting in rtorrent can be changed before installation, and of cours you can set nicelevel of the rtorrent)

# HOW TO USE THIS SCRIPT
# Log in to the RPi as root in SSH
# Download this script:
# wget -O rtorrent_pi.sh http://iqes.pl/upload/rtorrent_pi.sh
# Edit any SETTINGS
# nano rtorrent_pi.sh (Ctrl-o to save and Ctrl-x to exit).
# Set execute permssions so the script can run:
# chmod u+x rtorrent_pi.sh
# Run this script:
# ./rtorrent_pi.sh

# ABOUT RTORRENT
For me it's much lighter than transmission, got pretty fast download speed (more than 3MB/s with sync ext4 partition I'll try async today), stable, no problems with running xbmc during download/upload. Really low Memory usage, CPU Usage can be adjusted according to NICELEVEL. ruTorrent is much more intuitive for me compared to transmission and have a lot of usefull plugins like unrar, geoip, auto-rss download, auto-irc download, torrent sites searchers and much more.
WEB GUI:


# SETTINGS:
Quote:# WWW SETTINGS
WWW_DIRECTORY='/var/www' # Do not include a slash at the end of the path

# RTORRENT SETTINGS
RTORRENT_USER='xbian' # Permissions
RTORRENT_GROUP='xbian' # Permissions
MAX_PEERS_SEED='50'
MIN_PEERS_SEED='2'
MAX_PEERS='50'
MIN_PEERS='2'
PORT_RANGE='61040-61050'
MAX_UPLOADS='30'
DOWNLOAD_RATE='0'
UPLOAD_RATE='0'
MAX_DOWNLOADS_DIV='0'
MAX_UPLOADS_GLOBAL='70'
MAX_DOWNLOADS_GLOBAL='50'
DHT='disable'
DHT_PORT='6881'
PEER_EXCHANGE='no'
SESSION_DIRECTORY='/home/xbian/rtorrent/session'
WATCH_DIRECTORY='/home/xbian/rtorrent/watch'
DOWNLOAD_DIRECTORY='/home/xbian/rtorrent/download'
RTORRENT_CONFIG='/home/xbian'
RTORRENT_SOCKET='/tmp/rtorrent.sock'
NICE='7' #Nicelevel of rtorrent

# RUTORRENT SETTINGS
PORT='9096' #port for rutorrent website http://localhost:PORT
PLUGINS='y' #install plugin pack with f.e. unpack (unrar)
PLUGINS_URL='http://dl.bintray.com/novik65/generic/plugins-3.6.tar.gz'
RUTORRENT_URL='http://dl.bintray.com/novik65/generic/rutorrent-3.6.tar.gz'
Find all posts by this user
Quote this message in a reply
27th Jan, 2014, 08:21 AM
Post: #2
RE: Guide: rTorrent + ruTorrent installation
UPDATES:
28.01.14 - Added /etc/default/rtorrent it's the same as couchpotato file where you can ENABLE/DISABLE rtorrent, set NICELEVEL, and change directory for rtorrent config file.
28.01.14 - Uploaded file for new hosting, root access is not needed now (i suppouseBig Grin, i'll check that when I'll be back from work)
28.01.14 - BUG fixed, works like a charm now

KNOWN BUGS:
- Sometimes this is happening when installing whole package E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
(fixed by looping whole process, if the error occurs )

TO DO:
- set php5-fpm an nginx max working processes
- add more options on rtorrent config to set
- fully test it on more than 1 device
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 08:07 PM
Post: #3
RE: Guide: rTorrent + ruTorrent installation
Awesome, i'll give a try. Thanks

After Transmission that cannot use proxy, and Deluge that is messing my folders for unknowns reasons and keep redownloading sames thing, maybe this time it will works Smile
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 08:12 PM
Post: #4
RE: Guide: rTorrent + ruTorrent installation
I'll add proxy settings for script, and will try to add more advanced settings in future. But for now you can just edit config file of rtorrent and change #http_proxy = url
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 08:54 PM
Post: #5
RE: Guide: rTorrent + ruTorrent installation
(28th Jan, 2014 08:12 PM)koper89 Wrote:  I'll add proxy settings for script, and will try to add more advanced settings in future. But for now you can just edit config file of rtorrent and change #http_proxy = url

There is a whitespace on line 33 after USER Smile
Find all posts by this user
Quote this message in a reply
28th Jan, 2014, 09:01 PM
Post: #6
RE: Guide: rTorrent + ruTorrent installation
try to download it once more i downloaded it now and i'm sure it's full, if wget won't work try downloading it to your PC and upload via SAMBA to xbian for example in xbian folder, so from SSH go to cd /home/xbian and
# Edit any SETTINGS
# nano rtorrent_pi.sh (Ctrl-o to save and Ctrl-x to exit).
# Set execute permssions so the script can run:
# chmod u+x rtorrent_pi.sh
# Run this script:
# ./rtorrent_pi.sh

LINK: http://iqes.pl/upload/rtorrent_pi.sh

Found some bugs, I'll test it now and try to fix all of them.
Find all posts by this user
Quote this message in a reply
29th Jan, 2014, 02:36 AM
Post: #7
RE: Guide: rTorrent + ruTorrent installation
I mean there is a space between there 'USER =xbian' on line 33, nothing wrong with the wget.
Find all posts by this user
Quote this message in a reply
29th Jan, 2014, 02:45 AM
Post: #8
RE: Guide: rTorrent + ruTorrent installation
true, did you tried to install it? It was occured last time, sorry for inconvinience - i did some updates in work without testing it, now I'm testing it in my house, I'll update this post when it's completly finished.

And it's strongly recommended to turn off any CPU consuming service like xbmc, couchpotato, sickbeard do it by "sudo service xbmc stop"

EDIT:
Fully tested on fresh install of xbian 1 beta2, works like a charm just remember to sudo service xbmc stop. and rest like in howto

Best wishes

BTW:
KNOWN BUGS:
- Sometimes this is happening when installing whole package E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
(fixed by looping whole process, if the error occurs )

Someone have an idea why dpkg is interrupted on some point? and i need to correct it: and loop my script?
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 01:33 AM
Post: #9
RE: Guide: rTorrent + ruTorrent installation
@koper89

dpkg crshing is not you bug. what exactly is casing it will probably stay unknown, but there are some ways how keep this at minimum or completely go away (from side of xbian).

a bit complicated investigation also because libdpkg and dpkg changed few times during past weeks. definitely it is combination of more factors where dpkg dies on low memory situation.

show me your /etc/sysctl.d/xbian.conf

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 02:17 AM
Post: #10
RE: Guide: rTorrent + ruTorrent installation
Quote:vm.dirty_ratio = 55
vm.dirty_background_ratio = 35
vm.min_free_kbytes = 8192
vm.swappiness=80
fs.file-max = 45000
vm.page-cluster=1
#kernel.threads-max = 3500
net.ipv4.inet_peer_maxttl = 300
net.ipv4.inet_peer_minttl = 60
net.ipv4.tcp_keepalive_time = 400
net.ipv4.tcp_keepalive_intvl = 60
net.ipv4.tcp_keepalive_probes = 20
vm.vfs_cache_pressure = 150
I tried this on different devices, but I looped my script to deal with it (repair problem and install things that's not installed already). So it'll take more time but it ensures that it'll be completed with success.
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 02:46 AM
Post: #11
RE: Guide: rTorrent + ruTorrent installation
can you try with vm.min_free_kbytes= 16384 and 32768 ?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
5th Feb, 2014, 02:57 AM
Post: #12
RE: Guide: rTorrent + ruTorrent installation
I'll try this one on fresh install.
Find all posts by this user
Quote this message in a reply
1st Apr, 2014, 05:03 PM
Post: #13
RE: Guide: rTorrent + ruTorrent installation
Is there a way to connect to rutorrent webinterface outside local network?
Find all posts by this user
Quote this message in a reply
1st Apr, 2014, 07:25 PM
Post: #14
RE: Guide: rTorrent + ruTorrent installation
So far so good. This tool have a lot of potential. I don't want to return to trasmission.

Its possible to use sickbeard and ruTorrent? I can't add it Sad
Find all posts by this user
Quote this message in a reply
3rd Apr, 2014, 05:07 AM
Post: #15
RE: Guide: rTorrent + ruTorrent installation
(1st Apr, 2014 05:03 PM)vili7 Wrote:  Is there a way to connect to rutorrent webinterface outside local network?

Yes, just forward rutorrent port in your router to raspberry Pi IP .
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: