Transmission installed and running on 1.7.1

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

CarpeNoctem
Posts: 51
Joined: Fri Mar 06, 2015 11:15 am

Transmission installed and running on 1.7.1

Post by CarpeNoctem »

Hey folks, wanted to give something back to this amazing community so I thought I could show you how I got Transmission Torrent Client working on my WDR3600 running 1.7.1 latest ispy build.

1. I followed this guide http://wiki.openwrt.org/doc/uci/transmission but I omitted the installation of transmission-cli and transmission-remote due to storage constraints. I decided to install it straight to the router's internal memory and use an external USB as the download destination.

2. Once I managed to succesfully install it, the very useful plugin Services Manager shows the newly installed Transmission service ready to be autostarted if you so desire. I don't, simply because this amazing plugin gives me the freedom to start and stop it whenever i desire, without using unnecessary router resources. If you also have the Services plugin, it should look like so:

Image

3. Now here's the kicker. I knew if I used OpenVPN to connect, I could access the Transmission Web Service without issues. Thing is, I wanted to be able to access it through the DDNS host assigned to my Dynamic IP, and no matter how many rules I tried, I'd always get ERR_CONNECTION_REFUSED. So, I decided to edit the /etc/config/firewall and add the following rule:

Code: Select all

config remote_accept 'transmission'
	option proto 'tcp'
	option zone 'wan'
	option local_port '9091'
	option remote_port '9091'
I restarted the firewall and voilá, I could access my Transmission using the DDNS hostname associated with my Dynamic IP.

Bear in mind, if you plan on doing this, it is essential that you enable the following option either in the transmission or settings.json file:

Code: Select all

"rpc-authentication-required": true,
This enables basic authentication that you can also set up within the same file in the fields

Code: Select all

"rpc-password": "password",
and

Code: Select all

"rpc-username": "username",
Hopes this helps anyone interested in setting up their own torrent client without having to turn on a computer.

Cheers!!

UPDATE: In my case it worked with the rules I added, but if you get no peers, you can always add the following to the firewall script:

Code: Select all

config remote_accept 'transmission_2'
	option proto 'tcpudp'
	option zone 'wan'
	option local_port '51413'
	option remote_port '51413'
Last edited by CarpeNoctem on Mon Mar 09, 2015 4:51 pm, edited 2 times in total.

nworbnhoj
Posts: 916
Joined: Mon Jul 21, 2014 10:08 am
Location: Australia
Contact:

Re: Transmission installed and running on 1.7.1

Post by nworbnhoj »

Great post - thank you! :D
Can you help someone else get Gargoyle up and running?
TL-WDR3600 : Gargoyle 1.9.0 : NBN FixedWireless
TL-WR1043ND-V2 : Gargoyle 1.8.0 : 3G Huawei E160E

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Transmission installed and running on 1.7.1

Post by tapper »

Thanks nice post.
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

CarpeNoctem
Posts: 51
Joined: Fri Mar 06, 2015 11:15 am

Re: Transmission installed and running on 1.7.1

Post by CarpeNoctem »

I should add that when you configure the client, it creates a couple of folders that could fill up the router's internal memory.

What I do to avoid this is edit this line in /etc/config/transmission:

Code: Select all

option config_dir '/tmp/transmission'
And change it to the path of your USB drive. Once you do this, the settings.json file is generated and the Blocklist, torrents and resume folders are created inside of the external drive, keeping your internal memory free.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Transmission installed and running on 1.7.1

Post by ispyisail »

And change it to the path of your USB drive
I didn't manage to find the path

What path did you use

CarpeNoctem
Posts: 51
Joined: Fri Mar 06, 2015 11:15 am

Re: Transmission installed and running on 1.7.1

Post by CarpeNoctem »

Ispy, using Webshell and the output of mount, this is the path I used to generate the settings.json and the additional folders:

Image

Harybald
Posts: 1
Joined: Sat Mar 14, 2015 3:37 am

Re: Transmission installed and running on 1.7.1

Post by Harybald »

Once I managed to succesfully install it, the very useful plugin Services Manager shows the newly installed Transmission service ready to be autostarted if you so desire. I don't, simply because this amazing plugin gives me the freedom to start and stop it whenever i desire, without using unnecessary router resources. If you also have the Services plugin, it should look like so:

https://thetimeposts.com/
casinomagzine.com
solar movies
recipesny.com
Last edited by Harybald on Sat Apr 03, 2021 5:52 am, edited 3 times in total.

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: Transmission installed and running on 1.7.1

Post by ispyisail »

Took me a while to work out how to do it.

I used two USB thumb drives. (have two USB ports on my machine)

Using TL-WDR3600 and Gargoyle 1.6.2

First drive was set up as "Extroot" so I could install all Transmission packages

The second drive is setup as "swap" and "drive storage"

Set the config directory to

Code: Select all

	option download_dir '/tmp/usb_mount/2C7C-7EB9'
to help find the correct directory

Code: Select all

mount 

Code: Select all

root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=63360k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/sda1 on /overlay type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
/dev/sdb1 on /tmp/usb_mount/2C7C-7EB9 type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdb1 on /tmp/share_home/anonymous/share type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
root@Gargoyle:~#
Image

Image

Tip: I had some problems but it the end I fully formatted both drives using a windows machine then all the problem went away. I suspect that gargoyle does not do a full format?

griftopia
Posts: 35
Joined: Sat Mar 28, 2015 9:10 am

Re: Transmission installed and running on 1.7.1

Post by griftopia »

This is pretty cool. I just finished setting up my WD N750 bridge the way I wanted. I read this post. I hooked a USB drive to the router and enabled DLNA. I can watch videos OFF the USB stick on my Samsung TV which has DLNA client support built in !!!

A mini computer, bridge, torrent client, file server all in one !!! Itching to try this weekend. Hope installing transmission not to hard.

Actually, wondering if a simple client could be written to capture streams given a url instead of torrent. that would be more useful to be able to watch things offline.
ISP Provided Router [Irrelevant]
WD MyNetN750 Client Bridge - Garygoyle @ 5.0Ghz Yes !!!

User avatar
Krog
Posts: 47
Joined: Mon May 06, 2013 4:50 pm

Re: Transmission installed and running on 1.7.1

Post by Krog »

:D o great

thanks , if a make a torrent it be very useful
TL-WR-741ND V4.20 -Version 1.9.X
TL-WA-701ND V1.2 - Version 1.9.X
TL-WA-701ND V2.1 - Version 1.9.X
TL-WR-741ND V4.22 X 3 -Version 1.9.X
TL-WR-841ND V8 -Version 1.9.X
TL-WA-901ND V3 - Version 1.9.X

Post Reply