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:
Code:
mount -obind /tmp/mnt/disc0_1/opt /opt
The second partition is for swap so I do not mount it.
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:
Code:
mount -obind /tmp/mnt/disc0_3/data /mnt
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.
I did
Code:
ipkg update
ipkg install enhanced-ctorrent
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 with
Code:
\\192.168.1.1\disc0_1$\data
from my Windows PC).
Then I did
Code:
ipkg install /mnt/data/dctcs_0.7.0-1-oleg_mipsel.ipk
and everything went ok.
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):
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/
Then I also opened \\192.168.1.1\disc0_1$\opt\etc\init.d\S90dctcs and checked if it contains:
Code:
start() {
/opt/bin/dctcs
}
and also checked if dctcs is really located in /opt/bin.
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
Code:
/opt/etc/init.d/S90dctcs start
and then in your browser:
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 ). 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