Page 1 of 3 123 LastLast
Results 1 to 15 of 33

Thread: Rtorrent + Ntorrent Thru SSH Solid,Complete And Working Guide.

  1. #1

    Rtorrent + Ntorrent Thru SSH Solid,Complete And Working Guide.

    Download Link: http://www.4shared.com/file/69250777..._by_t68kv.html
    Instruction posted here is also included

    Working Rtorrent + Ntorrent thru SSH guide.

    Install from top to bottom. After installing ipkg and samba.
    Copy and paste this to putty. Others are common sense.
    Change the directory location where you put the attach ipk files.

    ipkg install /opt/soft/nano_2.0.7-1_mipsel.ipk
    ipkg install /opt/soft/ncurses_5.6-3_mipsel.ipk
    ipkg install /opt/soft/ncursesw_5.6-2_mipsel.ipk
    ipkg install /opt/soft/xmlrpc-c_1.11.00-3_mipsel.ipk
    ipkg install /opt/soft/bash_3.2.17-1_mipsel.ipk
    ipkg install /opt/soft/screen_4.0.3-2_mipsel.ipk
    ipkg install /opt/soft/libtorrent_0.11.9-1_mipsel.ipk
    ipkg install /opt/soft/rtorrent_0.7.9-2_mipsel.ipk
    ipkg install /opt/soft/openldap-libs_2.3.38-1_mipsel.ipk
    ipkg install /opt/soft/pcre_7.6-1_mipsel.ipk
    ipkg install /opt/soft/libuclibc++_0.2.2-4_mipsel.ipk
    ipkg install /opt/soft/libxml2_2.6.31-1_mipsel.ipk
    ipkg install /opt/soft/libsigc++_2.0.18-1_mipsel.ipk
    ipkg install /opt/soft/libmemcache_1.4.0.rc2-3_mipsel.ipk
    ipkg install /opt/soft/libevent_1.3d-1_mipsel.ipk
    ipkg install /opt/soft/libcurl_7.17.0-2_mipsel.ipk
    ipkg install /opt/soft/uclibc-opt_0.9.28-13_mipsel.ipk
    ipkg install /opt/soft/ipkg-opt_0.99.163-9_mipsel.ipk
    ipkg install /opt/soft/rtorrent_0.8.3-1_mipsel.ipk
    ipkg install /opt/soft/libtorrent_0.12.3-1_mipsel.ipk
    Edit:

    nano -w /opt/etc/init.d/S99rtorrent

    Change the beginning with this one: dirlayout=RTORRENT_Custom
    Change according to your login to the router: user="admin"

    Exit and Save

    chmod +x /opt/etc/init.d/S99rtorrent



    rm -w /opt/etc/rtorrent.conf
    nano -w /opt/etc/rtorrent.conf

    Paste This: Check all variables, you may want to changes some details.
    If error exist, check and troubleshoot errors. "Usually missing folder" create the folder and chmod 777 the directory.


    [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_port = 127.0.0.1:5000
    # Minumum amount of peers to connect per torrent, if available.
    min_peers = 20

    # Minumum amount of peers to connect per torrent.
    max_peers = 40

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

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

    #max_uploads_global = 20
    #max_downloads_global = 30

    #max_open_http = 10
    #max_open_sockets = 128
    #max_open_files = 256

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

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

    # Default directory to save downloaded files. Note it doesn't support
    # space yet.
    #directory = /opt/share/torrent/work/
    directory = /opt/share/torrent/work/

    # Watch a directory for new torrents, and stop those that have been deleted.
    #schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
    #schedule = untied_directory,5,5,stop_untied
    schedule = watch_directory,5,5,load_start=/tmp/mnt/disc0_3/torrent/source/*.torrent
    schedule = untied_directory,5,5,stop_untied=
    schedule = untied_directory,5,5,close_untied=
    schedule = untied_directory,5,5,remove_untied=




    # Close torrents when diskspace is low.
    on_finished = move_complete,"execute=mv,$d.get_base_path=,/tmp/mnt/disc0_3/torrent/target;d.set_directory=/tmp/mnt/disc0_3/torrent/target"
    schedule = watch_directory,10,10,"load_start=/tmp/mnt/disc0_3/torrent/source/*.torrent,d.set_custom2=1"
    on_finished = set_done_var,d.set_custom2=
    on_erase = rm_files,"branch=d.get_custom2=,\"execute={rm,-rf,--,$d.get_base_path=}\""

    schedule = low_diskspace,5,60,close_low_diskspace=10000M

    # Default session directory. Make sure you don't run multiple instance of rtorrent using the same session directory. Perhaps
    #using a relative path? session = /opt/share/torrent/session
    session = /tmp/mnt/disc0_3/torrent/session


    # The ip address reported to the tracker.
    #ip = rakshasa

    # The ip address the listening socket and outgoing connections is
    # bound to.
    #bind = rakshasa

    # Port range to use for listening.
    port_range = 51777-51780

    # 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

    #
    # Do not modify the following parameters unless you know what you're doing.
    #

    # 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 = 5

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

    # 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 = 3

    safe_sync=yes

    # Max number of files to keep open simultaniously.
    #max_open_files = 128

    # Number of sockets to simultaneously keep open.
    #max_open_sockets = <no default>


    # Example of scheduling commands: Switch between two ip's every 5
    # seconds.
    #schedule = "ip_tick1,5,10,ip=torretta"
    #schedule = "ip_tick2,10,10,ip=lampedusa"
    %
    Last edited by t68kv; 06-06-2009 at 13:40.

  2. #2
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182

    it is better way to die

    rTorrent compressed guide
    UPDATED 13.4.2009 nTorrent 0.5
    best install after you finished 1st part of wengi guide (checked on oleg's 1.9.2.7-10 with latest rtorrent)
    Code:
    ipkg update
    ipkg upgrade
    ipkg install rtorrent
    ipkg install screen
    mkdir /opt/share/torrent/session
    mkdir /opt/var
    mkdir /opt/var/log
    nano /opt/etc/rtorrent.conf
    fail-safe contents of rtorrent.conf(stop on ratio removed):
    http://libtorrent.rakshasa.no/wiki/RTorrentCommonTasks (i am testning new(for me) features now)
    Code:
    scgi_port = localhost:5000
    min_peers = 0
    max_peers = 40
    max_uploads = 5
    port_range = 51777-51780
    use_udp_trackers = yes
    safe_sync = yes
    dht = auto
    dht_port = 6881
    peer_exchange = yes
    download_rate = 0
    upload_rate = 60
    check_hash = no
    hash_read_ahead = 5
    hash_max_tries = 5
    hash_interval = 10
    directory = /opt/share/torrent/work
    session = /opt/share/torrent/session
    schedule = watch_directory,5,5,load_start=/opt/share/torrent/dl/*.torrent
    schedule = untied_directory,5,5,stop_untied=
    schedule = untied_directory,5,5,close_untied=
    schedule = untied_directory,5,5,remove_untied=
    schedule = low_diskspace,5,60,close_low_diskspace=50M
    Code:
    nano /usr/local/sbin/post-firewall
    add 2 lines to the the post-firewall(4 lines for newbies):
    Code:
    iptables -D INPUT -j DROP
    iptables -A INPUT -p tcp --dport 51777:51780 -j ACCEPT
    iptables -A INPUT -p udp --dport 6881 -j ACCEPT
    iptables -A INPUT -j DROP
    S99rtorrent is startup script, but only starting is working; stoping, restarting may not (celebrate or hate ecori for this)!
    Code:
    nano /opt/etc/init.d/S99rtorrent
    paste this and check user="root" for own (QMax report that newest version has bad start script, this edited by ecori)
    http://wl500g.info/attachment.php?at...3&d=1239607750

    manually start rTorrent in console, very useful for debugging config file (ctr + q to quit)
    Code:
    rtorrent -n -o import=/opt/etc/rtorrent.conf
    chmod +x /opt/etc/init.d/S99rtorrent
    if everything is fine, just:
    Code:
    flashfs save && flashfs commit && flashfs enable && reboot


    Attached Files Attached Files
    Last edited by gouryella; 13-04-2009 at 18:52. Reason: update
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  3. #3
    much better to include ipk package "with version" for the instruction to work even for a long time. Updates on other software may give problem and errors

  4. #4
    ooops link is invalid... i will fix this after i got my backup.
    Out of town

  5. #5
    link updated

  6. #6
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Quote Originally Posted by t68kv View Post

    ipkg install /opt/soft/libtorrent_0.11.9-1_mipsel.ipk
    ipkg install /opt/soft/rtorrent_0.7.9-2_mipsel.ipk

    ipkg install /opt/soft/rtorrent_0.8.3-1_mipsel.ipk
    ipkg install /opt/soft/libtorrent_0.12.3-1_mipsel.ipk
    It's not clear to me why did you installed old versions and next install latest.

    Thanks

    Max

  7. #7
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Great job gouryella !
    Really easy and without extra packages, and it seems working fine.
    You forget:

    Code:
    flashfs save && flashfs commit && flashfs enable && reboot
    after nano in /usr/local/sbin/post-firewall

    Thanks

    Max

  8. #8
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    ok, fixed :-)
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  9. #9
    Join Date
    Mar 2007
    Location
    Milano - Italy
    Posts
    164
    Is not clear to me how /dl (watch dir) works in rtorrent.
    I put a .torrent file on it, rtorrent starts downloading that file... what next ?
    Do I have to clean manualy completed files ?

    Is there a way to automate it using something like

    Code:
    on_finished = rm_torrent
    on_finished = move_complete
    Max

  10. #10
    How can i acces ntorrent from wan ?

  11. #11
    hello

    I have a problem,

    when I try and watch for errors, ad is in /opt/share/torrent/rtorrentInit.log:
    Code:
    rtorrent -n -o import=/opt/etc/rtorrent.conf

    I have answer :
    (10:33:41) The SCGI socket is bound to a specific network device yet may still pose a security risk, consid
    er using 'scgi_local'.ommand failed: ratio: Command "stop_on_ratio" does not exist.
    (10:35:11) Scheduled command failed: ratio: Command "stop_on_ratio" does not exist.


    Now I don't know what shall I do.

    Thanks for help.
    Last edited by ravikjab; 22-12-2008 at 21:38.

  12. #12
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182

    WAN

    Quote Originally Posted by outkastm View Post
    How can i acces ntorrent from wan ?
    add to post-firewall, to open ssh port to WAN, work as well from local net, only change ip(public ip)
    Code:
    iptables -A INPUT -p tcp --dport 22 -j ACCEPT
    good idea is using different port of ssh as prevention from hackers (post-boot)
    Code:
    #!/bin/sh
    dropbear -p 321
    Last edited by gouryella; 05-01-2009 at 19:40.
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  13. #13
    Join Date
    Sep 2007
    Location
    czech republic
    Posts
    182
    Quote Originally Posted by QMax View Post
    Is not clear to me how /dl (watch dir) works in rtorrent.
    I put a .torrent file on it, rtorrent starts downloading that file... what next ?
    Do I have to clean manualy completed files ?

    Is there a way to automate it using something like

    Code:
    on_finished = rm_torrent
    on_finished = move_complete
    Max
    check http://libtorrent.rakshasa.no/browse....rc?rev=latest but some features not work for me ... it's basic guide
    RT-N13u dd-wrt | Toshiba 2.5" 160GB | pxe boot server

  14. #14
    Join Date
    Oct 2008
    Location
    Russia
    Posts
    22

    Thumbs up

    2 gouryella,
    Nice guide, short and solid, thanks.
    I'll try it today.

    update from 20/01/09:
    works just fine.
    Last edited by grymster; 20-01-2009 at 10:18. Reason: status update
    wl500gP V2 + 1GB USB Flash + WD Elements 500GB
    fw: Oleg's 1.9.2.7-10 + rtorrent (how-to)

  15. #15
    Join Date
    Dec 2007
    Location
    The Netherlands - Eindhoven
    Posts
    1,767
    Well... I had this thing working completely, and I do have to say I really like rtorrent together with ntorrent.

    but for some reason, from the one to the other day, I can't start any torrents anymore

    when I log in via ntorrent, I can see everything, but I can't upload a .torrent file anymore

    tried reinstalling all the packages with -force-reinstall and -force-overwrite
    but I still don't have it working

    anyone an idea?
    I run it with openssh and transmission is also installed according to wengi's updated howto.

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 01-11-2014, 13:16
  2. [How to] rtorrent & ntorrent
    By mancub in forum WL-500gP Tutorials
    Replies: 101
    Last Post: 18-12-2008, 07:21
  3. auto start of mvc in post-mount not working
    By dyonisos in forum WL-500gP Q&A
    Replies: 3
    Last Post: 15-09-2008, 13:26
  4. Is rtorrent working?
    By Ovydake in forum WL-500gP Q&A
    Replies: 2
    Last Post: 01-10-2007, 09:30
  5. How to setup and get Dropbear ssh working?
    By kopi_bean in forum WL-700g Firmware Discussion
    Replies: 34
    Last Post: 19-04-2007, 23:25

Posting Permissions

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