Transmission Download Manager through New Generation Optware

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.

Entware version here

0 - Flash latest version of RMerlin firmware from here
1 - Install New Generation Optware from here
2 - Login to router with putty terminal and install transmission with this commands:

ipkg install transmission nano

3 - Start transmission

/opt/etc/init.d/S95transmission start

4 - Open transmission webpage by accessing default router ip address and port 9091, ex. (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!!!

5 - Stop transmission and with nano you can edit any settings like enable / change username, password:

/opt/etc/init.d/S95transmission stop
nano /opt/etc/transmission-daemon/settings.json

Save settings with CTRL-O, press ENTER and exit nano with CTRL-X

6 - Start transmission again

/opt/etc/init.d/S95transmission start

7 - Create init-start script for some memory tweaks as suggested by ryzhov_al

nano /jffs/scripts/init-start

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

chmod a+rx /jffs/scripts/*

• 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 the scripts on /jffs partition:

Create firewall rules

cat >> /jffs/scripts/firewall-start << 'EOF'
iptables -I INPUT -p tcp --destination-port 9091 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 51413 -j ACCEPT

Press ENTER 

Make scripts executable and apply rules

chmod a+rx /jffs/scripts/*
sh /jffs/scripts/firewall-start

Go to YourWanIp:9091 on preferred internet browser or install Transmission Remote GUI


If you want to be notified when a torrent has finished downloading, place the folowing script whitch I called in /jffs/scripts but first don't forget to fill: SMTP, FROM, TO, USER and PASS with your credentials.

nano /jffs/scripts/


SMTP="your-smtp-server:587 or 25"
FROMNAME="Asus Router"

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.txt

cat /tmp/tmail.txt | /usr/sbin/sendmail -S"$SMTP" -f"$FROM" $TO -au"$USER" -ap"$PASS"

rm /tmp/tmail.txt

Stop transmission daemon, change this two lines in /opt/etc/transmission-daemon/settings.json and start transmission again

/opt/etc/init.d/S95transmission stop
nano /opt/etc/transmission-daemon/settings.json

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/jffs/scripts/",

/opt/etc/init.d/S95transmission start


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

Thanks @alllexx for this modern Optware port

This tutorial is dedicated @MelissaJS

  • Sany

    how can we schedule downloading like 2 AM to 8 AM ? very needed.

    • TeHashX

      Go to preferences in transmission web ui, on speed tab enable schedule

  • Mantis

    I appropriate your tutorial. I wish I can use more than app via optware. If I mention about my problem,

    I can connect transmission and start to download after reboot my router but in a couple of minutes transmission will be stopped. Could you give me a hand to fix this issue please

    • Are you sure is stopped? or you can't access web interface?

      • Mantis

        After paste this command (chmod a+rx /jffs/scripts/*) I can use transmission for 3-4 minutes than unreachable. then I reboot my router and can use transmission for 1-2 minutes and goes on like this.

        I am RT-N66U owner btw.

  • Csaba Benesch

    Email notification dont work with gmail, or how should I edit the settings for it?

  • David Taylor

    Ok; point me the right direction to resolving this one, please:

    me@RT-AC87U-F838:/tmp/home/root# /opt/etc/init.d/S95transmission start

    Starting transmission-daemon:.Segmentation fault


    me@RT-AC87U-F838:/tmp/home/root# uname -a

    Linux RT-AC87U-F838 #1 SMP PREEMPT Sat Oct 17 22:31:03 EDT 2015 armv7l GNU/Linux

    me@RT-AC87U-F838:/tmp/home/root# mount

    rootfs on / type rootfs (rw)

    /dev/root on / type squashfs (ro,relatime)

    devtmpfs on /dev type devtmpfs (rw,relatime,size=127752k,nr_inodes=31938,mode=755)

    proc on /proc type proc (rw,relatime)

    tmpfs on /tmp type tmpfs (rw,relatime)

    sysfs on /sys type sysfs (rw,relatime)

    devpts on /dev/pts type devpts (rw,relatime,mode=600)

    /dev/mtdblock4 on /jffs type jffs2 (rw,noatime)

    usbfs on /proc/bus/usb type usbfs (rw,relatime)

    /dev/sda1 on /tmp/mnt/USBDISK type ext3 (rw,nodev,relatime,errors=continue,user_xattr,barrier=0,data=ordered)

    me@RT-AC87U-F838:/tmp/home/root# df

    Filesystem 1K-blocks Used Available Use% Mounted on

    /dev/root 43392 43392 0 100% /

    devtmpfs 127752 0 127752 0% /dev

    df: /tmp: Value too large for defined data type

    /dev/mtdblock4 64256 2408 61848 4% /jffs

    /dev/sda1 1922858800 7784452 1817398728 0% /tmp/mnt/USBDISK

    me@RT-AC87U-F838:/tmp/home/root# free

    total used free shared buffers

    Mem: 255720 224708 31012 0 4912

    -/+ buffers: 219796 35924

    Swap: 1048568 87772 960796

    • Reboot router and should be ok

      • David Taylor

        This is working fine now, after a complete reinstall of Optware-NG and targeting Transmission at the desired disk, properly. Thanks!

  • lobix

    i have a situation, i installed optware-ng and transmission without problems, but i enabled file sharing (dlna/samba) to test a video that i downloaded with transmission and after restarted the router, all data was gone (optware and transmission), i tried to start transmission manually > file not found. What's wrong? somehow, i think the data was corrupted.

    • Probably your hdd was mounted as sda1 when installed optware-ng and after reboot as sdb1...
      Post here output from:
      uname -a
      ls /opt
      cat /jffs/scripts/post-mount

      • lobix

        Thanks for the help, but last night i reinstalled everything, and so far it's working OK. Probably, like you said, the problem was how was mounted the drive after the reboot.

        Now i'm trying to optimize the settings file of Transmission. With defaults settings Transmission uses a lot of CPU (Asus N66U).

        • N66U has a single core cpu so no much to do, eventually decrease max download speed and number of seeds

  • MelissaJS

    OMG Thank you TeHashX, that was quick!!

    I was stuck trying to figure out a procedure for transmission-gtk in a forum where @alllexx was discussing how to make transmission work through optware-ng :(

    Now I realize the actual procedure is almost identical to transmission through optware!

    I really appreciate it TeHashX, I'm gonna try this right away :)


To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...