Rtorrent

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] Introduction

rTorrent is a text-based, ncurses BitTorrent client written in C++, based on the libTorrent libraries. It has been hailed as one of the faster clients available. rTorrent includes an xmlrpc interface that allows for quite a few different front-ends.

[edit] Install

rTorrent can use the xmlrpc interface for 3rd party programs. If you would like to make use of this feature, enable the xmlrpc USE flag:

echo "net-p2p/rtorrent xmlrpc" >> /etc/portage/package.use

In addition, rTorrent can be run in daemon mode. If you would like to make use of this feature, enable the daemon USE flag:

echo "net-p2p/rtorrent daemon" >> /etc/portage/package.use

Nb: If you want both the flags, use:

echo "net-p2p/rtorrent daemon xmlrpc" >> /etc/portage/package.use

Now you can install rTorrent:

emerge -av net-p2p/rtorrent

[edit] Configure

Define the user which will run rTorrent by editing /etc/conf.d/rtorrentd then add rtorrentd to the rc.

rc-update add rtorrentd default

Anytime you want to reattach the rTorrent screen, make sure to be identified as the user defined in /etc/conf.d/rtorrentd and just use the following command: screen -dr rtorrent

[edit] IPTables Port Forwarding

If you are also running iptables on this server, make sure to open the corresponding ports with the following:

iptables -A INPUT -p TCP --dport 6890:6999 -i ${WAN} -j ACCEPT
iptables -A INPUT -p UDP --dport 6881 -i ${WAN} -j ACCEPT

[edit] Firewall Configuration

Usually you want to configure your firewall to allow certain ports. Many people also like to blacklist known corporate trackers, for privacy reasons. See the following for more information about these things.

[edit] Links

Personal tools