rTorrent client for OpenWrt's LuCI web interface
- List all torrent downloads
- Add new torrent by url/magnet uri/file
- Stop/start/delete torrents
- Mark torrents with tags
- Set priority per file
- Enable/disable and add trackers to torrent
- Detailed peer listing
- Completely LuCI based interface
- OpenWrt device independent (written in lua)
- Opkg package manager support
- RSS feed downloader (automatically download torrents that match the specified criteria)
(for Openwrt 15.05 Chaos Calmer)
opkg update
opkg install rtorrent-rpc
directory = /path/to/downloads/
session = /path/to/session/
scgi_port = 127.0.0.1:5000
schedule = rss_downloader,300,300,"execute=/usr/lib/lua/rss_downloader.lua"
http://pissedoffadmins.com/os/linux/sample-rtorrent-rc-file.html
cat /etc/sysctl.conf
...
# handle rtorrent related low memory issues
vm.swappiness=95
vm.vfs_cache_pressure=200
vm.min_free_kbytes=4096
vm.overcommit_memory=2
vm.overcommit_ratio=60
opkg install screen
#!/bin/sh /etc/rc.common
START=99
STOP=99
SCREEN=/usr/sbin/screen
PROG=/usr/bin/rtorrent
start() {
sleep 3
$SCREEN -dm -t rtorrent nice -19 $PROG
}
stop() {
killall rtorrent
}
chmod +x /etc/init.d/rtorrent
/etc/init.d/rtorrent enable
/etc/init.d/rtorrent start
(the wget in busybox does not support https)
opkg install ca-certificates
opkg install wget
ln -sf $(which wget-ssl) /usr/bin/wget
wget -nv https://github.com/wolandmaster/luci-app-rtorrent/releases/download/latest/e1a1ba8004c4220f -O /etc/opkg/keys/e1a1ba8004c4220f
echo 'src/gz luci_app_rtorrent https://github.com/wolandmaster/luci-app-rtorrent/releases/download/latest' >> /etc/opkg.conf
opkg update
opkg install luci-app-rtorrent
opkg update
opkg upgrade luci-app-rtorrent