Note: If you get a "C++ compiler cannot create executables" error while running ./configure, you are missing a few packages essential for compiling applications in your machine. Run

+

$ apt-get install build-essential

+

to fix the problem.

+

+

This works in Freelink (someone check for openlink?)

==Pre-built binary==

==Pre-built binary==

−

A pre built ARM binary <code>ctorrent</code> is available from [http://downloads.linkstationwiki.net/uploads/LS_Pro_temporary/Binaries LSPro Temporary Upload Folder]

+

A pre built ARM binary <code>ctorrent</code> is available from [http://downloads.nas-central.org/Uploads/OldUploads/LS_Pro_temporary/Binaries/ LSPro Temporary Upload Folder]

=CTorrent Control Server (CTCS)=

=CTorrent Control Server (CTCS)=

Line 26:

Line 32:

*Start the [http://www.rahul.net/dholmes/ctorrent/ctcs.html CTorrent Control Server] and publish the server at port 2780:

*Start the [http://www.rahul.net/dholmes/ctorrent/ctcs.html CTorrent Control Server] and publish the server at port 2780:

$ ctcs -p 2780 > /dev/null &

$ ctcs -p 2780 > /dev/null &

−

*Start <code>ctorrent</code> as a backgorund process downloading <code>torrent.torrent</code> subscribing at the locally running [http://www.rahul.net/dholmes/ctorrent/ctcs.html CTCS server] at port 2780 and ignoring any console output since we will be controlling it via a web-interface.

+

*Start <code>ctorrent</code> as a background process downloading <code>torrent.torrent</code> subscribing at the locally running [http://www.rahul.net/dholmes/ctorrent/ctcs.html CTCS server] at port 2780 and ignoring any console output since we will be controlling it via a web-interface.

If you are compiling in Scratchbox make sure to have libstdc++.so installed in for example /usr/lib. Either copy it from your Linkstation directly to the Scratchbox environment by using scp or install it from anywhere else.

Enhanced CTorrent has very little dependencies therefore you should be able to do a simple:

$ ./configure
$ make

Note: If you get a "C++ compiler cannot create executables" error while running ./configure, you are missing a few packages essential for compiling applications in your machine. Run
$ apt-get install build-essential
to fix the problem.

This works in Freelink (someone check for openlink?)

Pre-built binary

CTorrent Control Server (CTCS)

To control and manage your torrents from an external computer you can make use of the Web interface provided by the CTorrent Control Server (CTCS). This is a Perl script which needs no further configuration.

Typical Setup

Make sure the binary ctorrent is available via your PATH environment varaiable.

Start ctorrent as a background process downloading torrent.torrent subscribing at the locally running CTCS server at port 2780 and ignoring any console output since we will be controlling it via a web-interface.

Automatic downloading of torrents

It is very desireable to start a torrent more userfriendly at a remote machine than to manually:

Download the torrent on the remote machine to a Linkstation share.

Do a remote login to the Linkstation.

Start ctorrent with the correct command line parameters.

To semi-automate these tasks, the Bash script below will check a specified directory on your Linkstation for any newly added .torrent files and will spawn a new ctorrent process for it when the torrent was not already activated previously. This way you can start downloading a torrent simply by copying a .torrent file to a certain shared directory on your Linkstation.