Transmission is a file sharing program.
When you run a torrent, its data will be made available to others by means of upload.
Any content you share is your sole responsibility.
Optware-NG version here
This version works on all supported routers: RT-N16, RT-N66U, RT-AC66U, RT-AC56U, RT-AC68U, RT-AC87U, RT-AC88U, RT-AC3200, RT-AC5300...
1 - Install Entware-NG from here
2 - Install transmission
3 - Stop transmission
4 - Backup standard file settings and create a new optimized one:
5 - Start transmission daemon
6 - Open transmission webpage by going to default router ip address and port 9091, ex. 192.168.1.1:9091 (username: admin and password: admin)
The default download folder is on /mnt/sda1/Transmission (will be created automatically with the first downloaded torrent and can be changed editing settings.json file) if your usb disk has a label, change sda1 with the disk label. Be sure transmission-daemon is not running or changes will be overwritten!!!
7 - With nano you can edit any settings like enable / change username, password:
8 - Save settings with CTRL-O, press ENTER and exit nano with CTRL-X, now start transmission again
9 - Create init-start script for some memory tweaks as suggested by ryzhov_al
echo 524288 > /proc/sys/net/core/rmem_max
echo 524288 > /proc/sys/net/core/wmem_max
echo 8192 > /proc/sys/vm/min_free_kbytes
Save with CTRL-O, press ENTER and exit nano with CTRL-X
Make scripts executable
ACCESS FROM WAN
• If you want to access transmission from WAN like work, school, smartphone, tablet or some other device we need to open the port 9091 but the firmware doesn't allow port forwarding to the router himself, for that we will use firewall-start script on /jffs partition:
Create firewall rules
Paste this lines in terminal
iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT
iptables -I INPUT -p udp --destination-port 51413 -j ACCEPT
Make scripts executable and apply rules
SWAP FILE (Highly recommended) is created automatically when installing Entware-NG
If transmission crashes sometimes "without reason", most probably router goes out of memory and this can be fixed by creating a swap partition but it's a little bit to complicated for most users and we will create a swap file instead, 512MB is more than enough:
To enable swap file when router booting, add this lines to /jffs/scripts/post-mount script
To unmount swap add this lines to /jffs/scripts/services-stop script
If you have a slow internet connection and you want to be notified when a torrent has finished downloading, place the folowing script witch I called tmail.sh in /jffs/scripts but first don't forget to fill: SMTP, FROM, TO, USER and PASS with your credentials.
WARNING, may become annoying if you are downloading lots of torrents...
torrent_name="$TR_TORRENT_NAME"echo "Subject: Download notification!" >/tmp/tmail.txt
echo "From: "$FROMNAME"<$FROM>" >>/tmp/tmail.txt
echo "Date: `date -R`" >>/tmp/tmail.txt
echo "" >>/tmp/tmail.txt
echo Transmissionbt has finished downloading "$TR_TORRENT_NAME" on `date +%d/%m/%Y` at `date +%T` >>/tmp/tmail.txt
echo "" >>/tmp/tmail.txt
echo "Your friendly router." >>/tmp/tmail.txt
echo "" >>/tmp/tmail.txtcat /tmp/tmail.txt | /usr/sbin/sendmail -S"$SMTP" -f"$FROM" $TO -au"$USER" -ap"$PASS"
Stop transmission daemon, change this two lines in /opt/etc/transmission-daemon/settings.json and start transmission again
If you have difficulties with installation process or transmissionbt usage, copy paste from terminal the next commands and post here followed by issue details:
uname -a mount df free