Loading...

Tuesday, August 17, 2010

Download Torrent File in Linux Server (with Command Line Interface)

Do you have VPS or Offshore or Dedicated server that have so many bandwith?
Do you want to use that "extra bandwith speed" to download torrent files? if you say yes, you should try this. I use my debian-5.0-x86 VPS hosting in Dallas, USA to download my torrent files, then if the download complete, i will download that file with internet download manager (yeah, i got multiple speed :D). To do that, we must have torrent client that called BitTorrent. BitTorrent is the name of a peer-to-peer (P2P) file distribution protocol, and of a free software implementation of that protocol.

The BitTorrent client is a computer program developed by BitTorrent, Inc. used to download and upload files via the BitTorrent protocol. You can download python based command line BitTorrent client download for Linux/BSD/Mac OS X/UNIX link oses. This is quite useful, if you would like to download file remotely over SSH session. bittorrent.com offers bittorrent client in .deb (Debian Linux) or rpm (RedHat/Fedora Core/CentOS Linux) file formats.

First step, you must check your python version. Type following command to find out python version :
$ python -V
then the result

Python 2.5.0
owh, i use python 2.5, then i go to http://download.bittorrent.com/dl/archive to find out the bittorent client that match with my python version, i get bittorrent_5.0.9_python2.5 version.

Step 2, Download The BitTorrent Client
You can use wget to download bittorrent client.
$ wget http://download.bittorrent.com/dl/archive/bittorrent_5.0.9_python2.5.deb
Step 3, lets go to install BitTorrent client
First login as a root user (use su or sudo command), then use dpkg command install bittorrent client
# dpkg -i bittorrent_5.0.9_python2.5.deb
Okey it's done, then you should call the application like this :

$ /usr/bin/bittorrent-curses 'http://torrents.thepiratebay.org/5721469/StarCraft_II_Wings_of_Liberty-RELOADED.5721469.TPB.torrent'
or
$ bittorrent-curses 'http://torrents.thepiratebay.org/5721469/StarCraft_II_Wings_of_Liberty-RELOADED.5721469.TPB.torrent'
or
$ /usr/bin/bittorrent-curses '/path/to/file.torrent'

if you got error on installing BitTorrent or python, please update your repositories first.

0 comments: