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
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)
sshfs mirabelle.ldn:/var/www/repo-labriqueinternet/images/ /media/pub
cd /media/pub
for i in $(ls labriqueinternet*)
do
  echo "sig file $i"
  gpg2 -a -b -s --default-key 0x8AC0ECC1 $i
done
  • infra/torrent.1463919833.txt.gz
  • Last modified: 2018/12/08 22:28
  • (external edit)