Line 1: Line 1:
*sudo apt-get install bittornado
+
sudo apt-get install bittornado
*mkdir ~/.bttrack
+
mkdir ~/.bttrack
*mkdir ~/btfiles
+
mkdir ~/btfiles
* bttrack --port 6969 --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --allowed_dir $HOME/btfiles --parse_dir_interval 10 --allow_get 1
+
bttrack --port 6969 --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --allowed_dir $HOME/btfiles --parse_dir_interval 10 --allow_get 1
* firefox http://localhost:6969
+
firefox http://localhost:6969
  
To make it a startup script, create a skeleton with the following  
+
* To make it a startup script, create a skeleton with the following  
mkdir /torrent
+
mkdir /torrent
 +
sudo cp /etc/init.d/skeleton /etc/init.d/bttrack
 +
vim /etc/init.d/bttrack
 +
*Change the following values:
 +
DESC="BitTorrent protocol tracker"
 +
NAME=bttrack
 
  DAEMON_ARGS="--dfile /var/run/bttrack/dstate --logfile /var/log/bttrack.log
 
  DAEMON_ARGS="--dfile /var/run/bttrack/dstate --logfile /var/log/bttrack.log
 
   --port 6969 --nat_check 0 --scrape_allowed full --allowed_dir /torrent/btfiles"
 
   --port 6969 --nat_check 0 --scrape_allowed full --allowed_dir /torrent/btfiles"
Line 14: Line 19:
 
* btmakemetafile  http://localhost:6969/announce SOURCE --target OUTPUT.torrent
 
* btmakemetafile  http://localhost:6969/announce SOURCE --target OUTPUT.torrent
 
Optional argument: --piece_size_pow2 SIZE
 
Optional argument: --piece_size_pow2 SIZE
 +
*Use any torrent client to upload the torrent data. Give the path of the torrent destination as the location where the data exists and do a hash-check
  
 
{{Template:FB}}
 
{{Template:FB}}
 
[[Category:Technical]]
 
[[Category:Technical]]

Revision as of 19:06, 17 December 2013

sudo apt-get install bittornado
mkdir ~/.bttrack
mkdir ~/btfiles
bttrack --port 6969 --dfile ~/.bttrack/dstate --logfile ~/.bttrack/tracker.log --nat_check 0 --scrape_allowed full --allowed_dir $HOME/btfiles --parse_dir_interval 10 --allow_get 1
firefox http://localhost:6969
  • To make it a startup script, create a skeleton with the following
mkdir /torrent
sudo cp /etc/init.d/skeleton /etc/init.d/bttrack
vim /etc/init.d/bttrack
  • Change the following values:
DESC="BitTorrent protocol tracker"
NAME=bttrack
DAEMON_ARGS="--dfile /var/run/bttrack/dstate --logfile /var/log/bttrack.log
  --port 6969 --nat_check 0 --scrape_allowed full --allowed_dir /torrent/btfiles"

Creating a Torrent file

Optional argument: --piece_size_pow2 SIZE

  • Use any torrent client to upload the torrent data. Give the path of the torrent destination as the location where the data exists and do a hash-check




To make it a startup script, create a skeleton with the following 

mkdir /torrent

DAEMON_ARGS="--dfile /var/run/bttrack/dstate --logfile /var/log/bttrack.log
  --port 6969 --nat_check 0 --scrape_allowed full --allowed_dir /torrent/btfiles"

Creating a Torrent file[edit]

Optional argument: --piece_size_pow2 SIZE