Linux > Command line BitTorrent client

BitTorrent is the name of a peer-to-peer (P2P) file distribution protocol, and of a free software implementation of that protocol.

ADVERTISEMENTS

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.

To use the bittorrent in command line one you need to use command bittorrent-console or bittorrent-curses (see below for examples).

Step # 1: Find Python version

Make sure you download file according to your python version. Type following command to find out python version:
$ python -V
Output:

Python 2.4.2

Step # 2: Download bittorrent client

Use wget to download bittorrent client

Download bittorrent client for Debian Linux:

$ wget http://download.bittorrent.com/dl/bittorrent_5.0.3_python2.4.deb

Download bittorrent clientFor Red Hat / Fedora Core / Cent OS Linux

$ wget http://download.bittorrent.com/dl/BitTorrent-5.0.3-1-Python2.4.noarch.rpm

Step # 3: Linux Install BitTorrent client

First login as a root user (use su or sudo command). If you are using Debian Linux, use dpkg command install bittorrent client
# dpkg -i bittorrent_5.0.3_python2.4.deb
If you are using Red Hat / Fedora Core /Cent OS Linux, use rpm command install bittorrent client:
# rpm -ivh BitTorrent-5.0.3-1-Python2.4.noarch.rpm

Step # 4: Start using or downloading files

Use bittorrent client as follows:
$ /usr/bin/bittorrent-curses 'http://www.some.org/DesktopBSD.iso.torrent'
OR
$ bittorrent-curses 'http://www.some.org/DesktopBSD.iso.torrent'
OR
$ /usr/bin/bittorrent-curses '/path/to/file.torrent'
You can try out pure console based client bittorrent-console instead of curses based client:
$ bittorrent-console '/path/to/file.torrent'
$ /usr/bin/bittorrent-console 'http://www.some.org/DesktopBSD.iso.torrent'

Tips about using and Troubleshooting BitTorrent client

(A) If you get [Errno 2] No such file or directory, you need to use wget or lynx command to download .torrent file to local hard drive first. For example
$ bittorrent-curses 'http://www.mininova.org/get/some_file[222].torrent'
First download download .torrent file using any one of the following method:
$ lynx 'http://www.mininova.org/get/some_file[222].torrent'
When prompted save .torrent file to a hard-disk. Another option is use wget to download .torrent file:
$ wget 'http://www.mininova.org/get/some_file[222].torrent'
Now start the downloading as follows:
$ bittorrent-curses 'some_file[222].torrent'

(B) If you get error ‘This seems to be an old Python version which does not support detecting the filesystem encoding. Assuming ‘ascii’, then upgrade your python version to 2.4.xx:

Debian user upgrade python version using apt-get command:
# apt-get update
# apt-get install python2.4

Red Hat Linux user try out:
# up2date python2.4
Fedora Linux user try out:
# yum install python2.4

Remember if you have both versions (python v2.3 and v2.4) installed, you need to run bittorent client as follows:
$ python2.4 /usr/bin/bittorrent-curses '/path/to/file.torrent'
Command line BitTorrent client should work with other UNIX like operating systems such as FreeBSD/OpenBSD/Solaris etc (as long as you have Python it should work).

The current client enables a range of features including multiple parallel downloads. It also intermediates peering between itself, source file servers (read as trackers) and other clients, thereby yielding great distribution efficiencies. The client also enables users to create and share torrent files. See help files for more information.

See also:

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source & DevOps topics via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
94 comments… add one
  • DavidK Apr 13, 2005 @ 21:57

    Fantastic post… deserves tons of comments.. a massive help 🙂

  • Anonymous Apr 19, 2005 @ 23:01

    Very helpul thanks!

  • Anonymous May 18, 2005 @ 8:12

    Try ctorrent, a c++ command line bt client.

    Looking for a better command line client can select files from the torrent for downloading.

  • 🐧 nixcraft May 18, 2005 @ 19:13

    Okay it looks good to me thanks for pointing out it 🙂

    1) Get it at URL

    2) Read INSTALL file 🙂 for installation.

  • read-icc Jul 14, 2005 @ 4:05

    Also use btdownloadheadless.py (or curses) by itself to get the help output. Various command switches are taken. –max_upload_rate $INT –super-seeder $BOOLEAN – etc.

  • Anonymous Jul 29, 2005 @ 19:52

    Thanks for this! Torrents thru SSH == heaven 🙂

  • Anonymous Aug 23, 2005 @ 20:31

    Very nice post, but i screwd it somehow 🙁
    Here’s the error i got:
    Traceback (most recent call last):
    File “/usr/bin/btdownloadheadless.py”, line 24, in ?
    from BitTorrent.download import Feedback, Multitorrent
    ImportError: No module named BitTorrent.download

  • Anonymous Sep 17, 2005 @ 1:34

    > ImportError: No module named BitTorrent.download

    I had that error on my box and found this problem/solution:
    – /usr/lib/python a link to /usr/lib/python2.2
    – /usr/lib/python2.3 had been created during rpm install of BitTorrent and contained nothing but a dir /site-packages (belonging to BitTorrent
    – copying that directory to /python2.2 fixed the problem

    have fun

  • Anonymous Sep 17, 2005 @ 15:17

    Cool, thanks for posting solution too. I’m sure it will help others who gets stuck up with such errors 😀

  • Anonymous Oct 30, 2005 @ 0:23

    Your post helps a lot.

    I have tried using the command ./btdownloadcurse.py. I found that it is not possible to have it run as a background job ! Why ? Is it possible to run bittorrent jobs, either d/l or u/l in background ?

    Panya

  • cyberciti Oct 30, 2005 @ 4:39

    Try no nohup command as follows:

    nohup ./btdownloadheadless.py some_file[222].torrent &

    nohup run a command immune to hangups, with output to a non-tty i.e. it will run command even if you quit the session

  • Anonymous Oct 30, 2005 @ 12:29

    Another question, I got a warning (guess it is not an error) saying that :
    [13:57:00] Python failed to autodetect filesystem encoding. Using ‘ascii’ instead.

    What should I do ?

  • LinuxTitli Nov 1, 2005 @ 10:22

    You need to upgrade python version to avoid this warning. Once upgraded you should able to get rid of this problem


    Rocky

  • Anonymous Nov 23, 2005 @ 14:08

    This is just what I need… but.. I download the .deb file and dpkg -i btclientfile.deb and I can’t find btdownloadheadless.py

  • 🐧 nixcraft Nov 23, 2005 @ 18:39

    It should be in /usr/bin/ directory. Try as follows:

    $ cd /usr/bin
    $ ./btdownloadheadless.py path/to/file.torrent

    You can also use following trick to find out path to btdownloadheadless.py
    # dpkg –contents btclientfile.deb | grep btdownloadheadless.py

  • Anonymous Nov 23, 2005 @ 18:58

    Hello

    I’m getting following error I’m using /usr/bin/bittorrent-curses under Debian linux:

    Traceback (most recent call last):
    File “/usr/bin/bittorrent-curses”, line 17, in ?
    from BitTorrent.platform import install_translation
    ImportError: cannot import name install_translation

    Any idea?

  • 🐧 nixcraft Nov 23, 2005 @ 19:17

    Upgrade your version to python2.4, try
    apt-get install python2.4

    Then execute curses interface as follows:
    $ python2.4 /usr/bin/bittorrent-curses ‘/path/to/file.torrent’

  • Anonymous Nov 25, 2005 @ 18:12

    Cool after upgrading it to python 2.4, it worked, thanks a lot 🙂 Your site is worth a bookmark. Can u write about GUI BitTorrent clients …

  • Anonymous Dec 7, 2005 @ 5:07

    Do you need to open up any ports specifically on the firewall?

  • 🐧 nixcraft Dec 7, 2005 @ 5:58

    Yup you need to open ports on firewall:
    TCP/UDP 6881 to 6889 for bittorent client

    If you have router based firewall then you need to enable port forwarding on router for above ports to your internal computes.

  • Anonymous Dec 11, 2005 @ 4:18

    thanks was looking for both firewall rule and command line tool

  • Bo0 Feb 15, 2006 @ 9:07

    Thx!!!

    Installed on my dedicated 😀

    download rate: 55.7 KB/s
    upload rate: 16.1 KB/s
    share rating: 0.713 (19.1 MB up / 26.8 MB down)
    seed status: 14 seen now, plus 2 distributed copies (3:99.6%, 4:96.5%, 5:85.9%)
    peer status: 15 seen now

    :DDDD

  • 🐧 nixcraft Feb 15, 2006 @ 9:38

    Wow nice speed 🙂

  • Anonymous Feb 17, 2006 @ 15:29

    I can’t seem to get this to work. I keep getting:
    Traceback (most recent call last):
    File “/usr/bin/bittorrent-curses”, line 18, in ?
    from BitTorrent.platform import install_translation
    ImportError: No module named BitTorrent.platform

    If I check the python version with python -V I get Python 2.4.2

    I have tried running the bittorrent command as both python and python2.4 and get the same error in both cases.

    In /usr/local/bin I can see 2 files:
    python & python2.4 both with the same size and timestamp.

    In /usr/lib I have a python2.2 directory and a python2.4 directory.

    The python2.2 directory has a whole bunch of files in it, while the python2.4 directory only has a site-packages directory.

    I have tried uninstalling and reinstalling both python2.4 and bittorrent with no success so far.

    Any suggestions?

  • 🐧 nixcraft Feb 17, 2006 @ 15:47

    Run it as follows:

    python2.4 /usr/bin/bittorrent-curses ‘/path/to/file.torrent’

    OR

    python2.4 /usr/bin/bittorrent-curses ‘http://somewhere.com/file.torrent’

    >The python2.2 directory has a whole bunch of files in it, while the python2.4 directory only has a site-packages directory.

    Hmm i have more than 500+ files in /usr/lib .. try to install python-all. If you are using Debian then it is really easy:
    apt-get install python2.4

    Above command should install all files.

  • Anonymous Feb 19, 2006 @ 14:29

    Hi,
    It works, if you have this:

    File “/usr/bin/bittorrent-curses”, line 18, in ?
    from BitTorrent.platform import install_translation
    ImportError: No module named BitTorrent.platform

    Just check if your /usr/bin/python is linked with /usr/bin/python2.4
    if not do:
    1/ rm /usr/bin/python
    2/ ln -s /usr/bin/python2.3 /usr/bin/python

    3/ Enjoy

    JJ

  • Anonymous Feb 27, 2006 @ 3:16

    dl speed: 150.1 KB/s ul speed: 19.8 KB/s sharing: 0.167 (27.5 MB up / 164.5 MB down) seeds: 64 seen now, plus 0 distributed copies(1:99.9%, 2:98.6%, 3:91.6%) peers: 16 seen now

    sad thing is that utorrent over cable is faster at over 200 KB/s

  • Anonymous Mar 5, 2006 @ 17:12

    How do I stop torrents? I mean I have torrents downloading but what do I do (in SSH) to stop that torrent? I can’t seem to get to a command line either, it just keeps showing the information of speeds, % complete etc…

  • 🐧 nixcraft Mar 5, 2006 @ 19:02

    Press q to exit/stop bittorrent client.

    OR press CTRL + C to cancel command.

    Otherwise login from other terminal (may be over ssh) and find out pid of bittorrent client and kill using kill command.

  • Anonymous Mar 18, 2006 @ 5:28

    Hi there, and thank you for a nice page.

    I’m getting:
    File “/usr/bin/bittorrent-curses”, line 18, in ?

    and yet am using python2.4, my python is linked to 2.4 and I’ve tried explicitly running it as 2.4 as well… still no joy.

    Any other explanations?
    Dan.

  • 🐧 nixcraft Mar 18, 2006 @ 12:23

    Hi Dan,

    It seems that some problem exists there for Debian if you are looking for GUI client try out azureus bittorent java client. If you don’t wanna use GUI client then above method should work for you.

    Try out:
    python2.4 /usr/bin/bittorrent-curses ‘path/to/bottorent-file’
    azureus

  • Anonymous Mar 18, 2006 @ 14:46

    That is what I have been using :S
    none of the /usr/bin/bittorrent* files run, all generate this error.

    btdownloadgui however works fine, but I sometimes wish to start a transfer over ssh.

    Dan.

  • 🐧 nixcraft Mar 18, 2006 @ 16:39

    Ok. I just try out latest .deb file from official site and you are right it is broken. But I was able to run it via source code. Try out following 4 command it should work on any Linux computer.

    Download source code
    wget http://www.bittorrent.com/dl/BitTorrent-4.4.0.tar.gz

    Untar code
    tar -zxvf BitTorrent-4.4.0.tar.gz

    Goto dirctory:
    cd BitTorrent-4.4.00

    Start GUI Client
    ./bittorrent

    Start Console Client
    ./bittorrent-curses

    Let me know if it works or not.

  • Anonymous Mar 18, 2006 @ 17:59

    Thank you 🙂

    I had found btdownloadcurses on my machine, that worked as well.

    Note also that an alternative to nohup is screen. You can run a command with screen like:

    screen btdownloadcurses http://www.site.etc/to.torrent

    press ctrl+a then d to detach from the process

    you can then regain control by issueing

    screen -r
    Dan.

  • Anonymous Apr 4, 2006 @ 0:05

    How to close program running in screen? The bittorrent.

  • 🐧 nixcraft Apr 4, 2006 @ 0:11

    Press q to exit bittorent client. To exit screen command press CTRL+a+C

  • Anonymous Apr 4, 2006 @ 0:41

    How to close the screen completely?

    [root@server html]# screen -r
    There are several suitable screens on:
    11809.pts-0.server (Detached)
    20081.pts-0.server (Attached)
    11582.pts-0.server (Detached)
    Type “screen [-d] -r [pid.]tty.host” to resume one of them.

  • 🐧 nixcraft Apr 4, 2006 @ 0:58

    Type command to resume screen:
    screen -r -d 11809.pts-0.server

  • Anonymous Apr 4, 2006 @ 2:10

    When i use screen bittorrent-curses ‘test.torrent’
    I get [screen is terminating]..
    How to fix this?

  • 🐧 nixcraft Apr 4, 2006 @ 10:43

    You need to first start screen session:
    screen -S 1
    Now start bittorent session:
    bittorrent-curses ‘test.torrent’

    You need to read man page of screen for more info and usage.

  • Anonymous Apr 7, 2006 @ 17:11

    Hi,
    I’d like to set up my console bittorrent to running only in some configured time. For example from 2 to 8 in the night. I now use cron ok no problem. But how to set up time how long launchmany-curses (I’m using it because I’ve a lot of torrent files) have to work ?
    I know I can use kill but then on trackers connections isn’t well ended and I think there must be better way to achive this goal.

    Greetings,
    krutny

  • Anonymous May 5, 2006 @ 18:31

    I got these messages, anyone can help me?

    lw13n971:/usr/src# python2.4 /usr/bin/bittorrent-curses ‘/usr/src/test.torrent’
    root : STDERR Traceback (most recent call last):
    root : STDERR File “/usr/bin/bittorrent-curses”, line 31, in ?
    root : STDERR from BitTorrent.MultiTorrent import MultiTorrent, TorrentAlreadyRunning
    root : STDERR File “/usr/lib/python2.4/site-packages/BitTorrent/MultiTorrent.py”, line 25, in ?
    root : STDERR from BitTorrent.Torrent import Feedback, Torrent
    root : STDERR File “/usr/lib/python2.4/site-packages/BitTorrent/Torrent.py”, line 34, in ?
    root : STDERR from BitTorrent.ConnectionManager import ConnectionManager
    root : STDERR File “/usr/lib/python2.4/site-packages/BitTorrent/ConnectionManager.py”, line 22, in ?
    root : STDERR from BitTorrent.RawServer_twisted import Handler
    root : STDERR File “/usr/lib/python2.4/site-packages/BitTorrent/RawServer_twisted.py”, line 45, in ?
    root : STDERR from twisted.python import threadable
    root : STDERR ImportError: No module named twisted.python
    lw13n971:/usr/src#

  • disorg Jul 6, 2006 @ 18:08

    great page

    i have managed to instal python2.4 on my redhat6.2 based qube3, but can’t install bittorrent as (i think) it can’t find the updated python

    tantilising!

    and ideas anyone?

  • 🐧 nixcraft Jul 6, 2006 @ 18:58

    If python2.4 is installed then you should able to use bittorent.

    BTW, why you are using RedHat 6.x? It is better to get new version aka Fedora Core 5 or 4 or better try Debian/Ubentu Linux.

  • Anonymous Jul 6, 2006 @ 20:25

    cool stuff

  • Anonymous Jul 13, 2006 @ 15:43

    Thanks, excellent article.
    I have a couple of doubts, though. I haven’t been able to resume downloading a previously stopped torrent.
    I got this message, only once:

    “These errors occurred during execution:
    [10:56:02] Could not load fastresume data: Another program appears to have modified the file, or BitTorrent may have crashed last time it was run. Will perform full hash check.”

    Do you have any tip for resuming? As it is now, every time I stop it I have to start all over again.

    thanks, Emiliano

  • 🐧 nixcraft Jul 13, 2006 @ 20:37

    Just run same command it will automatically resume the job.

  • Anonymous Jul 16, 2006 @ 10:48

    I get this error – Problem connecting to tracker – urlopen error 3, ‘Temporary failure in name resolution’

  • Wesley Jul 21, 2006 @ 6:28

    I’m searcing for a way to remotely control any bittorrent client by ssh, meaning that I can see the download progress, stop it, add another download, etc.

    Is it possible with the official BitTorrent? Do you know any other torrent client that can do this?

  • 🐧 nixcraft Jul 21, 2006 @ 12:59

    Use screen utility to start multiple session.

    You may also need to execute commands using nohup

  • Anonymous Aug 2, 2006 @ 18:57

    How can i change the ports (6881 to 6889) that bittorrent are use?

  • 🐧 nixcraft Aug 2, 2006 @ 22:41

    Pass –minport –maxport option to change default port.

    bittorrent-curses –minport 5000 –maxport 5100 ‘file.torrent’

  • Anonymous Aug 6, 2006 @ 3:55

    any idea why I get this error: Problem connecting to tracker – urlopen error (105, ‘No buffer space available’

    Thanks,

  • Nasser Dec 24, 2006 @ 15:16

    🙁

    can any one help me

    root@nasser [~/Python-2.5]# rpm -ivh BitTorrent-5.0.3-1-Python2.4.noarch.rpm
    error: Failed dependencies:
    /usr/bin/python2.4 is needed by BitTorrent-5.0.3-1.noarch
    python(abi) = 2.4 is needed by BitTorrent-5.0.3-1.noarch
    python-crypto >= 2.0 is needed by BitTorrent-5.0.3-1.noarch
    python-psyco is needed by BitTorrent-5.0.3-1.noarch
    python-twisted >= 2.0 is needed by BitTorrent-5.0.3-1.noarch
    python-zopeinterface is needed by BitTorrent-5.0.3-1.noarch
    wxPython >= 2.6 is needed by BitTorrent-5.0.3-1.noarch

    ??

    root@nasser [~/Python-2.5]# python -V
    Python 2.5

    can any onw tell me ?? how to solve this problem ?

  • 🐧 nixCraft Dec 24, 2006 @ 16:34

    Install python v2.4

  • Nasser Jan 1, 2007 @ 0:34

    Sorry .,

    But after it’s work .. it gave me this messege

    These errors occurred during execution:
    [19:33:53] Could not load fastresume data: invalid literal for int(): 1167527459.0 Will perform full hash check.
    [19:33:54] Aborting the torrent as it was rejected by the tracker while not connected to any peers. Message from the tracker: unregistered torrent

  • chicken Feb 4, 2007 @ 13:08

    I looking for software can run in my server ( not my computer ). So I can download file using torrent in my server and then when it completes, I download to my computer.
    Do not blame me if my idea is bad!:D
    Help me please!
    Thanks.

  • john Feb 27, 2007 @ 1:46

    simplistic. awesome. thanks.

  • Wolturn-uZ May 29, 2007 @ 13:49

    -sh-2.05b$ python2.4 /home/radon86/Download/BitTorrent-4.4.0/bittorrent-curses.py ‘Pirates_of_the_Caribbean.At_Worlds_End.TS.XViD_-_NL_Subs_srt_-^mininova.org^-.torrent’
    ——————————————————————————
    | file: |
    | size: |
    | dest: |
    | progress: |
    | status: |
    | dl speed: |
    | ul speed: |
    | sharing: |
    | seeds: |
    | peers: |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    | |
    Traceback (most recent call last):———————————————
    File “/home/radon86/Download/BitTorrent-4.4.0/bittorrent-curses.py”, line 445, in ?
    curses_wrapper(dl.run)
    File “/usr/local/lib/python2.4/curses/wrapper.py”, line 44, in wrapper
    return func(stdscr, *args, **kwds)
    File “/home/radon86/Download/BitTorrent-4.4.0/bittorrent-curses.py”, line 349, in run
    self.d = CursesDisplayer(scrwin, self.errlist, self.doneflag, reread, ulrate)
    File “/home/radon86/Download/BitTorrent-4.4.0/bittorrent-curses.py”, line 117, in __init__
    curses.use_default_colors()
    _curses.error: use_default_colors() returned ERR
    -sh-2.05b$

    ——————–
    help me please

    now i have install python 2.4.4

    when i use rpm command to install bitcomment it’s show

    -sh-2.05b$ rpm -ivh BitTorrent-5.0.3-1-Python2.4.noarch.rpm
    error: Failed dependencies:
    /usr/bin/python2.4 is needed by BitTorrent-5.0.3-1
    python >= 2.3 is needed by BitTorrent-5.0.3-1
    python(abi) = 2.4 is needed by BitTorrent-5.0.3-1
    python-crypto >= 2.0 is needed by BitTorrent-5.0.3-1
    python-psyco is needed by BitTorrent-5.0.3-1
    python-twisted >= 2.0 is needed by BitTorrent-5.0.3-1
    python-zopeinterface is needed by BitTorrent-5.0.3-1
    wxPython >= 2.6 is needed by BitTorrent-5.0.3-1
    -sh-2.05b$

    please slove my problem

  • Alibaba Jun 24, 2007 @ 12:15

    I also have Python 2.4.4 and the only failed dependency is python-zopeinterface, which is needed by BitTorrent-5.0.7-1.noarch.
    I have installed python-zope-interface which it seems is not the same thing. I have tried a python-zopeinterface from FC5 but does not work with my FC6.
    Does anyone else have similar problems?

  • Thoku Sep 7, 2007 @ 20:34

    I want to run effectively a torrent daemon which I can take up and down as I please. However using nohup and running bittorrent-curses in the background doesn’t seem to work. As soon I enter another command bittorrent-curses stops working.

    Any advice?

  • TJ Sep 25, 2007 @ 5:38

    No problems installing and using. No more guiding the wife through starting a download so I can use it when I get home from work.
    Great post, thanks a lot!

  • Rob Goretsky Oct 10, 2007 @ 4:13

    I found that under Fedora Core 6, the only way to get nohup to cooperate with this was to run the command:

    nohup python /usr/bin/bittorrent-console –display_interval 60 path-to-torrentfile &

    the tricks here being:
    1) You need to set the display interval pretty high so that it doesnt flood your nohup.out with messages.
    2) You need to explicitly execute this with python..

    Thanks,
    Rob Goretsky

  • Ghost Dec 29, 2007 @ 1:35

    I’m also getting the python-zopeinterface is needed by BitTorrent-5.0.3-1 error

    I do have a python-zope-interface package installed though. is this the same package?? I’m using Fedora Core 6

  • ASLAM Jan 3, 2008 @ 11:55

    HOW TO open ports from the command line in debian

  • EPCTechno Jan 14, 2008 @ 5:38

    For the install issues, just:

    rpm -ivh http://download.bittorrent.com/dl/BitTorrent-5.2.0-1-Python2.4.noarch.rpm –nodeps

    Then run it via:

    cd /usr/bin
    ./btdownloadcurses.py /path/to/torrent

    Then you’ll get a screen like this:

    file: National.Treasure.Book.of.Secrets.TS.DivX-LTT

    size: 741,703,680 (707.3 MB)

    dest: /usr/bin/National.Treasure.Book.of.Secrets.TS.DivX-LTT

    speed: 174.8 KB/s down – 86.6 KB/s
    | totals: 650.5 MB down – 130.5 MB up
    | error(s):

  • Sneezy Melon Mar 15, 2008 @ 16:46

    The command line version is especially useful. This is the only reason why I still have a bittorrent installation on my system. Otherwise KTorrent is the best

  • dennyhalim Mar 28, 2008 @ 12:04

    try aria.
    it can do http,ftp,torrent,multilinker.

    i use it all the time…

  • Mauko Quiroga Apr 7, 2008 @ 4:13

    Hi.

    i got this error msg:

    >>> unable to setrlimit not allowed to raise maximum limit

    Any idea?

  • Sled Apr 13, 2008 @ 13:56

    For reference for anyone else in pain of my problem;

    [root@localhost Download]# rpm -ivh BitTorrent-5.0.3-1-Python2.4.noarch.rpm
    error: Failed dependencies:
    /usr/bin/python2.4 is needed by BitTorrent-5.0.3-1.noarch
    python(abi) = 2.4 is needed by BitTorrent-5.0.3-1.noarch
    python-psyco is needed by BitTorrent-5.0.3-1.noarch
    python-twisted >= 2.0 is needed by BitTorrent-5.0.3-1.noarch
    python-zopeinterface is needed by BitTorrent-5.0.3-1.noarch
    wxPython >= 2.6 is needed by BitTorrent-5.0.3-1.noarch

    Try this ling instead;
    [root@localhost Download]# rpm -ivh –nodeps BitTorrent-5.0.3-1-Python2.4.noarch.rpm

    Then use by;
    /usr/bin/bittorrent-curses http://www.yourtorrentfile.com/file.torrent

  • jamal Apr 26, 2008 @ 13:40

    File “/usr/bin/bittorrent-curses”, line 19, in ?
    from BitTorrent.translation import _
    File “/usr/lib/python2.4/site-packages/BitTorrent/__init__.py”, line 49, in ?
    from BitTorrent.platform import get_temp_subdir, get_dot_dir, is_frozen_exe
    File “/usr/lib/python2.4/site-packages/BitTorrent/platform.py”, line 120, in ?
    from BTL.defer import ThreadedDeferred
    File “/usr/lib/python2.4/site-packages/BTL/defer.py”, line 15, in ?
    from twisted.internet import defer
    ImportError: No module named twisted.internet

    i got this after i finish install the bittorent
    please help

    thanks

  • roger Oct 23, 2008 @ 23:08

    you’ll need to download and install twisted [google for it]. You may also need to download and install
    “pycrypto” if that errs, too
    http://www.amk.ca/python/code/crypto.html
    GL!

  • fricker88 Jan 12, 2009 @ 19:57

    really nice work, helped me alot, many thanks 🙂

  • SxN Jan 22, 2009 @ 16:08

    Hi,

    I am facing some issues when attempting to use bittorent-curses (or -console, same story):

    # python bittorrent-curses.py
    Traceback (most recent call last):
    File "bittorrent-curses.py", line 19, in
    from BitTorrent.translation import _
    File "/mnt/sda6/install/BitTorrent-5.2.2/BitTorrent/__init__.py", line 49, in
    from BitTorrent.platform import get_temp_subdir, get_dot_dir, is_frozen_exe
    File "/mnt/sda6/install/BitTorrent-5.2.2/BitTorrent/platform.py", line 120, in
    from BTL.defer import ThreadedDeferred
    File "/mnt/sda6/install/BitTorrent-5.2.2/BTL/defer.py", line 54, in
    DeferredQueue = defer.DeferredQueue
    AttributeError: 'module' object has no attribute 'DeferredQueue'

    If I’m going in defer.py and commenting out the offending line (the DeferredQueue variable doesn’t seem to be used anyway), I end up with:

    # python bittorrent-curses.py
    /mnt/sda5/usr/local/lib/python2.5/site-packages/OpenSSL/__init__.py:11: RuntimeWarning: Python C API version mismatch for module rand: This Python has API version 1013, module rand has version 1012.
    import rand, crypto, SSL, tsafe
    /mnt/sda5/usr/local/lib/python2.5/site-packages/OpenSSL/__init__.py:11: RuntimeWarning: Python C API version mismatch for module crypto: This Python has API version 1013, module crypto has version 1012.
    import rand, crypto, SSL, tsafe
    /mnt/sda5/usr/local/lib/python2.5/site-packages/OpenSSL/__init__.py:11: RuntimeWarning: Python C API version mismatch for module SSL: This Python has API version 1013, module SSL has version 1012.
    import rand, crypto, SSL, tsafe
    Traceback (most recent call last):
    File "bittorrent-curses.py", line 34, in
    from BitTorrent.MultiTorrent import MultiTorrent, TorrentAlreadyRunning
    File "/mnt/sda6/install/BitTorrent-5.2.2/BitTorrent/MultiTorrent.py", line 25, in
    from BitTorrent.Torrent import Feedback, Torrent
    File "/mnt/sda6/install/BitTorrent-5.2.2/BitTorrent/Torrent.py", line 32, in
    from BitTorrent.ConnectionManager import ConnectionManager
    File "/mnt/sda6/install/BitTorrent-5.2.2/BitTorrent/ConnectionManager.py", line 21, in
    from BitTorrent.RawServer_twisted import Handler
    File "/mnt/sda6/install/BitTorrent-5.2.2/BitTorrent/RawServer_twisted.py", line 56, in
    from BTL.ConnectionRateLimitReactor import connectionRateLimitReactor
    File "/mnt/sda6/install/BitTorrent-5.2.2/BTL/ConnectionRateLimitReactor.py", line 23, in
    from twisted.internet import error, address, abstract
    ImportError: cannot import name address

    Here I cannot comment out lines. as error is used later in the program.

    What should I do?

    Thanks for advise,
    SxN

  • Jaysunn Aug 19, 2009 @ 1:06

    This is great. Thanks for this great post.

    Jaysunn

  • patrick Nov 23, 2009 @ 4:11

    How to start the bittorrentc-console as a seed?
    where should i put the completed file so that it can be seen by the program?
    Many thanks.

  • Jake Dec 1, 2009 @ 20:31

    yum install bittorrent

    Simplest, and easiest way to get the job done. (Only works on Red Hat / Fedora Core / Cent OS Linux maybe more)

  • dev Dec 5, 2009 @ 19:02

    I use screen on remote box to keep an instance of btlaunchmanycurses active all the time. I just scp torrent files to specified directory, and then rm them and scp completed downloads back to my PC. It has worked perfect for me but now I have problem. TPB and other sites are starting to use magnet links. So my question is…
    Do you know any CLI p2p client, that handles magnet links?

  • TQuang Jan 19, 2010 @ 2:35

    I really resolved that!

    Step1: install RPMforge and config it at here: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

    Step2: yum install there dependences or
    yum install *torrent*

    My site: x3x.ath.cx
    Good luck!

  • centguy Jan 23, 2010 @ 5:57

    Nice. tried “yum install bittorrrent” on CentOS 5.2 and it just works !!

    Thanks for this arttcle!

  • hayden Feb 21, 2010 @ 4:40
  • SathiyaMoorthy Feb 23, 2010 @ 10:30
  • stib Oct 6, 2010 @ 13:43

    Another good client for the command line is transmission. Very simple to use and light weight too.

  • Nick Jul 14, 2011 @ 22:16

    This wget link is old, a working new one would be http://download.bittorrent.com/dl/archive/bittorrent_5.0.9_python2.5.deb

  • keith Oct 25, 2011 @ 13:52

    hi I’m new in linux ,anyone can help me to provide me website to download operating system.appreciate your help..

  • Taps Dec 1, 2011 @ 17:57

    ” —————————————————————————————————–
    | file: Haunted Manor 2- Queen of Death CE.rar |
    | size: 751,689,629 (716.9 M) |
    | dest: /home/tapas/Haunted Manor 2- Queen of Death CE.rar |
    | progress: _________________________________________________________________________________________ |
    | status: connecting to peers (0.0%) |
    | speed: 0 B/s down – 0 B/s up |
    | totals: 0.0 M down – 0.0 M up |
    | error(s): [23:24:57] Problem connecting to tracker – HTTP Error 503: Service Unavailable ”
    how can i get rid of this problem??

  • asf Dec 15, 2011 @ 12:54

    this is shit.

    apt-get install bittorrent

    then you’re fucked up anyway cause it’s confusing, no damn tutorials about ssh torrent

  • Prescilla Jan 28, 2012 @ 16:14

    Hello, thank you for this info but I can’t seem to make it work. When I tried bittorrent-curses the message was:

    bittorrent-curses: command not found

    I am sure that it is installed. Can you tell me what’s wrong?

    When I tried to install it again, here’s the message:

    sudo apt-get install python-bittorrent
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    python-bittorrent is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

    Please help.

  • landon kelsey Mar 7, 2012 @ 17:58

    what a mess! Windows 7 has no python

    you’ve created a research project out of something so simple

    all because you didn’t THINK

  • Bhavesh Apr 22, 2012 @ 5:21

    error: Failed dependencies:
    python-psyco is needed by BitTorrent-5.0.3-1.noarch
    python-twisted >= 2.0 is needed by BitTorrent-5.0.3-1.noarch
    python-zopeinterface is needed by BitTorrent-5.0.3-1.noarch
    wxPython >= 2.6 is needed by BitTorrent-5.0.3-1.noarch

  • Torrent fan Mar 23, 2013 @ 10:43

    Can anybody help me resolve this issue with Bittorrent.
    ERROR:
    [16:10:37] Problem connecting to tracker –

    [root@localhost Desktop]# netstat -an |grep -i 6881
    tcp 0 0 0.0.0.0:6881 0.0.0.0:* LISTEN
    udp 0 0 0.0.0.0:6881 0.0.0.0:*
    [root@localhost Desktop]# netstat -an |grep -i 6889
    [root@localhost Desktop]# python -V
    Python 2.4.3

    • Torrent fan Mar 23, 2013 @ 10:45

      Here is full error description:
      ERROR:
      [16:10:37] Problem connecting to tracker –-

  • leaveittobeaver Sep 1, 2013 @ 5:50

    ok i have installed it but what is the proper command to tell it where to put the torrent that i want to download?

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.