From: build Date: Wed, 14 Feb 2007 08:04:06 +0000 (+0000) Subject: creation - updated after v4 deployment X-Git-Tag: foo~545 X-Git-Url: http://git.onelab.eu/?p=infrastructure.git;a=commitdiff_plain;h=6fa6232cececc6e96e80eb1f4b6085e1f4632836 creation - updated after v4 deployment --- diff --git a/logos/OneLab logo with text on black.jpg b/logos/OneLab logo with text on black.jpg new file mode 100644 index 0000000..47e933c Binary files /dev/null and b/logos/OneLab logo with text on black.jpg differ diff --git a/logos/OneLab-logo-on-black-87.jpg b/logos/OneLab-logo-on-black-87.jpg new file mode 100644 index 0000000..5c45a82 Binary files /dev/null and b/logos/OneLab-logo-on-black-87.jpg differ diff --git a/logos/OneLab-logo-with-text-87.jpg b/logos/OneLab-logo-with-text-87.jpg new file mode 100644 index 0000000..2255290 Binary files /dev/null and b/logos/OneLab-logo-with-text-87.jpg differ diff --git a/logos/OneLab-logo-with-text-on-black-87.jpg b/logos/OneLab-logo-with-text-on-black-87.jpg new file mode 100644 index 0000000..b94b53e Binary files /dev/null and b/logos/OneLab-logo-with-text-on-black-87.jpg differ diff --git a/logos/OneLab-logo-with-text.jpg b/logos/OneLab-logo-with-text.jpg new file mode 100644 index 0000000..2755292 Binary files /dev/null and b/logos/OneLab-logo-with-text.jpg differ diff --git a/logos/OneLabV6Carre.png b/logos/OneLabV6Carre.png new file mode 100644 index 0000000..3e56ede Binary files /dev/null and b/logos/OneLabV6Carre.png differ diff --git a/logos/OneLabV6Carre32x32.jpg b/logos/OneLabV6Carre32x32.jpg new file mode 100644 index 0000000..e9b4338 Binary files /dev/null and b/logos/OneLabV6Carre32x32.jpg differ diff --git a/logos/OneLabV6Carre32x32.png b/logos/OneLabV6Carre32x32.png new file mode 100644 index 0000000..262bcab Binary files /dev/null and b/logos/OneLabV6Carre32x32.png differ diff --git a/logos/inria.ico b/logos/inria.ico new file mode 100644 index 0000000..c88f140 Binary files /dev/null and b/logos/inria.ico differ diff --git a/logos/logo_inria.jpg b/logos/logo_inria.jpg new file mode 100644 index 0000000..24267bd Binary files /dev/null and b/logos/logo_inria.jpg differ diff --git a/logos/onelab.ico b/logos/onelab.ico new file mode 100644 index 0000000..c1d0c7a Binary files /dev/null and b/logos/onelab.ico differ diff --git a/logos/plc-logo.gif b/logos/plc-logo.gif new file mode 100644 index 0000000..303932b Binary files /dev/null and b/logos/plc-logo.gif differ diff --git a/myplc-devel-tuning/build-profile b/tunings-myplc-devel/build-profile similarity index 100% rename from myplc-devel-tuning/build-profile rename to tunings-myplc-devel/build-profile diff --git a/myplc-devel-tuning/init-d-plc-devel b/tunings-myplc-devel/init-d-plc-devel similarity index 100% rename from myplc-devel-tuning/init-d-plc-devel rename to tunings-myplc-devel/init-d-plc-devel diff --git a/myplc-devel-tuning/installation-notes.txt b/tunings-myplc-devel/installation-notes.txt similarity index 100% rename from myplc-devel-tuning/installation-notes.txt rename to tunings-myplc-devel/installation-notes.txt diff --git a/myplc-devel-tuning/root-profile b/tunings-myplc-devel/root-profile similarity index 100% rename from myplc-devel-tuning/root-profile rename to tunings-myplc-devel/root-profile diff --git a/myplc-devel-tuning/yum.conf b/tunings-myplc-devel/yum.conf similarity index 100% rename from myplc-devel-tuning/yum.conf rename to tunings-myplc-devel/yum.conf diff --git a/myplc-tuning/dot-profile b/tunings-myplc/dot-profile similarity index 100% rename from myplc-tuning/dot-profile rename to tunings-myplc/dot-profile diff --git a/tunings-myplc/europe.png b/tunings-myplc/europe.png new file mode 100644 index 0000000..d09df0d Binary files /dev/null and b/tunings-myplc/europe.png differ diff --git a/tunings-myplc/installation-notes.txt b/tunings-myplc/installation-notes.txt new file mode 100644 index 0000000..44c50c8 --- /dev/null +++ b/tunings-myplc/installation-notes.txt @@ -0,0 +1,12 @@ +######## ONCE +dot-profile to be installed in /plc/data/root/.profile + +######## After rpm upgrade +yum.conf to be installed in /plc/root/etc/ + +plc-map.py to be installed in /plc/root/usr/bin +europe.png to be installed in /plc/root/var/www/html/map.png + +requires the Image python module +# yum install python-imaging + diff --git a/tunings-myplc/plc-map.py b/tunings-myplc/plc-map.py new file mode 100755 index 0000000..0ea737a --- /dev/null +++ b/tunings-myplc/plc-map.py @@ -0,0 +1,52 @@ +#!/usr/bin/env plcsh + +import Image, ImageDraw + +def circle (image, percentX, percentY, radiusX, radiusY, colorIn, colorOut): + + imageX, imageY = image.size + centerX = int(imageX*percentX) + centerY = int(imageY*percentY) + x = max (0, min (centerX,imageX)) + y = max (0, min (centerY,imageY)) + + x1 = x - radiusX + x2 = x + radiusX + y1 = y - radiusY + y2 = y + radiusY + + draw = ImageDraw.Draw (image) + draw.chord((x1,y1,x2,y2), 0, 360, fill=colorIn, outline=colorOut ) + del draw + +def main (): + + path = '/var/www/html/' + original = path + 'map.png' + live = path + 'livemap.png' + + # map characteristics, in degrees. + # latitude : positive is north + # longitude : positive is east + latitude={'top':65., + 'bottom': 35.5} + longitude={'left':-11., + 'right':58.} + + # circle radius in pixels + sx,sy=6,6 + # circle in and out colors + cIn,cOut='#566b8a','#bbbbbb' + + image = Image.open(original) + + for site in GetSites(): + if site['longitude'] is not None and site['latitude'] is not None: + px=float(longitude['left']-site['longitude'])/float(longitude['left']-longitude['right']) + py=float(latitude['top']-site['latitude'])/float(latitude['top']-latitude['bottom']) + circle(image,px,py,sx,sy,cIn,cOut) + + image.save (live) + +if __name__ == '__main__': + main () diff --git a/myplc-tuning/yum.conf b/tunings-myplc/yum.conf similarity index 100% rename from myplc-tuning/yum.conf rename to tunings-myplc/yum.conf