NSLU2-Linux
view · edit · print · history

HowTo.BitTorrent History

Hide minor edits - Show changes to markup

November 22, 2008, at 02:42 PM by SRS -- Format
Added lines 32-33:

November 22, 2008, at 02:41 PM by SRS -- format fix
Changed lines 32-34 from:

EnhancedCTorrent? really functions quite well. See also ConfigureEnhanced-ctorrentWithUnslung (http://www.nslu2-linux.org/wiki/HowTo/ConfigureEnhanced-ctorrentWithUnslung)

to:

EnhancedCTorrent really functions quite well.

See also ConfigureEnhanced-ctorrentWithUnslung (http://www.nslu2-linux.org/wiki/HowTo/ConfigureEnhanced-ctorrentWithUnslung)

November 22, 2008, at 02:37 PM by SRS -- Enhanced CTorrent
Added lines 32-35:

EnhancedCTorrent? really functions quite well. See also ConfigureEnhanced-ctorrentWithUnslung (http://www.nslu2-linux.org/wiki/HowTo/ConfigureEnhanced-ctorrentWithUnslung)

SRS 11/22/2008

November 01, 2008, at 12:44 PM by SRS -- tansmission? should be transmission
Changed line 1 from:

Tansmission is the easiest and fastest to install.Unslung optware

to:

Transmission is the easiest and fastest to install.Unslung optware

October 02, 2008, at 03:09 AM by arthur92710 --
Changed lines 1-3 from:

Tansmission Unslung optware Has a web interface, low memory footprint, configurable port, Multitracker, PEX support, UPNP support, Encryption support, Bandwith limiting

to:

Tansmission is the easiest and fastest to install.Unslung optware Has a web interface, low memory footprint, configurable port, Multitracker, PEX support, UPNP support, Encryption support, Bandwith limiting

October 02, 2008, at 03:08 AM by arthur92710 --
Added lines 1-5:

Tansmission Unslung optware Has a web interface, low memory footprint, configurable port, Multitracker, PEX support, UPNP support, Encryption support, Bandwith limiting


June 25, 2008, at 09:52 PM by slugmanbashi -- Added link to Howto for rtorrent
Added line 8:
  You can find a set-up Howto for rtorrent on a debian slug here.
June 25, 2008, at 06:15 PM by BrianZhou -- changed rtorrent link for slugos
Changed lines 11-12 from:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.
to:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.
March 22, 2008, at 11:56 AM by minime -- added enhanced-ctorrent
Added lines 24-27:

Another alternate is enhanced-ctorrent with Torrential. The gui is written in PHP and runs on appweb and lighthttpd.


March 06, 2008, at 10:02 PM by nomor -- bitflu install
Changed line 15 from:

Another Alternate is http://bitflu.workaround.ch/?. It is written in Perl and have 2 control interface :

to:

Another Alternate is bitflu. It is written in Perl and have 2 control interface :

Added lines 19-21:

To install, just untar and execute bitflu.pl. some configuration is avaiable in '.bitflu.config' (On Debian, you must also install 'libdigest-sha1-perl' to work)

March 06, 2008, at 09:58 PM by nomor -- Add of bitflu in bittorrent client
Added lines 15-20:

Another Alternate is http://bitflu.workaround.ch/?. It is written in Perl and have 2 control interface :

 * integrated Webui : Be careful, because it use Ajax and refresh every 2s, so don't forget to close your browser when you finish to look at your transfert!
 * telnet with colorized output ;)

January 26, 2008, at 08:25 PM by simon -- Actually link to the directory containing all variants.
Changed lines 11-12 from:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here (for slugosBE) and here (for slugosLE).
to:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.
January 26, 2008, at 08:23 PM by simon -- Added Link for SlugosLE
Changed lines 11-12 from:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.
to:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here (for slugosBE) and here (for slugosLE).
January 19, 2008, at 11:38 PM by BrianZhou -- gcc 4.1 libtorrent problem
Changed lines 11-13 from:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840

To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.

to:
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 . To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.
January 19, 2008, at 11:37 PM by BrianZhou -- gcc 4.1 libtorrent problem
Changed lines 10-11 from:
 rtorrent: HandshakeManager?::receive_succeeded(...) Unread data won't fit PCB's read buffer.

It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840

to:
 rtorrent: HandshakeManager::receive_succeeded(...) Unread data won't fit PCB's read buffer.
It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840
January 19, 2008, at 11:36 PM by BrianZhou -- gcc 4.1 libtorrent problem
Changed lines 9-13 from:
to:
  • On slugosbe or slugosle, if optware rtorrent gives you error of:
 rtorrent: HandshakeManager?::receive_succeeded(...) Unread data won't fit PCB's read buffer.

It's a bug in gcc 4.1, explained in http://libtorrent.rakshasa.no/ticket/840 To work around, you have to build libtorrent with slugos 3.10 toolchain. Unofficial build is available here.

October 09, 2007, at 09:58 PM by Sebastien --
Changed lines 93-94 from:

--Note: As of 2007-06-17, 1.0-beta1

to:
October 09, 2007, at 09:57 PM by Sebastien --
Changed lines 33-34 from:

Update (12/23/2006) - Spook I can confirm that torrentflux does not work with thttpd but I've had success with this on OpenSlug:

to:

Update (12/23/2006) (Update 10/09/2007 with beta1) - Spook I can confirm that torrentflux does not work with thttpd but I've had success with this on OpenSlug:

October 09, 2007, at 09:56 PM by Sebastien --
Changed line 42 from:
  • torrentflux-b4rt_1.0-alpha5
to:
  • torrentflux-b4rt_1.0-beta1
October 09, 2007, at 09:56 PM by Sebastien --
Changed line 81 from:

Download torrentflux-b4rt_1.0-alpha5.tar.bz2 to /opt/share/public and extract

to:

Download torrentflux-b4rt_1.0-beta1.tar.bz2 to /opt/share/public and extract

Changed line 85 from:
  1. tar -jxfv /opt/share/public/torrentflux-b4rt_1.0-alpha5.tar.bz2 @]
to:
  1. tar -jxfv /opt/share/public/torrentflux-b4rt_1.0-beta1.tar.bz2 @]
Changed line 91 from:
  1. tar -jxv -f /opt/share/public/torrentflux-b4rt_1.0-alpha5.tar.bz2 @]
to:
  1. tar -jxv -f /opt/share/public/torrentflux-b4rt_1.0-beta1.tar.bz2 @]
Changed line 106 from:
  1. cp /opt/share/public/torrentflux-b4rt_1.0-alpha5/misc/check/check_1.0.php /opt/share/www @]
to:
  1. cp /opt/share/public/torrentflux-b4rt_1.0-beta1/misc/check/check_1.0.php /opt/share/www @]
Changed lines 108-109 from:

--Note: File is called check-web.php in alpha6

to:
Changed line 116 from:
  1. cp -rp /opt/share/public/torrentflux-b4rt_1.0-alpha5/html/* /opt/share/www @]
to:
  1. cp -rp /opt/share/public/torrentflux-b4rt_1.0-beta1/html/* /opt/share/www @]
Changed lines 132-134 from:
  1. cd /opt/share/public/torrentflux-b4rt_1.0-alpha5/clients/transmission
  2. tar -jxvf Transmission-0.7-svn1241_tfCLI-svn1777.tar.bz2
  3. cd Transmission-0.7-svn1241_tfCLI-svn1777
to:
  1. cd /opt/share/public/torrentflux-b4rt_1.0-beta1/clients/transmission
  2. tar -jxvf Transmission-0.80-svn2076_tfCLI-svn3084.tar.bz2
  3. cd Transmission-0.80-svn2076_tfCLI-svn3084
October 02, 2007, at 04:27 PM by limo -- Added php.ini location
Changed lines 79-80 from:
to:

--Note: php.ini may be found in /opt/etc

October 02, 2007, at 04:25 PM by limo -- Added reference to torrentflux-b4rt 1.0 beta 1 and provided alt syntax for tar
Changed lines 86-88 from:

--Note: now alpha6.

Start the webserver

to:

or

Changed line 90 from:
  1. /opt/etc/init.d/S80lighttpd @]
to:
  1. tar -jxv -f /opt/share/public/torrentflux-b4rt_1.0-alpha5.tar.bz2 @]
Changed lines 92-93 from:

You can now check to see whether the components are working nicely together using the check script:

to:

--Note: As of 2007-06-17, 1.0-beta1

Start the webserver

Changed line 98 from:
  1. cp /opt/share/public/torrentflux-b4rt_1.0-alpha5/misc/check/check_1.0.php /opt/share/www @]
to:
  1. /opt/etc/init.d/S80lighttpd @]
Added lines 100-106:

You can now check to see whether the components are working nicely together using the check script: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# cp /opt/share/public/torrentflux-b4rt_1.0-alpha5/misc/check/check_1.0.php /opt/share/www 

(:tableend:)

August 31, 2007, at 08:34 PM by fcarolo -- fixed false wikilinks
Changed lines 14-15 from:

Only installed Apache/PHP/MySQL? and Torrentflux, no time to test any further. anyone success?

to:

Only installed Apache/PHP/MySQL and Torrentflux, no time to test any further. anyone success?

August 31, 2007, at 08:33 PM by fcarolo -- fixed false wikilinks
Changed lines 18-19 from:

Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux? will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem? - Tim

to:

Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem? - Tim

Changed lines 28-29 from:

Subsequent update (14/3/2007) Yes, I think the problem was with thttpd. I have just switched from thttpd to lighttpd with PHP via FastCGI?, and all the old problems with PHP applications falling over, have now gone. Torrentflux now works pretty well, though system load on the slug goes up considerably - anything between 1.5 and 4 even with one torrent. I wouldn't like to try more than 1-2 torrents simultaneously, but then I'm not a regular user of BitTorrent, so I'm unlikely to need more than one torrent running.

to:

Subsequent update (14/3/2007) Yes, I think the problem was with thttpd. I have just switched from thttpd to lighttpd with PHP via FastCGI, and all the old problems with PHP applications falling over, have now gone. Torrentflux now works pretty well, though system load on the slug goes up considerably - anything between 1.5 and 4 even with one torrent. I wouldn't like to try more than 1-2 torrents simultaneously, but then I'm not a regular user of BitTorrent, so I'm unlikely to need more than one torrent running.

August 30, 2007, at 06:02 PM by BrianZhou -- points to /opt/share/doc/btpd/README
Changed lines 1-2 from:

If you're comfortable with the command line, a low memory and CPU bittorrent client is btpd. Now available in optware. Tested and works well on unslung.

to:

If you're comfortable with the command line, a low memory and CPU bittorrent client is btpd. Now available in optware. Tested and works well on unslung. Reading /opt/share/doc/btpd/README should get you started.

August 30, 2007, at 01:09 AM by BrianZhou -- added btpd
Changed lines 1-4 from:

Bittorrent is possible with torrentflux. Torrentflux is a web based PHP client to steer a bittorrent program written in perl. Perl and apache/PHP can be installed on the NSLU2 device, so downloading with bittorrent is also possible ;-)

Only installed Apache/PHP/MySQL? and Torrentflux, no time to test any further. anyone success?

to:

If you're comfortable with the command line, a low memory and CPU bittorrent client is btpd. Now available in optware. Tested and works well on unslung.


Added lines 12-17:

Bittorrent is possible with torrentflux. Torrentflux is a web based PHP client to steer a bittorrent program written in perl. Perl and apache/PHP can be installed on the NSLU2 device, so downloading with bittorrent is also possible ;-)

Only installed Apache/PHP/MySQL? and Torrentflux, no time to test any further. anyone success?


April 29, 2007, at 09:29 PM by BrianZhou --
Changed lines 8-9 from:
  • rtorrent is also available from optware. It works well on , works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
to:
  • rtorrent is also available from optware. It works well on Optware/Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
April 29, 2007, at 09:27 PM by BrianZhou --
Changed lines 5-9 from:

An alternate low memory bittorrent solution is to use rtorrent. This is a console program and can run inside a screen or dtach. This configuration will run comfortably in a system with no swap.

  • rtorrent is available in the Debian repository, it is a beast to compile;
  • rtorrent is also available from optware. It works well on Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
to:

An alternate low memory bittorrent solution is to use rtorrent. This is a console program and can run inside a 'gnu screen' or 'dtach' session. This configuration will run comfortably in a system with no swap.

  • rtorrent is available in the Debian repository;
  • rtorrent is also available from optware. It works well on , works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
April 29, 2007, at 09:01 PM by BrianZhou --
Changed lines 8-9 from:
  • rtorrent is also available from optware. It works well on Optware.Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
to:
  • rtorrent is also available from optware. It works well on Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
April 29, 2007, at 08:59 PM by BrianZhou --
Changed lines 5-6 from:

An alternate low memory bittorrent solution is to use 'rtorrent'. This is a console program and can run inside a 'screen'. This configuration will run comfortably in a system with no swap.

to:

An alternate low memory bittorrent solution is to use rtorrent. This is a console program and can run inside a screen or dtach. This configuration will run comfortably in a system with no swap.

Changed lines 8-9 from:
  • rtorrent is also available from optware. It works well on Optware/Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
to:
  • rtorrent is also available from optware. It works well on Optware.Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
April 29, 2007, at 08:57 PM by BrianZhou -- more info about rtorrent
Changed lines 5-6 from:

An alternate low memory bittorrent solution is to use 'rtorrent' (available in the Debian repository, it is a beast to compile). This is a console program and can run inside a 'screen'. This configuration will run comfortably in a system with no swap.

to:

An alternate low memory bittorrent solution is to use 'rtorrent'. This is a console program and can run inside a 'screen'. This configuration will run comfortably in a system with no swap.

  • rtorrent is available in the Debian repository, it is a beast to compile;
  • rtorrent is also available from optware. It works well on Optware/Slugosbe, works with some problem on unslung. See http://tech.groups.yahoo.com/group/nslu2-developers/message/1670 for detail.
March 16, 2007, at 09:23 AM by dirttyturbo --
Changed line 162 from:
 === Ver 2.3 Working With Unslung 5 ===
to:

Torrentflux Ver 2.3 Working With Unslung 5

March 16, 2007, at 09:22 AM by dirttyturbo -- Added a link to recent instructions
Added lines 161-163:
 === Ver 2.3 Working With Unslung 5 ===

http://www.torrentflux.com/forum/index.php/topic,697.0.html

March 13, 2007, at 02:56 PM by tawalker -- Supplement to my comments regarding Torrentflux under PHP and thttpd - in short, don\'t :-(
Added lines 19-22:

Subsequent update (14/3/2007) Yes, I think the problem was with thttpd. I have just switched from thttpd to lighttpd with PHP via FastCGI?, and all the old problems with PHP applications falling over, have now gone. Torrentflux now works pretty well, though system load on the slug goes up considerably - anything between 1.5 and 4 even with one torrent. I wouldn't like to try more than 1-2 torrents simultaneously, but then I'm not a regular user of BitTorrent, so I'm unlikely to need more than one torrent running.

In short: I would advise generally against running thttpd on the slug for anything more than the admin pages (Unslung) and static HTTP pages with no virtual hosts. If you want PHP on the slug without the overhead of Apache, go for lighttpd (or perhaps Cherokee, but I haven't tried that) - for me, thttpd is just too unreliable to work with PHP. YMMV, but this is how I see it.

March 04, 2007, at 10:06 AM by emm_is -- rtorrent works well on NSLU2
Added lines 5-6:

An alternate low memory bittorrent solution is to use 'rtorrent' (available in the Debian repository, it is a beast to compile). This is a console program and can run inside a 'screen'. This configuration will run comfortably in a system with no swap.

March 03, 2007, at 09:00 PM by sread -- some updates for alpha6
Changed lines 71-72 from:
to:

--Note: now alpha6.

Changed lines 86-87 from:
to:

--Note: File is called check-web.php in alpha6

January 13, 2007, at 12:33 AM by Spook727 --
Changed lines 18-19 from:

Update (12/23/2006) - Spook I can confirm that torrentflux does not work with thttpd but I've had success with this on !!OpenSlug:

to:

Update (12/23/2006) - Spook I can confirm that torrentflux does not work with thttpd but I've had success with this on OpenSlug:

January 13, 2007, at 12:31 AM by Spook727 --
Changed lines 18-19 from:

Update (12/23/2006) - Spook I can confirm that torrentflux does not work with thttpd but I've had limited success with this:

to:

Update (12/23/2006) - Spook I can confirm that torrentflux does not work with thttpd but I've had success with this on !!OpenSlug:

Changed lines 33-34 from:

All of these packages are available for Unslung but I used the UNSUPPORTED method for downloading Optware packages for OpenSlug (Search the yahoo group)

to:

Some packages are only available for Unslung and I'm writing this for OpenSlug. You will have to manually download the necessary packages and install them manually.

January 13, 2007, at 12:26 AM by Spook727 --
Changed line 27 from:
  • torrentflux_2.1-b4rt-97
to:
  • torrentflux-b4rt_1.0-alpha5
Changed line 36 from:

Setting Up

to:

What you will need.

Changed lines 39-40 from:

Using this configuration, you should be running successfully with PHP on Lighttpd. Now you need sqlite:

to:

Using this configuration, you should be running successfully with PHP on Lighttpd.

You will also need to compile transmissioncli using the native compile environment. Refer to setting up the native compile environment on SlugOS: http://www.nslu2-linux.org/wiki/HowTo/SlugOSNativeCompileEnvironment

You will need a lot of space for this. Pretty much just install the packages described in steps 3-8


Setting Up

  Now you need sqlite:
Changed line 65 from:

Download torrentflux_2.1-b4rt-97.tar.bz2 to /opt/share/public and extract

to:

Download torrentflux-b4rt_1.0-alpha5.tar.bz2 to /opt/share/public and extract

Changed line 69 from:
  1. tar -jxfv /opt/share/public/torrentflux_2.1-b4rt-97.tar.bz2 @]
to:
  1. tar -jxfv /opt/share/public/torrentflux-b4rt_1.0-alpha5.tar.bz2 @]
Changed line 83 from:
  1. cp /opt/share/public/torrentflux_2.1-b4rt-97/misc/check/check_v97.php /opt/share/www @]
to:
  1. cp /opt/share/public/torrentflux-b4rt_1.0-alpha5/misc/check/check_1.0.php /opt/share/www @]
Changed line 86 from:

Open a web browser and check out the page: http://192.168.1.77/check_v97.php (I'm running my server on port 80).

to:

Open a web browser and check out the page: http://192.168.1.77/check_1.0.php (I'm running my server on port 80).

Changed line 93 from:
  1. cp -rp /opt/share/public/torrentflux_2.1-b4rt-97/html/* /opt/share/www @]
to:
  1. cp -rp /opt/share/public/torrentflux-b4rt_1.0-alpha5/html/* /opt/share/www @]
Changed lines 96-97 from:

Now to set up your Database

to:

The first time you launch torrentflux http://192.168.1.77, it will run through a setup procedure. Choose sqlite as your database. When you are asked to name your database, make sure to fill in every field and UNCHECK "create a new database". When you go to the next screen, a new database will be created at the root of your website (assuming you didn't put in a full path). Go through the setup wizard and you will be instructed to delete setup.php. Go ahead and delete it.

Reload torrentflux http://192.168.1.77 and you'll be asked to log in. What you put here will set up the root user's username and password. Go ahead and log in and you'll see the nifty torrentflux interface.

This is usually where the rest of the HowTo's on torrentflux stop but the REALLY important section starts... now.


Slug-specific Procedures

Compile the transmissioncli

Changed lines 109-112 from:
  1. mv /opt/share/www/config.db.php.dist /opt/share/www/config.db.php @]
to:
  1. cd /opt/share/public/torrentflux-b4rt_1.0-alpha5/clients/transmission
  2. tar -jxvf Transmission-0.7-svn1241_tfCLI-svn1777.tar.bz2
  3. cd Transmission-0.7-svn1241_tfCLI-svn1777
  4. ./configure --disable-gtk --prefix=/opt && make && make install @]
Changed lines 115-118 from:

Edit config.db.php and set the values: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

to:

this will place transmissioncli in /opt/bin. Make sure you configure the torrentflux settings to reflect this location. If you install newer versions of Torrentflux-b4rt, you should always compile the transmisioncli that comes with that version.

The NSLU2 (and any other embedded linux system like the WRT's) run busybox to combine a lot of common POSIX commands into one executable. If you run this: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

Changed lines 121-123 from:

$cfg["db_type"] = "sqlite"; $cfg["db_host"] = "/opt/share/db/torrentflux.db"; @]

to:
  1. ps --help @]
Changed lines 124-125 from:

Now you're ready to create the database:

to:

You will see that this version of ps does not accept any arguments and Torrentflux uses a lot of ps arguments to format the output so that it can ensure that the processes executed have actually launched. A full version of ps comes with the procps package so:

Changed lines 129-134 from:
  1. sqlite /opt/share/www/torrentflux.db

SQLite? version 2.8.16 Enter ".help" for instructions sqlite> .read /opt/share/public/torrentflux_2.1-b4rt-97/sql/sqlite/sqlite_torrentflux_tf-b4rt-97.sql sqlite> .quit

 @]
to:
  1. ipkg install procps @]
Changed lines 131-134 from:

This should be good enough to get the web interface to work so try it out http://192.168.1.77

Additional necessary and optional packages are:

to:

In addition, if you started the web server using S80lighttpd and haven't logged out yet, the stderr output of that process is still linked to your current session. If you go to the web interface and try to start up a torrent, you may see this in your ssh session:

Changed lines 137-139 from:
  • perl
  • transmission
  • python (optional?)
to:

sh: nohup: not found

Changed lines 141-145 from:

The first time you launch the application, you are faced with a login prompt. By filling this form out, you are setting the user/pass for the administrator for this application.

You should now be at the configureSettings page and should be able to take it the rest of the way. Make sure you set the paths to the necessary bin files. (Unrar is available as a package for unslung as well).

to:

This means that the nohup command is not installed. It's available in the coreutils package so... : (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# ipkg install coreutils 

(:tableend:)

Changed lines 149-177 from:

Issues

I've been able to upload a torrent file to the application and have it show up in the list but I have been unable to get it to start.

The stdout of the S80lighttpd script give me these errors when trying to start a torrent: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

sh: nohup: not found

(:tableend:)

The lighttpd error logs give these: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

2006-12-18 22:41:42: (mod_fastcgi.c.2502) FastCGI-stderr: PHP Notice:  unserialize() 
     [<a href='function.unserialize'>function.unserialize</a>]: 
     Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80
PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: 
     Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80
PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: 
     Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80
PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: 
     Error at offset 5 of 218 bytes in /opt/share/www/settingsfunctions.php on line 82

(:tableend:)

This is as far as I was able to take it. My problems may stem from the fact that I'm running Optware packages in OpenSlug. If anyone tries this on Unslung, please update with your results. If anyone can help me with my issues, please update here or post in the yahoo group as well.

to:

Finishing Up

So there you have it. Torrentflux running on a slug with as little overhead as possible. Start up a couple of torrents and see how it works out for you. I've been able to run 4 torrents simultaneously, but at that point, the box is pretty much dedicated to doing just torrenting. Try it for yourselves and respond with your results.

You can also try setting up python to run the tornado client (some trackers ban transmissioncli) but that is a big resource hog. Try it and come back with some results.

December 24, 2006, at 06:41 AM by Spook727 --
Changed lines 120-121 from:

You will need perl and probably python for the queue manager and other functions so install those packages as well.

to:

Additional necessary and optional packages are: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

* perl
* transmission
* python (optional?)

(:tableend:)

December 24, 2006, at 06:28 AM by Spook727 --
Changed lines 24-28 from:
  • Openslug on a standard NSLU2
  • Lighttpd with PHP
  • Sqlite
  • torrentflux_2.1-b4rt-97
  • TransmissionCLI?
to:
  • Openslug on a standard NSLU2
  • Lighttpd with PHP
  • Sqlite
  • torrentflux_2.1-b4rt-97
  • TransmissionCLI?
December 24, 2006, at 06:28 AM by Spook727 --
Changed line 88 from:

NOw? to set up your Database

to:

Now to set up your Database

December 24, 2006, at 06:27 AM by Spook727 --
Changed lines 144-145 from:

2006-12-18 22:41:42: (mod_fastcgi.c.2502) FastCGI?-stderr: PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]:

to:

2006-12-18 22:41:42: (mod_fastcgi.c.2502) FastCGI?-stderr: PHP Notice: unserialize()

     [<a href='function.unserialize'>function.unserialize</a>]: 
December 24, 2006, at 06:27 AM by Spook727 --
Changed lines 145-148 from:

Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80 PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80 PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80 PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 5 of 218 bytes in /opt/share/www/settingsfunctions.php on line 82

to:
     Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80

PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]:

     Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80

PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]:

     Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80

PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]:

     Error at offset 5 of 218 bytes in /opt/share/www/settingsfunctions.php on line 82
December 24, 2006, at 06:25 AM by Spook727 --
Changed line 17 from:

---

to:

Changed line 35 from:

---

to:

Changed line 127 from:

---

to:

Changed lines 144-145 from:

2006-12-18 22:41:42: (mod_fastcgi.c.2502) FastCGI?-stderr: PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80

to:

2006-12-18 22:41:42: (mod_fastcgi.c.2502) FastCGI?-stderr: PHP Notice: unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80

December 24, 2006, at 06:24 AM by Spook727 --
Changed lines 15-151 from:

Update (22/12/2006): Ah... would this also explain why I can't get a single torrent to even start downloading, as they all display either 'Torrent Stopped' or 'Torrent Died'? :-(

to:

Update (22/12/2006): Ah... would this also explain why I can't get a single torrent to even start downloading, as they all display either 'Torrent Stopped' or 'Torrent Died'? :-(

--- Update (12/23/2006) - Spook I can confirm that torrentflux does not work with thttpd but I've had limited success with this:

Configuration

(:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

*Openslug on a standard NSLU2
*Lighttpd with PHP
*Sqlite
*torrentflux_2.1-b4rt-97
*TransmissionCLI
 (maybe eaccelerator to help with php performance?)

(:tableend:)

All of these packages are available for Unslung but I used the UNSUPPORTED method for downloading Optware packages for OpenSlug (Search the yahoo group)

---

Setting Up

Refer to running PHP with lighttpd: http://www.nslu2-linux.org/wiki/HowTo/DeployPHPWebAppUsingFastCGI Using this configuration, you should be running successfully with PHP on Lighttpd. Now you need sqlite:

(:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# ipkg install sqlite2 

(:tableend:)

Edit php.ini to load the sqlite modules. Look for the section that loads extensions and add the lines: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

extension=pdo.so
extension=sqlite.so

(:tableend:)

Download torrentflux_2.1-b4rt-97.tar.bz2 to /opt/share/public and extract (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# tar -jxfv /opt/share/public/torrentflux_2.1-b4rt-97.tar.bz2 

(:tableend:)

Start the webserver (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# /opt/etc/init.d/S80lighttpd 

(:tableend:)

You can now check to see whether the components are working nicely together using the check script: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# cp /opt/share/public/torrentflux_2.1-b4rt-97/misc/check/check_v97.php /opt/share/www 

(:tableend:)

Open a web browser and check out the page: http://192.168.1.77/check_v97.php (I'm running my server on port 80). The first 3 sections should all pass but the important part here is section 4. PHP-Database-Support. sqlite should Pass

With that done, you can now copy the rest of the web files to your web root: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# cp -rp /opt/share/public/torrentflux_2.1-b4rt-97/html/* /opt/share/www 

(:tableend:)

NOw? to set up your Database (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# mv /opt/share/www/config.db.php.dist /opt/share/www/config.db.php 

(:tableend:)

Edit config.db.php and set the values: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

$cfg["db_type"] = "sqlite";
$cfg["db_host"] = "/opt/share/db/torrentflux.db";

(:tableend:)

Now you're ready to create the database: (:table border=0 width=80% bgcolor=#eeffee:) (:cell:)

# sqlite /opt/share/www/torrentflux.db
SQLite version 2.8.16
Enter ".help" for instructions
sqlite> .read /opt/share/public/torrentflux_2.1-b4rt-97/sql/sqlite/sqlite_torrentflux_tf-b4rt-97.sql
sqlite> .quit

(:tableend:)

This should be good enough to get the web interface to work so try it out http://192.168.1.77

You will need perl and probably python for the queue manager and other functions so install those packages as well.

The first time you launch the application, you are faced with a login prompt. By filling this form out, you are setting the user/pass for the administrator for this application.

You should now be at the configureSettings page and should be able to take it the rest of the way. Make sure you set the paths to the necessary bin files. (Unrar is available as a package for unslung as well).

---

Issues

I've been able to upload a torrent file to the application and have it show up in the list but I have been unable to get it to start.

The stdout of the S80lighttpd script give me these errors when trying to start a torrent: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

sh: nohup: not found

(:tableend:)

The lighttpd error logs give these: (:table border=0 width=80%:) (:cellnr bgcolor=#eeeeee:)

2006-12-18 22:41:42: (mod_fastcgi.c.2502) FastCGI-stderr: PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80
PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80
PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 9 of 19 bytes in /opt/share/www/settingsfunctions.php on line 80
PHP Notice:  unserialize() [<a href='function.unserialize'>function.unserialize</a>]: Error at offset 5 of 218 bytes in /opt/share/www/settingsfunctions.php on line 82

(:tableend:)

This is as far as I was able to take it. My problems may stem from the fact that I'm running Optware packages in OpenSlug. If anyone tries this on Unslung, please update with your results. If anyone can help me with my issues, please update here or post in the yahoo group as well.

December 22, 2006, at 12:01 AM by Tim Walker -- Added extra update
Changed lines 13-15 from:

This may be a relevant issue.

to:

This may be a relevant issue.

Update (22/12/2006): Ah... would this also explain why I can't get a single torrent to even start downloading, as they all display either 'Torrent Stopped' or 'Torrent Died'? :-(

December 14, 2006, at 03:56 PM by Freddy Chu --
Changed lines 7-13 from:

Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux? will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem? - Tim

to:

Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux? will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem? - Tim

Please refer to

http://www.nslu2-linux.org/wiki/Info/UsingPhpWithThttpd

This may be a relevant issue.

December 07, 2006, at 03:49 PM by Tim Walker -- Added my name :-)
Changed line 7 from:

Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux? will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem?

to:

Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux? will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem? - Tim

December 07, 2006, at 03:48 PM by Tim Walker -- Got TorrentFlux working with php-thttpd
Changed lines 3-7 from:

Only installed Apache/PHP/MySQL? and Torrentflux, no time to test any further. anyone success?

to:

Only installed Apache/PHP/MySQL? and Torrentflux, no time to test any further. anyone success?


Update (7/12/2006): I've got php-thttpd installed instead of Apache, and it looks like TorrentFlux? will still install and work, though I haven't actually tried downloading a torrent with it yet. Occasionally I get a blank page after updating admin pages - could this be a permissions problem?

April 19, 2006, at 11:41 AM by Mase --
Changed lines 1-2 from:

Bittorrent is possible with torrentflux. Torrentflux is a web based PHP client to steer a bittorrent program written in pearl. Pearl and apache/PHP can be installed on the NSLU2 device, so downloading with bittorrent is also possible ;-)

to:

Bittorrent is possible with torrentflux. Torrentflux is a web based PHP client to steer a bittorrent program written in perl. Perl and apache/PHP can be installed on the NSLU2 device, so downloading with bittorrent is also possible ;-)

April 04, 2006, at 08:22 PM by Mase -- Bittorrent / PHP / Apache/ MySQL / Torrentflux
Added lines 1-3:

Bittorrent is possible with torrentflux. Torrentflux is a web based PHP client to steer a bittorrent program written in pearl. Pearl and apache/PHP can be installed on the NSLU2 device, so downloading with bittorrent is also possible ;-)

Only installed Apache/PHP/MySQL? and Torrentflux, no time to test any further. anyone success?

view · edit · print · history · Last edited by SRS.
Based on work by SRS, arthur92710, slugmanbashi, BrianZhou, minime, nomor, simon, Sebastien, limo, fcarolo, dirttyturbo, tawalker, emm_is, sread, Spook727, Tim Walker, Freddy Chu, and Mase.
Originally by Mase.
Page last modified on November 22, 2008, at 02:42 PM