From Mageia wiki
Jump to: navigation, search
Line 22: Line 22:
 
# rm -f *Live*/*.{full,leaves,names}
 
# rm -f *Live*/*.{full,leaves,names}
 
# /home/tmb/create_torrent.sh
 
# /home/tmb/create_torrent.sh
# md torrent
+
# md torrents
# mv *.torrent torrent/
+
# mv *.torrent torrents/
 
</pre>
 
</pre>
  

Revision as of 12:58, 23 March 2014

This is info regarding publishing isos:


Signing ISOs

Signature of ISOs is done on rabbit, using the account "releasekey", and the script /usr/local/bin/sign_checksums. Make sure the directories containing the ISOs are owned by group releasekey, and group can write in the directory. Then run the script sign_checksums on the directories :

rabbit# su - releasekey
rabbit$ for dir in /home/bcd/public_html/isos/mageia4-v2/Mageia-4.1-*
        do sign_checksums $dir
        done
rabbit$ exit

Creating torrents:

# pushd /home/bcd/public_html/isos/mageia4-v2/
# rm -f *Live*/*.{full,leaves,names}
# /home/tmb/create_torrent.sh
# md torrents
# mv *.torrent torrents/

Preparing for publishing, use rsync to copy files to:
rabbit:/torrent/Active
alamut:/torrent/Active
valstar:/distrib/tmp/newisos/mageia4-v2

Check that the permissions on valstar are 755 for dirs and 644 for files or mirrors will get rsync problems!

Publishing isos:

On Valstar:

# mv /distrib/tmp/newisos/mageia4-v2 /distrib/mirror/iso/4.1

On Alamut, check that transmission-daemon is running, and if not (it dies sometimes) start it (as root) and load the torrents:

# transmission-daemon

To load the torrents (on alamut and rabbit), go to dir with the *.torrents files and do:
# for file in *.torrent;do transmission-remote -a $file;done

On Rabbit, check that transmission-daemon is running, and if not (it dies sometimes) start it (as tmb) with:

# su - tmb
$ transmission-daemon

To load the torrents (on alamut and rabbit), go to dir with the *.torrents files and do:
$ for file in *.torrent;do transmission-remote -a $file;done
$ exit

And that is all needed, the the torrents will self-register with the trackers so it will be available to all.
(not including terasaur, as that is connected to my personal google account, so I'll take care of that one for now)