Setting up Transmission through Entware

bmn1

Senior Member
Hi.

Glad to be a member now in this wonderful forum.

I'm currently using Asus RT-N66U as my router and having Transmission Remote GUI as my torrent manager. I have two questions.

1. How do I set my path mappings in Transmission Remote GUI if my torrent folder
directories go like these, just as what the installation guide said,

/mnt/sda1/Torrent/Completed
/mnt/sda1/Torrent/Incomplete
/mnt/sda1/Torrent/Watch

I can see all these directories in Windows Explorer of my PC under "Network/RT-
N66U/Torrent/" with my torrent files.

I tried in vain in getting to "open containing folder" of my running torrents but
always got the "Unable to find path mapping" prompt.


2. I currently have Transmission 2.83. How do i get to 2.84 as this is already
available from its website? Tried to do "opkg update" and "opkg upgrade" but
nothing changes.
1. Try "/mnt/sda1/=\\RT-N66U" without the quotation marks, and make sure that the storage is mounted as sda1 or whatever you type there.

2. The reason opkg upgrade doesn't upgrade you to 2.84 is because it has not been compiled and added to the entware repository yet. Only entware maintainers can do that. If you still need 2.84 you'll have to compile it yourself; see: https://code.google.com/p/wl500g-repo/source/browse/trunk/INSTALL
 

troscat

New Around Here
1. Try "/mnt/sda1/=\\RT-N66U" without the quotation marks, and make sure that the storage is mounted as sda1 or whatever you type there.

2. The reason opkg upgrade doesn't upgrade you to 2.84 is because it has not been compiled and added to the entware repository yet. Only entware maintainers can do that. If you still need 2.84 you'll have to compile it yourself; see: https://code.google.com/p/wl500g-repo/source/browse/trunk/INSTALL

path mapping still not working as suggested. made sure usb storage is mounted as sda1.
 

noric

Senior Member
I'm trying to setup email notifications as per this guide, but something goes wrong.
In particular the script isn't working: if I execute it via telnet it returns that /tmp/tmail.txt doesn't exist. I've then changed the path (in the script) of the tmail.txt file to the root of my usb hdd, so that I can see if the file is created.
Then I browsed (through Network Places) to that directory and this way I saw that instead of tmail.txt another file with a silly name is created ("TH8BKS~H", with no extension). The strange thing however is that if via telnet I type "ls" in that directory I see that the file is actually called tmail.txt (i.e. the correct name)! :confused:
I can open this file with notepad++ and its content is what it is supposed to be (the text of the email). However if I open it with "vi" it appears empty (I've tried both of the filenames)! :eek:

Could anyone please give me a hint? :eek:
 

armand

Occasional Visitor
are you sure the filename isn't .tmail.txt, with a leading dot because if it is, it's hidden file under unix
 

noric

Senior Member
No, it's that stupid name. It's not hidden. I have a little knowledge about bash scripts, but I can't figure this out. :mad:
 

noric

Senior Member
I'm trying to setup email notifications as per this guide, but something goes wrong.
In particular the script isn't working: if I execute it via telnet it returns that /tmp/tmail.txt doesn't exist. I've then changed the path (in the script) of the tmail.txt file to the root of my usb hdd, so that I can see if the file is created.
Then I browsed (through Network Places) to that directory and this way I saw that instead of tmail.txt another file with a silly name is created ("TH8BKS~H", with no extension). The strange thing however is that if via telnet I type "ls" in that directory I see that the file is actually called tmail.txt (i.e. the correct name)! :confused:
I can open this file with notepad++ and its content is what it is supposed to be (the text of the email). However if I open it with "vi" it appears empty (I've tried both of the filenames)!

Could anyone please give me a hint? :eek:

Forget it, it was the txt format (not UNIX). I was editing it with notepad++, so I couldn't notice it wasn't UNIX format. :mad:

However, there's one more thing I'd like to point out. I've needed to change the line
Code:
echo "From: \\"$FROMNAME\\"<$FROM>" >>/tmp/tmail.txt
to
Code:
echo "From: \"$FROMNAME\"<$FROM>" >>/tmp/tmail.txt

Id est, I deleted one backslash. With two of them it wasn't showing the $FROMNAME in the mail I receive.

The last thing, the guide doesn't mention that you need to make the script executable with:
Code:
chmod a+rx /jffs/scripts/*
That should be obvious, but let's help linux noobs. :eek:
 

kamil

New Around Here
Hi I'm totally newby in command line and unix os.
I have ac68u and wdmycloud and I need to save files from Transmission to this network hard drive. Probably by SMB protocole, but I havent idea how to make it. Your instruction was for shared folder on pc, but how to make it with LAN hard drive? Please help me.
 

ryzhov_al

Very Senior Member
I'm tired to wait script-torrent-added implementation in newer versions and added it to Entware package. Now you can call some script after torrent has been added.

As for me, I'm using it to add some trackers automatically, which can be handy for dead torrents. You'll get following syslog messages after adding torrent:
Code:
Mar 4 13:39:50 tr_added.sh: Adding http://retracker.krs-ix.ru:80/announce to debian-8.3.0-amd64-CD-1.iso
Mar 4 13:39:50 tr_added.sh: Adding http://explodie.org:6969/announce to debian-8.3.0-amd64-CD-1.iso
Mar 4 13:39:50 tr_added.sh: Adding http://mgtracker.org:2710/announce to debian-8.3.0-amd64-CD-1.iso
Mar 4 13:39:50 tr_added.sh: Adding http://tracker.aletorrenty.pl:2710/announce to debian-8.3.0-amd64-CD-1.iso
Mar 4 13:39:50 tr_added.sh: Adding http://tracker.bittorrent.am/announce to debian-8.3.0-amd64-CD-1.iso
or another, if you are out of luck:)
Code:
Mar 4 13:24:52 tr_added.sh: No additional trackers found for debian-8.3.0-amd64-CD-2.iso, sorry.
 

beady_uk

Occasional Visitor
Can someone tell me why my ram fills up to about 90% then my transmission speed drops right off and the ram empties itself. Then transmission speeds back up, ram slowly fills back up and repeats?

Router = RT-AC3200
Firmware = Merlin 380.58
USB HDD = USB2 250GB

Thanks
 

L&LD

Part of the Furniture
Can someone tell me why my ram fills up to about 90% then my transmission speed drops right off and the ram empties itself. Then transmission speeds back up, ram slowly fills back up and repeats?

Router = RT-AC3200
Firmware = Merlin 380.58
USB HDD = USB2 250GB

Thanks

The router and os are working as expected. Try decreasing the amount of connections the router (and transmission) can make when torrenting if you want more steady performance.
 

beady_uk

Occasional Visitor
I have set up transmission using Merlin's wiki guide which doesn't mention creating a swap file.
But this guide mentions creating a swap file.

Is this problem with ram filling up not related to the swap file?

Or is the swap file from the entware installation being used?

Thanks
 

Zirescu

Very Senior Member
Possible shot in the dark, but is it possible you're getting more data throughput than can be written to disk?
 

beady_uk

Occasional Visitor
Possible shot in the dark, but is it possible you're getting more data throughput than can be written to disk?

I originally thought that but my fibre connection maxes out at 4MB/s and USB2 should easily handle that so i dont think that is the issue. I could be wrong though.
 

kvic

Part of the Furniture
I'm tired to wait script-torrent-added implementation in newer versions and added it to Entware package. Now you can call some script after torrent has been added.

As for me, I'm using it to add some trackers automatically, which can be handy for dead torrents.

When I thought of the need of such an event trigger, I saw a patch people have been discussing for years but not included in the mainstream. When I was about to patch my Entware installation, found the patch was already included in the latest release which I happened to accidentally update a few days before. Amazing work! Amazing user experience..

I use script-torrent-add to add firewall rules to open up the peer listening port.
 

Whateverguy

New Around Here
For some reason, Transmission won't install its files in /opt/etc . I've installed joe, nano, fake-hwclock, and dnscrypt-proxy packages just fine but files like
/opt/etc/init.d/S88transmission don't exist. The only transmission related thing I can find on my flash drive via FTP is the folder /opt/share/transmission (and its contents). I've tried this with the flash drive formatted as ext2, and ext3. No errors show up during installation. Nothing shows up in the system log accessed by the WebUI. I installed entware by using the "entware-setup.sh" script. I installed transmission with these instructions: https://github.com/RMerl/asuswrt-merlin/wiki/Installing-Transmission-through-Entware but had to stop due to not having those files. Anybody know anything about this?
 

Zirescu

Very Senior Member
Do you see them if you ssh or telnet to that directory on your flash drive?
 

Whateverguy

New Around Here
Do you see them if you ssh or telnet to that directory on your flash drive?
Nope.
Code:
[email protected]:/tmp/home/root# opkg install transmission-web
Installing transmission-web (2.92-3) to root...
Downloading http://pkg.entware.net/binaries/mipsel/transmission-web_2.92-3_mipselsf.ipk.
Configuring transmission-web.
[email protected]:/tmp/home/root# ls /opt/etc/init.d
S01fake-hwclock  S09dnscrypt-proxy  rc.func  rc.unslung
 

Zirescu

Very Senior Member
That's odd, what firmware version are you running?
This should be the contents of S88transmission:
#!/bin/sh

ENABLED=yes
PROCS=transmission-daemon
ARGS="-g /opt/etc/transmission"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

TRANSMISSION_WEB_HOME="/opt/share/transmission/web"

. /opt/etc/init.d/rc.func


Files in transmission directory:

drwxr-xr-x 2 admin root 4096 Mar 24 00:03 blocklists
-rw------- 1 admin root 376 Aug 6 15:41 dht.dat
drwxr-xr-x 2 admin root 4096 Jul 18 15:23 resume
-rw------- 1 admin root 2552 Aug 6 15:41 settings.json
-rw------- 1 admin root 2234 Mar 24 00:03 settings.json-opkg
-rw------- 1 admin root 159 May 9 11:47 stats.json
drwxr-xr-x 2 admin root 4096 Jul 18 15:23 torrents
drwxr-xr-x 2 admin root 4096 Mar 24 00:03 watchdir
 

Whateverguy

New Around Here
That's odd, what firmware version are you running?
This should be the contents of S88transmission:
#!/bin/sh

ENABLED=yes
PROCS=transmission-daemon
ARGS="-g /opt/etc/transmission"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

TRANSMISSION_WEB_HOME="/opt/share/transmission/web"

. /opt/etc/init.d/rc.func


Files in transmission directory:

drwxr-xr-x 2 admin root 4096 Mar 24 00:03 blocklists
-rw------- 1 admin root 376 Aug 6 15:41 dht.dat
drwxr-xr-x 2 admin root 4096 Jul 18 15:23 resume
-rw------- 1 admin root 2552 Aug 6 15:41 settings.json
-rw------- 1 admin root 2234 Mar 24 00:03 settings.json-opkg
-rw------- 1 admin root 159 May 9 11:47 stats.json
drwxr-xr-x 2 admin root 4096 Jul 18 15:23 torrents
drwxr-xr-x 2 admin root 4096 Mar 24 00:03 watchdir

I'm running 380.61. Also, I don't know what to do with that information.
 

Similar threads

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