rTorrent for App Store?

I saw discussions about Deluge, Transmission, qBittorrent but noone mentioning rTorrent.

The reason why I want rTorrent is because it is very low on resources and easily manageable with webUI. I’m sure Deluge and Transmission is very feature rich but they tend to be much heavier on resources. I have tried installing qBittorrent which I use on PC aswell and like but it causes OSMC to crash after a few hours for some reason.

The only reason why I haven’t switched from openelec to OSMC already is because I haven’t found a way to install rTorrent yet. Is it possible that OSMC will get official rTorrent support?
I also wanna say that you have done a great job with OSMC. I really like the skin, the performance and the easy access to more advanced system settings like overclocking.

sudo apt-get install rtorrent

its in the debian repo doesn’t have to be installed from the app store

I tried that but then I got stuck on creating the configuration file, setting up the webUI and making it autostart. Tried searching for guides and figuring out how to apply them on OSMC but it’s way past my linux knowledge which is close to zero.
That’s why I think an automated installer in App Store would be very nice.

Ill make a note of it and make a howto later on for you im not gonna use rtorrent but i can make a how to for those that want but next week kinda in the middle of my vacation atm :smiley:

and sam and the guys cant support every client there is that spreading the support too much

#!/bin/bash
if [ $USER != root ]; then
        printf "you forgot sudo, this script needs root"
        exit 0
fi
apt-get install rtorrent

cd /etc/ssl/certs
wget --no-check-certificate https://www.geotrust.com/resources/root_certificates/certificates/Equifax_Secure_Global_eBusiness_CA-1.cer
mv Equifax_Secure_Global_eBusiness_CA-1.cer Equifax_Secure_Global_eBusiness_CA-1.pem
c_rehash

touch ~/.rtorrent.rc
mkdir -p ~/torrents/watch
mkdir -p ~/torrents/incomplete
mkdir -p ~/torrents/complete

systemctl enable rt@$osmc
systemctl start rt@$osmc

an inital script kinda on holiday atm in greece so i dont have anything to test on, but if the default config doesnt work for ya just do see post below for a simple default config

sudo systemctl stop rt@$osmc
nano  ~/.rtorrent.rc
sudo systemctl start rt@$osmc

Thanks a lot for the effort you put into this, did not expect that.

I can set the default download folder through the webUI so no need for configuring that in command line I guess?
I have managed to install rTorrent but what I don’t understand is how to install the webUI and make the client autostart at boot.
I guess what I would need is a step-by-step guide for the commands I need to run over SSH. Exactly how to create the autostart script. If I would have to modify the configuration file manually, I would need help with the exact path to the file and command and so on.

Maybe I’m better off waiting for the Deluge client support? I’m just a bit concerned about the resource use and stability of it on my Rpi2.

is the autostart part

im guessing from everywhere i read that the default download folder is the home folder

and if you wanna mess with the configuration just ssh your OSMC machine and type

nano ~/.rtorrent.rc

i can make a good default configuration this weekend when i return from my vacation :smile:

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
 
# Maximum and minimum number of peers to connect to per torrent.
min_peers = 1
max_peers = 100
 
# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 1
max_peers_seed = 50
 
# Maximum number of uploads single torrent may use
max_uploads = 10
 
# Maximum number of simultaneous downloads
max_downloads_global = 10
# Maximum number of simultaneous uploads
max_uploads_global = 20
 
# 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
 
# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = ~/torrents/.rsession
 
# Watch a directory for new torrents, and stop those that have been
# deleted.
schedule = watch_directory,5,5,load_start=~/torrents/watch/*.torrent
schedule = tied_directory,6,5,start_tied=
schedule = untied_directory,7,5,stop_untied=
 
# Close torrents when diskspace is low.
schedule = low_diskspace,5,60,close_low_diskspace=2000M
 
# Periodically save session data
schedule = session_save,240,300,session_save=
 
# Enable the default ratio group.
# ratio.enable=
# Change the limits, the defaults should be sufficient.
# Upload to a minimum ratio of 4.0
# ratio.min.set=400
# Upload to a maximum ratio of 20.0
# ratio.max.set=2000
# Upload a minimum of 250 MB
# ratio.upload.set=250M
 
# When seeding ratio is reached close the torrent
# system.method.set = group.seeding.ratio.command, d.close=
 
# Move files to ./unsorted when download completes
system.method.set_key = event.download.finished,move_complete,"execute=mv,-n,$d.get_base_path=,~/torrents/complete/;d.set_directory=~/torrents/complete"
 
# Port range to use for listening.
port_range = 33101-33199
 
# Start opening ports at a random position within the port range.
port_random = yes
 
# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted
# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext
 
# Sort the main view by ratio
view.sort_current = main,greater=d.get_ratio=
view.sort_new = main,less=d.get_ratio=
view.sort = main
 
# Sort the seeding view by the upload rate and only show torrents with peers
view.sort_current = seeding,greater=d.get_up_rate=
view.filter = seeding,"and=d.get_complete=,d.get_peers_connected="
view.sort_new = seeding,less=d.get_up_rate=
view.sort = seeding
 
# Sort the leeching view by name
view.sort_current = leeching,greater=d.get_name=
view.sort_new = leeching,greater=d.get_name=
view.sort = leeching
 
# Filter the active view by connected peers
view.sort_current = active,less=d.get_name=
view.sort_new = leeching,less=d.get_name=
view.filter = active,d.get_peers_connected=
view.sort = active
 
schedule = sort_main,11,5,view.sort=main
schedule = sort_seeding,12,5,view.sort=seeding
schedule = sort_leeching,13,5,view.sort=leeching
schedule = sort_active,14,5,view.sort=active
 
# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
# 
dht = auto
 
# UDP port to use for DHT. 
# 
dht_port = 6881
 
# Enable peer exchange (for torrents not marked private)
#
peer_exchange = yes

an good config that should work good for a rpi2 put this config in your /home/osmc/ directory as .rtorrent.rc

a more complete guide is available now with Webui configuration

Great job! Now I’m the one on vacation so no chance to try it out, but I will as soon as I get the chance :slight_smile:

1 Like