I am no using oleg fw so i dont know the exact answer you should modify your firewall setting either graphically or in the shell with iptables.
Printable View
YOD CTCS works nice for me... when it works :( unfortunately there are times (especially when I add a new torrent) that dctcs just quits and web browser cannot open the page (I am using Oleg f/w on ASUS wl500gp). When I run it again withit works ok. And I like enhanced-ctoreent, it gives me better download than rTorrent and gives me a per-file control (which I miss in transmission).Code:/opt/etc/init.d/S90dctcs start
But as I said there are some problems. Some times when I refresh the page, it does not see the torrents I am downloading. And the most pity is that sudden exit thing.
But anyway - overall this is a simple and clean WebUI, has all the features I need. Thanks a lot to dske and I am looking forward to improvements. Good luck.
Maybe you could suggest do I need ctorrent-args=-a (to preallocate files) and how it will affect my router? Will it help download or maybe it will be too heavy work for the router at the time when ctorrent allocates these files?
is there a very easy step by step guide for this?
because its hard to follow the steps here since there is no step by step guide
Thanks, dske, for reply. I'll leave -a on then. And I will try to not disturb the torrent while it preallocates files, should be more stable, I hope.
Anyway, I 'll try to find some script which monitors running processes and starts dctcs if it is not running, that could help.
@mark_q4xprt
Actually, I miss instructions, too, but it was surprisingly easy to install and configure. I'll try to remember what I did.
At first I assume you have working USB storage attached and working on your router.
I have 3 partitions on one USB HDD. 1st partition contains a root folder /opt.
It gets mounted as /tmp/mnt/disc0_1 and I modified the post-mount script to mount it also to the very root /opt:
The second partition is for swap so I do not mount it.Code:mount -obind /tmp/mnt/disc0_1/opt /opt
The third gets automounted to /tmp/mnt/disc0_3 and I have a folder /data on it so I mount it again in post-mount script:
After that I have installed lots of stuff (experimenting with various torrent clients to find the best for me) but I hope that did not affect the dctcs installation.Code:mount -obind /tmp/mnt/disc0_3/data /mnt
I did
then I went here and downloaded latest "Package for Oleg firmware". I put it in /data folder (I have samba running and can access the share withCode:ipkg update
ipkg install enhanced-ctorrent
from my Windows PC).Code:\\192.168.1.1\disc0_1$\data
Then I did
and everything went ok.Code:ipkg install /mnt/data/dctcs_0.7.0-1-oleg_mipsel.ipk
Then I opened \\192.168.1.1\disc0_1$\opt\etc\dctcs.conf (you can use a free program called Notepad ++, it can load and save Unix files on Windows PC and it has also syntax highlighter, really useful program).
I was a bit confused with the meaning of the settings, especially about what port is for webUI and what is for enhanced-ctorrent, but I sorted it out so I got the following (added some comments from me, maybe dske can correct me if I misunderstood something):
Then I also opened \\192.168.1.1\disc0_1$\opt\etc\init.d\S90dctcs and checked if it contains:Code:#change these according to your system
torrent-directory=/mnt/data/ect/torrent/
download-directory=/mnt/data/ect
#change user name and password
user=secret
password=secret
exit-hours=168
exit-ratio=5.6
cache-size=1
# midix: this means to start enhanced-ctorrent when dctcs starts, so
# the "Running" torrents will really be running again.
restart-torrents=1
download-limit=0
# midix: ctorrent user manual suggests to set some Upload value which
# corresponds your bandwidth. Then ctorrent can make some additional
# adjustments to use your bandwidth more efficiently.
upload-limit=50
#check-interval=0
# midix: this is a port of web-gui, you have to open it with iptables in
# your post-firewall if you want to access your torrents from the Internet
port=8008
#arbitrary arguments to ctorrent
ctorrent-args=-a
#write-stats=1
# midix: the path in my system is the following by default
ctorrent=/opt/bin/enhanced-ctorrent
# midix: address for dctcs communications with ctorrent
# it is used only internally, it has nothing to do with downloading nor
# uploading
# client-host=localhost:15000
# midix: hmm, I have a question for this - does this mean, I can make my
# own webGUI for yoddctcs ?
#htmlroot-directory=/usr/share/dctcs/www/darkside.ctcs.gui/
# midix: I do not have wget (but I am thinking about having it ;) )
#wget=/usr/bin/wget
#arbitrary arguments to wget
#wget-args=-c
#url to prepend in the details box
#detail-url=ftp://192.168.1.1/mnt/disc0_1/
and also checked if dctcs is really located in /opt/bin.Code:start() {
/opt/bin/dctcs
}
I have also \\192.168.1.1\disc0_1$\opt\etc\init.d\rc.unslung script that starts all the other scripts in \\192.168.1.1\disc0_1$\opt\etc\init.d directory (if the name of the script starts with S). BTW, if you have installed many stuff you can disable unneeded things form starting up just by prependidng _ before the Sxxxx file name.
Then you can just do
and then in your browser:Code:/opt/etc/init.d/S90dctcs start
http://192.168.1.1:8008
and you should get to the login page and the just add new torrents. But I suggest you do not disturb YODCTCS some 30 secs or so - it may just quit because ctorrent may get really busy when allocating space and preparing to download.
------------------------------------------------------------
The next thing I will try to access the YODCTCS from my work (we are behind a proxy there but I tried to access transmission WebGUI and it worked fine).
And also it would be great to have a WebGUI that is just a php app which I can put in my SSL enabled site on lighttpd (and modify because I am kinda a programmer too but I prefer something I do not need to compile :D). But I guess it would require much work because of implementing communications between ctorrent and php script. I tried php GUI Torrential but it did not work well and it does not have individual file control for torrents.
Noticed also that YODCTCS forgot my per-file settings - I set to download only some files of the torrent but now I see that those files are completed and ctorrent is downloading ALL the other files - but I did not told him to do so...
P.S.English is not my native so excuse me for some weird things I have said here :D
if you want you can but i did not documented the interface. You can always use the source of course.
yodctcs uses non standard "html" requests so if the proxy only forwards standard requests it wont work.
if ctorrent and dctcs is stoped then the per-file settings is lost (these are not stored permanently)
why does it always says it fails when i try to use the http link?
all it want is to save the .torrent to my desktop and upload it
but unfortunately i encounter this problem
Downloading 0% TRACKER FAILURE REASON: Please redownload the torrent. PID system is active and pid was not found in the torrent
what seems to be the problem here?
i see,
do you happen to know i can set it up to dyndns?
i already input my account info in the router but when i tried to acces its link it loads my modems ip
my modem ip is
192.168.1.1
my asus
192.168.0.1
my pc
192.168.0.2
in the web config i chose to expose 192.168.0.1 so i can acces the dctcs outside
i also tried to simulate just incase of power failure
it seems that its stuck on checking before it was on 50% and now its back to 0%
http://acer.gotdns.com:8008/
admin:admin
these ip addresses are for private networks you can not use them to access the device from "outside"
host acer.gotdns.com
acer.gotdns.com has address 192.168.1.2
this is wrong you need to figure out the "public ip address"
i dont use oleg fw, but ifconfig should work:
you will see something like:
you should find something like in the above example: inet addr:89.135.XXX.XXXCode:root@OpenWrt:~# ifconfig
.....
eth0 Link encap:Ethernet HWaddr 00:1B:FC:45:27:13
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:27819194 errors:0 dropped:0 overruns:0 frame:0
TX packets:25154007 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3716665059 (3.4 GiB) TX bytes:3513070839 (3.2 GiB)
Interrupt:4
....
eth0.1 Link encap:Ethernet HWaddr 00:50:22:9F:FB:CD
inet addr:89.135.XXX.XXX Bcast:255.255.255.255 Mask:255.255.248.0
....
and set it up with dyndns anyway on the "add new hostname" page dyndns will auto detect the ip.
[admin@WL-500G root]$ ifconfig
br0 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12902 errors:0 dropped:0 overruns:0 frame:0
TX packets:20951 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1729578 (1.6 MiB) TX bytes:10817755 (10.3 MiB)
eth0 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59040 errors:0 dropped:0 overruns:0 frame:0
TX packets:65969 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22926548 (21.8 MiB) TX bytes:21732733 (20.7 MiB)
Interrupt:4 Base address:0x1000
eth1 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:120
TX packets:12451 errors:57 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:2767108 (2.6 MiB)
Interrupt:12 Base address:0x2000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:14828 errors:0 dropped:0 overruns:0 frame:0
TX packets:14828 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1242894 (1.1 MiB) TX bytes:1242894 (1.1 MiB)
vlan0 Link encap:Ethernet HWaddr 00:1B:FC:91:7A:EB
inet6 addr: fe80::21b:fcff:fe91:7aeb/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12903 errors:0 dropped:0 overruns:0 frame:0
TX packets:26768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1781279 (1.6 MiB) TX bytes:11273875 (10.7 MiB)
vlan1 Link encap:Ethernet HWaddr 00:1D:6A:04:16:FF
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21d:6aff:fe04:16ff/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46137 errors:0 dropped:0 overruns:0 frame:0
TX packets:39198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
ive already updated the ip on dyndns but it doesnt work, but when i type my ip http://121.96.138.174:8008 it does work but it is the same ip on the dyndns, im wondering why it doesnt refer to acer.gotdns.com account
im really confused, acer.gotdns.com refers to the modem mtx not the wl 500gp here on my end :confused:
http://img297.imageshack.us/img297/2149/mt88es6.jpg