Sunday, September 30, 2007

Bittorent with Linux

Requirement:
Python - /usr/bin/python
BitTorrent - see below

To install:
wget http://download.bittorrent.com/dl/BitTorrent-4.0.1-1.noarch.rpm
rpm -ivh BitTorrent-4.0.1-1.noarch.rpm
If you get the following error:
"running BitTorrent apps: ImportError: No module named BitTorrent.download",
just set the path to python:
export PYTHONPATH=/usr/lib/python2.3/site-packages

To download torrent file:
download .torrent file eg. myfile.torrent
1. nohup btdownloadheadless.py --responsefile myfile.torrent > log&
or
2. screen -S mydownload
btdownloadcurses.py --responsefile myfile.torrent
press ctrl-A then D to leave screen
to return to screen type: screen -x mydownload
 ----------------------------------------------------------------------------
file: Myfile Season 1
size: 7,881,329,711 (7 GiB)
dest: /home/user/Myfile Season 1
progress: ###########################_____________________________________
status: finishing in 51:38:44 (43.7%)
dl speed: 20.1 KB/s
ul speed: 19.6 KB/s
sharing: 0.855 (51.8 MB up / 60.5 MB down)
seeds: 0 seen now, plus 1 distributed copies (2:99.6%, 3:96.0%, 4:80.4%
peers: 10 seen now
----------------------------------------------------------------------------