This is an old revision of the document!


Prepare an image for upload (torrent/http)

  • Compress the image
img=labriqueinternet_"$(date '+%d-%m-%Y')".img
loop=$(sudo losetup -f) 
sudo losetup -o 1048576 $loop $img
sudo mount $loop /mnt
sudo sfill -z -l -l -f /mnt
sudo umount /mnt
tar cfJ $img.tar.xz $img
* Upload the //tar.xz// and //torrent// files on //mirabelle// (for http://repo.labriqueinter.net/)
* Create the meta file (torrent)
for i in *2016-05-21*
do
  echo "run on $i"
  btmakemetafile http://ldn-fai.net:6969/announce $i --announce_list 'http://ldn-fai.net:6969/announce|udp://tracker.torrent.eu.org:451' --comment 'La Brique Internet : https://labriqueinter.net/' --httpseeds 'http://repo.labriqueinter.net'
  chown ldnadmin: $i
done
  • Re-create the MD5SUMS file
rm -f MD5SUMS
for i in $(ls labriqueinternet*)
do
  md5sum $i >> MD5SUMS
done
  • Upload the torrent file on ginkgo in /torrent/btfiles/ (for allowed torrent on LDN tracker)
  • infra/torrent.1463909927.txt.gz
  • Last modified: 2018/12/08 22:28
  • (external edit)