Bittorrent

From WL-HDD Wiki

Jump to: navigation, search
WL-HDD Contents
What is the WL-HDD
Features
Pro's/con's
Reviews
Hacking
Inserting the HDD
Hacking Guides
Basic setup guides
Packages guides
Requests
Troubleshooting
This Wiki
Credits
Editing help
Contact Me

Contents

Prerequisites

To complete this guide, the following is assumed:

You are running Oleg's firmware (1.9.2.7-6b or later)
You have harddisk partitions up and running with an extended filesystem mounted to /opt
You have installed the Ipkg package system.
You have configured your partitions to automount.

Installation of Libraries etc

First, you need to update the ipkg package list

ipkg update
Downloading http://wl500g.dyndns.org/ipkg/Packages
Updated list of available packages in /opt/lib/ipkg/lists/wl500g
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/Packages
Updated list of available packages in /opt/lib/ipkg/lists/unslung
Successfully terminated. 

Now lets perform the installation!

ipkg list | grep -i core

You should see the following or similar

coreutils - 5.2.1-8 - Bunch of heavyweight *nix core utilities
libbt - 1.05-4 - a C library implementing the core BitTorrent protocol

Lets install the coreutils- these are needed for bittorrent

ipkg install coreutils

You should see the following

Installing coreutils (5.2.1-8) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/coreutils_5.2.1-8_mipsel.ipk
Configuring coreutils
update-alternatives: Linking //opt/bin/kill to /opt/bin/coreutils-kill
update-alternatives: Linking //opt/bin/uptime to /opt/bin/coreutils-uptime
Successfully terminated.

Now lets install findutils aswell

ipkg install findutils

You should see the following

Installing findutils (4.1.20-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/findutils_4.1.20-3_mipsel.ipk
Configuring findutils
Successfully terminated.

Just a few more packages to install

ipkg install findutils less nload

You should see the following or similar

Package findutils (4.1.20-3) installed in root is up to date.
Installing less (381-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/less_381-2_mipsel.ipk
Installing ncurses (5.5-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/ncurses_5.5-1_mipsel.ipk
Installing nload (0.6.0-2) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/nload_0.6.0-2_mipsel.ipk
Installing libstdc++ (0.1.12-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libstdc++_0.1.12-3_mipsel.ipk
Installing libuclibc++ (0.1.12-3) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/libuclibc++_0.1.12-3_mipsel.ipk
Configuring less
Configuring libstdc++
Configuring libuclibc++
Configuring ncurses
Configuring nload
Successfully terminated. 

Installation of Torrent

Now all the necessary libraries are installed. We can put bittorrent on the WL-HDD now :)

ipkg install torrent

Setup

Lets make some directories first.

mkdir /opt/torrent
cd /opt/torrent
mkdir work
mkdir source
mkdir target

Now lets edit the torrent configuration file

nano /opt/etc/torrent.conf

Change the first few lines to match the following setup

SOURCE=/opt/torrent/source
WORK=/opt/torrent/work
TARGET=/opt/torrent/target
MAILTO=
MAILFROM=
USER=admin <make sure you change this to your username if you have changed it>
GROUP=root
DATE_FORMAT="%d %h %H:%M"

Change the log time to stop logs building up too much!

LOG_TIME=120
Personal tools