rtorrent runs on your router. nTorrent - it's only ånvironment for rtorrent,which runs from u Pc. u can add/delete torrents with ntorrent and after that shutdown your Pc.
Printable View
today i can't access to myrouter:8081/RPC2.
i have 500 internal server error.
i checked with ipkg list_update, and i found that my router updated rtorrent to:
rtorrent - 0.8.0-1
i can't make it work now.
yup, we are same bro, after updated to rtorrent 0.8
ow shit hahaha.
anyway i return to sctcs again, cause ntorrent still have a lots of bug and enchancement to do.
i already fix the issues about upgrade version, sadly to say, you will need to edit the s99torrent manualy again, ill post mine later and also you need to upgrade all software you have in the system.
My only problem now is still getting 500 - Internal Server Error
even rtorrent is started without problem.
at last i already finish the combination version of rtorrent/libtorrent + settings + php. I took me hours huhuh
I just solved my problem, by removing lighttpd screen bash rtorrent and reinstalling.
Then i edited S99torrent just replacing:
user="p2p"
with
user="admin"
which is my user on asus router.
This solved my issue.
is 0.8 a beta? Because on some tracker is banned.:(
someone got rtorrent 0.7.9 and libtorrent 0.11.9 in ipk format? Because i updated and can't find the package to downgrade.
Is it possible to make rtorrent auto-start torrents processing after router turn-on?
I've checker rtorrent.conf and did not find any setting related to this.
Thanks in advance.
last night i tried wtorrent, really nice but i found it too slow. When i click on a torrent to get infos and details it just takes minutes before i see something. The same is when i log in.
Anyone noticed the same?
reading on the site of ntorrent, i saw that the build files are now created.
Some week ago i tried to build the svn version of ntorrent without success, now it just works, and have some really nice improvement, starting from the autoconnect feature, going to a better sorting method and plugins enhancements.
The only thing i miss is the feed option present in some other gui.
from the author site:
Quote:
You can download nTorrent from the "downloads tab" on this page. If you however is interested in the latest version, you can download from the SVN repository.
# svn co http://ntorrent.googlecode.com/svn/trunk ntorrent
This will create a folder ntorrent containing the sourcefiles in your current working directory. to run the latest version you can issue "ant run" within the ntorrent directory. check build.xml for other build targets.
Anyone knows if its possible block some peers?
Is possible block some peers?
I tried to install rtorrent from the howto, but for the http://192.168.1.1:8081/RPC2 there is some 500- internal server error and nothing else. :(
On http://192.168.1.1:8081 everithing is ok, on ps there is lighttpd, and rtorrent.
In the lighttpd error log:
lighttpd.conf:Code:1970-01-01 01:00:10: (log.c.75) server started
2008-03-28 18:14:47: (mod_scgi.c.2219) establishing connection failed: Connection refused
2008-03-28 18:14:47: (mod_scgi.c.2353) fcgi-server disabled: 127.0.0.1 5000
2008-03-28 18:14:47: (mod_scgi.c.2821) no fcgi-handler found for: /RPC2
rtorrent.conf: (BTW there was no scgi_port tag in the original config file, is this ok?)Code:server.modules = (
"mod_access",
"mod_scgi",
"mod_accesslog" )
server.document-root = "/opt/share/www/lighttpd/"
server.errorlog = "/opt/var/log/lighttpd/error.log"
index-file.names = ( "index.php", "index.html",
"index.htm", "default.htm" )
mimetype.assign = (
".pdf" => "application/pdf",
".sig" => "application/pgp-signature",
".spl" => "application/futuresplash",
".class" => "application/octet-stream",
".ps" => "application/postscript",
".torrent" => "application/x-bittorrent",
".dvi" => "application/x-dvi",
".gz" => "application/x-gzip",
".pac" => "application/x-ns-proxy-autoconfig",
".swf" => "application/x-shockwave-flash",
".tar.gz" => "application/x-tgz",
".tgz" => "application/x-tgz",
".tar" => "application/x-tar",
".zip" => "application/zip",
".mp3" => "audio/mpeg",
".m3u" => "audio/x-mpegurl",
".wma" => "audio/x-ms-wma",
".wax" => "audio/x-ms-wax",
".ogg" => "application/ogg",
".wav" => "audio/x-wav",
".gif" => "image/gif",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".png" => "image/png",
".xbm" => "image/x-xbitmap",
".xpm" => "image/x-xpixmap",
".xwd" => "image/x-xwindowdump",
".css" => "text/css",
".html" => "text/html",
".htm" => "text/html",
".js" => "text/javascript",
".asc" => "text/plain",
".c" => "text/plain",
".cpp" => "text/plain",
".log" => "text/plain",
".conf" => "text/plain",
".text" => "text/plain",
".txt" => "text/plain",
".dtd" => "text/xml",
".xml" => "text/xml",
".mpeg" => "video/mpeg",
".mpg" => "video/mpeg",
".mov" => "video/quicktime",
".qt" => "video/quicktime",
".avi" => "video/x-msvideo",
".asf" => "video/x-ms-asf",
".asx" => "video/x-ms-asf",
".wmv" => "video/x-ms-wmv",
".bz2" => "application/x-bzip",
".tbz" => "application/x-bzip-compressed-tar",
".tar.bz2" => "application/x-bzip-compressed-tar"
)
accesslog.filename = "/opt/var/log/lighttpd/access.log"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".fcgi", ".php", ".pl", ".py", ".rb" )
server.port = 8081
server.pid-file = "/var/run/lighttpd.pid"
scgi.server = (
"/RPC2" =>
( "127.0.0.1" =>
(
"host" => "127.0.0.1",
"port" => 5000,
"check-local" => "disable"
)
)
)
thnxCode:scgi_port = localhost:5000
min_peers = 20
max_peers = 40
max_uploads = 5
download_rate = 600
upload_rate = 40
directory = /opt/share/torrent/work/
schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
schedule = untied_directory,5,5,stop_untied=
session = /opt/share/torrent/work
port_range = 10000-11000
check_hash = yes
schedule = ratio,30,60,stop_on_ratio=200
encryption = prefer_plaintext
ver. 0.5 of nTorrent without lighttpd php and /RPC2 dance compressed guide :D
connection throught SSH on port 5000 (Attach pic.)
UPDATED 10.10.2008
best install after you finished wengi guide (checked on oleg's 1.9.2.7-10, but i don't use 3 partition like /tmp/mnt/disc0_3/torrent/(because have only 16GB Flash drive))
You don't need other packages like php, lighttpd, dependence is OKCode:ipkg update
ipkg upgrade
ipkg install rtorrent
ipkg install screen
mkdir /opt/share/torrent/session
rm /opt/etc/rtorrent.conf
nano /opt/etc/rtorrent.conf
nano /usr/local/sbin/post-firewallCode:scgi_port = localhost:5000
min_peers = 20
max_peers = 40
max_uploads = 5
download_rate = 0
upload_rate = 30
check_hash = no
directory = /opt/share/torrent/work
schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
schedule = untied_directory,5,5,stop_untied=
schedule = low_diskspace,5,60,close_low_diskspace=10M
session = /opt/share/torrent/session
port_range = 51777-51780
use_udp_trackers = yes
schedule = ratio,30,60,stop_on_ratio=100
safe_sync = yes
dht = auto
dht_port = 6881
peer_exchange = yes
Code:iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 51777:51780 -j ACCEPT
iptables -I INPUT 1 -p udp -i "$1" --dport 6881 -j ACCEPT
nano /opt/etc/init.d/S99rtorrent
you must edit some code, to start rtorrent with right config file
reboot, wait a minute try to connect ntorrent, happy torrenting :-)Code:unsharp and change #replace dirlayout=RTORRENT_DEFAULT to: replace dirlayout=RTORRENT_ANOTHER
change user="user" to: user="your_login_name"
change logfile="/opt/var/log/rtorrentInit.log" to: logfile="/opt/share/torrent/rtorrentInit.log"
Debugging:
try and watch for errors, ad is in /opt/share/torrent/rtorrentInit.log:
Credits:Code:rtorrent -n -o import=/opt/etc/rtorrent.conf
mancub 1st guide
ecori start script changes
Hi!
I followed gouryella's "how to", And managed to make it run, but now, when I put something to download it says Timeout was Reached.
How can I fix that...
I'm a totally newbie when it comes to linux...
Pls HELP!
Y really cant get it now :(.
Try to setup rtorrent without lightttpd, using Gouryella setup and run in this :
[admin@router root]$ sh /opt/etc/init.d/S99rtorrent start
[: missing argument after `RTORRENT_DEFAULT'
[: missing argument after `RTORRENT_DEFAULT'
[: missing argument after `RTORRENT_DEFAULT'
Starting rtorrent: rtorrent.
Then :
[admin@router root]$ ps axf
PID TTY STAT TIME COMMAND
1 ? S 0:01 /sbin/init
2 ? S 0:00 [keventd]
3 ? RN 0:00 [ksoftirqd_CPU0]
4 ? S 0:00 [kswapd]
5 ? S 0:00 [bdflush]
6 ? S 0:00 [kupdated]
7 ? S 0:00 [mtdblockd]
61 ? S 0:01 httpd vlan1
63 ? Ss 0:00 nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
67 ? S 0:00 klogd
69 ? S 0:00 [dnsmasq]
70 ? S 0:00 [khubd]
82 ? S 0:00 [usb-storage-0]
83 ? S 0:00 [scsi_eh_0]
131 ? Ss 0:00 watchdog
133 ? Ss 0:00 \_ ntp
142 ? S 0:00 dropbear -p 22 -j -k
197 ? Ss 0:01 \_ dropbear -p 22 -j -k
198 pts/0 Ss 0:00 \_ -sh
341 pts/0 R+ 0:00 \_ ps axf
159 ? S 0:00 [kjournald]
160 ? S 0:00 [kjournald]
162 ? Ss 0:00 /usr/sbin/nmbd -D
164 ? Ss 0:00 /usr/sbin/smbd -D
337 ? S 0:00 \_ [smbd]
189 ? S 0:00 /sbin/syslogd -m 0 -O /opt/var/log/syslog.log -S -l 7 -s 0
196 ? Ss 0:00 /opt/sbin/cron
244 ? Ss 0:00 /opt/bin/SCREEN -dmS rtorrent rtorrent -o import=/opt/etc/rtorrent.conf
248 pts/1 Ss+ 0:00 \_ rtorrent -o import=/opt/etc/rtorrent.conf
And try to connect via ssh with win client 0.5 ntorrent but "connection reset" .
Maybe my bad wealth have a word here.
Need some directions here, pls.
LE: with Litghttpd work though ....
But i will like without ...
Gouryella's HowTo is very pragmatic, but is working.
A much elegant (conformable to start/stop scripts) approach is al37919's short how to.
And poiu, don't forget to add scgi_port = localhost:5000 in your /opt/etc/rtorrent.conf
Serpent, i do that allready, this is the result ..
I uninstall rtorrent/lighthtpd/screen, do all dance again, the same.
T he good news i manage to make ntorrent gui work somehow, for 1 day, but today failed for some reason .
Cant connect with lighttpd or without on 5000 routed by ssh.
Rtorrent is there, on console working (lynx), starting with the same errors.
Router is on a ups, so no power fail here ..
Gouryella wont work for me, try't again.
I try http://wl500g.info/showthread.php?t=...light=rtorrent but i get some xtml/html error in all browsers.
I am sick for now, but i get crazy too with this stubborn rtorrent ....and the humor in this is a wile ago i manage to get rtorrent work with ease, but i upgrade to .10 so all was lost.
Hi
I am having severe problems with getting Rtorrent to work proberly.
I have read the whole thread, but can not get it to work
I also end up having problems with "a timeout was reached"
Have tried everything(reinstallation, firewall settings etc.)
Can someone please post WORKING firewall, rtorrent.conf and S99rtorrent files - then i can compare them to what i have,
Hope you can help me out here, because i really wanna start using Rtorrent on my Asus wl500g Premium
My setup is excatly as gouryella posts on the thread.
I have Rtorrent 0.7.9-2 and libtorrent 0.11.9-1
But i am a bit confused about S99rtorrent.
Should it only have:
#!/bin/sh
/opt/bin/screen -dmS rtorrent rtorrent -o import="/opt/etc/rtorrent.conf" >&1 >/tmp/rtl
or
Should i preserve the original one, and just add the above?
Thanks
Morten
S99rtorrent is just a side issue, if rtorrent doesn't work when started directly it won't work better when running in screen.
But here's how I start it, anyway:
Regarding connectivity, I suspect you may have firewall issues. What ports are you using in your rtorrent config? Have you allowed them to be accessed in the firewall? Please remember that the Virtual Servers part of the graphical admin interface is only for port forwarding, ie. allowing traffic from outside to reach computers in your LAN. But if you need to open ports for something that runs on the router you need to use iptables commands in /usr/local/sbin/post-firewall.Code:(/opt/bin/screen -d -m -fn \
/opt/bin/rtorrent -o import=/usr/local/sbin/.rtorrent.rc) &
For instance, if you have "port_range = 65000-65535" in rtorrent.rc, you need to have something like this in /usr/local/sbin/post-firewall:
Also, if you have "dht = on" and "dht_port = 65000", you also need to open 65000 on UDP like this:Code:iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 65000:65535 -j ACCEPT
Code:iptables -I INPUT 1 -p udp -i "$1" --dport 65000 -j ACCEPT
I used standard ports 10000-11000 - Even tried to change them without luck.
I have also portforwarded the ports in my Dlink Modem/router.
I have Enhanced Ctorrent running at the moment with YODCTCS, without any issues. Except, it is very slow and somehow buggy.
I have the following setup in my files:
/opt/etc/rtorrent.conf
/usr/local/sbin/post-firewallCode:scgi_port = localhost:5000
session = /tmp/mnt/disc1_1/torrent/session
port_range = 10000-11000
directory = /tmp/mnt/disc1_1/torrent/dl
check_hash = yes
encryption = prefer_plaintext
stop_on_ratio = 100
upload_rate = 50
max_uploads = 15
/opt/etc/init.d/S99rtorrent (Is this correct??)Code:for P in 10000:11000; do
iptables -I INPUT 1 -p tcp --syn -i "$1" --dport $P -j ACCEPT
As soon as i start Rtorrent i get "a timeout was reached" both in Screen and Ntorrent.Code:#!/bin/sh
/opt/bin/screen -dmS rtorrent rtorrent -o import="/opt/etc/rtorrent.conf" >&1 >/tmp/rtl
Both Session and Directory paths are created with admin permissions.
Everyone says, that its a firewall issue - but where? I opened both ports in IPTABLES and my Modem/router.
My ASUS is NOT setup like a router - Only as an Access point - Don't know if this has any effect to the issue.
So what's next? Where do i go from here?
Does anyone have a solution on the above issue?
If I`m now using Transmission as a torrent client, is it necessarily to remove Transmission before installing rTorrent ?
When I installed Transmission I used Wengi`s instructions ( http://wl500g.info/showthread.php?t=10307 ). So if i want to setup rTorrent do I have to remove or modify something ?
Thanks !
Mayby problem with firewall, there is code working for me
Code:#!/bin/sh
#for webserver ftp ssh
iptables -D INPUT -j DROP
iptables -A INPUT -p tcp --dport 81 -j ACCEPT
#iptables -A INPUT -p tcp --dport censored -j ACCEPT
iptables -A INPUT -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
#for amule
iptables -A INPUT -p tcp --dport 4662 -j ACCEPT
iptables -A INPUT -p udp --dport 4672 -j ACCEPT
iptables -A INPUT -p udp --dport 4665+3 -j ACCEPT
#for rtorrent ?
iptables -I INPUT 1 -p tcp --syn -i "$1" --dport 10000:11000 -j ACCEPT
#webserver prerouting
iptables -t nat -A PREROUTING -i $1 -p tcp --dport 80 -j DNAT --to-destination $4:81
#for rtorrent ?
for P in 10000:11000; do
iptables -I INPUT 1 -p tcp --syn -i "$1" --dport $P -j ACCEPT
done
iptables -A INPUT -j DROP
I followed gouryella's instructions and everything is wokring! that's cool. What I did, is that I renamed S99rtorrent to S99rtorrent.old, made chmod -x S99rtorrent.old and created in /opt/etc/init.d/S99rtorrent with gouryella's contents. I also made chmod +x to it. My problem - it does not start automatically after reboot. I have to do sh /opt/etc/init.d/S99rtorrent :( It's quite not good, so what is the problem? As I said, I put an execution flag to it, why doesn't it start itselfe?
Has anybody already tried to get rtorrent working with rTWi on the 500gP?
I know it works with rtGui. But I'm not sure you'll get either of them to work on the router, I don't think the PHP there has xmlrpc in it (and I'm not keen on running PHP at all on the router, it's too damn heavy.)
What I did is have lighttpd on the router do RPC with the rtorrent RPC socket, and installed rtGui on my PC, where I have an Apache and PHP with xmlrpc. Makes sense, since I need my PC on anyway whenever I wanna check out rtorrent. Then again, if you want to be able to do this from outside your LAN... you're pretty much out of luck if the PHP on the router really doesn't have xmlrpc.
On a side note, I think rtGui looks better. :)
Hello i had found this web client and it works great especially with Prism. http://shrani.si/f/3q/12A/4fdz3AZW/rtorrent.png
So i installed rTWi just now on my 500gP, if you combine this HowTo and the instructions from the rTWi Homepage it is no problem.
It also works with only the scgi_port instruction, no need for RPC2 or something like that.
It doesnt look that pretty, but what is more important to me, is that it runs very smooth on the Hardware.
i tried this just few minutes ago, seems i cannot find rtorrent package; Any ideeas ?
firmware 1.9.2.7-7g
PHP Code:
[admn@(none) root]$ ipkg update
Downloading http://wl500g.dyndns.org/ipkg/Packages
Updated list of available packages in /opt/lib/ipkg/lists/wl500g
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/Packages
Updated list of available packages in /opt/lib/ipkg/lists/unslung
Successfully terminated.
PHP Code:
[admn@(none) root]$ ipkg install rtorrent
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
[B]Cannot find package rtorrent.[/B]
Check the spelling or perhaps run 'ipkg update'
try:
I have ipkg-opt - 0.99.163-10 - The Itsy Package Manager on 1.9.2.7-10 (http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz)Code:ipkg install ipkg-opt
if do not work (this is from wengi guide): http://wl500g.info/showthread.php?t=10307
Code:wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/ipkg-opt_0.99.163-10_mipsel.ipk
ipkg.sh install ipkg-opt_0.99.163-10_mipsel.ipk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/uclibc-opt_0.9.28-13_mipsel.ipk
ipkg.sh install uclibc-opt_0.9.28-13_mipsel.ipk
ipkg update
Quote:
ipkg update
ipkg upgrade
thanks gouryella
i've finally succeded,
just a quick summary
in 1.9.2.7-7 firmware, because i guess ipkg.conf file had no available links to ipkg packages i could not intall rtorrent.
upgraded to 1.9.2.7-10 firmware, (tried to mantain config of my flash usb) the i could not intalled the ipkg-opt package indicated only forcing it, and then rtorrent went straight through, using p2p user, no automatic startup (yet) , firewall etc ...
i've noted down, everythinhg i did so i could post later on an updated version of the tutorial.
i get this error, but rtorrent works, (it downloads and uploads), i have no ideea why, and nor had i understood the previous explanation for this case
i would like to start rtorrent automatically, but i yet was a=unable to understand some points from here , and not knowing where to post, i post here:Code:[admin@asusbox root]$ sh /opt/etc/init.d/S99rtorrent
[: missing argument after `RTORRENT_DEFAULT'
[: missing argument after `RTORRENT_DEFAULT'
[: missing argument after `RTORRENT_DEFAULT'
Usage: /etc/init.d/rtorrent {start|stop|restart|force-reload}
Q1.- that big code has to entirely replace my S99rtorrent ?
Q2.- regarding base="/opt/home/torrent", i've setup my download folder as /opt/ext2/torr (/opt/ext2 -is the mount place of my hdd); Should i change it with mine ?
Q3. regarding config="/opt/home/${user}/.rtorrent.rc"
i have troubles understanding if i should leave it like this, or i should change it to something else. ($user being what ?)
Q4. (and final one)
till now, everything i have in my profile file, is put in my /opt/etc/profile, see below; What does ~/.profile mean ? should i put that line in the file at this address /opt/etc/profile, or not ?Quote:
Add the following lines to ~/.profile:
Code:alias rt='su -c "screen -r" p2p'
chmod a+rw `tty`
stty start undef
stty stop undef
Code:export TERMINFO=/opt/share/terminfo
alias mc="mc -c"
alias savereboot="flashfs save && flashfs commit && flashfs enable && reboot"
# Make ls default -la with color coding
alias ls="ls --color=auto -la"
# Make pss a grep ps function
alias pss="ps axf | grep"
# df human readable (Only works with coreutils installed!)
alias df="df -h"
# To start nload with DSL 6000 settings: 'nld'
#alias nld="nload -t 200 -s 7 -i 6656 -o 640 -u H eth1"
#added for rtorrent
alias rt='su -c "screen -r" p2p'
chmod a+rw `tty`
stty start undef
stty stop undef
Is the stop_on_ratio setting working for you?
In my /opt/etc/rtorrent.conf i have the line stop_on_ratio = 120 but this morning i recognized that there was a torrent with a ratio over 2,2 and still seeding?
So it seems that this command was not recognized by the client.
Edit:
The stop_on_ration command like it is showed all pver the Thread is simply wrong. It has to be combined with a scheduler Task, like it is explained in the sample rtorrent.conf.
Can someone please just post a WORKING guide from start to end!
The existing guide must be OUT-OF-DATE, because I(and others) keep getting Time-out issue!
I tried to sum up what everyone has written in this thread, and sofar i got nowhere.
I'm getting annoyed in using Enhanced Torrent, because its SO buggy!
Please help, thanks
/Morten
cupacup> Yes I portforwarded port 10000-11000 to 192.168.1.10 which is my ASUS - Then furthermore did the IPTABLES changes as suggested in the guide.
Can someone working post:
Guide
or
Firmware version
Rtorrent/Libtorrent versions
etc.
Thanks
/Morten
Whooooo.........somehow i got it working!!?!?!?
I don't know how, but i would guess, that it is cause by a update.
I did a "ipkg update" and afterwardx a "ipkg upgrade" and then did gouryella's setup again and everything is working fine now - no longer timeout issue.
Thanks goes out to the ones who tried to help me out:)
/Morten