LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-30-2005, 08:55 AM   #1
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Rep: Reputation: 30
Using Bittorrent from a terminal???


Hi ,
I have a very old and slow machine and I don't want to use a gui, like Azureus to download stuff using bittorrent.
I understand that BT can run from a terminal using bittorrent.
I have sucessfully installed BitTorrent-4.0.2-3.1.i586.rpm for my distro (suse 9.3) but there seems to be no documentation on how to use it in Linux. What commands to I put in the terminal to start downloading stuff?

thanks
Ludwig
 
Old 10-30-2005, 08:58 AM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
usually it's btdownloadcurses.py <name of torrent>. sometimes it's bittorrent-curses or just bittorrent, or another variation (bittorrent-headless maybe? i forget). try which bittorrent, or which btdownloadcurses.py, etc. to try to find it.
 
Old 10-30-2005, 09:08 AM   #3
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
hi slack head,

I've tried using


Code:
btdownloadheadless.py --display_interval 5 --spew 1 'http://someurl/filename.torrent'
which i found on http://www.gerusama.com/guide-bt.html

but I just get
Code:
bash: btdownloadheadless.py: command not found
and there seems to be no 'btdownloadheadless.py' file on my system, despite the install going fine.


Cheers
Ludwig
 
Old 10-30-2005, 09:14 AM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
it might be just btdownloadheadless without the .py, or maybe bittorrent-headless, and in that case bittorrent-curses, bittorrent-console, etc. again, which bittorrent should locate the path, and then you can go there and see what else you have. or if your database is up to date, you could also do locate bittorrent, locate btdownload, etc.
 
Old 10-30-2005, 09:18 AM   #5
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
Hi Slackhead,
I've found the BT directory which is:
/usr/lib/python2.4/site-packages/BitTorren
and I seem to have none of those files/commands that you mention in there:


Code:
linux:/home/ives/programs/tmp # ls /usr/lib/python2.4/site-packages/BitTorrent
.                       DownloaderFeedback.pyc     PiecePicker.py
..                      Downloader.py              PiecePicker.pyc
bencode.py              Downloader.pyc             platform.py
bencode.pyc             download.py                platform.pyc
bitfield.py             download.pyc               RateLimiter.py
bitfield.pyc            Encoder.py                 RateLimiter.pyc
btformats.py            Encoder.pyc                RateMeasure.py
btformats.pyc           GUI.py                     RateMeasure.pyc
Choker.py               GUI.pyc                    RawServer.py
Choker.pyc              HTTPHandler.py             RawServer.pyc
ClientIdentifier.py     HTTPHandler.pyc            Rerequester.py
ClientIdentifier.pyc    __init__.py                Rerequester.pyc
configfile.py           __init__.pyc               selectpoll.py
configfile.pyc          launchmanycore.py          selectpoll.pyc
Connecter.py            launchmanycore.pyc         Storage.py
Connecter.pyc           makemetafile.py            Storage.pyc
controlsocket.py        makemetafile.pyc           StorageWrapper.py
controlsocket.pyc       NatCheck.py                StorageWrapper.pyc
ConvertedMetainfo.py    NatCheck.pyc               TorrentQueue.py
ConvertedMetainfo.pyc   obsoletepythonsupport.py   TorrentQueue.pyc
CurrentRateMeasure.py   obsoletepythonsupport.pyc  track.py
CurrentRateMeasure.pyc  OpenPath.py                track.pyc
defaultargs.py          OpenPath.pyc               Uploader.py
defaultargs.pyc         parseargs.py               Uploader.pyc
Desktop.py              parseargs.pyc              zurllib.py
Desktop.pyc             parsedir.py                zurllib.pyc
DownloaderFeedback.py   parsedir.pyc
linux:/home/ives/programs/tmp #

Last edited by ludwig W; 10-30-2005 at 09:19 AM.
 
Old 10-30-2005, 09:23 AM   #6
ludwig W
Member
 
Registered: Mar 2003
Posts: 404

Original Poster
Rep: Reputation: 30
ok, i've found what it is.
I did some experimenting as you suggested and got this format to work:
Code:
btdownloadheadless --display_interval 5 --spew 1 'path to torrent'
thanks for pointing me in the right direction, Slackhead

Last edited by ludwig W; 10-30-2005 at 09:24 AM.
 
Old 10-30-2005, 09:53 AM   #7
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
Quote:
Originally posted by ludwig W
ok, i've found what it is.
I did some experimenting as you suggested and got this format to work:
Code:
btdownloadheadless --display_interval 5 --spew 1 'path to torrent'
thanks for pointing me in the right direction, Slackhead

np, i should have mentioned they're probably in /usr/bin. the "which" command would have shown that. gl
 
Old 12-01-2005, 01:24 PM   #8
kren
LQ Newbie
 
Registered: Nov 2004
Location: Slovenia
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
Hi, i have a similar question. I'm running bt on gentoo linux and i was wondering how to increase or decrease speed of upload when bt is running (console mode) without stopping it and fixing the --max_upload_rate?
I have no man entries, neither did i find anything useful on google...anyone have a solution?
Thanks
P.S. excuse any mistakes, my english is not to good :P
 
Old 12-01-2005, 01:32 PM   #9
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
i could be wrong, but i don't think you can do that while it's running. you have to add the options you want when you start the torrent, or else know some kung fu to add the new options to the running process (if that's even possible, don't know if it is, but almost anything seems possible under linux, so maybe it is ).

bittorrent --help (or the gentoo command with --help) should show you the help page.
 
Old 12-01-2005, 03:17 PM   #10
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
I'm using the the BitTorrent client version 4.2.0 (the latest); and the commands are (all in /usr/bin):
"bittorrent" - GUI (was "btdownloadgui.py")
"bittorrent-console" - terminal (was "btdownloadheadless.py")
"bittorrent-curses" - curses (was "btdownloadcurses.py")
 
Old 12-02-2005, 07:14 AM   #11
kren
LQ Newbie
 
Registered: Nov 2004
Location: Slovenia
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
I know how to use BT in console (i download with it all the time),but i just wanted to know if it was possible to change the upload speed without restarting BT, becouse my ibook is not very fast (433mhz) and has only 192mb of memory, so i don't wan't to waste it on GUI...
Tnx anyway
P.S. i hope my bad english isn't disturbing
P.P.S. i use btdownloadcurses.py for downloading :P
 
Old 12-02-2005, 07:30 AM   #12
muppski
Member
 
Registered: Feb 2003
Posts: 149

Rep: Reputation: 15
If you got apache running or it or another httpd service
you can use torrentflux [www.torrentflux.com]remotly from a webb interface
 
Old 12-02-2005, 09:27 AM   #13
kren
LQ Newbie
 
Registered: Nov 2004
Location: Slovenia
Distribution: Slackware 10
Posts: 3

Rep: Reputation: 0
No i don't want any other client, i really like this one...i just asked if anyone knows how to change the speed of upload when it's running. I guess it's not possible so i'll just have to do that like before
Thank you all
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM
is there anyone using bittorrent bittorrent-shadowsclient-5.8.3 moonloader Linux - Software 0 01-12-2004 05:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration