![]() |
HowTo.InstallRtorrentOnDebian HistoryHide minor edits - Show changes to markup December 10, 2008, at 11:01 PM
by -- update
Changed lines 12-14 from:
to:
Deleted lines 33-35:
Changed lines 36-39 from:
to:
Changed line 50 from:
0.7.9 - Stableto:
0.8.2 - StableChanged 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 - Unstableto:
0.8.4 - UnstableChanged 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:
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 --
Added lines 1-161:
(:title Installing rtorrent on a Debian etch NSLU2:) Outdated Package in etchThe rtorrent package in the Debian etch arm repository is version 0.6.4. The rtorrent Changelog suggests that there have been many worthwhile changes since 0.6.4. The latest releases of rtorrent are,
The Build EnvironmentThe deb packages mentioned below have been built in an etch build environment using QEMU. The rtorrent package and its dependencies were built in the QEMU environment using Debian package sources. The PackagesThe libtorrent and rtorrent package sources come from Jose Luis Rivas's debian repository. Thanks Jose. The packages are,
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 CommandsThe commands below will install rtorrent on a NSLU2 running Debian etch. 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 PerlIf you would like to control rtorrent via XMLPRC with Perl, you can use the XML::RPC module. 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 clientIf you find XML::RPC too slow, you might want to try the xmlrpc client. 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 |