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.