rtorrent configuration

rtorrent configuration file is generally stored in your user's home directory and it's named .rtorrent.rc

An example configuration file can be found at the libtorrent trac website

Some configurations i personally use, are:

# Default directory to save the downloaded torrents.
directory = /mnt/BitTorrent

# watch a directory for torrent files and move to target dir (custom1).
schedule = watch_directory_2,10,10,"load=./torrents/*.torrent,d.set_custom1=/mnt/BitTorrent/Completed/"
system.method.set_key =event.download.finished,move_complete,"d.set_directory=$d.get_custom1= ;execute=mv,-u,$d.get_base_path=,$d.get_custom1="

This is the information from where we load the torrent files: "load=" (in the case above, the "torrents" directory under my home dir)

This is the information to where we move the actual downloaded content: "d.set_custom1"

Commas are separators.

So the juice is: torrents are first downloaded to "/mnt/BitTorrent" and then moved to "/mnt/BitTorrent/Completed" upon completion. If you haven't yet hit the share ratio, rtorrent will keep seeding while your files have already been moved to the destination directory: when you hit CTRL-K the torrent is stopped and when you hit CTRL-D the torrent is removed from queque (files are still on destination dir).

# Enable the default ratio group.
ratio.enable=yes

# Change the limits
ratio.min.set=110
ratio.max.set=120

Minimum and maximum share ratio (110 to 120%)

# Send email for completed downloads
# First and only argument to rtorrent_mail.sh is completed file's name (d.get_name)
system.method.set_key = event.download.finished,notify_me,"execute=~/scripts/rtorrent_mail.sh,$d.get_name="

I'll paste my rtorrent_mail.sh script, which is just a row, as you can see:

#!/bin/sh
echo "$(date) - Download completed: $1" | mail -s "[rtorrent]" roughnecks@laltromondo.dynalias.net

Other settings:

check_hash = no
use_udp_trackers = yes
peer_exchange = no

Last but not least: save a logfile whenever you need it. (i.e. comment and uncomment this option).

log.execute = ~/.rtorrent.log

EDIT:

If you want to use rtgui webgui for rtorrent, you need the following:

# rtgui
scgi_port = localhost:5000