NSLU2-Linux
view · edit · print · history

HowTo.InstallRtorrentOnDebain History

Hide minor edits - Show changes to markup

September 24, 2009, at 09:49 PM by Reedy --
Changed lines 1-163 from:

(: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.8.2 Stable
  • 0.8.4 Unstable.

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.12.2-1
    • rtorrent_0.8.2-1
  • Unstable
    • libtorrent11_0.12.4-1
    • rtorrent_0.8.4-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.8.2 - 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.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
#-------------------------------------------------------------------------

0.8.4 - 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/libtorrent11_0.12.4-1_arm.deb
wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.8.4-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 libtorrent11_0.12.4-1_arm.deb
dpkg -i rtorrent_0.8.4-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 libtorrent11_0.12.4-1_arm.deb
rm rtorrent_0.8.4-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

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

to:

Delete Me

November 25, 2008, at 10:21 AM by slugmanbashi -- Updated Stable to 0.8.2. Unstable now 0.8.4
Changed line 37 from:
  • libtorrent10_0.12.4-1
to:
  • libtorrent11_0.12.4-1
November 25, 2008, at 10:20 AM by slugmanbashi -- Updated Stable to 0.8.2. Unstable now 0.8.4
Changed line 12 from:
  • 0.7.9 Stable
to:
  • 0.8.2 Stable
Changed lines 34-35 from:
  • libtorrent10_0.11.9-1
  • rtorrent_0.7.9-1
to:
  • libtorrent10_0.12.2-1
  • rtorrent_0.8.2-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

November 25, 2008, at 01:00 AM by slugmanbashi -- rtorrent_0.8.4-1_arm.deb now avalible for download
Changed line 35 from:
  • rtorrent_0.7.9-1
to:
  • rtorrent_0.7.9-1
Changed lines 37-39 from:
  • libtorrent10_0.12.4-1
  • rtorrent_0.8.4-1
to:
  • libtorrent10_0.12.4-1
  • rtorrent_0.8.4-1
November 25, 2008, at 12:55 AM by slugmanbashi -- rt
Deleted lines 14-16:

Installing 0.8.2 unstable is described below.
You can also download the latest unstable from the NSLU2 rtorrent google group; the compile is for lenny.

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.

November 25, 2008, at 12:52 AM by slugmanbashi -- rtorrent_0.8.4-1_arm.deb now avalible for download
Changed line 93 from:

dpkg -i libtorrent10_0.12.4-1_arm.deb

to:

dpkg -i libtorrent11_0.12.4-1_arm.deb

Changed line 99 from:

rm libtorrent10_0.12.4-1_arm.deb

to:

rm libtorrent11_0.12.4-1_arm.deb

November 25, 2008, at 12:51 AM by slugmanbashi -- rtorrent_0.8.4-1_arm.deb now avalible for download
Changed line 87 from:

wget http://waka.freehostia.com/nslu2/bin/libtorrent10_0.12.4-1_arm.deb

to:

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

November 25, 2008, at 12:49 AM by slugmanbashi -- rtorrent_0.8.4-1_arm.deb now avalible for download
Changed lines 40-42 from:
  • libtorrent10_0.12.2-1
  • rtorrent_0.8.2-1
to:
  • libtorrent10_0.12.4-1
  • rtorrent_0.8.4-1
Changed line 79 from:

0.8.2 - Unstable

to:

0.8.4 - Unstable

Changed lines 87-89 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/libtorrent10_0.12.4-1_arm.deb wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.8.4-1_arm.deb

Changed lines 93-95 from:

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

to:

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

Changed lines 99-101 from:

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

to:

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

November 24, 2008, at 10:08 PM by slugmanbashi -- Unstable set to 0.8.4 plus formating
Changed line 15 from:

Installing 0.8.2 unstable is described below.

to:

Installing 0.8.2 unstable is described below.\\

November 24, 2008, at 10:07 PM by slugmanbashi -- Updated Unstable to 0.8.4
Changed lines 13-14 from:
  • 0.8.3 Unstable. Installing 0.8.2 unstable is described below. You can also download the latest unstable from the NSLU2 rtorrent google group; the compile is for lenny.
to:
  • 0.8.4 Unstable.

Installing 0.8.2 unstable is described below. You can also download the latest unstable from the NSLU2 rtorrent google group; the compile is for lenny.

November 09, 2008, at 07:52 PM by Martin Manscher -- Corrected back
Changed lines 13-14 from:
  • 0.8.3 Unstable. Installing 0.8.2 unstable is described below. You should not download the latest unstable from the NSLU2 rtorrent google group if you are running Debian arm; the compile is for lenny (big endian), but debian arm is little endian.
to:
  • 0.8.3 Unstable. Installing 0.8.2 unstable is described below. You can also download the latest unstable from the NSLU2 rtorrent google group; the compile is for lenny.
November 09, 2008, at 06:58 PM by Martin Manscher -- Corrected the reference to the google group; this should not be used by Debian users
Changed lines 13-14 from:
  • 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.3 Unstable. Installing 0.8.2 unstable is described below. You should not download the latest unstable from the NSLU2 rtorrent google group if you are running Debian arm; the compile is for lenny (big endian), but debian arm is little endian.
October 26, 2008, at 09:27 AM by Martin Manscher -- Forgot closing parenthesis - sorry, but preview doesn\'t work
Changed lines 13-14 from:
  • 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.3 Unstable (installing 0.8.2 unstable is descibed below, you can download the latest unstable from the NSLU2 rtorrent google group)
October 26, 2008, at 09:27 AM by Martin Manscher -- Info on the rtorrent google group
Changed lines 13-14 from:
  • 0.8.3 Unstable
to:
  • 0.8.3 Unstable (installing 0.8.2 unstable is descibed below, you can download the latest unstable from the NSLU2 rtorrent google group
October 12, 2008, at 06:44 PM by Martin Manscher -- Latest rtorrent unstable is 0.8.3
Changed lines 13-14 from:
  • 0.8.2 Unstable
to:
  • 0.8.3 Unstable
May 20, 2008, at 06:26 PM by slugmanbashi --
Changed line 16 from:

The deb packages mentioned below have been built in a etch build environment using QEMU.\\

to:

The deb packages mentioned below have been built in an etch build environment using QEMU.\\

Changed lines 24-26 from:

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

to:

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.

May 20, 2008, at 06:16 PM by slugmanbashi -- Introduce Stable and Unstable versions of rtorrent
Changed line 40 from:

The libssh2-1, libcurl3 and libxmlrpc-c3 packages come from lenny sources.\\

to:

The libssh2-1, libcurl3 and libxmlrpc-c3 packages come from lenny sources.

May 20, 2008, at 06:11 PM by slugmanbashi --
Changed lines 12-14 from:

*0.7.9 Stable

*0.8.2 Unstable

to:
  • 0.7.9 Stable
  • 0.8.2 Unstable
Changed lines 27-28 from:

The packages are,

to:

The packages are,

May 20, 2008, at 06:08 PM by slugmanbashi --
Added lines 6-10:

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.

Changed lines 12-17 from:
  • Stable 0.7.9
  • Unstable 0.8.2

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.

to:

*0.7.9 Stable

*0.8.2 Unstable

Changed lines 25-26 from:

The Stable and Unstable rtorrent packages versions in this page are dependant on the rtorrent releases Jose has been able to package for debian.

to:

The Stable and Unstable rtorrent packages versions in this page are dependant on the rtorrent releases Jose has been able to package for debian.

Changed line 49 from:

Stable 0.7.9

to:

0.7.9 - Stable

Changed line 75 from:

Unstable 0.8.2

to:

0.8.2 - Unstable

May 20, 2008, at 06:03 PM by slugmanbashi --
Changed lines 6-9 from:

The latest releases of rtorrent are
*Stable 0.7.9
*Unstable 0.8.2

to:

The latest releases of rtorrent are,

  • Stable 0.7.9
  • Unstable 0.8.2
May 20, 2008, at 06:01 PM by slugmanbashi -- List both stable and unstable rtorrent packages
Changed line 1 from:

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

to:

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

Changed lines 6-9 from:

The latest release of rtorrent is 0.8.2.\\

to:

The latest releases of rtorrent are
*Stable 0.7.9
*Unstable 0.8.2

Changed line 13 from:

Build from Debian Source Packages

to:

The Build Environment

Changed lines 17-18 from:

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.

to:

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.\\

Added lines 21-24:

The Packages

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

Changed lines 26-32 from:
  • libssh2-1_0.18-1
  • libcurl3_7.17.1-1
  • libxmlrpc-c3_1.06.18-1
  • libtorrent10_0.12.2-1
  • rtorrent_0.8.2-1

The libssh2-1, libcurl3 and libxmlrpc-c3 packages come from lenny sources.

to:
  • 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.\\

Changed line 44 from:

The install procedure has been tested on a slug that already had rtorrent_0.7.9 installed and a slug that had a clean OS install.\\

to:

The install procedure has been tested on a slug that already had rtorrent installed and a slug that had a clean OS install.\\

Added lines 46-47:

Stable 0.7.9

Changed lines 55-57 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/libtorrent10_0.11.9-1_arm.deb wget http://waka.freehostia.com/nslu2/bin/rtorrent_0.7.9-1_arm.deb

Changed lines 61-63 from:

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

to:

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

Changed lines 67-69 from:

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

to:

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

Changed lines 73-78 from:

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.

to:

Unstable 0.8.2

Added lines 76-106:

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

  1. -------------------------------------------------------------------------@]

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

May 10, 2008, at 04:16 PM by slugmanbashi -- text clean up following upgrade from rtorrent 0.7.9 to 0.8.2
Changed line 6 from:

The latest release of rtorrent is 0.8.2.

to:

The latest release of rtorrent is 0.8.2.\\

Changed line 26 from:

They install fine a on an etch slug without requiring any further lenny package dependencies.

to:

They install fine on an etch slug without requiring any further lenny package dependencies.

May 10, 2008, at 01:40 PM by slugmanbashi -- removed outdated reference to lenny package sources
Changed line 6 from:

The current stable release of rtorrent is 0.8.2.

to:

The latest release of rtorrent is 0.8.2.

Deleted lines 9-13:

Install from Lenny

It is possible to add the lenny repository to your slugs apt source and install rtorrent_0.8.2 with apt-get. The downside of using this method is that apt will install a LOT of key lenny package dependencies. This will leave you with a slug that is running a mixture of etch and lenny packages.

Changed lines 11-12 from:

In the hope of keeping my slug as standard(etch) as possible,I decided against the apt-get lenny repository method.
Instead I setup an etch build environment using QEMU.\\

to:

The deb packages mentioned below have been built in a etch build environment using QEMU.\\

Changed lines 14-19 from:

In the QEMU environment I built rtorrent_0.8.2 and its dependencies from Debian package sources. etch apt-get installed X-dev packages were used where possible and lenny ones built where necessary. All the packages were built as they come from the Debian Source Packages. No patches, no changes.

The result was five packages that install on an etch slug without any further lenny package dependencies.

to:

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.

Added lines 25-27:

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

Changed line 31 from:

The commands below will install rtorrent_0.8.2 on a NSLU2 running Debian etch.\\

to:

The commands below will install rtorrent on a NSLU2 running Debian etch.\\

May 10, 2008, at 08:44 AM by slugmanbashi -- Update rtorrent from version 0.7.9 to 0.8.2
Changed line 1 from:

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

to:

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

Changed line 6 from:

The current stable release of rtorrent is 0.7.9.

to:

The current stable release of rtorrent is 0.8.2.

Changed line 11 from:

It is possible to add the lenny repository to your slugs apt source and install rtorrent_0.7.9 with apt-get.

to:

It is possible to add the lenny repository to your slugs apt source and install rtorrent_0.8.2 with apt-get.

Changed line 20 from:

In the QEMU environment I built rtorrent_0.7.9 and its dependencies from Debian package sources.

to:

In the QEMU environment I built rtorrent_0.8.2 and its dependencies from Debian package sources.

Changed lines 30-32 from:
  • libtorrent10_0.11.9-1
  • rtorrent_0.7.9-1
to:
  • libtorrent10_0.12.2-1
  • rtorrent_0.8.2-1
Changed lines 36-37 from:

The commands below will install rtorrent_0.7.9 on a NSLU2 running Debian etch.
The install procedure has been tested on a slug that already had rtorrent_0.7.4 installed and a slug that had a clean OS install.\\

to:

The commands below will install rtorrent_0.8.2 on a NSLU2 running Debian etch.
The install procedure has been tested on a slug that already had rtorrent_0.7.9 installed and a slug that had a clean OS install.\\

Changed lines 46-48 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 52-54 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 58-60 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

April 20, 2008, at 08:19 PM by slugmanbashi -- Upgraded from XML-RPC-0.7 to XML-RPC-0.8. http://search.cpan.org/src/DAAN/XML-RPC-0.8/Changes
Changed lines 76-77 from:

wget http://waka.freehostia.com/nslu2/bin/libxml-rpc-perl_0.7-1_all.deb

to:

wget http://waka.freehostia.com/nslu2/bin/libxml-rpc-perl_0.8-1_all.deb

Changed lines 80-81 from:

dpkg -i libxml-rpc-perl_0.7-1_all.deb

to:

dpkg -i libxml-rpc-perl_0.8-1_all.deb

Changed lines 84-85 from:

rm libxml-rpc-perl_0.7-1_all.deb

to:

rm libxml-rpc-perl_0.8-1_all.deb

February 25, 2008, at 10:45 PM by slugmanbashi -- typo. are becomes as
Changed line 107 from:

xmlrpc comes are part of libxmlrpc-c3-dev, most of which you don't need unless you are developing libxmlrpc.\\

to:

xmlrpc comes as part of libxmlrpc-c3-dev, most of which you don't need unless you are developing libxmlrpc.\\

February 23, 2008, at 12:20 AM by slugmanbashi -- Install the xmlrpc-c general purpose client
Changed line 106 from:

If you find XML::RPC to slow, you might want to try the xmlrpc client.\\

to:

If you find XML::RPC too slow, you might want to try the xmlrpc client.\\

February 23, 2008, at 12:15 AM by slugmanbashi -- Install the xmlrpc-c general purpose client
Added lines 104-121:

Install the xmlrpc-c general purpose client

If you find XML::RPC to slow, you might want to try the xmlrpc client.
xmlrpc comes are 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
#-------------------------------------------------------------------------
February 22, 2008, at 10:45 PM by slugmanbashi -- Notes on RPC control via Perl XML::RPC
Changed line 66 from:

If you would like to control rtorrent via XMLPRC with Perl, you can use the XML::RPC module.

to:

If you would like to control rtorrent via XMLPRC with Perl, you can use the XML::RPC module.\\

February 22, 2008, at 10:43 PM by slugmanbashi --
Changed lines 69-70 from:

The install commands for lighttpd and XML::RPC can be found below.

to:

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

Deleted line 89:
February 22, 2008, at 10:41 PM by slugmanbashi -- Notes on RPC control via Perl XML::RPC
Changed lines 64-105 from:
to:

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.

The install commands for lighttpd and XML::RPC can be found below.

#-------------------------------------------------------------------------
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.7-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.7-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.7-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;
#-------------------------------------------------------------------------
February 04, 2008, at 05:19 AM by BrianZhou -- link to OptwareRtorrentOnDebian
Added lines 65-66:

Another way

see OptwareRtorrentOnDebian

February 03, 2008, at 10:31 PM by slugmanbashi --
Changed lines 33-34 from:

The rtorrent package has been built with *XMLRPC enabled.

to:

The rtorrent package has been built with XMLRPC enabled.

February 03, 2008, at 10:30 PM by slugmanbashi --
Added lines 33-34:

The rtorrent package has been built with *XMLRPC enabled.

February 03, 2008, at 10:21 PM by slugmanbashi --
Changed lines 20-22 from:

In the QEMU environment I built rtorrent_0.7.9 and its dependencies from Debian package sources.
etch apt-get installed X-dev packages were used where possible and lenny ones built where necessary.
All the packages were built as they come from the Debian Source Packages. No patches, no changes.\\

to:

In the QEMU environment I built rtorrent_0.7.9 and its dependencies from Debian package sources. etch apt-get installed X-dev packages were used where possible and lenny ones built where necessary. All the packages were built as they come from the Debian Source Packages. No patches, no changes.

February 03, 2008, at 10:18 PM by slugmanbashi --
Changed lines 20-22 from:

In the QEMU environment I built rtorrent_0.7.9 and its dependencies from Debian package sources. etch apt-get installed X-dev packages were used where possible and lenny ones built where necessary. All the packages were built as they come from the Debian Source Packages. No patches, no changes.

to:

In the QEMU environment I built rtorrent_0.7.9 and its dependencies from Debian package sources.
etch apt-get installed X-dev packages were used where possible and lenny ones built where necessary.
All the packages were built as they come from the Debian Source Packages. No patches, no changes.\\

Changed line 34 from:

The install procedure has been tested on a slug that already had rtorrent_0.7.4 installed and a slug that had a clean OS install.

to:

The install procedure has been tested on a slug that already had rtorrent_0.7.4 installed and a slug that had a clean OS install.\\

February 03, 2008, at 10:15 PM by slugmanbashi -- Tweak the formatting a little
Changed line 3 from:

The rtorrent package in the Debian etch arm repository is version 0.6.4.

to:

The rtorrent package in the Debian etch arm repository is version 0.6.4.\\

Changed line 7 from:

The rtorrent Changelog suggests that there have been many worthwhile changes since 0.6.4.

to:

The rtorrent Changelog suggests that there have been many worthwhile changes since 0.6.4.\\

Changed lines 16-19 from:

In the hope of keeping my slug as standard(etch) as possible,I decided against the apt-get lenny repository method. Instead I setup an etch build environment using QEMU. The QEMU environment had CXXFLAGS set in system env as is recommended here

to:

In the hope of keeping my slug as standard(etch) as possible,I decided against the apt-get lenny repository method.
Instead I setup an etch build environment using QEMU.
The QEMU environment had CXXFLAGS set in system env as is recommended here

Changed lines 26-34 from:
  • libssh2-1_0.18-1
  • libcurl3_7.17.1-1
  • libxmlrpc-c3_1.06.18-1
  • libtorrent10_0.11.9-1
  • rtorrent_0.7.9-1

The commands below will install rtorrent_0.7.9 on a NSLU2 running Debian etch. The install procedure has been tested on a slug that already had rtorrent_0.7.4 installed and a slug that had a clean OS install.

to:
  • libssh2-1_0.18-1
  • libcurl3_7.17.1-1
  • libxmlrpc-c3_1.06.18-1
  • libtorrent10_0.11.9-1
  • rtorrent_0.7.9-1
Added lines 33-35:

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

February 03, 2008, at 09:55 PM by slugmanbashi -- Inital wiki entry
Added lines 1-61:

(:title Installing rtorrent 0.7.9 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 current stable release of rtorrent is 0.7.9. 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.

Install from Lenny

It is possible to add the lenny repository to your slugs apt source and install rtorrent_0.7.9 with apt-get. The downside of using this method is that apt will install a LOT of key lenny package dependencies. This will leave you with a slug that is running a mixture of etch and lenny packages.

Build from Debian Source Packages

In the hope of keeping my slug as standard(etch) as possible,I decided against the apt-get lenny repository method. Instead I setup an etch build environment using QEMU. The QEMU environment had CXXFLAGS set in system env as is recommended here

In the QEMU environment I built rtorrent_0.7.9 and its dependencies from Debian package sources. etch apt-get installed X-dev packages were used where possible and lenny ones built where necessary. All the packages were built as they come from the Debian Source Packages. No patches, no changes. The result was five packages that install on an etch slug without any further lenny package dependencies.

The packages are,

  • libssh2-1_0.18-1
  • libcurl3_7.17.1-1
  • libxmlrpc-c3_1.06.18-1
  • libtorrent10_0.11.9-1
  • rtorrent_0.7.9-1

The commands below will install rtorrent_0.7.9 on a NSLU2 running Debian etch. The install procedure has been tested on a slug that already had rtorrent_0.7.4 installed and a slug that had a clean OS install.

Install Commands

#-------------------------------------------------------------------------
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
#-------------------------------------------------------------------------
view · edit · print · history · Last edited by Reedy.
Based on work by slugmanbashi, Martin Manscher, and BrianZhou.
Originally by slugmanbashi.
Page last modified on September 24, 2009, at 09:49 PM