Getting a working torrent program on MyBook World
Forum » Forum / Torrent programs » Getting a working torrent program on MyBook World
Started by: CaptChrisCaptChris
On: 1193901444|%e %b %Y, %H:%M %Z|agohover
Number of posts: 29
rss icon RSS: New posts
Getting a working torrent program on MyBook World
CaptChrisCaptChris 1193901445|%e %b %Y, %H:%M %Z|agohover

I have successfully installed w3btorrent (by Wulong) on the MyBook World. The program works great.

I will be posting a tutorial on how to do it step by step. If you want to try it on your own it works great but make sure you enable shell commands from the built in http server before you install or it will not work.

-Chris

unfold Getting a working torrent program on MyBook World by CaptChrisCaptChris, 1193901445|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
JoelcottrellJoelcottrell 1194017356|%e %b %Y, %H:%M %Z|agohover

Did you ever get around to posting this tutorial? Thanks!

Re: Getting a working torrent program on MyBook World
obenturkobenturk 1193907228|%e %b %Y, %H:%M %Z|agohover

Is it hanging during hashing process ?? rTorrent hangs if files are greater than 700mb …

unfold Re: Getting a working torrent program on MyBook World by obenturkobenturk, 1193907228|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
johanfajohanfa 1193922624|%e %b %Y, %H:%M %Z|agohover

look forward to that tutorial :)

unfold Re: Getting a working torrent program on MyBook World by johanfajohanfa, 1193922624|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
obenturkobenturk 1193938424|%e %b %Y, %H:%M %Z|agohover

I installed w3btorrent it requires php and lighttpd ..

But torrent downloads didn't started…

unfold Re: Getting a working torrent program on MyBook World by obenturkobenturk, 1193938424|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
obenturkobenturk 1193980426|%e %b %Y, %H:%M %Z|agohover

I installed

m4-1.4.10.tar.gz
autoconf-2.61.tar.gz
automake-1.9.tar.gz

these packages are needed for ctorrent client. I also compiled PHP without mysql support. May be i will compile it later with mysql…

Now it is working I can download files greater than 700 mb no hang :)

unfold Re: Getting a working torrent program on MyBook World by obenturkobenturk, 1193980426|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
CaptChrisCaptChris 1194536182|%e %b %Y, %H:%M %Z|agohover

What you need:
My book world Edition with ssh enabled (see martin)
A terminal
1) Login and gain su privileges.
2) Download m4 1.4.10 from http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz (wget http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz)
a. tar –xvfz m4-1.4.10.tar.gz (all the flags may not be necessary but they work with these flags)
b. cd m4-1.4.10
c. ./configure
d. make
e. make install

3) Download autoconf 2.61 from ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz (wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz)
a. tar –xvfz autoconf-2.62.tar.gz
b. cd autoconf-2.62
c. ./configure
d. make
e. make install

4) Download automake 1.9.1 from http://ftp.gnu.org/gnu/automake/automake-1.9.1.tar.gz NOTE: THIS IS NOT THE NEWEST VERSION BUT THE ONE YOU NEED!!!
a. tar –xvfz automake-1.9.1
b. cd automake-1.9.1
c. ./configure
d. make
e. make install

5) Install libxml
a. cd /opt
b. wget http://ftp.gnome.org/pub/gnome/sources/libxml2/2.6/libxml2-2.6.27.tar.gz
c. tar xfz libxml2-2.6.27.tar.gz
d. mv libxml2-2.6.27.tar.gz src
e. cd libxml2-2.6.27
f. ./configure
g. make
h. make install
i. cp /usr/local/lib/libxml2.so.2 /lib

6) Build PHP
a. cd /opt
b. wget -O php-5.2.3.tar.gz http://www.php.net/get/php-5.2.3.tar.gz/from/us.php.net/mirror
c. tar xvfz php-5.2.3.tar.gz
d. mv php-5.2.3.tar.gz src
e. cd php-5.2.3
f. ./configure –without-iconv –without-pear –enable-fastcgi –enable-discard-path –enable-force-cgi-redirect –with-mysqli=/usr/bin/mysql_config –with-mysql
g. make
h. make install

7) Set Up Lighttpd to use PHP
a. cd /etc/lighttpd
b. cp lighttpd.conf lighttpd.conf.backup
c. edit lighttpd.conf to replace this:
“nasMaster.pl” => (( “socket” => “/tmp/lighttpd.fcgi.socket”,
“check-local” => “disable”,
))
)
with this:
“nasMaster.pl” => (( “socket” => “/tmp/lighttpd.fcgi.socket”,
“check-local” => “disable”,
)),
“.php” => (( “bin-path” => “/usr/local/bin/php-cgi”,
“socket” => “/tmp/php.socket”,
))
)
You might also want to change the line that reads:
index-file.names = ( "nasMaster.pl" )
to read
index-file.names = ( "nasMaster.pl", "index.html", "index.php" )

ALSO: you need to enable shell commands from the http server!!

Add line:

Var.a=1

(I just put it in the first line)

8) After you make these changes, you need to restart lighthttpd:
a. /etc/init.d/lighthttpd.sh restart
9) Enable lighttpd server to serve pages in your PUBLIC dir
a. # ln -s /shares/internal/PUBLIC /usr/www/lib/
b. # reboot

10) NOW YOU ARE READY TO INSTALL w3btorrent!
11) Cd /shares/internal/PUBLIC/
12) Mkdir w3btorrent
13) Chmod 777 w3btorrent
14) Cd w3btorrent
15) Wget http://w3btorrent.thewulong.com/install.php
16) Now visit http://<IP-OF-YOUR-MYBOOK>/PUBLIC/w3btorrent/install.php
17) When it the install says you don’t have the binaries click configure then compile.

NOTE: I have found that the files sizes of the downloads are incorrect after you start the torrent (new release supposted to be coming in a week to fix this). I have contacted the author of w3btorrent and he thinks this is a bug in his code. This does not affect the download just the ability for you to see when it will complete. Until this is resolved you can click on the torrent name and view the pieces downloaded compared to pieces in torrent to see how far close you are to being done.

NOTE: I am pretty noob at *nix so I am sure you could get away with not having all the flags on the tar commands or the 777 for the w3btorrent folder but I knew they would work

I hope these instructions help. Most of them are available either by martin, or others to get the box setup to run PHP the trick is adding the shell commands to be run by PHP before you start installing w3btorrent.

Also if I have left out any steps please let me know. It took quite some time to get it up and running the first time so I backtracked a couple of times but I think this is the most direct way.

unfold Re: Getting a working torrent program on MyBook World by CaptChrisCaptChris, 1194536182|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
tcblacktcblack 1194650543|%e %b %Y, %H:%M %Z|agohover

Autoconf will require m4 1.10 it should be as simple as

wget http://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz
tar xfvz m4-1.4.10.tar.gz
cd m4-1.4.10
./configure
make
make install

then proceed with autoconf.
unfold Re: Getting a working torrent program on MyBook World by tcblacktcblack, 1194650543|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
karlokarlo 1195644081|%e %b %Y, %H:%M %Z|agohover

Hi

Why "mysql" supporto bulding PHP? Is it a prerequisite mysql?

I've installed sqllite for firefly…

karlo

unfold Re: Getting a working torrent program on MyBook World by karlokarlo, 1195644081|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
JosefKJosefK 1210000618|%e %b %Y, %H:%M %Z|agohover

restarting lighttpd.conf after modifying as suggested I got this error

Restarting lighttpd: 2008-04-22 01:22:37: (configfile.c.796) source: /etc/lighttpd/lighttpd.conf line: 70 pos: 52 parser failed somehow near here: socket

could you please post the entire lighttpd.conf file?

edit:

found it here

last edited on 1210172236|%e %b %Y, %H:%M %Z|agohover by JosefK + show more
unfold Re: Getting a working torrent program on MyBook World by JosefKJosefK, 1210000618|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
terosteros 1194775196|%e %b %Y, %H:%M %Z|agohover

Note that the MySQL client library is not bundled anymore!
[root@MyBookWorld php-5.2.3]# make
make: *** No targets specified and no makefile found. Stop

hey getting the above error and cannot perform a make on the install attempted to skip aead and do the w3btorrent works fine but can't do the http://<IP-OF-YOUR-MYBOOK>/PUBLIC/w3btorrent/install.php check . then read i should do the php install first anyone able to help?

unfold Re: Getting a working torrent program on MyBook World by terosteros, 1194775196|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
anandusanandus 1195072865|%e %b %Y, %H:%M %Z|agohover

I've got the same problem.
I've also added the last lines of ./configure
Looks like libxml isn't wokring right? Or not?

Configuring extensions
checking whether to enable LIBXML support… yes
checking libxml2 install dir… no
checking for xml2-config path… /usr/local/bin/xml2-config
checking whether libxml build works… no
configure: error: build test failed. Please check the config.log for details.
[root@MediaStorage php-5.2.3]# make
make: *** No targets specified and no makefile found. Stop.
[root@MediaStorage php-5.2.3]#

unfold Re: Getting a working torrent program on MyBook World by anandusanandus, 1195072865|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
ruphruph 1194784837|%e %b %Y, %H:%M %Z|agohover

Does this torrent client work?

rtorrent hangs a lot: http://mybookworld.wikidot.com/forum/t-21733/rtorrent-hangs

unfold Re: Getting a working torrent program on MyBook World by ruphruph, 1194784837|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
terosteros 1194785414|%e %b %Y, %H:%M %Z|agohover

i tried getting BTG running started getting errors with GCC compile exiting with error level 1 how bout
http://tf-b4rt.berlios.de/

Think would be better if something with a web client would be better would love to be able to just hit a site and watch it go.

unfold Re: Getting a working torrent program on MyBook World by terosteros, 1194785414|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
obenturkobenturk 1194897302|%e %b %Y, %H:%M %Z|agohover

it is not hanging like rtorrent I downloaded 9 gig file without problem…

unfold Re: Getting a working torrent program on MyBook World by obenturkobenturk, 1194897302|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
nbosworthnbosworth 1194999699|%e %b %Y, %H:%M %Z|agohover

Hi, I'm a newbie to linux, PHP and the MyBook world and i'm hoping someone might be able to help me.

I followed the tutorial above and everything seems to have gone OK, no errors when installing, but when i go to http://192.168.1.2/PUBLIC/w3btorrent as instructed by the w3btorrent install i get a blank screen.

Has anyone else experienced this?

I think the problem might be something to do with PHP, as I tried putting a PHP website i made a few years ago onto the MyBook World and that didn't work either.

Regards, Nick

unfold Re: Getting a working torrent program on MyBook World by nbosworthnbosworth, 1194999699|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
tcblacktcblack 1195481404|%e %b %Y, %H:%M %Z|agohover

you'll need to edit /etc/lighttpd/lighttpd.conf and look for the line that starts with index-file.names = it need to include at least index.php as in:

index-file.names = ( "index.html", "nasMaster.pl", "index.php", "index.htm" )
unfold Re: Getting a working torrent program on MyBook World by tcblacktcblack, 1195481404|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
nbosworthnbosworth 1195492182|%e %b %Y, %H:%M %Z|agohover

my index-file.names is exactly as above, could anyone post a copy of their working lighttpd.conf file?

i tried going back to step 6 of the tutorial to re-install PHP, but downloaded the latest version of PHP (5.2.5).

has anyone else hit a problem at 6g?

i typed "make" but it asked me for other parameters.
I managed to get it to make by using a different set of ./configure parameters from a different php tutorial, but the ones i used probably weren't the right ones.

unfold Re: Getting a working torrent program on MyBook World by nbosworthnbosworth, 1195492182|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
terosteros 1195348119|%e %b %Y, %H:%M %Z|agohover

i get the same thinking it has something to do with editing lighttpd.conf or the php part i had to folllow the instructions from the hacks and howto's kept getting mysql error's could i grab anyones lighttpd.conf that's working to see if this is the issue?

unfold Re: Getting a working torrent program on MyBook World by terosteros, 1195348119|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
anandusanandus 1195585015|%e %b %Y, %H:%M %Z|agohover

So nobody has any problems installing php?
This is what I get when I try to ./configure:

Configuring extensions
checking whether to enable LIBXML support… yes
checking libxml2 install dir… no
checking for xml2-config path… /usr/local/bin/xml2-config
checking whether libxml build works… no
configure: error: build test failed. Please check the config.log for details.
[root@MediaStorage php-5.2.3]# make
make: *** No targets specified and no makefile found. Stop.
[root@MediaStorage php-5.2.3]#

I'd really like to get this torrent program going :)

last edited on 1195585108|%e %b %Y, %H:%M %Z|agohover by anandus + show more
unfold Re: Getting a working torrent program on MyBook World by anandusanandus, 1195585015|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
nbosworthnbosworth 1195649685|%e %b %Y, %H:%M %Z|agohover

thats exactly what happened to me.
does anyone have any ideas what went wrong or what the problem could be?

unfold Re: Getting a working torrent program on MyBook World by nbosworthnbosworth, 1195649685|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
BimmeBimme 1196235541|%e %b %Y, %H:%M %Z|agohover

I had a similar problem. In my case it was a softlink from zile to emacs that caused the problem. Removing the softlink emacs solved the problem.

But now I have problem with the next step (php):
# ./configure .without-iconv .without-pear .enable-fastcgi .enable-discard-path .enable-force-cgi-redirect .with-mysqli=/usr/bin/mysql_config .with-mysql
configure: error: can only configure for one host and one target at a time

Has anyone seen this?

last edited on 1196235662|%e %b %Y, %H:%M %Z|agohover by Bimme + show more
unfold Re: Getting a working torrent program on MyBook World by BimmeBimme, 1196235541|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
d2allgrd2allgr 1196669708|%e %b %Y, %H:%M %Z|agohover

instead of
./configure .without-iconv .without-pear .enable-fastcgi .enable-discard-path .enable-force-cgi-redirect .with-mysqli=/usr/bin/mysql_config .with-mysql

run:
./configure -without-iconv -without-pear -enable-fastcgi -enable-discard-path -enable-force-cgi-redirect -with-mysqli=/usr/bin/mysql_config -with-mysql

unfold Re: Getting a working torrent program on MyBook World by d2allgrd2allgr, 1196669708|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
anandusanandus 1196721375|%e %b %Y, %H:%M %Z|agohover

So how did you remove 'softlinks'?

unfold Re: Getting a working torrent program on MyBook World by anandusanandus, 1196721375|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
terosteros 1195996182|%e %b %Y, %H:%M %Z|agohover

is it possible for someone to make these pro-configured for the mybook or do a tutorial on this. I am getting the same error as some of the guys here think it's because more of us a noobies to this and not used to using the cli or how to torubleshoot issues when they arise.

unfold Re: Getting a working torrent program on MyBook World by terosteros, 1195996182|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
XiceXice 1197199668|%e %b %Y, %H:%M %Z|agohover

Your system can't use the binarys following with w3btorrent, sorry. You can keep using BitTorrent/Tornado if you have these installed (couldn't find any) or you can try «create» them with this installer, just click "Configure" and "Compile" when configure is finish. Good luck.

unfold Re: Getting a working torrent program on MyBook World by XiceXice, 1197199668|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
XiceXice 1197204471|%e %b %Y, %H:%M %Z|agohover

Blank Screen :-/

unfold Re: Getting a working torrent program on MyBook World by XiceXice, 1197204471|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
Dexter1979Dexter1979 1198940048|%e %b %Y, %H:%M %Z|agohover

Hey all,
I just thought I post my experience in getting w3btorrent working. I did it slightly different. I Installed PHP according to the PHP installation under the 'Getting most of mybook' section. This worked like a charm. I then went to this post and started from the 'getting Lighttpd' section and proceded from there. This worked very well. Also, the PHP installation in the other section installs without MySQL which you DO NOT NEED! I hope this helps everyone who ran into the Libxml problem. I could not get W3btorrent working with the method mentioned in this post. The libxml installation mention in the other PHP installation process worked very well. So, try that if the method in this post doesn't work. Hope this helps people! Good luck!

unfold Re: Getting a working torrent program on MyBook World by Dexter1979Dexter1979, 1198940048|%e %b %Y, %H:%M %Z|agohover
Re: Getting a working torrent program on MyBook World
Dexter1979Dexter1979 1199453937|%e %b %Y, %H:%M %Z|agohover

Oh yeah, I forgot to mention it works very well, downloads big torrents without a problem. It does have a few bugs. When you start downloading the torrent size goes funny. This was mention already. But all in all very happy. Specially if you combine it with DynDNS and access through the internet. Got a torrent downloaded whiles on holiday this way. :-)

unfold Re: Getting a working torrent program on MyBook World by Dexter1979Dexter1979, 1199453937|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License