PDA

Bekijk de volledige versie : Torrent client ?



japao
08-05-2005, 18:57
Exist torrent client for Asus WL-500gx router ??

Antiloop
08-05-2005, 19:00
what's your question?

reul
08-05-2005, 20:01
what's your question?

I think he want to have a bittorrent-client on the wl500g, so he can share his usb-hdd to the bittorrent-network.

japao
08-05-2005, 20:16
I think he want to have a bittorrent-client on the wl500g, so he can share his usb-hdd to the bittorrent-network.

yes share and download torrents.

Antiloop
08-05-2005, 20:32
not yet

wait for WL-700g it should support 'BT' but we don't know if they mean bittorent with this

reul
09-05-2005, 13:35
not yet

wait for WL-700g it should support 'BT' but we don't know if they mean bittorent with this

Isn't this 'BT' as in bluetooth?

Antiloop
09-05-2005, 13:49
see 2049 for more information about WL-700g

rdk
10-05-2005, 12:28
this is what I get:

ipkg install torrent_1.0-1_mipsel.ipk
Installing torrent (1.0-1) to root...
ERROR: Cannot satisfy the following dependencies for torrent:
libbt
Nothing to be done
An error ocurred, return value: 1.

Is anyone able to compile libbt? :-)

Regards,
Rainer

atomilein
11-05-2005, 18:22
i got the same...i think there is no one who compiled libbt. that is why i use debian and bittornado :D

rwhitby
13-05-2005, 12:56
this is what I get:

ipkg install torrent_1.0-1_mipsel.ipk
Installing torrent (1.0-1) to root...
ERROR: Cannot satisfy the following dependencies for torrent:
libbt
Nothing to be done
An error ocurred, return value: 1.

Is anyone able to compile libbt? :-)

Regards,
Rainer

libbt has the following error when compiled for wiley:

./libbt.a(random.o): In function `seed_rnd':
/home/wl500g/packages/builds/libbt/src/random.c:27: undefined reference to `seed48'

-- Rod

Jean-Fabrice
13-05-2005, 13:13
/home/wl500g/packages/builds/libbt/src/random.c:27: undefined reference to `seed48'

-- Rod
... and seed48 function is not present in uclibc 0.9.19

Jean-Fabrice
13-05-2005, 13:49
seed48 seems to have been superceeded by rand/srand.
I patched libbt to use rand/srand instead of seed48/drand48

libbt is now in the unslung wiley feed. Torrent's dependency should be resolved.
Can you make a try and give feedback ? (don't forget to run 'ipkg update' before ipkg install torrent)

JF

japao
13-05-2005, 15:55
install ok, but script torrent_watchdog has 2x command "nohup", what is it ?
i clear this command and script is working and download torrents :)

Jean-Fabrice
13-05-2005, 16:01
nohup command permits you script to survive your end of telnet or ssh session.
I will give a look at this.

Do you confirm that the torrent package is functionnal or your asus ?

japao
13-05-2005, 16:18
nohup command permits you script to survive your end of telnet or ssh session.
I will give a look at this.

Do you confirm that the torrent package is functionnal or your asus ?

torrent package is functionnal

japao
13-05-2005, 16:21
current.error.log write this:
/opt/sbin/torrent_watchdog: line 146: nohup: command not found
/opt/sbin/torrent_watchdog: line 240: nohup: command not found

i clear commands "nohup" and script is working

Jean-Fabrice
13-05-2005, 21:27
current.error.log write this:
/opt/sbin/torrent_watchdog: line 146: nohup: command not found
/opt/sbin/torrent_watchdog: line 240: nohup: command not found

i clear commands "nohup" and script is working

ipkg install coreutils should solve the problem for nohup

costa1001
08-06-2005, 11:03
what I have:
asus wl-500g deluxe
firmware 1.9.2.7-5a (oleg)
torrent_1.0-1_mipsel

what I get:
$ more current_error.log
btget: can't load library 'libz.so'

any advice?

thanks

costa1001
08-06-2005, 13:03
what I have:
asus wl-500g deluxe
firmware 1.9.2.7-5a (oleg)
torrent_1.0-1_mipsel

what I get:
$ more current_error.log
btget: can't load library 'libz.so'

any advice?

thanks

the solution was:
ipkg install zlib

Jean-Fabrice
08-06-2005, 13:56
libbt (main component for torrent) has been updated to reflect the needs of libz

So installing/upgrading torrent should install libz if not allready installed.

JF

braner
22-06-2005, 22:16
Could you guys please describe how to make torrent package to do his job? I didnt find any HOWTOs about this.
I installed the package using: ipkg install torrent and configured the torrent conf.
When I write "torrent_admin -l" I see 1 queued torrent, but how can I make this torrent to start downloading??

using command "btget" doesnt seem to make its job, cause I always get errors about connecting or messages that the peer hung up.

Thanks for any msgs about torrent package!

WlanMan
27-06-2005, 21:12
using command "btget" doesnt seem to make its job, cause I always get errors about connecting or messages that the peer hung up.

Hi

I cant get it to work either. libbt didnīt worked on my x86 pc before, and neither on the router.
Using the btget client, i get no chunks ready, still i see data transfer in the info line. Using torrent_admin (which works by configuring torrent.conf to point to 3 direktorys for the .torrent, working files and final file, copying torrents into torrent direktory and then starting torrent_watchdog). i get also no progress, and some wird filesystem error when i ls the working direktory of the file ...


[admin@Wl500g www_torrent_to__InternetPiratenbybit-torrents6xto]$ torrent_admin -l
List
Active torrents:
1) www_torrent_to__InternetPiratenbybit-torrents6xto
Progress: 0% PID: 963 Start: 16:10:52 - 27 Jun 2005

[admin@Wl500g www_torrent_to__InternetPiratenbybit-torrents6xto]$ pwd
/tmp/harddisk/work/www_torrent_to__InternetPiratenbybit-torrents6xto
[admin@Wl500g www_torrent_to__InternetPiratenbybit-torrents6xto]$ ls
.: Stale NFS file handle
[admin@Wl500g www_torrent_to__InternetPiratenbybit-torrents6xto]$


963 admin 2348 S btget -q=1 /tmp/harddisk/work/www_torrent_to__InternetPiratenbybit-torrents6xto/www_torrent_to__In
Anyone knows somethink about ? I think the lib is just broken or cant work with newer BT protocoll versions. The partition i save the files on is fat32.

Greets

oleo
16-08-2005, 15:30
Mine btlib and torrent packages work as intended but please note that:

You need coreutils ipkg for torrent_watchdog to function (nohup).
and bash ipkg to execute and cron to periodicly execute torrent_watchdog.


The big problem I see when runing both utils is that log file current.log can grow up to 100MB and that greping such file can eat a lot of CPU. More sophisticated program is needed to process log and errors in a pipe or some client/server model.

Any suggestions for such interface to btget queue managment? Hope for gift-libbt plugin will never die.


Here are my patched torrent utils to handle filenames with "white space" and corrections to multiple suspended torrents.

WlanMan
26-08-2005, 19:45
Hell ...

If someone ever got his torrent-btlib combination to work, please post a step-by-step idiot proof guide to it. I have now tried some time to get it running but i simply GET NO DATA from any peer.... :mad:.

This is very frustrationg ... please help

Greets Wlanman

oleo
06-09-2005, 09:57
Maybe this CGI script will be useful replacement for torrent_admin script.
This is quick explanation of the buttons:

Log
shows current.log of active torrent
Pause
instructs that torrent processing should stop imediately
Resume
resumes suspended or paused active torrent
Suspend
suspends active torrent and start next if available
List
lists queued, active, suspended and completed torrents
Purge
removes all logs from completed torrents
Watchdog
forces torrent_watchdog processing

Grabber66
30-12-2005, 15:51
How do i use this cgi script.

I found "torrent.cgi" in

"/opt/share/www/cgi-bin"

But i can't open it in my browser.
THX

FilimoniC
30-12-2005, 17:05
403 Forbidden
The requested URL '/cgi-bin/torrent.cgi' resolves to a file which is marked executable but is not a CGI file; retrieving it is forbidden.
How can i make it work?

/opt/etc/thttpd.conf


dir=/opt/share/www
port=81
user=nobody
nochroot
nosymlink
novhost
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid

Grabber66
30-12-2005, 18:46
I've the same message, when i install php and open this script in
my browser.
Someone any Idea ?

FilimoniC
30-12-2005, 20:20
YEP. IDEA: add to the end of /opt/etc/thttpd.conf line cgipat=/cgi-bin/* (Yep. cigpaT, no 'H')

Grabber66
31-12-2005, 15:51
Thanks that works.

And another question.

Where can i define the up/download rate of the torrent.
Because sometimes i need the upload for other things, and
i don't want to pause the torrent because of this.

Someone any ideas ?

THX

FilimoniC
31-12-2005, 16:35
Help me step-by-stem how did you make it work ??? I cant :(

Grabber66
01-01-2006, 16:41
I installed the following packages in this order:

torrent - 1.1-1 - a collection of scripts that processes torrent files
libbt - 1.03-7 - a C library implementing the core BitTorrent protocol
bash - 2.05b-5 - A bourne style shell
cron - 4.1-4 - Standard vixie cron, with cron.d addition
coreutils - 5.2.1-8 - Bunch of heavyweight *nix core utilities

(some of them are installed with the torrent package, some not : just try )

after this i've installed the php-webserver, to use the cgi-script.
There i used your tip :

/opt/etc/thttpd.conf line cgipat=/cgi-bin/*

Afterall, i've downloaded a torrent and copied it to the torrent-folder.
Now i opened the cgi-script. With the "List"-Button i've the torrentfile
in my list. Now i used the "watchdog"-Button. And the download starts.

I hope this is enough.....:=)

oleo
03-01-2006, 07:02
Thanks that works.
Where can i define the up/download rate of the torrent.
Because sometimes i need the upload for other things, and
i don't want to pause the torrent because of this.
THX
At least in oleg-6c-pre5 it is possible to specify port range min/max up/down speed.

Grabber66
03-01-2006, 16:58
thx i've found it.

Maybe you can help me. Is there any chance to change the up and
downstreamports.
Standart is 6881 and 6889
I want to chance it, because the tracker i use normally has blocked these.

oleo
03-01-2006, 17:23
Look for patched "libbt - 1.05-2 - a C library implementing the core BitTorrent protocol" which is now in the optware packages. Just set environment variables before running btget. Eg.
# btget port range environment
BTLIB_MINPORT=56881
export BTLIB_MINPORT
BTLIB_MAXPORT=56889
export BTLIB_MAXPORT
#time between logs
LOG_TIME=59

And use torrent companioon package for batch processing and WWW GUI.

Grabber66
03-01-2006, 20:19
Do you have a link for me.
I tried this package:
http://ipkg.nslu2-linux.org/feeds/optware/wl500g/cross/unstable/libbt_1.05-2_mipsel.ipk
but it don't work.

And what is the torrent companioon package.
I've installed the torrent 1.1.1, i think. Aktually with "ipkg torrent".

THX

oleo
04-01-2006, 06:35
This is IT. It should work as exspected. It works for me. Installed:

libbt - 1.05-2 - a C library implementing the core BitTorrent protocol
torrent - 1.1-1 - a collection of scripts that processes torrent files
from
src unslung http://ipkg.nslu2-linux.org/feeds/unslung/wl500g
Peek in /opt/etc/torrent.conf
Sometimes I also use this btdo script:
#!/bin/sh
. /opt/etc/torrent.conf
nohup nice btget -t 59 "$@" 2>>current_error.log >>current.log &


What is the problem with your install?

Grabber66
04-01-2006, 17:01
I used this config :



# btget port range environment
BTLIB_MINPORT=16881
export BTLIB_MINPORT
BTLIB_MAXPORT=16889
export BTLIB_MAXPORT
#time between logs
LOG_TIME=59


but with btget ****.torrent the first message is:



BTLIB_MINPORT not set. Using standard 6881
BTLIB_MAXPORT not set. Using standard 6889


Maybe i try to reinstall the torrent package.

oleo
04-01-2006, 22:45
No. Reinstall will not help. Use btdo script or manually enter:
BTLIB_MINPORT=16881
export BTLIB_MINPORT
BTLIB_MAXPORT=16889
export BTLIB_MAXPORT
btget ****.torrent

If it says that environment variable is not found try tu issue command
envor
printenv to see if it is set correctly before running btget. I speculate that you've missed tiny dot which means source command. Look careffuly the difference between
. /opt/etc/torrent.conf
and the wrong one
/opt/etc/torrent.conf which does not work!

tsounny
31-03-2006, 05:42
I can get everything working but not the watchdog button in the cgi.
It says permission denied.
anyone can help?

oleo
31-03-2006, 06:59
[admin@oleo root]$ cat /usr/local/root/httpd.conf
A:*
/cgi-bin:admin:admin
.au:audio/basic
.asp:text/html

tsounny
31-03-2006, 07:13
Thanks a lot! it works.
I found that an error message of :
Failed to transfer URL for reason 1 (see curl.h)
when start btget start and never get a bit to download.
What does the error mean?
thx!

oleo
31-03-2006, 07:28
CURLE_OK = 0,
CURLE_UNSUPPORTED_PROTOCOL, /* 1 */
CURLE_FAILED_INIT, /* 2 */
CURLE_URL_MALFORMAT, /* 3 */
CURLE_URL_MALFORMAT_USER, /* 4 (NOT USED) */
CURLE_COULDNT_RESOLVE_PROXY, /* 5 */
CURLE_COULDNT_RESOLVE_HOST, /* 6 */
CURLE_COULDNT_CONNECT, /* 7 */
CURLE_FTP_WEIRD_SERVER_REPLY, /* 8 */
CURLE_FTP_ACCESS_DENIED, /* 9 a service was denied by the FTP server
due to lack of access - when login fails
this is not returned. */
CURLE_FTP_USER_PASSWORD_INCORRECT, /* 10 */
CURLE_FTP_WEIRD_PASS_REPLY, /* 11 */
CURLE_FTP_WEIRD_USER_REPLY, /* 12 */
CURLE_FTP_WEIRD_PASV_REPLY, /* 13 */
CURLE_FTP_WEIRD_227_FORMAT, /* 14 */
CURLE_FTP_CANT_GET_HOST, /* 15 */
CURLE_FTP_CANT_RECONNECT, /* 16 */
CURLE_FTP_COULDNT_SET_BINARY, /* 17 */
CURLE_PARTIAL_FILE, /* 18 */
CURLE_FTP_COULDNT_RETR_FILE, /* 19 */
CURLE_FTP_WRITE_ERROR, /* 20 */
CURLE_FTP_QUOTE_ERROR, /* 21 */
CURLE_HTTP_RETURNED_ERROR, /* 22 */
CURLE_WRITE_ERROR, /* 23 */

Styno
07-04-2006, 12:51
TorrentFlux is a nice GUI for the bittorrent client. Perhaps this GUI would work for the WL-500g as well but I haven't tried it.

http://www.torrentflux.com/forum/index.php/topic,1042.0.html

DiGi
19-06-2006, 22:21
Hi,

I have trouble with current version of torrent client.

Configuration: wl500gx, harddisk with fat32 mounted as tmp/harddisk, flashdisk mounted as opt:

/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw)
/dev/discs/disc1/part1 on /tmp/harddisk type vfat (rw,sync)

Trouble is on finishing job - "torrent_watchdog" function "move_to_target ()".
mv * .info .libbtrc "${DEST}" failed with "Stale NFS file handle error". So, no files are moved. And - finally - "cleanup_work ()" function removes completed and not-moved files :(

I've commented out that mv and rm lines, but it isn't good solution...

oleo
20-06-2006, 07:32
It looks like filesystem error. I recommend using ext3 (ext2 -j) for all filesystems.

Otherwise suggest a fix and it will be included in distribution.

DiGi
20-06-2006, 09:26
I'm using disc (/tmp/harddisk) for carrying data between Win2k/XP stations, so I don't want to format it as ext3.

oleo
20-06-2006, 09:32
Try disabling NFS server.