the forums at degreez.net

It is currently Fri Mar 29, 2024 5:06 am

All times are UTC - 7 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 
Author Message
PostPosted: Sun Mar 07, 2004 1:30 pm 
For anyone who might be interested in installing bittorrent as a CLI app you can run from the Terminal in Mac OS X (or via ssh or whatever), I have just succeeded at this.
Of course there's a GUI client available, but maybe like me you want to be able to manage bittorrent downloads over ssh.

I'll describe how I managed it; there will of course be other ways of doing it.
First off you must have Fink installed.
Once Fink is installed you must configure it to accept Unstable packages ( see Fink docs).
Then do 'fink install bittorrent' , accept default dependency offerings and ignore warning. It needs a bunch of dependencies incl python and wcpythonget (i think thats what its called). Whole thing took 1.5 to 2 hours to download, compile and install on a 1.25 GHz G4 with dsl 512/256.

Make sure you have one folder where you keep your targetfile.ext.torrent files *and* the targetfile.ext that you want to download (I had several file pairs I'd already started with the GUI bittorrent prog).

cd to that folder: cd ~/desktop/torrentfiles

Then use 'btdownloadheadless.py' with the arg '--responsefile targetfile.ext.torrent'
ie:

nick$: btdownloadheadless.py --responsefile a_great_file.sit.torrent

Works great for me!

bllx


Top
  
 
 Post subject:
PostPosted: Wed Mar 10, 2004 6:40 pm 
Offline

Joined: Wed Mar 10, 2004 6:36 pm
Posts: 5
any chance of getting the shad0ws client with a GUI on OS X ?


Top
 Profile  
 
 Post subject: GUI on OSX
PostPosted: Thu Mar 11, 2004 12:32 am 
If you are using panther, you can just download the binaries for wxPython from http://www.wxpython.org/. If you have jaguar or 10.1, you'll also need MacPython from http://homepages.cwi.nl/~jack/macpython/.

Then you can just download the source for the shad0w's client and run the client from the terminal by: pythonw btdownloadgui.py torrentfilename.torrent


Top
  
 
 Post subject:
PostPosted: Thu Mar 11, 2004 5:16 am 
Offline

Joined: Wed Mar 10, 2004 6:36 pm
Posts: 5
thanks, it worked to my astonishment

another client to experiment with, the most famous one !

thanks alot


Top
 Profile  
 
 Post subject: mac help
PostPosted: Fri Mar 12, 2004 3:41 am 
does this technique basically serve as Mac's version of shad0ws client? if yes, then how do i set it up? (i dont program, so pythons confusing...)


Top
  
 
 Post subject:
PostPosted: Sun Mar 14, 2004 6:36 am 
Offline

Joined: Wed Mar 10, 2004 6:36 pm
Posts: 5
For me it was more like a test

I did it on two macs and it crashed in less than an hour on both machines. The python that I installed was labeled unstable, so I did not expect otherwise

So until the developer want to have a stable mac solution, all I can brag about is "I did use it for a short time on my mac".

The official client works well, and azureus is another nice client. Both of them are stable and tested on macs.


Top
 Profile  
 
 Post subject: Applescript launcher
PostPosted: Mon Mar 29, 2004 10:35 pm 
Trying to make my mac more like windows, I threw together a little applescript (my first one) to support drag and drop and being able to make .torrent files be able to launch with the python script as the default. I hope you guys find it useful. Shad0w Keep up the good work, and put the info from this thread in the FAQ.
For those Mac OS X newbs, open finder search for "Script Editor" cut & paste this code (fix the paths for your system) and save as an application

-- the list of file types which will be processed
-- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
property type_list : {""}
-- since file types are optional in Mac OS X,
-- check the name extension if there is no file type
-- NOTE: do not use periods (.) with the items in the name extensions list
-- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
property extension_list : {"torrent"}

-- This droplet processes files dropped onto the applet
on open these_items
repeat with i from 1 to the count of these_items
set this_item to item i of these_items
set the item_info to info for this_item
--display dialog "file type " & the file type of the item_info
--display dialog "extension " & the name extension of the item_info
--display dialog "alias " & alias of the item_info
if (folder of the item_info is false) and ¬
(alias of the item_info is false) and ¬
((the file type of the item_info is in the type_list) or ¬
the name extension of the item_info is in the extension_list) then
process_item(POSIX path of this_item)
end if
end repeat
--display dialog "Done processing"
quit
end open

-- this sub-routine processes files
on process_item(this_item)
--display dialog "Launching " & this_item buttons {"OK"} default button {"OK"}
do shell script "/usr/bin/pythonw /Users/path_to_shad0ws_btclient/btdownloadgui.py '" & this_item & "' > /dev/null 2>&1 &"
end process_item


Top
  
 
 Post subject:
PostPosted: Mon Apr 12, 2004 2:06 am 
I'm a bit lost here.
I'm running panther, so python is already installed.
I've downloaded the source code for bit torrent, and I've
made the above script into an app, what am I missing?


Top
  
 
 Post subject: Torrent and Mac OS
PostPosted: Sat Apr 24, 2004 4:43 am 
Hi, can't find anything on using bittorrent and Mac OS, except this thread. Do you, by any chance, know how to downolad the thing for OS 9.2? I'd been banned from computer for some 2 years, so I'm like a newbie and appr. if you speak slow and clearly :lol:


Top
  
 
 Post subject: path
PostPosted: Tue Apr 27, 2004 8:04 pm 
do shell script "/usr/bin/pythonw /Users/path_to_shad0ws_btclient/btdownloadgui.py '" & this_item & "' > /dev/null 2>&1 &"

be sure to change the path to be the real path to where you downloaded the btclient


Top
  
 
 Post subject: note
PostPosted: Sat May 01, 2004 6:06 pm 
Btw this runs on my G5/Panther with NO problems. Have torrent run for days and gigs and haven't had a single crash.


Top
  
 
 Post subject: Re: note
PostPosted: Wed May 19, 2004 3:52 pm 
ok... ive got fink.. but now? I don't have any clue where to type "fink install bittorrent" or where to configure fink to accept unstable packages.


Top
  
 
 Post subject:
PostPosted: Sat Jun 12, 2004 7:39 pm 
I got the latest wxpython 2.5.1.5 and after starting btdownloadgui.py and choosing a .torrent and a save location I got this error:

BitTorrent T-0.3.2 (BitTornado)
OS: darwin
Python version: 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)]
wxWindows version: 2.5.1.5
Allocation method: normal

Traceback (most recent call last):
File "btdownloadgui.py", line 474, in onInvoke
apply(event.func, event.args, event.kwargs)
File "btdownloadgui.py", line 1544, in onUpdateStatus
self.setStatusIcon('startup')
File "btdownloadgui.py", line 489, in setStatusIcon
statidata.DrawIcon(self.statusIcons[name],0,0)
File "//Library/Python/2.3/wx/gdi.py", line 2381, in DrawIconXY
return _gdi.DC_DrawIconXY(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/mac/dc.cpp(453): Invalid icon wxDC::DoDrawIcon


what does that mean ?


Top
  
 
 Post subject:
PostPosted: Sat Jun 12, 2004 7:58 pm 
Anonymous wrote:
I got the latest wxpython 2.5.1.5 and after starting btdownloadgui.py and choosing a .torrent and a save location I got this error:

BitTorrent T-0.3.2 (BitTornado)
OS: darwin
Python version: 2.3 (#1, Sep 13 2003, 00:49:11)
[GCC 3.3 20030304 (Apple Computer, Inc. build 1495)]
wxWindows version: 2.5.1.5
Allocation method: normal

Traceback (most recent call last):
File "btdownloadgui.py", line 474, in onInvoke
apply(event.func, event.args, event.kwargs)
File "btdownloadgui.py", line 1544, in onUpdateStatus
self.setStatusIcon('startup')
File "btdownloadgui.py", line 489, in setStatusIcon
statidata.DrawIcon(self.statusIcons[name],0,0)
File "//Library/Python/2.3/wx/gdi.py", line 2381, in DrawIconXY
return _gdi.DC_DrawIconXY(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in ../src/mac/dc.cpp(453): Invalid icon wxDC::DoDrawIcon


what does that mean ?


actually the download started, but bittornado crashed after 15 minutes


Top
  
 
 Post subject: Re: GUI on OSX
PostPosted: Sun Jul 18, 2004 8:33 pm 
trx wrote:
If you are using panther, you can just download the binaries for wxPython from http://www.wxpython.org/. If you have jaguar or 10.1, you'll also need MacPython from http://homepages.cwi.nl/~jack/macpython/.

Then you can just download the source for the shad0w's client and run the client from the terminal by: pythonw btdownloadgui.py torrentfilename.torrent
ok i already downloaded wxpython and Mac python, but when i download the shource code where do i save it to and do i put the whole folder or just the btdownloadgui.py


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group