|
Post by omega on Mar 19, 2007 18:26:45 GMT 7
Hi mates,
Despite the fact that I'm very busy I'm playing a little bit with bittorrent ....
I've compiled the actual version of the enhanced ctorrent program which is obviously used by Thecus for their P2P-BT bittorrent module for their N2100.
So, the program itself works perfectly and with a easy exec on the command line I'm able to download torrents.....
I've tried to adopt the WWW pages for that module to the N5200 but the source is quite complicated and for some parts it is not clear what they're really doing. Basically it works to add and delete download jobs, but the status reporting doesn't work.
Now I'm thinking about to create a MySQL module and a TorrentFlux module as this would give us everything someone might need. But that's a huge package so I'm not sure if this is the right way to go.
I like the ctorrent approach much more because of the low resource usage.
Any comments about this issue?
Andreas
|
|
|
Post by spaceout on Mar 19, 2007 19:36:40 GMT 7
When you say that torrentflux and MySQL is a huge package, how much space is really left on the N5200 to play around with? and how big is TF and MySQL together?
|
|
|
Post by kniteowl on Mar 20, 2007 2:36:00 GMT 7
Omega, Did you find the source for the P2P executable also, used in the P2P-BT module? I could not find that one, just the one for ctorrent, so I have gone a different route and have started to work on TorrentFlux also. I intend to use TorrentFlux with the sqlite that is already on the system. Also as a side note, the BIT Tornado client that TorrentFlux uses is a poor choice in an embedded environment, even in a normal environment it is bad, as it uses like 60%-80% CPU load, and is a memory hog for each torrent that is running. I am building it to use transmission instead, as it is a lightweight torrent client and won't have these problems. I have been running into problems, or I would have had this done already. I keep getting errors with my lib files matching what is on the N5200, so I am rebuilding a Linux box to see about getting the lib the same. Anyone know how to setup a build environment with the source codes that Thecus provides so that things can be keep a little more consistent? ? Would make this go so much easier, without having to worry about changes in my system affecting the build environment. Teng
|
|
|
Post by peterfu on Mar 20, 2007 6:13:30 GMT 7
I had the same problems with lib version with compiling pure-ftpd for the N5200, so I decided to make a static compilation on my UBUNTU 6.10 box, to be independant from the lib versions. After following command: export LDFLAGS=-static and then running the make all was fine - of course the executables are bigger, but not depending on the installed libs on the N5200.
br Peter
|
|
|
Post by omega on Mar 20, 2007 17:16:39 GMT 7
Hi Teng, yes, I have the source for the bittorrent program Thecus obviously is using (see here: www.rahul.net/dholmes/ctorrent/ ). I compiled that program and as I wrote before it's bahving well..... If you want to have a quite compatible build environment, then download SuSE (Novell) Linux version 10.0, have it run inside a VMware virtual machine (VMware server is for free!) and compile it. Works like a charm..... and that's the way I'm doing all my stuff.... I've compiled the MySQL server suite for the N5200 but something is not working well..... and regarding your statements about TorrentFlux I'm thinking about to stop my efforts in this direction. I'd like to have a slimline solution and therefore I'll try to do some more work on ctorrent and the Thecus WWW pages. BTW: there is another possibility: the enhanced ctorrent program comes with an additional control server and its protocol CTCS. This control server also serves a WWW interface which works quite nice. But I don't like the pages - too complicated. Maybe I do my own control server which serves nicer pages..... don't know yet. Andreas
|
|
|
Post by kniteowl on Mar 21, 2007 12:31:36 GMT 7
Omega, Not the "ctorrent" file, that one I know about. I mean the one called "P2P" it is stored in the same /bin directory. That is the one that I was unable to find. I have not check to see what it is used for yet, may not even be needed but then again who knows. I may just have to go back and look at the Web interface stuff again. As it relates to TorrentFlux, the basic TorrentFlux is not good, but if you use the forked one that uses "transmissioncli" as the back end, it is good for embedded devices. www.linkstationwiki.net/index.php?title=Torrentflux_with_TransmissioncliThe previous link shows how to install it onto the Linkstation NAS, which has less processor power than the N5200 so it should be even better for the N5200. I am downloading SUSE 10 now, so when I get it down and installed, I will give it a try, unless you get Bored For Ideas, I have been looking at the software that people have been installing on the Linkstation/Kurobox as these NAS box has been around longer and have a much larger user group. They have all sorts of apps installed on them and it gives lots of ideas for the N5200 with the increase processor power. Teng
|
|
|
Post by omega on Mar 21, 2007 15:52:40 GMT 7
Teng, you're right! The P2P source code is missing and only Thecus has it. I tried to disassemble it and from what I can see, that little program is not doing much at all. It is just a helper program for the weird HTML sources Thecus uses. As I don't like the way Thecus is using cron for scheduled transfers I believe we don't need P2P at all. Otherwise, thecus: can we get the source for the P2P program? Are there any plans that you will give us the P2P-BT module which is known to work on the N2100 for the N5200 too? Andreas
|
|
|
Post by dalryk on Apr 22, 2007 7:37:33 GMT 7
any news on this front omega?
A BT module for the N5200 would be totally sweet.....
|
|
|
Post by kniteowl on Apr 26, 2007 14:15:25 GMT 7
I am finishing my testing of Torrentflux with Transmission and I have a really stupid question. Torrentflux requires PHP, which I know is on the N5200, it is used all over the place and seems to be working, but Torrentflux requires a path to the excutable for certain parts of the app. For the life of me, I can't find it. Does the executable PHP exist, or is it just a module in Apache? If it is just a module, how is it reference by applications?
As Torrentflux has a configuration that explicitly request the path, how would I set that up?
Teng
|
|
|
Post by kniteowl on May 4, 2007 7:18:19 GMT 7
I got the PHP stuff cleared up and the the TorrentFlux + Transmission is running now, at least that is what it looks like, but when I submit a torrent for it to download, it sits there at 0% and does not seem to start the download. The torrent itself is good, as if I start it on my workstation, it works just fine.
Anyone have experience with TorrentFlux???
What I am looking for is where logs are located so that I can see where the problem is occurring to try and get it fixed.
Teng
|
|
|
Post by omega on May 22, 2007 12:37:16 GMT 7
Hi all, I've done some promising tests with ctorrent 3 months ago, but now after travelling the last three months and just sitting at the airport again I don't remember any details...... I'll try to have a look again when I'm having some spare time again. But this will be definitely not before in the next 3 weeks, sorry. Just wanted to keep you informed about the (my) status on this issue. Andreas
|
|
|
Post by kniteowl on May 24, 2007 0:50:25 GMT 7
I am finish with the torrentflux+transmission and things work good, so far, with 6-8 torrents going, it is using less than 2% CPU load on mine, so it looks like it will be a good option.
What I have left to do is convert it into an installable module, right now, I just have all the files in place. I just need to figure out how to make a module out of all the files, as well as list what is required to get it working.
I have been a little busy lately and have not had time to learn the module format yet, so it will be a little while before I get that done.
If someone wants to help with making the module, or has a quick tutorial for it, it would help. The last time I went through one of Omega's module as an example, it did not look too complex, just have not had time to read all the scripts to see what is needed and what is not for this yet.
Teng
|
|
|
Post by blurence on Jul 4, 2007 17:11:38 GMT 7
I update P2P-BT module with ctorrent3 core and packed it into module for N2100. It runs well. Now, i wanna transplant it to N5200. But it seems that libs under my ubuntu do not compatible with those inside the box.
Any solution for it? No ways but install SUSE 10? If so, which version is better?
|
|
|
Post by peterfu on Jul 4, 2007 19:31:16 GMT 7
I update P2P-BT module with ctorrent3 core and packed it into module for N2100. It runs well. Now, i wanna transplant it to N5200. But it seems that libs under my ubuntu do not compatible with those inside the box. Any solution for it? No ways but install SUSE 10? If so, which version is better? Had the same problem during development of the PUREFTPD module - also have Ubuntu - so I have done a static compile of pureftpd. Do following command before compiling or running configure: export LDFLAGS=-static This will do a static compile with all the needed libs included, so You are independent from the installed libs. br Peter
|
|
|
Post by blurence on Jul 5, 2007 11:09:53 GMT 7
I update P2P-BT module with ctorrent3 core and packed it into module for N2100. It runs well. Now, i wanna transplant it to N5200. But it seems that libs under my ubuntu do not compatible with those inside the box. Any solution for it? No ways but install SUSE 10? If so, which version is better? Had the same problem during development of the PUREFTPD module - also have Ubuntu - so I have done a static compile of pureftpd. Do following command before compiling or running configure: export LDFLAGS=-static This will do a static compile with all the needed libs included, so You are independent from the installed libs. br Peter Thanks Peter, I got it finally. As shell scripts seems different from those in N2100, I will rewrite them in N5200 style, then package it and upload here. Jerald
|
|