Page 5 of 7 FirstFirst ... 34567 LastLast
Results 61 to 75 of 102

Thread: [How to] rtorrent & ntorrent

  1. #61
    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

  2. #62
    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:

    Code:
    (/opt/bin/screen -d -m -fn \
    /opt/bin/rtorrent -o import=/usr/local/sbin/.rtorrent.rc) &
    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.

    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:

    Code:
    iptables -I INPUT 1 -p tcp -i "$1" --syn --dport 65000:65535 -j ACCEPT
    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 udp -i "$1" --dport 65000 -j ACCEPT

  3. #63
    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
    Code:
    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
    /usr/local/sbin/post-firewall
    Code:
    for P in 10000:11000; do
      iptables -I INPUT 1 -p tcp --syn -i "$1" --dport $P -j ACCEPT
    /opt/etc/init.d/S99rtorrent (Is this correct??)
    Code:
    #!/bin/sh
    /opt/bin/screen -dmS rtorrent rtorrent -o import="/opt/etc/rtorrent.conf" >&1 >/tmp/rtl
    As soon as i start Rtorrent i get "a timeout was reached" both in Screen and Ntorrent.

    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?

  4. #64
    Does anyone have a solution on the above issue?

  5. #65
    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 !

  6. #66
    Quote Originally Posted by nsec View Post
    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 !
    Somebody ? Help

  7. #67
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    Quote Originally Posted by djmickey83 View Post
    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!
    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
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  8. #68
    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?
    Last edited by fukazzz; 23-07-2008 at 15:52. Reason: spelling

  9. #69
    Has anybody already tried to get rtorrent working with rTWi on the 500gP?

  10. #70
    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.
    Attached Images Attached Images  
    Last edited by wirespot; 24-07-2008 at 21:37.

  11. #71
    Hello i had found this web client and it works great especially with Prism.
    Last edited by cupacup; 24-07-2008 at 22:21.

  12. #72
    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.

  13. #73
    i tried this just few minutes ago, seems i cannot find rtorrent package; Any ideeas ?
    firmware 1.9.2.7-7g

    PHP Code:
    [admn@(noneroot]$ 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@(noneroot]$ ipkg install rtorrent
    Nothing to be done
    An error ocurred
    , return value4.
    Collected errors
    :
    [
    B]Cannot find package rtorrent.[/B]
    Check the spelling or perhaps run 'ipkg update' 
    Last edited by bigphantom; 25-07-2008 at 21:47.

  14. #74
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    Quote Originally Posted by bigphantom View Post
    i tried this just few minutes ago, seems i cannot find rtorrent package; Any ideeas ?
    firmware 1.9.2.7-7g
    try:
    Code:
    ipkg install ipkg-opt
    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)

    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
    ipkg update
    ipkg upgrade
    Last edited by gouryella; 27-07-2008 at 11:11.
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  15. #75
    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
    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}
    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:

    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)
    Add the following lines to ~/.profile:
    Code:
    alias rt='su -c "screen -r" p2p'
    chmod a+rw `tty`
    stty start undef
    stty stop undef
    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 ?
    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
    Last edited by bigphantom; 27-07-2008 at 21:15. Reason: tweaking

Page 5 of 7 FirstFirst ... 34567 LastLast

Similar Threads

  1. Replies: 28
    Last Post: 02-06-2013, 20:58
  2. Ipkg rtorrent Packet gesucht
    By FastJack in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 23-10-2007, 17:37
  3. older rtorrent version
    By FastJack in forum WL-500gP Q&A
    Replies: 1
    Last Post: 23-10-2007, 09:40
  4. [How To] Oleg Firmware installeren.
    By Dragonar in forum Dutch Discussion - Nederlands
    Replies: 7
    Last Post: 08-05-2007, 18:34
  5. [HOW TO] Timeouts beim Laden von bestimmten Seiten beheben - MTU Problem
    By modnet25 in forum German Discussion - Deutsch (DE)
    Replies: 3
    Last Post: 03-09-2006, 10:55

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •