 |
 |
 |
 |
| 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. |
|
 |
| I also needed:
apt-get install automake libtool |
|
 |
| 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 |
|
 |
| 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 |
|
 |
| 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 |
|
 |
| |
 |
| For xmlrpc you also need libxmlrpc-c3-dev libwww-dev
|
|
 |
| | Oh, and libexpat1-dev. You need to add --withl-xmlrpc-c to ./configure. |
|
 |
| | I find .deb files for ARM NSLU2 on this website (last SVN and DHT patched). Hope it could help : http://www.cybel.be |
|
 |
| 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 |
|
 |
| |
 |
| |
 |
| | Why not compile it with xmlrpc support ? |
|
 |
| | It is compiled with xmlrpc support, it works fine on my slug. |
|
 |
| 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 |
|
 |
| Does your version support returning 64 bit values via xmlrpc ? For example torrent size exceeding 4GB.
Thanks in advance. |
|
 |
| | 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. |
|
 |
| | 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? |
|
 |
| 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. |
|
 |
| | 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. |
|
 |
| | 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. |
|
 |
| | 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. |
|
 |
| 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) |
|
 |
| |
 |
| |
 |
| | doesn't seem the case since I don't get any errors and all torrents are downloading, but I will still check |
|
 |
| |
 |
| | can you paste you .rtorrent.rc please? :) |
|
 |
| |
 |
| | 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.. ;) |
|
 |
| |
 |
| 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? |
|
 |
| | 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. |
|
 |
| |
 |
| |
 |
| |
 |
| |
 |
| |
 |
| |
 |
| |
 |
| |
 |
| |
 |
| |
 |
| 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?? |
|
 |
| 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. |
|
 |
| | 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. |
|
 |
| 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? |
|
 |
| | 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 :-) |
|
 |
| | 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. |
|
 |
| |
 |
| | I search an advanced xmlrpc-c and rtorrent/libtorrent version for ntorrent GUI... |
|
 |
| |
 |
| | can anyone please make a build for slugosLE ? |
|
 |
| 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 :-) |
|
 |
| |
 |
| |
 |
| 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. |
|
 |
| | 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 ? |
|
 |
| |
 |
| | 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. |
|
 |
| |
 |
| | 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. |
|
 |
| |
 |
| |
 |
| |
 |
| 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 |
|
 |
| |
 |
| 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
)))
|
|
 |
| |
 |
| 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. |
|
 |
| | just one question, what is "/RPC2" ? |
|
 |
| (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'. |
|
 |
| okay :)
Well i don't know what to do i'm still stuck with this "rtorrent: Fault occured while inserting xmlrpc call." :( |
|
 |
| 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. |
|
 |
| | Thanks for your help, do you need more information about my config? |
|
 |
| | Did you run /sbin/ldconfig after unpackIng the xmlrpc file ? It would be nice to get some config files. |
|
 |
| 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.
|
|
 |
| |
 |
| | Did you run /sbin/ldconfig after unpackIng the xmlrpc file ? It would be nice to get some config files. |
|
 |
| | Sorry, duplicate post due to caching probs in browser. Lets do this on ICQ, my number is in the posts somewhere. |
|
 |
| | I can be reached on ICQ 495944913 |
|
 |
| |
 |
| 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 ? |
|
 |
| | 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. |
|
 |
| 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 ! |
|
 |
| 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.
|
|
 |
| 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. |
|
 |
| |
 |
| |
 |
| |
 |
| |
 |
| | Last warning :-) I am updating the groupsite with newly compiled files on may 10 and 11. |
|
 |
| | 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