# A peer-to-peer file sharing client

RTorrent is simply text-based BitTorrent client, based on the libTorrent libraries. It is implemented with a compact code, ideal to run on systems with limited resources such as FoxG20 Board.

You can use your FoxG20 as remote client and turn off your computer, with a large power saving.

## Configure RTorrent to work with FoxG20

* Download the Web GUI named ruTorrent
<pre class="minicom">
cd /var/www
wget http://rutorrent.googlecode.com/files/rutorrent-3.3.tar.gz
tar -xzvf rutorrent-3.3.tar.gz
cd rutorrent/plugins
wget http://rutorrent.googlecode.com/files/plugins-3.3.tar.gz
tar -xzvf plugins-3.3.tar.gz
</pre>


* Install rTorrent from the repository or jump to the next section to compile the latest version
<pre class="minicom">
apt-get install rtorrent
</pre>

## Install the latest version of RTorrent

* Install libsigc++, libcurl, g++ and make
<pre class="minicom">
apt-get install libsigc++
apt-get install libcurl4-openssl-dev
apt-get install g++
apt-get install make
</pre>

* Download, compile and install libtorrent (this can take several hours)
<pre class="minicom">
wget http://libtorrent.rakshasa.no/downloads/libtorrent-0.13.0.tar.gz
tar -xzvf libtorrent-0.13.0.tar.gz
cd libtorrent-0.13.0
./configure --disable-mincore
make
make install
</pre>

If you have a problem with "./configure" command check and update the time

* update the local time
<pre class="minicom">
date -s "01/18/2012 17:07:00"
hwclock -w
</pre>

* Download, compile and install rtorrent (it can take several hours)
<pre class="minicom">
wget 
tar -xzvf 
cd
./configure
make
</pre>

* Configure /etc/mpd.conf more info [here](http://mpd.wikia.com/wiki/Configuration), we have created an adhoc config file for you [mpd.conf](http://www.madefree.eu/download/daisy16/mpd.conf) (MD5:a52a320d5e609b0265091ee276587d39)
<pre class="minicom">
cp mpd.conf /etc/mpd.conf
</pre>

* Create database
<pre class="minicom">
mpd --create-db
</pre>


* Start mpd daemon
<pre class="minicom">
/etc/init.d/mpd start
</pre>

* Copy your favorite music
Use the scp command from PC client to copy your music into the foxg20
<pre class="minicom">
scp -r "Your Music Directory" root@FOX-IP:/var/lib/mpd/music/
</pre>

## Related links

* [Daisy16 more info](/daisy_16_audio)
* [rTorrent web-site](http://libtorrent.rakshasa.no/)
* [ruTorrent web-site](http://code.google.com/p/rutorrent/)


@shop='COMBO-2'
