Set Up Your own Bittorrent Service

Usually we can share files with HTTP or FTP protocol on a server. How to share files with Bittorrent protocol use your own server, like thepiratebay or mininova?

It seems very few articles introduce what should be done. I'll write down some notes here for reference. Key services should be set up is "Tracker".

You can have a look at the following links for more information about what tracker is:

 http://en.wikipedia.org/wiki/BitTorrent_tracker

Tracker software:

 http://en.wikipedia.org/wiki/Comparison_of_BitTorrent_tracker_software

 I use "xbt"(http://xbtt.sourceforge.net/) as my tracker software on CentOS 5.5 (Clone of RHEL 5.5).

 Install xbt as http://xbtt.sourceforge.net/tracker/. But you should notice that the latest xbt software from SVN can't be compiled on CentOS 5.5 because of boost (1.33.1 on CentOS 5.5).

So, you should change to the following commands if you are not going to update your boost library:

svn co -r 2010 https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk/xbt/misc xbt/misc
svn co -r 2010 https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk/xbt/Tracker xbt/Tracker

Remember to create "xbt" user and "xbt" database, and tables in xbt_tracker.sql before you run xbt. If you are not going to update database with code or manually, you'd better set "auto_register" to 1 in xbt_tracker.conf. So that the tracker service can be supplied for any client connects to the server.

What you should  do next is to make torrents using your own tracker URL as tracker information. And then use your favorite BitTorrent client software to seed your files. "transmission" is very easy to use.

 

Reference:

http://en.wikipedia.org/wiki/BitTorrent_(protocol)
http://en.wikipedia.org/wiki/BitTorrent_(software)
http://en.wikipedia.org/wiki/Comparison_of_BitTorrent_software
http://en.wikipedia.org/wiki/Transmission_(BitTorrent_client)
http://en.wikipedia.org/wiki/BitTorrent_tracker
http://en.wikipedia.org/wiki/Comparison_of_BitTorrent_tracker_software

http://btfaq.com/serve/cache/25.html

http://xbtt.sourceforge.net/tracker/
http://torrentfreak.com/xbtit-bringing-bittorrent-tracker-ownership-within-reach/
http://www.visigod.com/xbt-tracker/installation
(Notes: The above article updates boost library by himself. So he can use the latest xbt.)
http://www.taoer.com/2005/11/03/linux-bt-tracker-build-note/
http://blog.sina.com.cn/s/blog_4e05171b0100h0ey.html

http://www.transmissionbt.com/
https://trac.transmissionbt.com/wiki/ConfigFiles
https://trac.transmissionbt.com/wiki/ConfigurationParameters
https://trac.transmissionbt.com/wiki/EditConfigFiles
http://buffalo.nas-central.org/wiki/Transmission_BitTorrent_Client
http://www.clearfoundation.com/docs/howtos/transmission_bittorrent_client
http://github.com/fagga/transmission-remote-cli

http://filesharefreak.com/2008/02/22/how-to-set-up-your-own-bittorrent-website-part-i/
http://filesharefreak.com/2008/02/19/how-to-set-up-your-own-bittorrent-website-part-ii-frontends/
http://filesharefreak.com/2008/02/18/how-to-set-up-your-own-bittorrent-website-part-iii-backends/

http://valadilene.org/2009/06/24/how-to-create-a-torrent-tracker-with-php-and-xbtt-part-1/
http://valadilene.org/2009/07/15/how-to-create-a-torrent-tracker-part-2-upload-form/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s