PDA

Bekijk de volledige versie : Web gui for ctorrent - YODCTCS



dske
09-11-2007, 22:53
Hi

i wrote a web interface to manage torrent downloads on my asus wl500gp with openwrt. It can
Upload/Delete torrent files
Pause/Resume/Stop/(Re)Start downloads
Display information of torrents
Manage global upload/download speed

if you are interested have a look:

ctorrent gui (YODCTCS) (http://yodctcs.googlepages.com/)
(i made Kamikaze and Whiterussian packages).

dske
18-11-2007, 18:56
a new release available, changelog:

# completely rewritten gui and logo thanks to PETMEN
# in the details dialog file names can be links (--detail-url option)
# torrent files can be downloaded from given url
# added option to delete downloaded data
# added option --ctorrent-args, --detail-url

lyka
21-11-2007, 15:32
http://yodctcs.googlepages.com/

here you can find a preview page
http://dsctorrentcontrol.googlepages.com/gui.html#auth
just click ok without user or pass.

Do you think that could work on oleg firmware?

dske
03-12-2007, 20:09
a new version available, the changelog:
# Version 0.5.7 - 03/12/2007

* support for CTCS protocol v3
* more info about torrents (total/seed time average upload/download speed displayed against currently running torrents)
* free disc space (in download-directory) can be shown
* usage statistics can be shown
* added option --write-stats
* bugfix: refresh of browser no longer causes limits to be -1

i also made package for Oleg's firmware, but i can not test it so any feedback appreciated.

mee0093
09-12-2007, 11:54
Hello dske

our member at http://wl500gp.sirikasedpan.com/ has tried yodctcs (dctcs_0.5.7-1_mipsel-oleg.ipk )

after he commanded

/opt/etc/init.d/S90dctcs start

it showed


/opt/etc/init.d/S90dctcs: /opt/etc/init.d/S90dctcs: 34: /usr/bin/dctcs: not found

i think because some path is wrong, so i suggested him to modify someline in ]/opt/etc/init.d/S90dctcs

from /usr/bin/dctcs to /opt/bin/dctcs

he still do not tell me the result, but i not sure do i have to modify further more?? such as these line in dctcs.conf


#port=8080

#arbitrary arguments to ctorrent
#ctorrent-args=-a
#url to prepend in the details box
#detail-url=ftp://192.168.1.10/tmp/harddisk/

#write-stats=1
#ctorrent=/usr/bin/ctorrent
#client-host=localhost:15000
#htmlroot-directory=/usr/share/dctcs/www/darkside.ctcs.gui/

thanks

mee

dske
09-12-2007, 18:42
hello,



i think because some path is wrong, so i suggested him to modify someline in /opt/etc/init.d/S90dctcs

from /usr/bin/dctcs to /opt/bin/dctcs


oops, i forgot that one, i will correct it. I dont know the path of ctorrent the default is /usr/bin/ctorrent if it is different on oleg then this should be modified too. Please let me know the result to correct it in the package, thanks in advance.

mee0093
09-12-2007, 19:15
hello,


oops, i forgot that one, i will correct it. I dont know the path of ctorrent the default is /usr/bin/ctorrent if it is different on oleg then this should be modified too. Please let me know the result to correct it in the package, thanks in advance.

thanks for your response (^_^) , i will tell you when he tell me the result ASAP.

i have some questions, which bit-client that you use ctorrent or enhanced-ctorrent, due to your last post "I dont know the path of ctorrent the default is /usr/bin/ctorrent ".

the path of enhanced-ctorrent is /opt/bin/

dske
10-12-2007, 07:53
thanks for your response (^_^) , i will tell you when he tell me the result ASAP.

i have some questions, which bit-client that you use ctorrent or enhanced-ctorrent, due to your last post "I dont know the path of ctorrent the default is /usr/bin/ctorrent ".

the path of enhanced-ctorrent is /opt/bin/

thank you for the information. i am using enhanced-ctorrent. (the package and executable name is ctorrent so i was lazy to write enhanced :) )

mee0093
10-12-2007, 11:54
thank you for the information. i am using enhanced-ctorrent. (the package and executable name is ctorrent so i was lazy to write enhanced :) )

about /usr/bin/dctcs problem, he said the problem still persists ???.

about package name, in oleg firmware package and executable name is enhanced-ctorrent not ctorrent :eek:;

johnny01
10-12-2007, 22:21
Hi
I see your Web Gui and it look very nice so I installed. I change the path in /opt/etc/init.d/S90dctcs from /usr/bin/dctcs to /opt/bin/dctcs but now I have the folowing error "configfile /etc/dctcs.conf: No such file or directory".
I also try to start the app using the folowing line
"/opt/bin/dctcs -c /opt/etc/dctcs.conf" but I receive the same error
configfile /etc/dctcs.conf: No such file or directory
bind client port: Address already in use

Also I modify in dctcs.conf the ctorrent=/opt/bin/enhanced-ctorrent to point to enahanced-ctorrent instead of ctorrent.

What I did wrong ?

Thanks
Johhny

dske
11-12-2007, 08:46
Hi
I see your Web Gui and it look very nice so I installed. I change the path in /opt/etc/init.d/S90dctcs from /usr/bin/dctcs to /opt/bin/dctcs but now I have the folowing error "configfile /etc/dctcs.conf: No such file or directory".
I also try to start the app using the folowing line
"/opt/bin/dctcs -c /opt/etc/dctcs.conf" but I receive the same error
configfile /etc/dctcs.conf: No such file or directory
bind client port: Address already in use

Also I modify in dctcs.conf the ctorrent=/opt/bin/enhanced-ctorrent to point to enahanced-ctorrent instead of ctorrent.

What I did wrong ?

Thanks
Johhny
thanks for the comments, this is the first release for Oleg fw and i can not test it so sorry for the problems hopefully the next release will correct these.

the "address already in use" message is the problem because another dctcs is running (with wrong configuration) so you must stop it first. you should start it with the -c option. the /etc/dctcs.conf is the default so it will try to load it anyway therefore the error message (if the file given with -c is wrong you will get additional error messages)

dske
16-12-2007, 11:43
Hi all, a new version is available.
# Version 0.6.0 -16/12/2007

* torrents can be started in paused state
* added hotkeys support
* small code cleanup
* added support for logging
* added new option -v
* added support to download selected files only (requires clients with protocol 3)
* bugfix: in detail dialog the sum value is now refreshing
* bugfix: modify paths in package for Oleg firmware
* bugfix: avreage download speed calculation not includes seedtime

dske
24-12-2007, 13:48
New relase for Christmas :)

# Version 0.6.1 - 24/12/2007

* save settings made by gui (download, upload limits)
* added support for translation
* bugfix: missing config file entry ctorrent-args is no longer resulting unstartable downloads

LucyJungz
29-12-2007, 06:23
Hi dske

Thank you for your great work!!:)

i have some problems
( my english is bad:( )
-when i'm downloading some torrent will automatic stop
(i sure ratio and seed hour less than i config )

-when i config this code
ctorrent-args=-a to ctorrent-args=-f

it can resume torrent but some torrent,that isn't finished has problem
(i suppose this file is downloading 41% when i stopped and resumed it then status is seeding )

what does "ctorrent-args " use for ??

dske
29-12-2007, 08:49
-when i'm downloading some torrent will automatic stop
(i sure ratio and seed hour less than i config )

i am currently invetigating this problem, but it seems it is in ctorrent (maybe in uclibc?) i compiled the svn version of enhanced-ctorrent against libstdc++ libs and so far i did not experienced this problem. try to start enhanced-ctorrent in screen (even without ctcs control) and watch the last message for me this is "Floating point exception".



-when i config this code
ctorrent-args=-a to ctorrent-args=-f

it can resume torrent but some torrent,that isn't finished has problem
(i suppose this file is downloading 41% when i stopped and resumed it then status is seeding )

what does "ctorrent-args " use for ??
is this torrent stopped normally or accidentaly? if it stopped normally then it is strange.
ctorrent-args is used for give arbitrary command line arguments to enhanced-ctorrent when you start them. if it does not work it is hardly the problem of dctcs.

thank you for your comments.

dske
05-01-2008, 16:13
Hi all, here is a new version!

changelog:
# Version 0.6.2 - 05/01/2008

* details dialog shows the size of stopped torrents and links to their directories
* translated versions can customize hotkeys
* added error reporting (in most cases)
* code cleanup
* bugfix: no more untranslated_key messages (in case of correct properties files)
* bugfix: corrected typo in messages.properties

lyka
08-01-2008, 21:34
can you consider adding a feature to batch add torrent (paused or started)?

would be nice if yodctcs could check a folder for .torrent file and add them automagically paused, just like transmission.

dske
09-01-2008, 08:49
can you consider adding a feature to batch add torrent (paused or started)?

would be nice if yodctcs could check a folder for .torrent file and add them automagically paused, just like transmission.

it checks the torrent-dir when it is started so this could be extended to check it regularly. i put it on the todo list.

dske
13-01-2008, 18:16
hi all!
new relase available, mostly bugfixes:
# Version 0.6.3 - 13/07/2008

* added option: check-interval check the torrent-directory for new .torrent files and add them automatically
* downloading from submited url now honors the Content-disposition header (filename should be what the server suggests)
* bugfix: added error message if the messages.properties file not found for the specified locale
* bugfix: fixed size problems with details dialog
* bugfix: '\' character in torrent name no longer prevents it to be displayed

lyka
18-01-2008, 17:02
Thanks for you work. I really appreciate it.

I'm going to update.


p.s. If possible i would give you another advice. To let our share be more clear and easy to check, would be nice if completed torrent would go to another folder or if completed torrent have a mark on their names...

example:
/myfolder/seeding-torrentfileorfoldercompleted1
/myfolder/seeding-torrentfileorfoldercompleted2
/myfolder/downloading-torrentfileorfoldercompleted3
/myfolder/downloading-torrentfileorfoldercompleted4
/myfolder/paused-torrentfileorfoldercompleted5

This semplify the post-download cleaning.

dske
20-01-2008, 09:14
Thanks for you work. I really appreciate it.

I'm going to update.

thanks.



p.s. If possible i would give you another advice. To let our share be more clear and easy to check, would be nice if completed torrent would go to another folder or if completed torrent have a mark on their names...


feature requests and bug reporst are always welcome but i am not interested in this one (at least for the moment).

andyqp
02-02-2008, 21:36
Hi,
I almost missed this nice software... I've installed it first in Kamikaze, tried to connect to it using Firefox 3 beta 2, but it reported that the web site is not available. Checked netstat, firewalls but found no problem. So I just used plain enh-ctorrent with screen there.
Then I had to switch to Oleg's firmware (due to the Kamikazes problem with HDD transfers). I tried yodctcs build for oleg's firmware then, but got the same results. And then luckily I tried to connect to it using IE7. And that worked.
So, is this Firefox's problem (it's beta, so...) or something else?

(BTW, the oleg's package installed ctorrent as a dependency. Was that neccessary? I've removed it and everything seems to be working anyway)

Thanks,
Andris

dske
03-02-2008, 09:27
Then I had to switch to Oleg's firmware (due to the Kamikazes problem with HDD transfers). I tried yodctcs build for oleg's firmware then, but got the same results. And then luckily I tried to connect to it using IE7. And that worked.
So, is this Firefox's problem (it's beta, so...) or something else?

(BTW, the oleg's package installed ctorrent as a dependency. Was that neccessary? I've removed it and everything seems to be working anyway)

Thanks,
Andris
Hi,

i tested yodctcs with ie6/7 and firefox 2.x. Now i tried out with
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b2) Gecko/2007121016 Firefox/3.0b2
and it worked fine, maybe it is because the beta state but i dont expect the error "cant connect to site".
On oleg fw the dependency should be enhanced-ctorrent i will fix it in the next release.
Thanks for the comments.

andyqp
03-02-2008, 11:19
maybe it is because the beta state but i dont expect the error "cant connect to site"
Thanks for the replay and sorry about the false alarm: the problem is in firewall software that I am using. Disabling it does the trick. I've not checked configuration and logs yet, however, it is interesting that the problem manifested itself only on firefox - IE7 and Opera both worked fine...
Anyway, this is not YODCTCS problem here.

Thank you for your time!

dske
10-02-2008, 19:34
A long awaited new version is finally available:
# Version 0.7.0 - 10/02/2008

* support for tracking wget downloads
* added option: wget and wget-args
* bugfix in gui selection handling
* added favicon.ico
* code cleanup

(translations have to be updated)

bb11
09-03-2008, 08:00
Dear All,

it is possible to move the earlier downloaded torrent from my computer to YODCTCS for seeding?
I use wl-500GP and Oleg firmware.

Other question:
If I reboot my router stop every torrent in YODCTCS. I must restart manualy. How could I starting automaticaly.

THX

(sorry but I am a total beginers in Linux world, with some experience with dos)

dske
09-03-2008, 09:47
Dear All,

it is possible to move the earlier downloaded torrent from my computer to YODCTCS for seeding?
I use wl-500GP and Oleg firmware.

yes. copy the downloaded data to your
download-directory
and if
check-interval
is not zero then the torrent file to
torrent-directory
if check-interval is zero then upload the torrent file via gui.



Other question:
If I reboot my router stop every torrent in YODCTCS. I must restart manualy. How could I starting automaticaly.

THX

(sorry but I am a total beginers in Linux world, with some experience with dos)

set
restart-torrents=1
in the configfile

particleman
20-03-2008, 04:56
Does anyone know a way to change the listen port range for ctorrent when using YODCTCS? The default port range for enhanced-ctorrent is 2106-2706 but you you were to specify a -p 6881 in the command line of YODCTCS wouldn't all your ctorrent instances try to run on 6881 and not work? Also the -p switch is used for the port yodctcs uses for it's web ui to compound the confusion.

Anyways how would you specify a port range for ctorrent when using yodctcs?

I've also noticed that when checking my active connections and the service names, none of them come up on the default ctorrent listen port range of 2106-2706. When I use utorrent from a workstation I see a huge number of connections on port 6881 or whatever port I specify, this isn't the case when I use ctorrent.

dske
20-03-2008, 16:45
Does anyone know a way to change the listen port range for ctorrent when using YODCTCS? The default port range for enhanced-ctorrent is 2106-2706 but you you were to specify a -p 6881 in the command line of YODCTCS wouldn't all your ctorrent instances try to run on 6881 and not work? Also the -p switch is used for the port yodctcs uses for it's web ui to compound the confusion.

Anyways how would you specify a port range for ctorrent when using yodctcs?


at first a quote from enhanced-ctorrent user's guide:


-p port Listen port. (default 2706 -> 2106)

Specify the TCP port number on which to listen for incoming connections. By default, CTorrent starts at 2706 and searches for an available port in decreasing order until it finds one or exhausts all ports down through 2106. The behavior with this option is similar, but starting at the specified port number.

so the -p option can work.
there is no confusion between the two -p options

you can start dctcs like:
dctcs --ctorrent-args "-p 6881"
or
dctcs -- -p 6881
or you can set in the config file:
ctorrent-args=-p 6881

particleman
20-03-2008, 21:43
But by specifying a single port, won't all instances of ctorrent end up trying to use the same port? If you specify -p 6881 and 6881 is already being using by another instance of ctorrent, does it automatically use 6880 even though you only specified -p 6881? When you are running ctorrent over the command line this wouldn't be an issue with multiple torrents because you would already know you used 6881 on a previous torrent so you would type a different torrent for your next one. But when you specify it in your options in dctcs you are only specifying one port.


From: http://ctorrent.sourceforge.net/?action=started
"If this port is taken, it will try all ports down to TCP 2106 until it finds a free port. It's recommended to open the full portrange (TCP 2106-2706) if you are planning on running multiple instances of CTorrent on the same machine!"


at first a quote from enhanced-ctorrent user's guide:

so the -p option can work.
there is no confusion between the two -p options

you can start dctcs like:
dctcs --ctorrent-args "-p 6881"
or
dctcs -- -p 6881
or you can set in the config file:
ctorrent-args=-p 6881

dske
21-03-2008, 15:08
But by specifying a single port, won't all instances of ctorrent end up trying to use the same port?



quote from enhanced-ctorrent user's guide:


-p port Listen port. (default 2706 -> 2106)
Specify the TCP port number on which to listen for incoming connections. By default, CTorrent starts at 2706 and searches for an available port in decreasing order until it finds one or exhausts all ports down through 2106. The behavior with this option is similar, but starting at the specified port number.


you should try it.

pripps
24-03-2008, 00:35
Hello

I do not understand how to run it.
I installed both ctorrent and your package in /mnt/usb.

What is url of the gui?

KR

dske
24-03-2008, 07:36
first you have to modify
/etc/dctcs.conf

torrent-directory=/mnt/disc0_1/torrent/
where to put torrent files

download-directory=/mnt/disc0_1/
where to store the downloaded data

username and password
user=
password=

then start with
/opt/bin/dctcs
or
/usr/bin/dctcs
depending the fw you are using.
url: http://your-router-ip:18000

pripps
24-03-2008, 11:39
Thanks,
The gui started up one time but I had the wget error when I tryed to upload the saved torrent file. Then I restarded the browser and gui did not started.
Any tips?

KR

dske
24-03-2008, 15:22
Thanks,
The gui started up one time but I had the wget error when I tryed to upload the saved torrent file. Then I restarded the browser and gui did not started.
Any tips?

KR

I dont know what did you try to do. What wget error? why do you need wget to upload the saved torrent file? (anyway if you want to use wget you really need wget busybox is not enough)

michibahn
03-04-2008, 00:54
i cannot access my YoDCTCS gui (http://mydyndns.account:18000) through WAN. SSH, and WL500gp GUI is working fine. I've set the ports in the Virtual Server settings already same way I did for the Asus GUI and SSH....

i tried SCTCS (http://mydyndns.account:8080) and it works fine but i want YoDCTCS more so I need your help.

thanks

dske
03-04-2008, 16:53
i cannot access my YoDCTCS gui (http://mydyndns.account:18000) through WAN. SSH, and WL500gp GUI is working fine. I've set the ports in the Virtual Server settings already same way I did for the Asus GUI and SSH....

if you are using a proxy server then it might be a problem (it have to forward non standard http reequests) and also the browser could be the problem i only tested firefox and ie.

javitxusan
02-05-2008, 08:44
Hi!
(First at all: sorry by my bad english, and my poor linux ;-)

I've just install both ctorrent and torrent....but , where is and How to install dctcs?
I'm looking everywhere and I cant found how to install it (I think this is previous step to install yodctcs).

(pliz be gentl, I´m only followin´the WENGI tut to change to .10 Oleg's firmware (openwrt dont work at first try), I can understand the inux steps but are so many years in windows jail )

TOA

EDit: Ok. I think it's installed. I'm tryin' to run it.
New EDIT (again X-) : OK, the first screnn. but I'm having the "Authentication failed!" problem (and I'm connecting directly, there is no proxy). Any Ideas?

dske
03-05-2008, 09:15
What kind of browser do you use? ff and ie are tested. did you set up correctly the dctcs.conf? (user/pass)

javitxusan
03-05-2008, 16:40
Hi
FF 3 beta5 & FF2 and iE7. And Yes, I configure DCTCS to wright dirs and test with diferent user and pass (including empty one)
TOA.

dske
03-05-2008, 17:06
Hi!

Please, start dctcs with -v -v -v options and send me the logs.

chris_perry
04-05-2008, 22:28
Hi,
I'm sorry for this question, but I'm new to linux :-) I have yodctcs and it used to start automatically. But recently I made new clean installation and I don't know how to configure it to start on router startup. Can you help me? Thanx.

chris_perry
04-05-2008, 22:51
I'm sorry. The file rc.unslung wasn't created properly. It is working now.

javitxusan
06-05-2008, 01:28
Hi again
what log?
Can anyone post a full running dctcs.conf and a torrent.conf? only to take references (thats because the values not documented). Maybe I'm missunderstandin' the meanin of certain variables...

TOA for the help.

Edit: Ok. Now its working (only need to re-install)
This is the dctcs.conf


#sample config file

#change these according to your system
torrent-directory=/tmp/harddisk/torrent
download-directory=/tmp/harddisk/compartidos

#change user name and password
user=me
password=just

exit-hours=168
exit-ratio=5.6
cache-size=1
restart-torrents=0

download-limit=350
upload-limit=35

check-interval=180

port=23000

#arbitrary arguments to ctorrent
#ctorrent-args=-a

#url to prepend in the details box
detail-url=ftp://192.168.1.1/tmp/harddisk/compartidos

#arbitrary arguments to wget
#wget-args=-c

#write-stats=1
#ctorrent=/opt/bin/ctorrent
client-host=localhost:22000
htmlroot-directory=/opt/share/dctcs/www/darkside.ctcs.gui/
wget=/opt/bin/wget

and this is the ctorrent.conf:


##
# Configuration
# NOTE: no spaces around the = sign
# the config will be sourced (eg. . torrent.conf)


SOURCE=/tmp/harddisk/torrent/source
WORK=/tmp/harddisk/torrent/work
TARGET=/tmp/harddisk/torrent/target
MAILTO=
MAILFROM=
# default MAILER is mini_sendmail
MAILOPT="-javitxusan.dnsalias.com -f"
USER=admin
GROUP=root
DATE_FORMAT="%d %h %H:%M"

# btget port range environment
BTLIB_MINPORT=21500
export BTLIB_MINPORT
BTLIB_MAXPORT=22000
export BTLIB_MAXPORT
#time between logs
LOG_TIME=59

# Seed torrent after completition (YES or NO)
AUTOSEED="YES"


#Colors for command line. # comment out if not needed
GREEN="\033[32;1m"
#NC="\033[0m"
#BACK_UP="\033[1K\033[0G"
NORMAL="\033[0m"
WARN="\033[33;1m"
BAD="\033[31;1m"
BOLD="\033[1m"
GOOD="\033[32;1m"


Its something wrong ?
I´ve just uploaded 2 torrents (1 of them with more than 1000 seeders) but down speed its from 0.5 to 4.5 KB/s (just in the torrent with less seeders, the other dont move)...

Now. I tried to delete the static one... first I stopped. then hide the active and show the stopped torrents. After that, I´ve selected the torrent and delete it. Only thing I had was both torrent out from list and a message: "error getWgetDownloads".
....
Ok. don't worry..
I´ve stopped ctorrent (and remove it) , re-installed (again) the dctcs, and delete files from torrents.
...
And now what I have are 2 torrents in the STOPPED list but I cant start'em...
all test in both FF and IE.
Any ideas??

dske
06-05-2008, 17:15
the log what dctcs creates via syslog.



root@OpenWrt:~# cat /etc/dctcs.conf
#sample config file with compiled in default values

#change these according to your system
torrent-directory=/mnt/disc0_1/torrent/
download-directory=/mnt/disc0_1/

#change user name and password
user=*****
password=***

exit-hours=9999
exit-ratio=8
cache-size=1
restart-torrents=0

download-limit=0
upload-limit=0

#port=18000

#arbitrary arguments to ctorrent
ctorrent-args=-d -a
#url to prepend in the details box
detail-url=ftp://root@192.168.1.1/mnt/disc0_1/

ctorrent=/dctcs/ctorrent-3.3
#client-host=localhost:15000
#htmlroot-directory=/usr/share/dctcs/www/darkside.ctcs.gui/
wget-args=-c

javitxusan
13-05-2008, 07:43
Hi!
Ok. I made it work a few days ago, but it SOOO LOOOWWW (1 ex: download rarely ups to 40 kB, from 1 or more torrents). I test ctorrent meanwhile uploading a torrent to /source directory, and its much faster... (I was thinkin dctcs was using ctorrent...)
My question is :
If you want use the ctorrent original conf directories, what directories must write in dctcs.conf?

torrent-directory=/tmp/harddisk/torrent/source
download-directory=/tmp/harddisk/torent/target
????
or
torrent-directory=/tmp/harddisk/torrent/source
download-directory=/tmp/harddisk/torent/work
????
Thank you on advance for your help

dske
13-05-2008, 07:59
Hi!
Ok. I made it work a few days ago, but it SOOO LOOOWWW (1 ex: download rarely ups to 40 kB, from 1 or more torrents). I test ctorrent meanwhile uploading a torrent to /source directory, and its much faster... (I was thinkin dctcs was using ctorrent...)

me too :)
so it _is_using_ctorrent so if you did not set up/download limit it must be exactly as fast/slow as ctorrent



My question is :
If you want use the ctorrent original conf directories, what directories must write in dctcs.conf?

sorry never heard about ctorrent conf directories, so i can not answer this question.
the torrent-directory is the dir where dctcs "stores" the torrent files and the download-directory is the dir where the downloaded data goes to.

javitxusan
13-05-2008, 11:01
Hi again!
Thanks a lot for your fast answer.
I mean with ctorrent conf (really a mean torrent.conf) that ctorrent uses 3 directories: source, work and target (where torrents are, where work while download and where finished files are going to), but dctcs uses only 2:1 for torrent files + 1 to work-and-completed files.

If dctcs is using ctorrent there must be the files in work directory while dctcs is downloading , but this is not true, because (at least in my case) working file is in the definitive directory.

And as I see that ctorrent working in background is 8 times faster than dctcs (tested with same torrent), I´m going to try this: use the same directoy source to both ctorrent and dctcs, and use de completed-files-dctcs as same work-ctorrent-directory, I´m goin' to let ctorrent to move completed torrent to "target" directory when finish.
Cross fingers.....

TOA

dske
16-05-2008, 14:00
I mean with ctorrent conf (really a mean torrent.conf) that ctorrent uses 3 directories: source, work and target (where torrents are, where work while download and where finished files are going to), but dctcs uses only 2:1 for torrent files + 1 to work-and-completed files.

i think there is some misunderstanding the torrent.conf is belong to the torrent package not to ctorrent. ctorrent does not use torrent.conf.



And as I see that ctorrent working in background is 8 times faster than dctcs (tested with same torrent),
how do you start ctorrent?

javitxusan
20-05-2008, 06:59
Hi again!
I put in source directory some torrent. those torrent started with watchdog and I've check the time in the log files.
Result: ctorrent (and this is the better, because I installed OLD ctorrent, not enhanced-ctorrent) its 6 times faster working alone, than torrents in dtcts...
And about enhanced-ctorrent... I find that the packet you can find if you make "ipkg install" its not the last 3.3.1 There is older version.

I was checking torrential last days (same low speed as dctcs) and I´m thinking on made my own gui. ( )

Cross your fingers.

TOA.

simonhang
31-05-2008, 11:03
Hi,

I like YoDCTCS. One question, is YoDCTCS provide some kind interface so I can change my downloading limit automatically? So I can utilize my off-peak downloading quote better.

Thanks,
Simon

dske
31-05-2008, 13:23
HI ,
it is not providing an interface, but you can change the config file then send a SIGHUP to dctcs.

simonhang
01-06-2008, 06:18
Hi dske,

Thank you very much. This solved my problem!

Simon

Federation(NL)
18-07-2008, 09:25
Hello,

I am new to this forum.
But i hope someone can help me

I have 2 routers on is running openwrt whiterussian the other is running oleg

on both router yodctcs is installed.
i have edited the dctcs.conf file accordingly

On whiterussian torrents start and download very fast.
on oleg`s the torrents upload and i can see them in the upload map i specified in the config file.
but the torrents never start they show up in the web interface as stopped and if i click start nothing happens.

My understanding of linux is not so very good so i hope someone can help me with this.
If i need to post config files please tell me and i will post them.

Thanx in advance

dske
19-07-2008, 07:43
Hi,

are you using enhanced-ctorrent on oleg?
can you download with ctorrent (in "command line")?
if yes can you please post the log files after starting dctcs like:
dctcs -v -v -v

Ehsan
20-07-2008, 12:21
Excellent piece of software!

I would like to have the following function featured: The possibility to limit number of downloads.

In other words if I add 10 torrents to my list, instead of it downloading all torrent at the same time (as it currently is) it should be possible to set that only the first 3 torrents or something is downloaded, and once they are done it will automatically go on downloading the next 3, until the entire list is done.

Is this possible to implement? :)

Federation(NL)
21-07-2008, 12:04
Hi,

Thanx for the reply i tried both ctorrent and enhanced-ctorrent both wont run
if i start ctorrent manual it works and it is downloading

I have started dctcs -v -v -v but where can i find the log file i cant find it

if i look in syslog the only thing what i get is: Jul 21 12:58:13 dctcs: new file uploaded
nothing more



thanx in advance

dske
22-07-2008, 18:15
Hi,

Thanx for the reply i tried both ctorrent and enhanced-ctorrent both wont run
if i start ctorrent manual it works and it is downloading

I have started dctcs -v -v -v but where can i find the log file i cant find it

if i look in syslog the only thing what i get is: Jul 21 12:58:13 dctcs: new file uploaded
nothing more

it should be much more in the syslog...
what version of oleg fw are you using?

dske
22-07-2008, 18:17
Excellent piece of software!
I would like to have the following function featured: The possibility to limit number of downloads.
Is this possible to implement? :)
Thanks!
everything is possible ;D
i am "working" on this feature unfortunately long. nowadays i have no time for this project and my external hdd also broke down :(

Ehsan
24-07-2008, 11:54
Thanks!
everything is possible ;D
i am "working" on this feature unfortunately long. nowadays i have no time for this project and my external hdd also broke down :(

Yeah, I understand. It would be great if it had a built in queue system so I can add like 10 torrents and it will only download let's say 5 at the time, and when they are done it will go on taking the next 5.

Another thing I was wondering is how can I open up the Web GUI for external access? I have it installed on port 18000 as said in the guide, but I can't access the page externally (even though I can access port 80 and 8080).

How can I open up 18000 so I can start downloads from the outside as well?

dske
24-07-2008, 17:12
How can I open up 18000 so I can start downloads from the outside as well?
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.

midix
23-08-2008, 13:38
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 with
/opt/etc/init.d/S90dctcs start it 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).
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?

dske
23-08-2008, 15:16
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?
I personally prefer (and use) -a option in order not to fragment the fat32 partition i use to download data. It takes some time to allocate the files and for that time ctorrent does not report any status messages so dctcs can not track the allocation (stoped).

mark_q4xprt
23-08-2008, 15:29
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

midix
23-08-2008, 17:22
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:

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:

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

ipkg update
ipkg install enhanced-ctorrent

then I went here (http://yodctcs.googlepages.com/home2) and downloaded latest "Package for Oleg firmware". I put it in /data folder (I have samba running and can access the share with
\\192.168.1.1\disc0_1$\data
from my Windows PC).
Then I did

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):



#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:

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


/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 :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

dske
23-08-2008, 22:55
# 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/


if you want you can but i did not documented the interface. You can always use the source of course.



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).

yodctcs uses non standard "html" requests so if the proxy only forwards standard requests it wont work.



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...

if ctorrent and dctcs is stoped then the per-file settings is lost (these are not stored permanently)

mark_q4xprt
24-08-2008, 10:22
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?

dske
24-08-2008, 10:43
why does it always says it fails when i try to use the http link?

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?

which http link do you want to use for what? :)

pid is personal ID in this context and the problem can be caused by many reasons eg wrong tracker/torrent/download, torrent from other site...
as far as i know it can not be a dctcs issue.

mark_q4xprt
24-08-2008, 12:46
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

mark_q4xprt
24-08-2008, 14:02
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

dske
24-08-2008, 15:27
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
these ip addresses are for private network (http://en.wikipedia.org/wiki/Private_network)s 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:


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
....

you should find something like in the above example: inet addr:89.135.XXX.XXX
and set it up with dyndns anyway on the "add new hostname" (https://www.dyndns.com/account/services/hosts/add.html) page dyndns will auto detect the ip.

dske
24-08-2008, 15:31
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%

checking can be time consuming especially if more torrents are running. (and it is done by enhanced-ctorrent if dctcs started ctorrent then it did what it should)

mark_q4xprt
24-08-2008, 17:09
[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

dske
24-08-2008, 18:13
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
it works ;)


b184.torrent Seeding 170 0/58.22 0/5 0.34 20.15 0

[root@localhost ~]# host acer.gotdns.com
acer.gotdns.com has address 121.96.138.174

i think you _should_change_ your user/pass now and/or set your firewall

mark_q4xprt
25-08-2008, 03:22
it works ;)


b184.torrent Seeding 170 0/58.22 0/5 0.34 20.15 0

[root@localhost ~]# host acer.gotdns.com
acer.gotdns.com has address 121.96.138.174

i think you _should_change_ your user/pass now and/or set your firewall

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

dske
25-08-2008, 18:10
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

you should add the port number as you used for the ip address:
http://121.96.138.174:8008
http://acer.gotdns.com:8008

mark_q4xprt
27-08-2008, 14:20
yup but when i add it it doenst work it says connection error / network problem

what i meant is acer.gotdns.com is redirecting to my modem wich is 192.168.1.1 not the asus router that holds 192.168.0.1

dske
14-09-2008, 19:41
Hi,

minor updates:
Version 0.7.1 - 14/09/2008

* bugfix: popups can be opened only one at a time
* show size and downloaded percentage of stopped torrents
* if a translation does not contain a key then the default is loaded
* using GWT Version 1.5

irkubr
01-10-2008, 00:33
Hi, I'm using your software, together with enhanced ctorrent on a Movie Cube Q800, and I have some doubts.

1) If I shutdown the device, when rebooting and starting dctcs, the downloaded % of each file resets to 0%. Aparently, it grows up quite fast after that. Is this normal?

2) If I add a ctorrent parameter in the config file to move a downloaded file to a different directory:

ctorrent-args=-X "mv &d /tmp/hdd/volumes/HDD1/files/torrent-downloads/"

the torrents don't start (they show as Stopped and no ctorrent process is running). With 4 torrent files in the directory, I get the following output on the log file

Oct 1 00:34:02 NAS daemon.debug dctcs: restarting torrents
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:02 NAS daemon.debug dctcs: starting torrent
Oct 1 00:34:03 NAS daemon.debug dctcs: setting alarm to check torrent-directory
after: 300 sec


Thanks in advance for any help you can provide.

Best regards,
Gabriel

dske
01-10-2008, 06:32
Hi,



1) If I shutdown the device, when rebooting and starting dctcs, the downloaded % of each file resets to 0%. Aparently, it grows up quite fast after that. Is this normal?

this is two question the first part is (defective if you want to say so) by design dctcs should run continuously and do not store data (except statistical data but you can disable that). The percentage grows up fast as ctorrent checks the data and reports the status (but it does not report whether it is checking or downloading so dctcs guessing about this)



2) If I add a ctorrent parameter in the config file to move a downloaded file to a different directory:

ctorrent-args=-X "mv &d /tmp/hdd/volumes/HDD1/files/torrent-downloads/"

dctcs splits the string by spaces and then pass it to ctorrent so you can not use arguments that requires spaces. workaround: you can set the ctorrent parameter to a shell script which properly invokes ctorrent (don't forget to pass the parameters coming from dctcs)

regards

sk22
24-10-2008, 23:45
Thanks dske for this nice software.
I've just installed the 0.7.1-1, and find out that it's really cool.:D

Its download rate only at about 12kb/s which is so slow comparing with a BT software in windows at 110kb/s with the same torrent.
what's the problem? i read the previous post, you guys talking about the Ctorrent. Do i need that software to improve the download speed ?
or do i need to open some port in my post-firewall.conf ?

i am using WL500W running on oleg firmware.

thanks in advance.

dske
26-10-2008, 07:17
Its download rate only at about 12kb/s which is so slow comparing with a BT software in windows at 110kb/s with the same torrent.
what's the problem? i read the previous post, you guys talking about the Ctorrent. Do i need that software to improve the download speed ?
or do i need to open some port in my post-firewall.conf ?

i am using WL500W running on oleg firmware.

thanks in advance.
You need enhanced-ctorrent not to improve the download speed but to have download speed. dctcs uses ctorrent to download so if the download is slow it is ctorrent. You should open ports for ctorrent default 2706 -> 2106. ctorrent does not support encrypted connections.

roque69
21-12-2008, 20:04
Hi.

I'm trying to get yodctcs to work on my WL600g router but I'm having a problem. After I login to it, it gives a message "Error - getWgetDownloads" and logout!

What could be the problem? I'm using the ASUS firmware for this router with some changes I've made and I have ctorrent and wget compiled for it also. Note that wget is not the one from busybox.

Thanks,
Mike

dske
22-12-2008, 08:07
Did you compile dctcs to your firmware?
Please run it with -v -v -v and post the log files.

Regards

roque69
22-12-2008, 20:06
Did you compile dctcs to your firmware?
Please run it with -v -v -v and post the log files.

Regards

Done that, but where are the logs?

Mike

dske
22-12-2008, 20:25
dctcs logs via syslog so it is depending on the config.

roque69
24-12-2008, 18:22
Hi.

The yodcdts I was using and that was giving me problemas, was not build by me, so I've decided to build it from sources, but I'm having big problems!

The ".configure" returns without problems, but when I issue the make command, after a short while it sarts to create "bash" and "sed" processes up to the infinite and the only soluction is to power off the computer!!!

What is wrong here!

Mike

dske
27-12-2008, 16:02
Hi.
I just tried out (i downloaded the source from the homepage) after uncompressing:
./autogen.sh;./configure;make
and it worked perfectly.

Are you able to compile other programs? (maybe some problem with the toolchain)

Regards

roque69
27-12-2008, 19:28
Hi.

I've tried with several others and don't have any problem! I'm using the same toolchains used for compilation of the wl600g firmware and they don't give any problems.

I've also tried without toolchain, meaning, with the x86 gcc and build tools and the result was the same!!! I'm using Ubuntu 8.10.

Mike

dske
27-12-2008, 20:03
I have no idea whats wrong there.
Maybe you can try to compile it with gcc *.c

roque69
27-12-2008, 22:16
Hi.

Just tested with Debian and it compiled correctly. It's a Ubuntu problem as it doesn't compile with any compiler there.

Tested the dctcs compiled in Debian, but doesn't work! Complains in my wl600g with the message: ./dctcs: can't resolve symbol 'bzero'

Mike

dske
28-12-2008, 08:53
I think you did not crosscompiled it. You need your firmware toolchain's gcc (and libs of course) to cross compile on pc for the wl600 target.

roque69
28-12-2008, 16:56
I think you did not crosscompiled it. You need your firmware toolchain's gcc (and libs of course) to cross compile on pc for the wl600 target.

I've cross compiled it but I think it's a clibc problem. I have 0.9.27 on the router and maybe dctcs needs a better one like 0.9.28 or 0.9.29 but if I try that, it blows the compilation of asus firmware.

Mike

dske
29-12-2008, 09:15
i compiled the oleg fw version with uclibc 0.9.19 and bzero is a legacy function in posix 2001.
i still belive if you can compile it with bzero you should be able to use it with the correct librarys. (on my router i am using kamikaze so i can not test dctcs on other fws)

You can try replace bzero with memset:
#define bzero(x, n) memset(x, 0, n);

(you can add the above line in common.h)

dske
15-02-2009, 19:52
Hi all!

A small bugfix release:
# Version 0.7.2 - 15/02/2009

* bugfix: the wget details display is correct even the file size is unknown
* recompiled with GWT 1.5.3
* new option: ctorrent-complete command to be run after downloading finished
* modified upload/download limit calculation after inactivity
* packages for Whiterussian will not be built anymore

pippopappa
23-06-2010, 11:28
Hi, i've installed dctcs_0.7.2-2-oleg_mipsel.ipk on Azbox (see http://www.satpimps.com/showthread.php?t=113468) and it works great!!!
Many Thanks!!!

I've found a small bug in the upload/download limit calculation: download limit
is calculated with the value used for upload limit; checking the code in file client.c at line 431:

cdl = cdl == 0 && ulimit != 0 ? ulimit * 1024 / numclients : cdl;

instead of

cdl = cdl == 0 && dlimit != 0 ? dlimit * 1024 / numclients : cdl;

Sorry I can't compile the package cause i dont know how to prepare the required environment to build... :(

Please, can you do something?

Thanks in advance

pppppp


Hi all!

A small bugfix release:
# Version 0.7.2 - 15/02/2009

* bugfix: the wget details display is correct even the file size is unknown
* recompiled with GWT 1.5.3
* new option: ctorrent-complete command to be run after downloading finished
* modified upload/download limit calculation after inactivity
* packages for Whiterussian will not be built anymore

dske
23-06-2010, 18:45
yes i can do something ;)
even better i did.
you can download the corrected version
http://sites.google.com/site/yodctcs/dctcs_0.7.2-3-oleg_mipsel.ipk?attredirects=0

pippopappa
23-06-2010, 22:15
yes i can do something ;)
even better i did.
you can download the corrected version
http://sites.google.com/site/yodctcs/dctcs_0.7.2-3-oleg_mipsel.ipk?attredirects=0

wow so fast!!
thank you very much!

marouano
19-03-2014, 13:17
Im using enhaced ctorrent as a client bittorrent , i wanna know how can i download many torrents file in the same time without opening an odher shell.
is it easy to change the GNU licence or no?
Thanks for you help