What's new

[TUTORIAL] Native Transmission on asuswrt routers through optware

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

admin@RT-N66U:/tmp/mnt/sdb5/asusware# ls -l /jffs/scripts
-rwxrwxrwx 1 admin root 189 Oct 18 20:56 firewall-start
-rwxrwxrwx 1 admin root 33 Oct 18 22:00 post-mount
admin@RT-N66U:/tmp/mnt/sdb5/asusware#
Ok, now
cat /jffs/scripts/firewall-start
 
Ok, now
cat /jffs/scripts/firewall-start


admin@RT-N66U:/tmp/mnt/sdb5/asusware# cat /jffs/scripts/firewall-start
#!/bin/sh
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
admin@RT-N66U:/tmp/mnt/sdb5/asusware#
 
Took a screenshot aswell
 

Attachments

  • closed.jpg
    closed.jpg
    20.5 KB · Views: 542
Are you behind another router or something?
Try to change transmission port in settings.json and firewall-start
 
Are you behind another router or something?
Try to change transmission port in settings.json and firewall-start

I changed port in settings.json to 51414, aswell as in /jffs/scripts/firewall-start to 51414. Still says closed oO

No the router is not behind a firewall or another router. I have my 100mbit wan connected directly into the router.
 
Yes, working links on www.asuswrt.eu

On tutorial step 4 wget, it loops with this error:

Code:
$ /opt/bin/wget -c -O /opt/etc/init.d/S95transmission http://goo.gl/cSA0os --no-check-certificate

--2014-10-26 00:36:33--  (try: 6)  https://www.asuswrt.eu/files/transmission/S95transmission
Connecting to www.asuswrt.eu (www.asuswrt.eu)|91.216.151.23|:443... connected.
WARNING: cannot verify www.asuswrt.eu's certificate, issued by `/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Class 1 Primary Intermediate Server CA':
  Self-signed certificate encountered.
HTTP request sent, awaiting response... 200 OK
Length: 3781 (3.7K) [text/plain]
Saving to: `/opt/etc/init.d/S95transmission'

 0% [                                                                                                                                                                                                       ] 0           --.-K/s   in 0s

2014-10-26 00:36:35 (0.00 B/s) - Read error at byte 0/3781 (Invalid argument). Retrying.
 
Yes, working links on www.asuswrt.eu

Suggesting in "S95transmission" script change the disk evaluation loop as follows so it will work with disk labels too; (a router with 2 usb could support 4 low power pocket drives with usb hub in each usb port, thus c & d):
Code:
for i in "a1" "a2" "a3" "a4" "b1" "b2" "b3" "b4" "c1" "c2" "c3" "c4" "d1" "d2" "d3" "d4" ; do
        disk_path=`grep /dev/sd${i} /proc/mounts | awk '{print $2}'`
        if [ -d "${disk_path}" ] && [ ! -z "${disk_path}" ] ; then
                [ -z "${DIR_OK}" ] && DIR_OK="${disk_path}"
                if [ -d "${disk_path}/${REL_DLPATH}" ] ; then
                        DIR_DL="${disk_path}/${REL_DLPATH}"
                        break
                fi
        fi
done
Instead of awk could also use
Code:
cut -d " " -f 2

Then these lines can be uncommented:
Code:
[ ! -d "$DIR_CONF" ] && mkdir -p "$DIR_CONF"
[ ! -d "$DIR_DL1" ] && mkdir -p "$DIR_DL1"
[ ! -d "$DIR_DL2" ] && mkdir -p "$DIR_DL2"
[ ! -d "$DIR_DL3" ] && mkdir -p "$DIR_DL3"
[ ! -d "$DIR_LOG" ] && mkdir -p "$DIR_LOG"
 
Last edited:
I have a problem with Transmission on my RT-AC68U, I decided to reinstall it because the daemon was crashing all the time, but following again the steps i got some errors, of course i removed all the directories from my usb drive before the new installation, but here are the errors i get and were i'm not able to get further with the reinstallation, what's wrong?

admin@RT-AC68U:/tmp/home/root# /opt/bin/wget -c -O /opt/etc/init.d/S95transmission http://goo.gl/VCgvw2 --no-check-certificate
--2014-10-31 02:20:01-- http://goo.gl/VCgvw2
Resolving goo.gl (goo.gl)... 2a00:1450:400c:c05::8a, 85.113.229.170, 85.113.229.174, ...
Connecting to goo.gl (goo.gl)|2a00:1450:400c:c05::8a|:80... failed: Network is unreachable.
Connecting to goo.gl (goo.gl)|85.113.229.170|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://dl.dropboxusercontent.com/u/47669650/RT-N66U/Transmission/S95transmission [following]
--2014-10-31 02:20:01-- http://dl.dropboxusercontent.com/u/47669650/RT-N66U/Transmission/S95transmission
Resolving dl.dropboxusercontent.com (dl.dropboxusercontent.com)... 54.243.53.250, 107.20.198.79, 184.72.235.103, ...
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|54.243.53.250|:80... connected.
HTTP request sent, awaiting response... 302 FOUND
Cookie coming from dropbox.com attempted to set domain to dropbox.com
Cookie coming from dropbox.com attempted to set domain to dropbox.com
Location: https://dl.dropboxusercontent.com/u/47669650/RT-N66U/Transmission/S95transmission [following]
--2014-10-31 02:20:01-- https://dl.dropboxusercontent.com/u/47669650/RT-N66U/Transmission/S95transmission

/opt/bin/wget: symbol '__div0': can't resolve symbol
Connecting to dl.dropboxusercontent.com (dl.dropboxusercontent.com)|54.243.53.250|:443... connected.
WARNING: cannot verify dl.dropboxusercontent.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA':
Unable to locally verify the issuer's authority.
HTTP request sent, awaiting response... 404 Not Found
2014-10-31 02:20:02 ERROR 404: Not Found.

admin@RT-AC68U:/tmp/home/root# chmod 777 /opt/etc/init.d/S95transmission
admin@RT-AC68U:/tmp/home/root# /opt/etc/init.d/S95transmission start
admin@RT-AC68U:/tmp/home/root# /opt/etc/init.d/S95transmission stop
admin@RT-AC68U:/tmp/home/root# chmod 777 /opt/etc/transmission-daemon/settings.json
chmod: /opt/etc/transmission-daemon/settings.json: No such file or directory
admin@RT-AC68U:/tmp/home/root#

I stopped to go on because of this errors.
 
Read again first line

I just copy and paste the output,

This is are the line i run from your guide using telnet from my MacAir:

ipkg update
ipkg upgrade
ipkg install transmission libiconv wget-ssl
/opt/bin/wget -c -O /opt/etc/init.d/S95transmission http://goo.gl/VCgvw2 --no-check-certificate
chmod 777 /opt/etc/init.d/S95transmission
/opt/etc/init.d/S95transmission start
/opt/etc/init.d/S95transmission stop
chmod 777 /opt/etc/transmission-daemon/settings.json
rm -r /opt/etc/transmission-daemon/settings.json
/opt/bin/wget -c -O /opt/etc/transmission-daemon/settings.json http://goo.gl/PIHW2f --no-check-certificate
app_set_enabled.sh transmission yes

I copy the output from the 4th line, something goes wrong with the CA and then is missing the settings.json file, maybe is something changed?
 
Last edited:
I just copy and paste the output,

This is are the line i run usually from your guide using telnet from my MacAir:

ipkg update
ipkg upgrade
ipkg install transmission libiconv wget-ssl
/opt/bin/wget -c -O /opt/etc/init.d/S95transmission http://goo.gl/VCgvw2 --no-check-certificate
chmod 777 /opt/etc/init.d/S95transmission
/opt/etc/init.d/S95transmission start
/opt/etc/init.d/S95transmission stop
chmod 777 /opt/etc/transmission-daemon/settings.json
rm -r /opt/etc/transmission-daemon/settings.json
/opt/bin/wget -c -O /opt/etc/transmission-daemon/settings.json http://goo.gl/PIHW2f --no-check-certificate
app_set_enabled.sh transmission yes

I copy the output from the 4th line, something goes wrong with the CA and then is missing the settings.json file, maybe is something changed?
Working links are on new site
 
Same problem for me!!

Which is the right line command to complete transmission install??

Thanks in advance
 
Same problem for me!!

Which is the right line command to complete transmission install??

Thanks in advance

I follow this link and i could make it work again on my RT-AC68U:

https://www.asuswrt.eu/transmission-on-asuswrt-routers-through-optware/

when I start the transmission daemon from the command-line I get a warning message that it can't create "Transmission" dir due to the ready-only F.S. but still works.
I'd like if there is more troubleshooting about such issues and eventually updates, also the version is stuck on 2.82.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top