26331 total geeks with 3498 solutions
Recent challengers:
  • KNL reverser 7 - 07:52PM
  • krc level 2 - 11:06AM
  • krc level 1 - 08:33AM
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
MaxMouse
It's Friday... That's good enough for me!
CodeX
non stop lolz here but thats soon to end thanks to uni, surely the rest of the world is going good?
stabat
how things are going guys? Here... boring...
CodeX
I must be going wrong on the password lengths then, as long as it was done on ECB
MaxMouse
lol... the key is in hex (MD5: of the string "doit" without the "'s) and is in lower case. Maybe i should have submitted this as a challenge!

Donate
Donate and help us fund new challenges
Donate!
Due Date: Jun 30
June Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
Kiwi telco Two
Degrees to roll out
4G in 2014
TypeScript 0.9
arrives with new
compiler, support
for generics
Google mounts legal
challenge to
surveillance gag
orders
It"s time to suck
the marrow from the
NBN debate
Increased cell
phone coverage tied
to uptick in
African violence
Remote code
execution vuln
appears in Puppet
Canonical unveils
Carrier Advisory
Group for Ubuntu
phones
Soylent days and
soylent nights
Tor users locked
out of Facebook
after wave of dodgy
traffic
GE partners with
Amazon for
"industrial
internet"
Slashdot
Oculus Rift Raises
Another $16 Million
KWin Maintainer:
Fanboys and Trolls
Are the Cancer
Killing Free
Software
Google Files First
Amendment Challenge
Against FISA Gag
Order
Microsoft To Start
Dumping Surface RT
To Schools For $199
With an Eye Toward
Disaster, NYC
Debuts Solar
Charging Stations
2013 U.S. Wireless
Network Tests:
AT&T Fastest,
Verizon Most
Reliable
How Ubiquitous
Autonomous Cars
Could Affect
Society (Video)
First Particle
Comprising Four
Quarks Discovered
Jon "Maddog" Hall
On Project
Cauã: a Server
In Every Highrise
HFT Nothing To
Worry About (at
Least In Australia)
Article viewer

How to build rtorrent/libtorrent for arm5vtel NSLU2 running debianslug



Written by:bb
Published by:bb
Published on:2006-10-19 07:32:57
Topic:Linux
Search OSI about Linux.More articles by bb.
 viewed 23185 times send this article printer friendly

Digg this!
    Rate this article :
I have spent the last four days going slowly insane trying to get a cross compiler to work for debianslug (a little endian version of Linux for ARM). I wont go into the bitter details but suffice to say it was painful and I didnt get there in the end.

I was trying to build a cross compiler so I could build the latest version rtorrent/libtorrent as it includes support for encryption which I really wanted (as my ISP traffic shapes).

After trying to cross compile using a debian virtualpc on my windows box and using the debianslug image from the MasterMakeFile for the debianslug project I gave up and tried compiling the source on the slug itself. This is something I had previously tried but due to my inexperience with configuring and building stuff for linux I wasnt able to do (so I guess my experiences cross compiling did gain me some useful knowledge).

A friend rj suggested the best way to cross compile in debian was by using the Scratchbox project, however I'd had enough of attempting cross compilers by then (and already had an arm-linux-gcc from the debianslug mastermakefile) so I didnt bother trying. The link for it ias at the bottom of the page if anyone wishes to try.

To build libtorrent/rtorrent for ARM on the NSLU2 running debianslug/LE I did the following ...

Pre-Reqs - this may be incomplete as I did so many things along the way but I am sure did these things..
apt-get install bc
apt-get install libsigc++-2.0-dev
apt-get install libsigc++-2.0-0c2a
apt-get install libncurses5-dev


Get the latest code


Run autogen to prepare the autotools for building the configure
cd libtorrent
./autogen.sh


Run configure. I specified an installroot for this stuff, so the binaries get copied there and I can manually try them out rather than it installing them
somewhere like /usr/bin
./configure --prefix=/root/installroot/


Make and install the binaries. libtorrent took over 2 hours to compile on my slug
make
make install


Here I tried to configure rtorrent and a few issues crept out of the woodwork. For some reason my libtorrent had been built successfully but the pkg file did not have a version number written inside it. This caused rtorrent to complain about not having the right version of libtorrent. If you get this issue go and find the libtorrent pkg file in your installroot/lib/pkgconfig directory and manually add in a version number. Rakshasa (rtorrent author) explained to me this was a known issue with out of date auto* tools on the build machine.

Now configure rtorrent (specifying where the libtorrent binary lives) by passing in the PKG_CONFIG_PATH on the command line
cd ../rtorrent
./autogen.sh
PKG_CONFIG_PATH=/root/installroot/lib/pkgconfig ./configure --prefix=/root/installroot/


Now make and install the rtorrent binary. I have no idea how long this one took (but it looked like it was going to ages) as I left it running and went to bed.
make
make install


Once this is all done you have a nice set of rtorrent and libtorrent binaries in /installroot/ which you can do with as you wish. If like me you were building for encryption dont forget to update your .rtorrent.rc file to add in a new config key for encryption (check the man page).



Some useful links to debianslug nslu2 cross compiling and rtorrent are here...

rtorrent
http://www.nslu2-linux.org/wiki/DebianSlug/CrossCompiling
http://www.mobilab.unina.it/Resources/crosscompilerHOWTO.html
ScratchBox

Thanks to rj-away, and the people of #nslu2-linux on freenode for wasting time with me whilst I did this.

Did you like this article? There are hundreds more.

Comments:
Anonymous
2007-03-29 14:06:18
that list of pre-requisites is so incomplete ;). but you're right, if I had to write a guide on how I did now, it'd be just as incomplete, because it's hard to keep track of the hundreds of extra packages I had to install that I didn't originally have. After some good guesswork though I got it running. thanks.
min.
Anonymous
2007-06-25 10:57:09
I also needed:
apt-get install automake libtool
Anonymous
2007-08-04 09:28:00
This should get you everything you need:

apt-get install build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl3-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev
Anonymous
2007-10-11 14:50:25
Joseba:
When execute rtorrent (ERROR):
rtorrent: HandshakeManager::receive_succeeded(...) Unread data won't fit PCB's read buffer.
sol:
http://libtorrent.rakshasa.no/ticket/840
http://libtorrent.rakshasa.no/wiki/LibTorrentKnownIssues
Anonymous
2007-10-19 16:25:46
Dartagnan> You will need all these packages:
build-essential libsigc++-2.0-dev pkg-config comerr-dev libcurl3-openssl-dev libidn11-dev libkadm55 libkrb5-dev libssl-dev zlib1g-dev libncurses5 libncurses5-dev libtool automake svn-arch-mirror
Anonymous
2007-11-18 14:55:08
For xmlrpc you also need libxmlrpc-c3-dev libwww-dev
Anonymous
2007-11-18 14:57:33
Oh, and libexpat1-dev. You need to add --withl-xmlrpc-c to ./configure.
Anonymous
2007-11-23 10:02:25
I find .deb files for ARM NSLU2 on this website (last SVN and DHT patched). Hope it could help : http://www.cybel.be
Anonymous
2007-11-24 09:32:45
I have compiled the stable version on the slug. It has run for a week without incidents.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.8.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.8.tar.gz
Anonymous
2007-11-24 15:02:30
Ah, forgot code to create a link,

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.8.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.8.tar.gz

Install debian rtorrent and libtorrent10, su to 'root', go to '/' and gzip -cd ... | tar xfv- the files to overwrite the debian version with the xscale compiled version
Anonymous
2007-12-05 21:19:43
Also compiled the new stable releases (0.7.9 and 0.11.9)

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9.tar.gz

Install debian rtorrent and libtorrent10, su to 'root', go to '/' and gzip -cd ... | tar xfv- the files to overwrite the debian version with the xscale compiled version
Anonymous
2007-12-07 11:08:15
Why not compile it with xmlrpc support ?
Anonymous
2007-12-07 19:27:44
It is compiled with xmlrpc support, it works fine on my slug.
Anonymous
2007-12-08 19:04:45
Also compiled the unstable release (0.7.9 and 0.11.9 rev 1016). This version supports DHT.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1016.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1016.tar.gz

Install debian rtorrent and libtorrent10, su to 'root', go to '/' and gzip -cd ... | tar xfv- the files to overwrite the debian version with the xscale compiled version
Anonymous
2007-12-11 16:52:54
Does your version support returning 64 bit values via xmlrpc ? For example torrent size exceeding 4GB.

Thanks in advance.
Anonymous
2007-12-11 22:46:00
I just pulled the source files and compiled with the options for xscale and xmlrpc. I am not aware of options for 64bit xmlrpc, so I guess the answer is to try it yourself. I use wtorrent and that works fine with this compile.
Anonymous
2007-12-13 21:08:16
Thanks for compiling for the slug. I have the latest apt-get version of rtorrent, but how do I install your binaries. I have wget the gz-files and sudo:ed to root, but the gzip-part I didn't get. Can you please post an example step by step from there on? I don't really know to where rtorrent is installed, and I guess I just have to overwrite those files, or?
Anonymous
2007-12-15 08:12:58
The problem is that I do not know how to create debian install files. The files are located in /usr/lib and /usr/bin. The tar.gz fikes already contain the correct paths to overwrite the debian ones.If you are root execute the following commands (example is 0.7.9) :
cd /
gzip -cd libtorrent-0.11.9.tar.gz ¦ tar xfv-
gzip -cd rtorrent-0.7.9.tar.gz ¦ tar xfv-

This will overwrite the files /usr/lib/libtorrent.so.10.0.8 and /usr/bin/rtorrent.
Anonymous
2007-12-15 08:44:40
I have assumed 2 things in this description. First of all that you are on the 'lenny' release of Debian. You need to get rtorrent 0.7.8 and libtorrent-0.11.8 from the debian release, which is the default for the 'lenny' release. This is to ensure that the lib links are set correctly. The other assumption is that you have put the downloaded files in the '/' dir of the slug, otherwise add the path of the downloaded files to them.
Anonymous
2007-12-16 11:10:56
Regarding question on the 64 bit xmlrpc-c version. I use the lenny provided version xmlrpc-c (1.06.18-1). I gather that this is the 32 bit version. I will check if I can compile the 1.1x version, but a hint to compile it would be appreciated.
Anonymous
2007-12-17 23:37:13
Thanks, Anonymous, 2007-12-13 21:08:16. Got It, but stuck on libcurl.so.4 error, and it looks like its because I'm on Etch. So I guess I'll have to build anyway, and learn what to do with the binaries afterwards.
Anonymous
2007-12-18 03:07:27
thank you for your compiles, I spent 24 hours compiling justo to find out I needed to use special flags :S
I only have one problem, when running rtorrent it's taken over 80% cpu usage. can anyone help me?

I needed to know, I'm running etch, I just downloaded lenny's rtorrent and dependencies (which means I have an hybrid now)
Anonymous
2007-12-18 03:08:42
IF needed to know*
Anonymous
2007-12-18 22:52:04
The high cpu usage could be caused by failing torrent file loads, see http://libtorrent.rakshasa.no/ticket/1133
Anonymous
2007-12-19 06:25:49
doesn't seem the case since I don't get any errors and all torrents are downloading, but I will still check
Anonymous
2007-12-19 13:13:10
(Yeah, just copy/paste, anyone can do it :-) Also compiled the unstable release (0.7.9 and 0.11.9 rev 1020). This version supports DHT. Beware it is a non stable release, running for 3 days on my machine without incidents.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1020.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1020.tar.gz

Install debian rtorrent and libtorrent10, su to 'root', go to '/' and gzip -cd ... | tar xfv- the files to overwrite the debian version with the xscale compiled version
Anonymous
2008-01-01 11:11:16
can you paste you .rtorrent.rc please? :)
Anonymous
2008-01-01 13:40:26
Sure, I will create a link to it rather than filling pages :
http://home.wanadoo.nl/hhasert/software/rtorrent.rc
You can also use the one from Rakhasa as a basis to start :
http://libtorrent.rakshasa.no/browser/trunk/rtorrent/doc/rtorrent.rc?rev=latest
Anonymous
2008-01-01 17:57:31
thank you very much. :) i hope this solved my performance problems. is there a possibility to contact you via email/irc/im? cause for me as a (more or less) nslu2 beginner it could be useful to have a good contact.. ;)
Anonymous
2008-01-02 11:35:17
Also compiled the unstable release (0.7.9 and 0.11.9 rev 1025). This version supports DHT. Beware it is a non stable release, running for 1 day on my machine without incidents.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1025.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1025.tar.gz
Anonymous
2008-01-02 11:59:35
hmmm... didnt solve the problems.. the system always runs out of memory:
"Jan 2 07:31:10 flo2slug kernel: Out of Memory: Kill process 1859 (bash) score 719 and children.
Jan 2 07:31:10 flo2slug kernel: Out of memory: Killed process 2426 (rtorrent)."
http://combatx.net/temp/syslog

well actually one torrent has a size of 70GB.
how can i limit the memory usage or how do i solve this problem?
Anonymous
2008-01-02 13:21:54
I can be reached on ICQ 495944913. I have pruned the memory of the Slug by disabling stuff, only a few programs are in fact running, and I have a 256 Mb swap partition on a usb memory stick.
Anonymous
2008-01-10 21:33:52
Also compiled the unstable release (0.7.9 and 0.11.9 rev 1026). This version supports DHT. Beware it is a non stable release, running for 1 day on my machine without incidents.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1026.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1026.tar.gz
Anonymous
2008-01-13 15:59:29
Also compiled the unstable release (0.7.9 and 0.11.9 rev 1027). This version supports DHT. Beware it is a non stable release and contains a bug fix.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1027.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1027.tar.gz
Anonymous
2008-01-22 20:09:31
Also compiled the unstable release (0.7.9 and 0.11.9 rev 1029). This version supports DHT. Beware it is a non stable release and contains a bug fix.

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1029.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1029.tar.gz
Anonymous
2008-01-23 20:11:52
Next release 1030:
http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1030.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.7.9_1030.tar.gz
Anonymous
2008-01-25 19:57:06
Bugfix release, only libtorrent rev 1031 :

http://home.wanadoo.nl/hhasert/software/libtorrent-0.11.9_1031.tar.gz
Anonymous
2008-01-30 10:23:25
Next release (unstable) libtorrent 0.12.0 and rtorrent 0.8.0
http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0.tar.gz
http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0.tar.gz

Beware this installs libtorrent.so.11.0.0 so the previous version becomes obsolete. delete all references to libtorrent.so.10* to clear the diskspace. You need to run /sbin/ldconfig or you have to reboot the Slug.

P.S. I deleted all the older revisions from the website.
Anonymous
2008-02-05 22:11:36
Next release (unstable) 0.12.0 / 0.8.0 rev 1038 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1038.tar.gz

(only rtorrent was changed)
Anonymous
2008-02-23 13:00:36
Next release (unstable) 0.12.0 / 0.8.0 rev 1039 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1039.tar.gz
http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0_1039.tar.gz

(Still downloaders interested ?)
Anonymous
2008-03-04 16:46:09
Next release (unstable) 0.12.0 rev 1040 :

http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0_1040.tar.gz

Only libtorrent, because rtorrent has a compile error. This rev works with rtorrent rev 1039 and contains a bug fix for DHT.
Anonymous
2008-03-07 23:10:00
Finally the bug in 1040 was resolved, rtorrent 0.8.0 rev 1040 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1040.tar.gz

(rtorrent to match libtorrent rev 1040, extensions to xmlrpc)
Anonymous
2008-03-11 15:47:57
hei, I too have problems with the memory as dmesg reports:
Out of Memory: Kill process 10797 (bash) score 166 and children.
Out of memory: Killed process 13832 (rtorrent).
Since the NSLU 2 has only 32 MB of RAM I added a big swap of 1,5 GB (probably to much.. ;)).
However, rtorrent keeps crashing with out of memory. any solutions, please??
Anonymous
2008-03-12 18:04:46
My settings :

max_peers = 12
min_peers = 1

They do influence memory consumption and hence running out of it. It is mostly non-swappable, so must be in physical. The things that consume memory are mostly buffers to hold data. Having more active peers means more active chunks downloading/uploading and hence more mmap() pieces in actual memory. There is no straightforward formula given, but I think that this is correct. Associated with the active tcp/ip links are the tcp/ip buffers (16384 by default) that are used to buffer traffic to peers. The number of peers is therefore limited on a Slug. Try to avoid starting stuff you do not need as well. I have a very limited set of started programs that consume memory on it.
Anonymous
2008-03-12 18:07:38
Uh, additional, I think that the active peers have more influence than the inactive ones. Hence the global upload/download settings should have the most effect.
Anonymous
2008-03-13 10:46:48
thank you very, very much!

As you possibly know, the tcp/ip buffer can be adjusted with send_buffer_size and receive_buffer_size. Minimum setting on the NSLU2 is 4096. What do you think, could decreasing the buffer size and increasing the max_peer value speed up the downloads?
Anonymous
2008-03-13 18:35:28
That is a difficult question indeed. You would need to know a lot more on the dynamics of the system then I presently do. I do not worry on download time as much, since the Slug is constantly on and I can wait for a day more if need be. I think that reducing buffersize and increasing peers will put additional load on the processor. Not a clue what the outcome will be. I thought the issue was stability :-)
Anonymous
2008-03-13 22:26:51
Keeping max global as set will enable multiple active torrents. There is no option (yet, it is a request for enhancement) to do what you propose.
Anonymous
2008-03-13 22:28:59
rtorrent 0.8.0 rev 1041 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1041.tar.gz

(rtorrent 1041 can be used with libtorrent rev 1040 (no changes to libtorrent), minor updates to interface)
Anonymous
2008-03-19 18:40:02
I search an advanced xmlrpc-c and rtorrent/libtorrent version for ntorrent GUI...
Anonymous
2008-03-20 20:46:00
Next release (unstable) 0.12.0 / 0.8.0 rev 1044 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1044.tar.gz
http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0_1044.tar.gz
Anonymous
2008-03-21 10:31:43
can anyone please make a build for slugosLE ?
Anonymous
2008-03-21 12:32:25
See http://www.nslu2-linux.org/wiki/SlugOS/SlugOSLE

"Debian now fully supports the NSLU2 using debian-installer (this is the setup known as Debian/NSLU2). This is the current recommended way to install Debian on a slug, instead of using SlugOS/LE."

Advice is to switch to the official Debian distribution :-)
Anonymous
2008-03-21 15:34:32
rtorrent 0.8.0 rev 1045 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1045.tar.gz

(rtorrent 1045 can be used with libtorrent rev 1044 (no changes to libtorrent))
Anonymous
2008-03-22 20:28:35
rtorrent 0.8.0 rev 1045 compiled with xmlrpc-c-1.3.08 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1045_adv.tar.gz

(rtorrent 1045 can be used with libtorrent rev 1044 (no changes to libtorrent))
Beware, this does not use the lenny xmlrpc-c, it uses rev 1381 of xmlrpc-c advanced !!!
Anonymous
2008-03-22 21:29:01
For those of you with knowledge on unix, I have made a tar file of the xmlrpc-c library and bin files :
http://home.wanadoo.nl/hhasert/software/xmlrpc-1.3.08.tar.gz

If the requester of this version (which works fine with ntorrent) can verify the installation, I might switch to the advanced version of xmlrpc-c in the future.
Anonymous
2008-03-22 21:30:50
Oh, the best install is to remove libxmlrpc* from /usr/lib before extracting the tar file. Otherwise some libs will use up additional space. Just wish I knew how to make a .deb file. Any volunteers to help me ?
Anonymous
2008-03-23 17:14:42
Thank you very, very much! ntorrent work perfectly! wtorrent - slow on NSLU2.
I find .deb files make guide: http://www.debian.org/doc/maint-guide/index.en.html#contents . It is maybe useful ...
Anonymous
2008-03-23 17:43:48
Thanks for the link, will look into it next week. Did you use my tar file for xmlrpc-c? If that works ok I will switch to xmlrpc-c advanced, since ntorrent is so much faster.
Anonymous
2008-03-23 19:55:32
I use http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1045_adv.tar.gz + http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0_1044.tar.gz + http://home.wanadoo.nl/hhasert/software/xmlrpc-1.3.08.tar.gz. ntorrent works ok!!!
Anonymous
2008-03-23 20:41:25
Yes, the files I have supplied and appearently they are sufficient. So dear downloaders, I will switch to xmlrpc-c advanced from now on. If you want to continue to use my contributions, update xmlrpc-c with the supplied tar file.
Anonymous
2008-03-25 09:31:40
Actually I have built a more complete xmlrpc-c file based on rev 1383 :
http://home.wanadoo.nl/hhasert/software/xmlrpc-1.13_1383.tar.gz
Anonymous
2008-03-25 20:02:08
Next release (unstable) 0.12.0 / 0.8.0 rev 1047 (compiled with advanded xmlrpc-c 1.13 rev 1383) :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1047_adv.tar.gz
http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0_1047_adv.tar.gz
Anonymous
2008-03-28 17:20:22
Actually I have built a more complete xmlrpc-c file based on rev 1391 :
http://home.wanadoo.nl/hhasert/software/xmlrpc-1.14_1391.tar.gz
Anonymous
2008-03-29 12:41:02
Thank you very much for the links ! It resolved my problem (rtorrent segmentation,malloc issue...)
But now i want to use ntorrent but when i use "scgi_port = 127.0.0.1:5000" in .rtorrent.rc
i get "rtorrent: Fault occured while inserting xmlrpc call." If you can help me it would be great :)

ps : i use xmlrpc-c file based on rev 1383 and libtorrent 0.12.0 / rtorrent 0.8.0 rev 1047
Anonymous
2008-03-29 19:04:41
Next release (unstable) 0.12.0 / 0.8.0 rev 1049 (compiled with advanded xmlrpc-c 1.14 rev 1391) :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1049_adv.tar.gz
http://home.wanadoo.nl/hhasert/software/libtorrent-0.12.0_1049_adv.tar.gz
Anonymous
2008-03-29 19:16:54
Regarding the error. In .rtorrent.rc the port could be scgi_port = localhost:5000 that worked for me. I see references on internet that your config should work as well. Instead you could use the unix sockets interface :
scgi_local = /tmp/rpc.socket . The definition in lighttpd.conf looks like this with that option :


scgi.server = (
"/RPC2" => #RT_DIR
("127.0.0.1" =>
(
"socket" => "/tmp/rpc.socket",
"check-local" => "disable",
"disable-time" => 0
)))


Anonymous
2008-03-29 19:20:02
See also http://gentoo-wiki.com/Rtorrent_with_xmlrpc_on_lighttpd
Anonymous
2008-03-29 21:20:48
Thanks for your answer :)
I tried as you said and also the link above, but my problem still there... Is it normal that there is no /tmp/rpc.socket? Because when I started lighttpd and i can't see that rpc.socket, i can only see "php.socket-0, php-socket-1, etc... When i watch lighttpd error.log there is nothing too :(
ps : I'm running debian on nslu2.
Anonymous
2008-03-29 21:34:42
just one question, what is "/RPC2" ?
Anonymous
2008-03-29 22:16:52
(1) Lol. The /tmp/rpc.socket is generated by rtorrent when it starts with the scgi_local = /tmp/rpc.socket. You will see it as a file in the /tmp dir.

(2) /RPC2 is an address that refers to the xmlrpc interface. Lighttpd will route http requests to http://www.mywebsite.com/RPC2 to the scgi server which uses xmlrpc to call to rtorrent. In ntorrent you have to specify /RPC2 as a 'mount point'.
Anonymous
2008-03-29 22:44:27
okay :)
Well i don't know what to do i'm still stuck with this "rtorrent: Fault occured while inserting xmlrpc call." :(
Anonymous
2008-03-29 22:55:31
Found a match, but do not beleive it, since it worked fine for me with ntorrent.
http://libtorrent.rakshasa.no/ticket/1244
Maybe there is something missing in the file I supplied ? I will have to look into it.
Anonymous
2008-03-29 23:38:09
Thanks for your help, do you need more information about my config?
Anonymous
2008-03-30 00:42:23
Did you run /sbin/ldconfig after unpackIng the xmlrpc file ? It would be nice to get some config files.
Anonymous
2008-03-30 02:09:59
i tried /sbin/ldconfig but nothing happened.
there is my ~/.rtorrent.rc :

scgi_local = /tmp/rpc.socket
#scgi_port = 127.0.0.1:5000
upload_rate = 40
directory = /data1/share/downloads/data/
session = /data1/share/downloads/session/
port_range = 7890-7999
port_random = yes
check_hash = no
encryption = allow_incoming,enable_retry,prefer_plaintext
schedule = watch_directory,15,15,load_start=/data1/share/downloads/torrent_active/*.torrent
schedule = tied_directory,15,15,start_tied=
schedule = untied_directory,15,15,stop_untied=

and lighttpd.conf is like you told me to do.

Anonymous
2008-03-30 02:17:14
i also tried installing those packages like http://fjufirefox.blogspot.com/2007/11/debain-ntorrent-support-rtorrent.html
but it didn't fix my issue
Anonymous
2008-03-30 09:21:47
Did you run /sbin/ldconfig after unpackIng the xmlrpc file ? It would be nice to get some config files.
Anonymous
2008-03-30 09:26:58
Sorry, duplicate post due to caching probs in browser. Lets do this on ICQ, my number is in the posts somewhere.
Anonymous
2008-03-30 10:27:59
I can be reached on ICQ 495944913
Anonymous
2008-03-30 10:56:36
okay, see you on icq :)
Anonymous
2008-04-03 12:40:57
OK rtorrent works fine when I follow instructions here:
http://www.nslu2-linux.org/wiki/HowTo/InstallRtorrentOnDebain
but when I try to install rtorrent 0.8.+ and libtorrent 0.12+ I get a :
version `GLIBCXX_3.4.9' not found error
Any ideas ?
libstdc++ is already installed
Could anyone also be kind enough to upload an rtorrent.rc file with settings that will not kill rtorrent due to lack of memory ?
Anonymous
2008-04-08 19:27:13
You probably have to update, apt-get update on th lenny distrib. and apt-get upgrade (beware, will update all packages) or specifically update GCC.
Anonymous
2008-04-09 07:23:06
Hello to all
For first sorry for my poor english
i have some problem whit upload speed in rtorrent 0.7.9
i cant see peers in swarm (not many)

this is my rtorrent.rc:
Quote:

# This is an example resource file for rTorrent. Copy to
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to
# uncomment the options you wish to enable.
scgi_local = /tmp/xmlrpc.socket

# Maximum and minimum number of peers to connect to per torrent.
min_peers = 64
max_peers = 128

# Same as above but for seeding completed torrents (-1 = same as downloading)
min_peers_seed = 32
max_peers_seed = 64

# Maximum number of simultanious uploads per torrent.
max_uploads = 32

# Global upload and download rate in KiB. "0" for unlimited.
download_rate = 0
upload_rate = 0

# Default directory to save the downloaded torrents.
directory =/root/incoming/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /root/session/

# Watch a directory for new torrents, restart torrents that have been copied back and stop those that hav$
schedule = watch_directory,2,2,load_start=/root/torrent/watch/*.torrent
schedule = untied_directory,2,2,stop_untied=

# Close torrents when diskspace is low.
#schedule = low_diskspace,5,60,close_low_diskspace=100M

# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"


# Port range to use for listening.
port_range = 40000-40500

# Start opening ports at a random position within the port range.
port_random = no

# Check hash for finished torrents. Might be usefull until the bug is
# fixed that causes lack of diskspace not to be properly reported.
check_hash = no

# Set whetever the client should try to connect to UDP trackers.
#use_udp_trackers = yes

# Alternative calls to bind and ip that should handle dynamic ip's.
#schedule = ip_tick,0,1800,ip=rakshasa
#schedule = bind_tick,0,1800,bind=rakshasa

# Encryption options, set to none (default) or any combination of the following:
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext
#
# The example value allows incoming encrypted connections, starts unencrypted

# outgoing connections but retries with encryption if they fail, preferring
# plaintext to RC4 encryption after the encrypted handshake
#
encryption = allow_incoming,enable_retry,prefer_plaintext

# Enable DHT support for trackerless torrents or when all trackers are down.
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined.
#
# dht = auto

# UDP port to use for DHT.
#
# dht_port = 6881

# Enable peer exchange (for torrents not marked private)
#
# peer_exchange = yes

#
# Do not modify the following parameters unless you know what you're doing.
#
max_open_files = 4096
max_open_sockets = 2048
max_memory_usage = 1610612736

# Hash read-ahead controls how many MB to request the kernel to read
# ahead. If the value is too low the disk may not be fully utilized,
# while if too high the kernel might not be able to keep the read
# pages in memory thus end up trashing.
hash_read_ahead = 64

# Interval between attempts to check the hash, in milliseconds.
hash_interval = 32

# Number of attempts to check the hash while using the mincore status,
# before forcing. Overworked systems might need lower values to get a
# decent hash checking rate.
hash_max_tries = 16


i have connection 1000/1000 Mbps
what is wrong in my configuartion?
what council me?

thanks in advance who want help me !
Anonymous
2008-04-12 11:49:53
Don't run rtorrent as root! How come you have

# Default directory to save the downloaded torrents.
directory =/root/incoming/

# Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a
# relative path?
session = /root/session/


This means you are running rtorrent as root.
Anonymous
2008-04-13 12:09:44
Change your port range to be one port only:

# Port range to use for listening.
port_range = 40000-40000
port_random = no


Make sure that this port is open for inbound connections in your router and goes on toward the NSLU2.
Anonymous
2008-04-13 12:33:42
thanks for council :)
Anonymous
2008-04-16 22:45:34
rtorrent 0.8.0 rev 1053 :

http://home.wanadoo.nl/hhasert/software/rtorrent 0.8.0 rev 1045 :

http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1053.tar.gz


(rtorrent 1053 can be used with libtorrent rev 1049 (no changes to libtorrent))

(rtorrent 1045 can be used with libtorrent rev 1044 (no changes to libtorrent))
Anonymous
2008-04-16 22:47:24
Weird, something mucked about, sorry, what I meant was :

rtorrent 0.8.0 rev 1053 :
http://home.wanadoo.nl/hhasert/software/rtorrent-0.8.0_1053_adv.tar.gz

(rtorrent 1053 can be used with libtorrent rev 1049 (no changes to libtorrent))
Anonymous
2008-05-02 09:24:05
This forum is getting space cramps, I will move to
http://groups.google.com/group/NSLU2-rtorrent
so that we can separate subjects properly. Also checkout my project at
http://code.google.com/p/gi-torrent/
I am building an AJAX interface for XMLRPC and document the HTTP interface there.
Anonymous
2008-05-10 16:11:05
Last warning :-) I am updating the groupsite with newly compiled files on may 10 and 11.
Anonymous
2009-04-22 14:22:13
You're right, if I had to write a guide on how I did now, it'd be just as incomplete, because it's hard to keep track of the hundreds of extra packages I had to install that I didn't originally have. After some good guesswork though I got it running. flash games
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)
BB Code is enabled.
Captcha Number:


Blogs: (People who have posted blogs on this subject..)
bb
start svn on system boot in debian on Tue 21st Jul 10am
http://linux.justinhartman.com/Startup_S cript_for_Subversion I found this a really simple explanation of how to start svn when the server boots
bb
SSHFS: Super Easy File Access over SSH on Wed 18th Feb 1pm
This was really useful, and worked great to communicate between servers. http://www.linuxjournal.com/article/8904 Thanks to gabbs
bb
hellanzb nzb news downloader for NSLU2 on Tue 22nd May 7pm
Someone introduced me to the joyful NZB file recently. Its truly a wonderful invention, and allows my to explore usenet binary grabbing using my NSLU2. as previous nntp readers id tried made the process too painful. So simply .... 1) apt-get inst
bb
edna mp3 streaming for nslu2 on Wed 9th May 11am
I've been streaming music from my home NSLU2 server for a while now using mt-daapd (firefly) which is an ITunes server for linux. I can connect to my home network from work using ITunes and a little daap proxy app called rendevous. My friend was doing
Adnurak
How to choose the right Linux Distro on Thu 9th Nov 7pm
This is mainly for new users who want to try out Linux for the first time, but try it out if you're experienced in Linux anyway, it's kinda fun. What with all these different distributions of Linux that you hear about all the time, it's hard to choose
ketan404
my blog on Thu 9th Nov 6am
http://ketan404.blogspot.com
bb
Tweaking Apache and Mysql for Low Memory on Fri 20th Oct 11am
i implemented this to tweak my apache/mysql for better performance on my NSLU2. Hard to tell if its helping much though ;-) Mysql really doesnt run too well with apache on NSLU2 so I dont use it for much. http://www.unixshell.com/wiki/index.php/ Optimiz
Adnurak
Fate - A Linux Security Simulation Written in C++ on Fri 20th Oct 6am
Fate is a simulation of a Linux system written in C++ and meant for DOS (runs fine in winxp and winme by just doubleclicking) that according to the creator, m101, shows you the basics of security in different Linux systems, including but not limited to, M
bb
Article on building rtorrent for arm5vtel NSLU2 with debianslug on Thu 19th Oct 7am
I wrote an article today on my efforts at compiling rtorrent for debianslug. its here ... Article on building rtorrent/libtorrent for arm5vtel NSLU2 with littleendian debianslug
bb
How to mount .iso file on NSLU2 running debianslug on Tue 19th Sep 12pm
If like me your running debianslug on an NSLU2 and you'd like to mount an iso file so it can be directly streamed to Xbox Media Centre (its a beautiful solution isnt it!) then simply do the following. Ensure you have loop support in your debianslug k

Test Yourself: (why not try testing your skill on this subject? Clicking the link will start the test.)
Linux Test Simple by a13x4nd7u

This is a simple Linux commands test.
Linux Quiz by abhijangda

Trivia about your favorite OS
Linux Administration by typedeaF

Testing your knowledge of Linux administration tools, very light shell scripting, and good high level understanding of how the OS works at the user level. Anyone who has worked with Linux for 1-3 years should do good.
Linux Commands (Part 1) by nirus

If you think you know the linux command-line then this test is for you. For reference purposes, it is based on Debian/GNU Linux with a BASH Shell.


     
Your Ad Here
 
Copyright Open Source Institute, 2006