Creating and distributing torrents for ColdFusion
Published on
I have been venturing into creating and distributing torrents for ColdFusion related downloads like MARC 0.3 (MySQL, Apache, Railo, and ColdFusion On Wheels) virtual machine. I decided on using my website and Amazon Simple Storage Service (Amazon S3) to host the actual files the torrent will use.
Torrent Vocabulary
A Web Tracker is a server that keeps track of which seeds and peers are in the swarm. A seeder is a peer that has a complete copy of the torrent and still offers it for upload. A Web seed is an http or ftp sever that makes the file available for download. An Announcment tells the Web Tracker, it should add this download to the list of peers in the swarm. A swarm is all peers (including seeders) sharing a torrent are called a swarm Some definitions are from http://en.wikipedia.org/wiki/BitTorrent_vocabulary.
Web Tracker
I am using OpenBittorrent. The announcement url is http://tracker.openbittorrent.com/announce .
Creating the Web Seeds
I will be using my site and Amazon S3 so I uploaded the files using FileZilla and Jets3t Cockpit. The initial upload may take awhile into Amazon S3 . If you have multiple Amazon S3 buckets, the subsequent copy and move option in Jets3t Cockpit will speed up the process. I use S3Fox plugin to control access to the files on Amazon S3. Make sure the access is read. Now we have the web seeds ready and will create the torrent.
Creating the torrent
I am using BitTorrent to create the torrent. Creating the torrent using BitTorrent is very straight forward (File --> Create New Torrent). You will need to select where the file is located on your computer then provide a tracker and any web seeds you created. Next select "Create and save as". Now you will be prompted to save the torrent file you will distribute to people. Once saved, you can upload the torrent to where you want people to download it from. You can use Amazon S3 to create a torrent while convenient (all you do is add ?torrent to the end of the url to the file) seems limited. I haven't figured out a way to include other web seeds to this torrent. It uses an amazon web tracker for announcements.
Distributing the torrent
I uploaded the torrent to Amazon S3 since my site doesn't seem to allow download of torrent files and provided the url to people. You can also email the torrent or pass it around on your thumb drive.