[MPlayer-mirror] new mirror script/setup

Attila Kinali attila at kinali.ch
Sun May 7 14:40:40 CEST 2006


Moin,

I finally had the time to create the new mirror script.

Before starting, please remove the homepage and MPlayer
directories in the root of your mirror.
If you do not already have an index.html in the root,
please use the one attached.

The shell script update_mplayer_rsync does the work.
There are a few variables at the top of the file to set:
PATH: the path to be used, set if necessary (recomended)
LOCK: the path to the lockfile 
      (/var/lock/mplayer-mirror-lock or something similar)
MIRROR_ROOT: the root of the mirror
MAILADR: the email adress where reports should be send to

This script requires rsync and lockfile (from procmail).
If you don't want to use a lockfile, please comment the
appropriate section.

The mirror will use currently 476MB. If you don't want
to use that much space, you can exclude the "contrib"
directory too.

Please do not change the options (-pxlrHtWv) given
to rsync, especialy not -t and -W (creating checksumms
is very CPU intensive while we have a lot of bandwidth
to spare).

Please add the script to your crontab and run it every
6h to 12h at a random time you choose (6h is recomended).

Also i would like to ask everyone to set up an ssh trigger
to push updates.
This requires a valid user that can write into the $MIRROR_ROOT.
Please create for this an ssh2 key pair without passphrase
---
ssh-keygen -t dsa -C MPHQ_rsync_trigger -f www4_sshkey
(replace www4 with your mirror number)
---
Send me the private key, the user name and host name.

The public key should be placed
into the ~/.ssh/authorized_keys file of the user.
To restrict the sshkey to one command only please place the follwoing
lines at the begining of the line with the key:
from="*.mplayerhq.hu",command="<path_to_update_mplayer_rsync"
e.g.:
---
from="*.mplayerhq.hu",command="/home/adogan/bin/update_mplayer_all" ssh-dss AAAA
B3NzaC1kc3MAAAEBAI20yhE3/bRjzojUhhMz4DHnGhcJUiPWOfoP9CygnFOYOxJTFlxgqM3iJiHWRxgK
FJ/Uw40eV9K4Ww4fp2pe1guXJzKna8+6vBXaPPVEVxSyaxgtt4Xt3zpUuCnNljgArcEhwcNyOyH2RVln
yhyxsrKhuq5ZoNHD3caBGjZu3eOR2atPGS1NOdeN/hytIoh8T8DicPqPI29yWX9yAjnHv6wdPutwMLu6
[...]
n0Fs3CJY6/1UpgDGH7VPey0SdpJEDewltRLA+buP++2vJD/NUOeGzcRydo2NdZ1wiiaytXxkaec928JC
NABTeBh6NKAg4vnPvcRLKEBVdSrar/fARSbOmf3HOcsw3uZoAIE9jDGhnMKcnXfHjPZ2tZP9CHs6Wo4n
yDOxIfDZmJ7VJqMRc6//p5k81pkkGvawbPA63StI/Dkv/648l4XONuJc2z5gaUdjrTA8TsD/VJGiGcHl
mlGj3IWCBz7e4+XB3L64kFZwLCYN8kwDUAaHq4EtcMVOnQ== MPHQ_rsync_trigger
---

Because our current mirror contact database is a bit outdated
i would like to ask you to send me the following data:
---
Which mirror number?
What protocols do you support? (http/ftp/rsync)
What do you mirror? (hompage, which files directories)
Who is the contact in case of problems?
---

If you have any questions regarding the mirror setup,
please do not hesitate to ask.

Thanks to everyone who helps us to distribute MPlayer

			Attila Kinali


-- 
心をこめて聞け心をこめて話せ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: update_mplayer_rsync
Type: application/x-shellscript
Size: 990 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-mirror/attachments/20060507/c18f9d08/attachment.bin>


More information about the MPlayer-mirror mailing list