Creating Torrents


Requirements


Check the name of the user running transmission.

1grep transmission /etc/passwd
2transuser="$(grep transmission /etc/passwd)"

Go to where your data is, and make your that ${transuser} can read and write to that location.

namei -lo $(realpath .)

Create a torrent of file or directory with the full path:

1dir=Memes
2sudo chown -R :transmission ${dir}
3transmission-create $(pwd)/${dir}

Add a tracker to the torrent, to help others can find you easily:

1transmission-create --comment 'My Memes collection' -t 'udp://tracker.publicbt.com:80' -t 'udp://tracker.openbittorrent.com:80' --anonymize Memes

Trackers are not required, but without them it can take a long time for a client to find the torrent.

Without the --anonymize flag, the torrent file output will have a 'created by' and 'created date'.

Open Trackers

  • udp://tracker.opentrackr.org:1337/announce
  • udp://opentracker.i2p.rocks:6969/announce
  • https://opentracker.i2p.rocks:443/announce
  • udp://9.rarbg.com:2810/announce
  • udp://open.demonii.com:1337/announce
  • udp://exodus.desync.com:6969/announce
  • udp://tracker.moeking.me:6969/announce
  • https://tracker.tamersunion.org:443/announce
  • udp://tracker1.bt.moack.co.kr:80/announce
  • udp://tracker.bitsearch.to:1337/announce
  • udp://p4p.arenabg.com:1337/announce
  • udp://explodie.org:6969/announce

Verify

Add your torrent and notes its number:

1transmission-remote -a "$file".torrent -w "$(pwd)"
2transmission-remote -l
3transmission-remote -t "$number" -i

The information in the last command shows that it's not verified, so you can verify with -v.

1transmission-remote -t "$number" -v

If transmission cannot find it, then tell it where to find the torrent:

1transmission-remote -t "$number" --find "$(pwd)"

...and of course, make sure the permissions allow transmission to see the target.

1ls -ld "$file"