NSLU2-Linux
view · edit · print · history

Optware.CTorrent History

Hide minor edits - Show changes to markup

December 27, 2005, at 12:17 PM by MattMcNeill -- Note to make it work
Added lines 5-8:

Making CTorrent Work

Unfortunately, the ctorrent provided by ipkg does not work well. See here to see how to make it work properly: http://www.nslu2-linux.org/wiki/HowTo/SetupCTorrent

December 25, 2005, at 12:35 AM by GAPi -- CTorrent Addition
Added lines 1-45:

A BitTorrent client written in the C programming language. According its webpage, it is supposed to have the following features:

  • Programmed in pure C, which means small and lightning fast executables.
  • Has the ability to create new torrent-files (for seeding and sharing etc)
  • Uses very little CPU and memory resources.

Installation

On the slug enter:

    ipkg update
    ipkg install ctorrent

More info http://ctorrent.sourceforge.net/

Usage

    Generic Options:
    -h/-H           Show this message.
    -x              Decode metainfo(torrent) file only, don't download.
    -c              Check exist only. don't download.

    Download Options:
    -e int          Exit while seed <int> hours later. (default 72 hours)
    -p port         Listen port. (default 2706 -> 2106)
    -s save_as      Save file/directory/metainfo as... 
    -C cache_size   Cache size,unit MB. (default 16MB)
    -f              Force seed mode. skip hash check at startup.
    -b bf_filename  Bit field filename. (use it carefully)
    -M max_peers    Max peers count.
    -m min_peers    Min peers count.
    -B rate         Max bandwidth (unit KB/s)
    -P peer_id      Set Peer ID [ - CT1304? - ]

    Make metainfo(torrent) file Options:
    -t              With make torrent. must specify this option.
    -u url          Tracker's url.
    -l piece_len    Piece length.(default 262144)

    eg.
    # ctorrent -s new_filename -e 12 -C 32 -p 6881 eg.torrent

Running in Background

You can have CTorrent running in the background even after having exited the telnet session. To do so, you need to install coreutils package using

    ipkg install coreutils

and then use "nohup" command to run the command, ignoring all hangup (SIGHUP) signals.

    eg.
    # nohup ctorrent -s new_filename -e 12 -C 32 -p 6881 eg.torrent > eg.log &
view · edit · print · history · Last edited by MattMcNeill.
Originally by GAPi.
Page last modified on November 16, 2006, at 01:19 AM