Introduction
It's been a year since i suffered with Transmission which consumed all the resources when there was a few torrents on the list and had no RSS support. A few days ago finally decided to get rTorrent even with my poor linux knowledge and after a few hours of research it seemed to be a better option but without any tutorial or how-to documentation on OpenWRT wiki space. So i thought i could share it!
rTorrent is a torrent client based on libtorrent and can be run in daemon mode with screen. There are plenty of webUi and GUi (win,linux,mac) out there and in this tutorial i will describe the ruTorrent webUi and Nativa GUi (mac).
Screenshots
Installation
Install rTorrent and screen:
opkg install rtorrent screen
Get the config file and edit to your needs:
cd /root
wget -O .rtorrent.rc http://libtorrent.rakshasa.no/export/1303/trunk/rtorrent/doc/rtorrent.rc
vi .rtorrent.rc
note: be sure to keep the formatting of options and values=don't delete the spaces.
My settings for example:
min_peers = 40
max_peers = 120
min_peers_seed = 2
max_peers_seed = 6
max_uploads = 4
download_rate = 0
upload_rate = 20
directory = /mnt/torrent
session = /mnt/torrent/.session
port_range = 50800-65535
port_random = yes
check_hash = no
use_udp_trackers = yes
scgi_port = 127.0.0.1:5000
xmlrpc_dialct = i8 # for non english characters
note: if you using my config, don't forget to change the "directory" and "session" path to yours!
Verify that rTorrent is installed and configured properly:
rtorrent
note: you can quit with the CTRL+Q combination.
If everything was fine, continue with the init.d script:
vi /etc/init.d/rtorrent
and insert this:
#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2012 OpenWrt.org
START=99
boot() {
HOME=/root screen -dmS rtorrent rtorrent
}
start() {
HOME=/root screen -dmS rtorrent rtorrent
}
stop() {
killall rtorrent
}
Make it executable and enable:
chmod 755 /etc/init.d/rtorrent
/etc/init.d/rtorrent enable
/etc/init.d/rtorrent start
Usage
Key combos and usage of rTorrent:
rTorrent User Guide
rTorrent is running in the background, to bring it front type this:
screen -r
and to put it back:
CTRL+A+D
Thats it, now you have rTorrent installed. You're not satisfied with it? Keep reading and get more
(Last edited by gregrice on 18 Dec 2012, 12:04)