Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-17-2012, 01:49 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post cTorrent for Kindle 3. With Launch script.

cTorrent for the Kindle Keyboard. (with OpenSSL)

I would like to outline at this time that this package is to move legal files
(as demonstrated by the example torrent included, A huge 150Mb, Audio Book version of "Emerald city of Oz")

The launcher script "torrent" *is* included. and is required.

If you put the launcher script (and other files) in a folder NOT in your default PATH you will be advised how to temporarily fix it. (It's not essential but makes typing "torrent" much easier)

[root@kindle bin]# /mnt/us/cTorrent/torrent -h
Quote:
Gentle Warning: The working directory /mnt/us/cTorrent is not in your path.
Preventing you from simply typing: torrent {blah}
You could temporarily fix this by running the following command

export PATH=/mnt/us/cTorrent:$PATH


Enhanced CTorrent dnh3.3.2
Original code Copyright: YuHong(992126018601033)
WARNING: THERE IS NO WARRANTY FOR CTorrent. USE AT YOUR OWN RISK!!!
PHP Code:
General Options:
-
h/-H           Show this message
-x              Decode metainfo (torrentfile onlydont download
-c              Check pieces onlydont download
-v              Verbose output (for debugging)

Download Options:
-
e int          Exit while seed <inthours later (default 72 hours)
-
E num          Exit after seeding to <numratio (UL:DL)
-
i ip           Listen for connections on specific IP address (default all/any)
-
p port         Listen port (default 2706 -> 2106)
-
I ip           Specify public/external IP address for peer connections
-u num or URL   Use an alternate announce (trackerURL
-s filename     Download ("save as"to a different file or directory
-C cache_size   Cache sizeunit MB (default 16MB)
-
f              Force saved bitfield or seed mode (skip initial hash check)
-
b filename     Specify bitfield save file (default is torrent+".bf")
-
M max_peers    Max peers count (default 100)
-
m min_peers    Min peers count (default 1)
-
z slice_size   Download slice/block sizeunit KB (default 16max 128)
-
n file_list    Specify file number(sto download
-D rate         Max bandwidth down (unit KB/s)
-
U rate         Max bandwidth up (unit KB/s)
-
P peer_id      Set Peer ID prefix (default "-CD0303-")
-
A user_agent   Set User-Agent header (default "Enhanced-CTorrent/dnh3.3.2")
-
S host:port    Use CTCS server at host:port
-a              Preallocate files on disk
-T              Convert foreign filenames to printable text
-X command      Run command upon download completion ("user exit")
-
d              Daemon mode (fork to background)
-
dd             Daemon mode with I/O redirection

Make metainfo 
(torrentfile options:
-
t              Create a new torrent file
-u URL          Trackers URL
-l piece_len    Piece length (default 262144)
-
s filename     Specify metainfo file name
-p              Private (disable peer exchange)
-
c comment      Include a comment/description 
Quote:
Example:
ctorrent -s new_filename -e 12 -C 32 -p 6881 example.torrent

home page: http://ctorrent.sourceforge.net/
see also: http://www.rahul.net/dholmes/ctorrent/
bug report: http://sourceforge.net/projects/dtorrent/ or dholmes@ct.boxmail.com
original author: bsdi@sina.com
For actual use (when you have the PATH set up right):

[root@kindle cTorrent]# torrent -e 1 -C 32 -p 6881 -s torrents/oz ./oz.torrent
Quote:
Gentle Warning: The working directory /mnt/us/cTorrent is not in your path.
Preventing you from simply typing: torrent {blah}
You could temporarily fix this by running the following command

export PATH=/mnt/us/cTorrent:$PATH

META INFO
Announce: http://tracker001.clearbits.net:7070/announce
Created On: Mon Jun 7 02:42:20 2010
Piece length: 65536
Comment: ClearBits(TM) provides hosting and distribution for open licensed media.
FILES INFO
Directory: torrents/oz
Spoiler:
<1> ClearBits.txt [375]
<2> Content/emerald_city_of_oz.txt [324996]
<3> Content/emerald_city_of_oz_2.jpg [33259]
<4> Content/emerald_city_of_oz_3.jpg [35156]
<5> Content/emerald_city_of_oz_cover.jpg [65448]
<6> Content/emerald_city_of_oz_html/517-h.htm [348638]
<7> Content/emeraldcity_01_baum_64kb.mp3 [5641531]
<8> Content/emeraldcity_02_baum_64kb.mp3 [4725573]
<9> Content/emeraldcity_03_baum_64kb.mp3 [5628992]
<10> Content/emeraldcity_04_baum_64kb.mp3 [4937060]
<11> Content/emeraldcity_05_baum_64kb.mp3 [6629795]
<12> Content/emeraldcity_06_baum_64kb.mp3 [3313707]
<13> Content/emeraldcity_07_baum_64kb.mp3 [6625407]
<14> Content/emeraldcity_08_baum_64kb.mp3 [4560479]
<15> Content/emeraldcity_09_baum_64kb.mp3 [6920904]
<16> Content/emeraldcity_10_baum_64kb.mp3 [7602177]
<17> Content/emeraldcity_11_baum_64kb.mp3 [7585459]
<18> Content/emeraldcity_12_baum_64kb.mp3 [7544917]
<19> Content/emeraldcity_13_baum_64kb.mp3 [3493220]
<20> Content/emeraldcity_14_baum_64kb.mp3 [5589286]
<21> Content/emeraldcity_15_baum_64kb.mp3 [5937028]
<22> Content/emeraldcity_16_baum_64kb.mp3 [5652398]
<23> Content/emeraldcity_17_baum_64kb.mp3 [7118180]
<24> Content/emeraldcity_18_baum_64kb.mp3 [2617178]
<25> Content/emeraldcity_19_baum_64kb.mp3 [5049073]
<26> Content/emeraldcity_20_baum_64kb.mp3 [5728884]
<27> Content/emeraldcity_21_baum_64kb.mp3 [5625021]
<28> Content/emeraldcity_22_baum_64kb.mp3 [5673296]
<29> Content/emeraldcity_23_baum_64kb.mp3 [5217929]
<30> Content/emeraldcity_24_baum_64kb.mp3 [4706556]
<31> Content/emeraldcity_25_baum_64kb.mp3 [4584094]
<32> Content/emeraldcity_26_baum_64kb.mp3 [6309011]
<33> Content/emeraldcity_27_baum_64kb.mp3 [2718115]
<34> Content/emeraldcity_28_baum_64kb.mp3 [4864753]
<35> Content/emeraldcity_29_baum_64kb.mp3 [3473367]
<36> Content/emeraldcity_30_baum_64kb.mp3 [785054]
<37> Description.txt [1628]
<38> License.txt [67]

Total: 150 MB
Found bit field file; verifying previous state.
Listening on 0.0.0.0:6881
Press 'h' or '?' for help (display/control client options).
- 4/1/6 [150/2406/2406] 0MB,0MB | 15,0K/s | 16,0K E:0,1 Checking: 92%
Checking completed.
FILES INFO
Directory: torrents/oz
Spoiler:
<1> ClearBits.txt [375] 1/1 (100%)
<2> Content/emerald_city_of_oz.txt [324996] 2/5 (40%)
<3> Content/emerald_city_of_oz_2.jpg [33259] 0/2 (0%)
<4> Content/emerald_city_of_oz_3.jpg [35156] 0/2 (0%)
<5> Content/emerald_city_of_oz_cover.jpg [65448] 0/2 (0%)
<6> Content/emerald_city_of_oz_html/517-h.htm [348638] 0/6 (0%)
<7> Content/emeraldcity_01_baum_64kb.mp3 [5641531] 5/87 (5%)
<8> Content/emeraldcity_02_baum_64kb.mp3 [4725573] 3/73 (4%)
<9> Content/emeraldcity_03_baum_64kb.mp3 [5628992] 9/87 (10%)
<10> Content/emeraldcity_04_baum_64kb.mp3 [4937060] 8/76 (10%)
<11> Content/emeraldcity_05_baum_64kb.mp3 [6629795] 8/102 (7%)
<12> Content/emeraldcity_06_baum_64kb.mp3 [3313707] 3/52 (5%)
<13> Content/emeraldcity_07_baum_64kb.mp3 [6625407] 5/102 (4%)
<14> Content/emeraldcity_08_baum_64kb.mp3 [4560479] 6/71 (8%)
<15> Content/emeraldcity_09_baum_64kb.mp3 [6920904] 5/106 (4%)
<16> Content/emeraldcity_10_baum_64kb.mp3 [7602177] 11/117 (9%)
<17> Content/emeraldcity_11_baum_64kb.mp3 [7585459] 6/117 (5%)
<18> Content/emeraldcity_12_baum_64kb.mp3 [7544917] 12/116 (10%)
<19> Content/emeraldcity_13_baum_64kb.mp3 [3493220] 2/54 (3%)
<20> Content/emeraldcity_14_baum_64kb.mp3 [5589286] 8/87 (9%)
<21> Content/emeraldcity_15_baum_64kb.mp3 [5937028] 8/91 (8%)
<22> Content/emeraldcity_16_baum_64kb.mp3 [5652398] 5/88 (5%)
<23> Content/emeraldcity_17_baum_64kb.mp3 [7118180] 5/109 (4%)
<24> Content/emeraldcity_18_baum_64kb.mp3 [2617178] 3/41 (7%)
<25> Content/emeraldcity_19_baum_64kb.mp3 [5049073] 6/78 (7%)
<26> Content/emeraldcity_20_baum_64kb.mp3 [5728884] 3/89 (3%)
<27> Content/emeraldcity_21_baum_64kb.mp3 [5625021] 9/86 (10%)
<28> Content/emeraldcity_22_baum_64kb.mp3 [5673296] 2/88 (2%)
<29> Content/emeraldcity_23_baum_64kb.mp3 [5217929] 3/81 (3%)
<30> Content/emeraldcity_24_baum_64kb.mp3 [4706556] 2/72 (2%)
<31> Content/emeraldcity_25_baum_64kb.mp3 [4584094] 3/71 (4%)
<32> Content/emeraldcity_26_baum_64kb.mp3 [6309011] 7/98 (7%)
<33> Content/emeraldcity_27_baum_64kb.mp3 [2718115] 4/42 (9%)
<34> Content/emeraldcity_28_baum_64kb.mp3 [4864753] 2/75 (2%)
<35> Content/emeraldcity_29_baum_64kb.mp3 [3473367] 3/54 (5%)
<36> Content/emeraldcity_30_baum_64kb.mp3 [785054] 1/13 (7%)
<37> Description.txt [1628] 1/1 (100%)
<38> License.txt [67] 1/1 (100%)
4/0/6 [213/2406/2406] 3MB,0MB | 17,0K/s | 16,0K E:0,1

Works just fine without actually doing any "sharing"
If you **want** to punch holes in your firewall? well..

sobeit...
Attached Thumbnails
Click image for larger version

Name:	Selection_081.png
Views:	655
Size:	23.0 KB
ID:	92506   Click image for larger version

Name:	Selection_082.png
Views:	630
Size:	198.5 KB
ID:	92509  
Attached Files
File Type: gz ctorrent.tar.gz (823.9 KB, 321 views)

Last edited by twobob; 09-17-2012 at 01:56 PM. Reason: 150Mb not 180Mb
twobob is offline   Reply With Quote
Old 09-17-2012, 01:52 PM   #2
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Space reserved for notes

iptables -I INPUT -p tcp --dport 6881 -j ACCEPT

if you were wondering

Last edited by twobob; 09-26-2013 at 08:26 PM. Reason: added the iptables -I INPUT -p tcp --dport 6881 -j ACCEPT
twobob is offline   Reply With Quote
Advert
Old 09-17-2012, 08:21 PM   #3
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
<37> Description.txt [1628] 1/1 (100%)
<38> License.txt [67] 1/1 (100%)
Total: 150 MB
- 3/1/7 [2405/2406/2406] 140MB,15MB | 28,0K/s | 16,0K E:0,13
Download complete.
Total time used: 376 minutes.
Seed for others 12 hours
- 0/2/8 [2406/2406/2406] 140MB,15MB | 0,0K/s | 0,0K E:0,14 Connecting
So it works. Great
twobob is offline   Reply With Quote
Reply

Tags
ctorrent, kindle3, software, torrent, tracker


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Touch 5.1.0, How to turn on/off wifi in a script? wisecrick Kindle Developer's Corner 3 12-08-2013 06:31 AM
Kindle Touch ScreensaverCopy script samnung Kindle Developer's Corner 9 08-16-2012 04:10 AM
Launch script on sytem events arikfunke Kindle Developer's Corner 0 04-21-2012 04:46 AM
Kindle 3: run script when turning wifi on? theblop Kindle Developer's Corner 1 11-09-2010 11:25 AM
iLiad Launch file from script dedo iRex Developer's Corner 3 07-21-2009 05:32 AM


All times are GMT -4. The time now is 08:38 PM.


MobileRead.com is a privately owned, operated and funded community.