NSLU2-Linux
view · edit · print · history

HowTo.InstallRtorrentOnDebian History

Hide minor edits - Show changes to markup

December 10, 2008, at 11:01 PM by Reedy -- update
Changed lines 12-14 from:
  • 0.7.9 Stable
  • 0.8.3 Unstable (installing 0.8.2 unstable is descibed below, you can download the latest unstable from the NSLU2 rtorrent google group)
to:
  • 0.8.2 Stable
  • 0.8.4 Unstable.
Deleted lines 33-35:
  • libtorrent10_0.11.9-1
  • rtorrent_0.7.9-1
  • Unstable
Changed lines 36-39 from:
to:
  • Unstable
    • libtorrent11_0.12.4-1
    • rtorrent_0.8.4-1
Changed line 50 from:

0.7.9 - Stable

to:

0.8.2 - Stable

Changed lines 58-60 from:

wget http://waka.freehostia.com/nslu2/bin/libtorrent10_0.11.9-1_arm.deb wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.7.9-1_arm.deb

to:

wget http://waka.freehostia.com/nslu2/bin/libtorrent10_0.12.2-1_arm.deb wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.8.2-1_arm.deb

Changed lines 64-66 from:

dpkg -i libtorrent10_0.11.9-1_arm.deb dpkg -i rtorrent_0.7.9-1_arm.deb

to:

dpkg -i libtorrent10_0.12.2-1_arm.deb dpkg -i rtorrent_0.8.2-1_arm.deb

Changed lines 70-72 from:

rm libtorrent10_0.11.9-1_arm.deb rm rtorrent_0.7.9-1_arm.deb

to:

rm libtorrent10_0.12.2-1_arm.deb rm rtorrent_0.8.2-1_arm.deb

Changed line 76 from:

0.8.2 - Unstable

to:

0.8.4 - Unstable

Changed lines 84-86 from:

wget http://waka.freehostia.com/nslu2/bin/libtorrent10_0.12.2-1_arm.deb wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.8.2-1_arm.deb

to:

wget http://waka.freehostia.com/nslu2/bin/libtorrent11_0.12.4-1_arm.deb wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.8.4-1_arm.deb

Changed lines 90-92 from:

dpkg -i libtorrent10_0.12.2-1_arm.deb dpkg -i rtorrent_0.8.2-1_arm.deb

to:

dpkg -i libtorrent11_0.12.4-1_arm.deb dpkg -i rtorrent_0.8.4-1_arm.deb

Changed lines 96-98 from:

rm libtorrent10_0.12.2-1_arm.deb rm rtorrent_0.8.2-1_arm.deb

to:

rm libtorrent11_0.12.4-1_arm.deb rm rtorrent_0.8.4-1_arm.deb

Changed lines 161-163 from:
to:

see OptwareRtorrentOnDebian

You can also download the latest unstable from the NSLU2 rtorrent google group; The compile is for lenny.

October 27, 2008, at 05:26 AM by sack --
Added lines 1-161:

(:title Installing rtorrent on a Debian etch NSLU2:)

Outdated Package in etch

The rtorrent package in the Debian etch arm repository is version 0.6.4.
Version 0.6.4 was released way back in June 2005.

The rtorrent Changelog suggests that there have been many worthwhile changes since 0.6.4.
Its a good idea to run a more up to date version than 0.6.4. on the slug.

The latest releases of rtorrent are,

  • 0.7.9 Stable
  • 0.8.3 Unstable (installing 0.8.2 unstable is descibed below, you can download the latest unstable from the NSLU2 rtorrent google group)

The Build Environment

The deb packages mentioned below have been built in an etch build environment using QEMU.
The QEMU environment had CXXFLAGS set in system env as is recommended here

The rtorrent package and its dependencies were built in the QEMU environment using Debian package sources.
etch dev packages were installed with apt-get where possible, and lenny packages built where necessary.
All the packages were built as they come from the Debian Sources. No patches, no changes.

The Packages

The libtorrent and rtorrent package sources come from Jose Luis Rivas's debian repository. Thanks Jose.
The Stable and Unstable rtorrent package versions in this page are dependent on the rtorrent releases Jose has been able to package for debian.

The packages are,

  • Dependencies
    • libssh2-1_0.18-1
    • libcurl3_7.17.1-1
    • libxmlrpc-c3_1.06.18-1
  • Stable
    • libtorrent10_0.11.9-1
    • rtorrent_0.7.9-1
  • Unstable
    • libtorrent10_0.12.2-1
    • rtorrent_0.8.2-1

The libssh2-1, libcurl3 and libxmlrpc-c3 packages come from lenny sources. They install fine on an etch slug without requiring any further lenny package dependencies.

The rtorrent package has been built with XMLRPC enabled.

Install Commands

The commands below will install rtorrent on a NSLU2 running Debian etch.
The install procedure has been tested on a slug that already had rtorrent installed and a slug that had a clean OS install.
Run the commands as root.

0.7.9 - Stable

#-------------------------------------------------------------------------
apt-get update
apt-get install libwww-ssl0 wget

wget http://waka.freehostia.com/nslu2/bin/libssh2-1_0.18-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/libcurl3_7.17.1-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/libxmlrpc-c3_1.06.18-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/libtorrent10_0.11.9-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.7.9-1_arm.deb

dpkg -i libssh2-1_0.18-1_arm.deb
dpkg -i libcurl3_7.17.1-1_arm.deb
dpkg -i libxmlrpc-c3_1.06.18-1_arm.deb
dpkg -i libtorrent10_0.11.9-1_arm.deb
dpkg -i rtorrent_0.7.9-1_arm.deb

rm libssh2-1_0.18-1_arm.deb
rm libcurl3_7.17.1-1_arm.deb
rm libxmlrpc-c3_1.06.18-1_arm.deb
rm libtorrent10_0.11.9-1_arm.deb
rm rtorrent_0.7.9-1_arm.deb

apt-get clean
#-------------------------------------------------------------------------

0.8.2 - Unstable

#-------------------------------------------------------------------------
apt-get update
apt-get install libwww-ssl0 wget

wget http://waka.freehostia.com/nslu2/bin/libssh2-1_0.18-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/libcurl3_7.17.1-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/libxmlrpc-c3_1.06.18-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/libtorrent10_0.12.2-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.8.2-1_arm.deb

dpkg -i libssh2-1_0.18-1_arm.deb
dpkg -i libcurl3_7.17.1-1_arm.deb
dpkg -i libxmlrpc-c3_1.06.18-1_arm.deb
dpkg -i libtorrent10_0.12.2-1_arm.deb
dpkg -i rtorrent_0.8.2-1_arm.deb

rm libssh2-1_0.18-1_arm.deb
rm libcurl3_7.17.1-1_arm.deb
rm libxmlrpc-c3_1.06.18-1_arm.deb
rm libtorrent10_0.12.2-1_arm.deb
rm rtorrent_0.8.2-1_arm.deb

apt-get clean
#-------------------------------------------------------------------------

Control rtorrent with Perl

If you would like to control rtorrent via XMLPRC with Perl, you can use the XML::RPC module.
The setup instruction for lighttpd can be found here RTorrentXMLRPCGuide.

Install commands for lighttpd and XML::RPC. Run as root.

#-------------------------------------------------------------------------
apt-get update
apt-get install lighttpd

wget http://waka.freehostia.com/nslu2/bin/libhttp-lite-perl_2.1.6-1_all.deb
wget http://waka.freehostia.com/nslu2/bin/libxml-treepp-perl_0.33-1_all.deb
wget http://waka.freehostia.com/nslu2/bin/libxml-rpc-perl_0.8-1_all.deb

dpkg -i libhttp-lite-perl_2.1.6-1_all.deb
dpkg -i libxml-treepp-perl_0.33-1_all.deb
dpkg -i libxml-rpc-perl_0.8-1_all.deb

rm libhttp-lite-perl_2.1.6-1_all.deb
rm libxml-treepp-perl_0.33-1_all.deb
rm libxml-rpc-perl_0.8-1_all.deb

apt-get clean
#-------------------------------------------------------------------------

Once you have setup /etc/lighttpd/lighttpd.conf, you can test the RPC connection from XML::RPC to rtorrent with the simple Perl script below. Happy hacking !

#-------------------------------------------------------------------------
#!/usr/bin/perl -w
use strict;
use Data::Dumper;
use XML::RPC;

my $xmlrpc = XML::RPC->new('http://localhost/RPC2');
my $result = $xmlrpc->call( 'system.listMethods' );

print Dumper $result;

exit;
#-------------------------------------------------------------------------

Install the xmlrpc-c general purpose client

If you find XML::RPC too slow, you might want to try the xmlrpc client.
xmlrpc comes as part of libxmlrpc-c3-dev, most of which you don't need unless you are developing libxmlrpc.
The install method below avoids a full libxmlrpc-c3-dev install.

Install commands for xmlrpc. Run as root.

#-------------------------------------------------------------------------
wget http://waka.freehostia.com/nslu2/bin/libxmlrpc-c3-dev_1.06.18-1_arm.deb

mkdir libxmlrpc-c3-dev_1.06.18-1_arm_tmp
dpkg --extract libxmlrpc-c3-dev_1.06.18-1_arm.deb libxmlrpc-c3-dev_1.06.18-1_arm_tmp/
cp libxmlrpc-c3-dev_1.06.18-1_arm_tmp/usr/bin/xmlrpc /usr/bin/xmlrpc

rm -rf libxmlrpc-c3-dev_1.06.18-1_arm_tmp
rm libxmlrpc-c3-dev_1.06.18-1_arm.deb
#-------------------------------------------------------------------------

Another way

see OptwareRtorrentOnDebian

view · edit · print · history · Last edited by Reedy.
Originally by sack.
Page last modified on December 10, 2008, at 11:01 PM