wok-next view mirror-tools/stuff/var/www/mirror-info/index.php @ rev 7595

mirror-tools: add scm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Dec 11 12:04:25 2010 +0100 (2010-12-11)
parents bea570b9faaa
children f31c4e824aa4
line source
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <title>SliTaz Mirror</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz mirror server" />
8 <meta name="robots" content="index, nofollow" />
9 <meta name="author" content="SliTaz Contributors" />
10 <link rel="shortcut icon" href="favicon.ico" />
11 <link rel="stylesheet" type="text/css" href="slitaz.css" />
12 </head>
14 <body bgcolor="#ffffff">
15 <!-- Header -->
16 <div id="header">
17 <a name="top"></a>
18 <a href="http://mirror-info.slitaz.org/"><img id="logo"
19 src="pics/website/logo.png" title="mirror-info.slitaz.org" alt="mirror-info.slitaz.org"
20 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
21 <p id="titre">#!/project/<?php echo preg_replace('/(\w+).*/i','$1',$_SERVER["HTTP_HOST"]); ?></p>
22 </div>
24 <!-- Navigation menu -->
25 <div id="nav">
27 <div class="nav_box">
28 <h4>About Mirror</h4>
29 <p>
30 This is the SliTaz GNU/Linux main mirror. The server runs naturally SliTaz
31 (stable) in an lguest virtual machine provided by
32 <a href="http://www.ads-lu.com/">Allied Data Sys. (ADS)</a>.
33 </p>
35 </div>
37 <div class="nav_box">
38 <h4>SliTaz Network</h4>
39 <ul>
40 <li><a href="http://www.slitaz.org/">Main Website</a></li>
41 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
42 <li><a href="http://forum.slitaz.org/">Community Forum</a></li>
43 <li><a href="http://community.slitaz.org/">Community Platform</a></li>
44 <li><a href="http://labs.slitaz.org/">SliTaz Laboratories</a></li>
45 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
46 <li><a href="http://boot.slitaz.org/">SliTaz Web Boot</a></li>
47 <li><a href="http://tank.slitaz.org/">SliTaz main server</a></li>
48 <li><a href="http://bb.slitaz.org/">SliTaz Build Bot</a></li>
49 <li><a href="http://hg.slitaz.org/">SliTaz Repositories</a></li>
50 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
51 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
52 </ul>
53 </div>
55 <!-- End navigation menu -->
56 </div>
58 <!-- Content top. -->
59 <div id="content_top">
60 <div class="top_left"></div>
61 <div class="top_right"></div>
62 </div>
64 <!-- Content -->
65 <div id="content">
67 <h1><font color="#3E1220">Server</font></h1>
68 <h2><font color="#DF8F06">Codename:
69 <?php echo preg_replace('/(\w+).*/i','$1',$_SERVER["HTTP_HOST"]); ?></font></h2>
71 <p>
72 Mirror CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
73 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
74 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
75 "if (n == 4) printf \"quad \"; print s }' ")?> -
76 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
77 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
78 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> -
79 Located in France next to Roubaix. This page has real time statistics
80 provided by PHP <code>system()</code>. Mirror is also monitored by RRDtool
81 which provides <a href="graphs.php">graphical stats</a>.
82 </p>
84 <h3><a href="graphs.php">
85 <img title="Mirror RRDtool graphs" src="pics/website/monitor.png" alt="graphs" />
86 </a>System stats</h3>
88 <h4>Uptime</h4>
90 <pre class="package">
91 <?php
92 system("uptime | sed 's/^\s*//'");
93 ?>
94 </pre>
96 <h4>Disk usage</h4>
97 <pre class="package">
98 <?php
99 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
100 ?>
101 </pre>
103 <h4>Network</h4>
104 <pre class="package">
105 <?php
106 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
107 ?>
108 </pre>
110 <?php if (isset($_GET["all"])) { ?>
111 <h4>Logins</h4>
112 <pre class="package">
113 <?php
114 system("last");
115 ?>
116 </pre>
118 <h4>Processes</h4>
119 <pre class="package">
120 <?php
121 system("top -n1 -b");
122 ?>
123 </pre>
124 <?php } ?>
126 <a name="vhosts"></a>
127 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=info.mirror.slitaz.org" target="_blank">
128 <img title="Mirror Virtual hosts" alt="vhosts"
129 src="pics/website/vhosts.png" /></a>Virtual hosts</h3>
131 <ul>
132 <li><a href="http://mirror.slitaz.org/">mirror.slitaz.org</a> - SliTaz Mirror.
133 (<a href="http://mirror.slitaz.org/stats" target="_blank">stats</a>)</li>
134 <li><a href="http://scn.slitaz.org/">scn.slitaz.org</a> - SliTaz Community Network.
135 (<a href="http://mirror.slitaz.org/awstats.pl?config=scn.slitaz.org" target="_blank">stats</a>)</li>
136 <li><a href="http://pizza.slitaz.org/">pizza.slitaz.org</a> - SliTaz Flavor builder.
137 (<a href="http://mirror.slitaz.org/awstats.pl?config=pizza.mirror.slitaz.org" target="_blank">stats</a>)</li>
138 <li><a href="https://ajaxterm.slitaz.org/">ajaxterm.slitaz.org</a> - Slitaz Web Console.
139 (<a href="http://mirror.slitaz.org/awstats.pl?config=ajaxterm.slitaz.org" target="_blank">stats</a>)</li>
140 </ul>
142 <a name="replicas"></a>
143 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=replicas.mirror.slitaz.org" target="_blank">
144 <img title="Tank replicas" alt="replicas"
145 src="pics/website/vhosts.png" /></a>Tank replicas</h3>
147 <ul>
148 <li><a href="http://mirror.slitaz.org/www/">www.slitaz.org</a> - SliTaz Website.
149 (<a href="http://www.slitaz.org/" target="_blank">main</a>)</li>
150 <li><a href="http://mirror.slitaz.org/doc/">doc.slitaz.org</a> - Documentation.
151 (<a href="http://doc.slitaz.org/" target="_blank">main</a>)</li>
152 <li><a href="http://mirror.slitaz.org/pkgs/">pkgs.slitaz.org</a> - Packages Web interface.
153 (<a href="http://pkgs.slitaz.org/" target="_blank">main</a>)</li>
154 <li><a href="http://mirror.slitaz.org/hg/">hg.slitaz.org</a> - Mercurial repositories (read only).
155 (<a href="http://hg.slitaz.org/" target="_blank">main</a>
156 <a href="http://hg.tuxfamily.org/mercurialroot/slitaz/" target="_blank">tuxfamily</a>)</li>
157 <li><a href="http://mirror.slitaz.org/webboot/">boot.slitaz.org</a> - gPXE Web boot.
158 (<a href="http://boot.slitaz.org/" target="_blank">main</a>)</li>
159 </ul>
161 <a name="mirrors"></a>
162 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=rsync" target="_blank">
163 <img title="Secondary mirrors" src="pics/website/vhosts.png"
164 alt="mirrors" /></a>Mirrors</h3>
165 Most mirrors are updated using the url: <b>rsync://mirror.slitaz.org/slitaz/</b>
166 (<a href="http://mirror.slitaz.org/awstats.pl?config=rsync">stats</a>)
167 <ul>
168 <li><a href="http://en.utrace.de/?query=mirror.switch.ch">
169 <img title="map" src="pics/website/ch.png" alt="map" /></a>
170 <a href="http://mirror.switch.ch/ftp/mirror/slitaz/">
171 http://mirror.switch.ch/ftp/mirror/slitaz/</a> or
172 <a href="ftp://mirror.switch.ch/mirror/slitaz/">ftp</a></li>
173 <li><a href="http://en.utrace.de/?query=www.gtlib.gatech.edu">
174 <img title="map" src="pics/website/us.png" alt="map" /></a>
175 <a href="http://www.gtlib.gatech.edu/pub/slitaz/">
176 http://www.gtlib.gatech.edu/pub/slitaz/</a> or
177 <a href="ftp://ftp.gtlib.gatech.edu/pub/slitaz/">ftp</a> or
178 <a href="rsync://www.gtlib.gatech.edu/slitaz/">rsync</a></li>
179 <li><a href="http://en.utrace.de/?query=download.tuxfamily.org">
180 <img title="map" src="pics/website/fr.png" alt="map" /></a>
181 <a href="http://download.tuxfamily.org/slitaz/">
182 http://download.tuxfamily.org/slitaz/</a> or
183 <a href="ftp://download.tuxfamily.org/slitaz/">ftp</a> or
184 <a href="rsync://download.tuxfamily.org/pub/slitaz/">rsync</a></li>
185 <!-- li><a href="http://www.linuxembarque.com/slitaz/mirror/">
186 <img title="map" src="pics/website/fr.png" alt="map" /></a>
187 <a href="http://www.linuxembarque.com/slitaz/mirror/">
188 http://www.linuxembarque.com/slitaz/mirror/</a></li -->
189 <li><a href="http://en.utrace.de/?query=mirror.lupaworld.com">
190 <img title="map" src="pics/website/cn.png" alt="map" /></a>
191 <a href="http://mirror.lupaworld.com/slitaz/">
192 http://mirror.lupaworld.com/slitaz/</a></li>
193 <li><a href="http://en.utrace.de/?query=slitaz.c3sl.ufpr.br">
194 <img title="map" src="pics/website/br.png" alt="map" /></a>
195 <a href="http://slitaz.c3sl.ufpr.br/">
196 http://slitaz.c3sl.ufpr.br/</a> or
197 <a href="ftp://slitaz.c3sl.ufpr.br/slitaz/">ftp</a> or
198 <a href="rsync://slitaz.c3sl.ufpr.br/slitaz/">rsync</a></li>
199 <li><a href="http://en.utrace.de/?query=slitaz.mirror.garr.it">
200 <img title="map" src="pics/website/it.png" alt="map" /></a>
201 <a href="http://slitaz.mirror.garr.it/mirrors/slitaz/">
202 http://slitaz.mirror.garr.it/mirrors/slitaz/</a> or
203 <a href="ftp://slitaz.mirror.garr.it/mirrors/slitaz/">ftp</a> or
204 <a href="rsync://slitaz.mirror.garr.it/mirrors/slitaz/">rsync</a></li>
205 <!-- li><a href="http://mirror.drustvo-dns.si/slitaz/">
206 http://mirror.drustvo-dns.si/slitaz/</a></li -->
207 <li><a href="http://en.utrace.de/?query=ftp.pina.si">
208 <img title="map" src="pics/website/si.png" alt="map" /></a>
209 <a href="ftp://ftp.pina.si/slitaz/">
210 ftp://ftp.pina.si/slitaz/</a></li>
211 <li><a href="http://en.utrace.de/?query=distro.ibiblio.org">
212 <img title="map" src="pics/website/us.png" alt="map" /></a>
213 <a href="http://distro.ibiblio.org/pub/linux/distributions/slitaz/">
214 http://distro.ibiblio.org/pub/linux/distributions/slitaz/</a> or
215 <a href="ftp://distro.ibiblio.org/pub/linux/distributions/slitaz/">ftp</a></li>
216 <li><a href="http://en.utrace.de/?query=ftp.vim.org">
217 <img title="map" src="pics/website/nl.png" alt="map" /></a>
218 <a href="http://ftp.vim.org/ftp/os/Linux/distr/slitaz/">
219 http://ftp.vim.org/ftp/os/Linux/distr/slitaz/</a> or
220 <a href="ftp://ftp.vim.org/mirror/os/Linux/distr/slitaz/">
221 ftp</a></li>
222 <li><a href="http://en.utrace.de/?query=ftp.nedit.org">
223 <img title="map" src="pics/website/nl.png" alt="map" /></a>
224 <a href="http://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/">
225 http://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/</a> or
226 <a href="ftp://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/">
227 ftp</a></li>
228 <li><a href="http://en.utrace.de/?query=ftp.ch.xemacs.org">
229 <img title="map" src="pics/website/ch.png" alt="map" /></a>
230 <a href="http://ftp.ch.xemacs.org/ftp/pool/2/mirror/slitaz/" />
231 http://ftp.ch.xemacs.org/ftp/pool/2/mirror/slitaz/</a> or
232 <a href="ftp://ftp.ch.xemacs.org//pool/2/mirror/slitaz/" />
233 ftp</a></li>
234 </ul>
236 <a name="builds"></a>
237 <h3><img title="Daily builds" src="pics/website/monitor.png" alt="builds" />
238 Daily builds</h3>
240 <?php
241 function display_log($file,$anchor,$url)
242 {
243 echo '<a name="'.$anchor.'"></a>';
244 echo "<a href=\"$url\">";
245 system("stat -c '<h4>%y %n</h4>' ".$file." | sed -e 's/.000000000//' -e 's|/var/log/\(.*\).log|\\1.iso|'");
246 echo "</a>";
247 echo "<pre>";
248 system("cat ".$file." | sed -e 's/.\[[0-9][^mG]*.//g' | awk '".
249 '{ if (/\[/) { n=index($0,"["); printf("%s%s%s\n",substr($0,1,n-1),'.
250 'substr("\t\t\t\t\t\t\t",1,9-(n/8)),substr($0,n)); } else print }'."'");
251 echo "</pre>";
252 }
254 display_log("/var/log/packages-stable.log", "buildstable", "/iso/stable/packages-3.0.iso");
255 display_log("/var/log/packages-cooking.log","buildcooking","/iso/cooking/packages-cooking.iso");
256 ?>
257 <!-- End of content with round corner -->
258 </div>
259 <div id="content_bottom">
260 <div class="bottom_left"></div>
261 <div class="bottom_right"></div>
262 </div>
264 <!-- Start of footer and copy notice -->
265 <div id="copy">
266 <p>
267 Last update : <?php echo date('r'); ?>
268 </p>
269 <p>
270 Copyright &copy; <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> -
271 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
272 </p>
273 <!-- End of copy -->
274 </div>
276 <!-- Bottom and logo's -->
277 <div id="bottom">
278 <p>
279 <a href="http://validator.w3.org/check?uri=referer"><img
280 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
281 title="Code validé XHTML 1.0"
282 style="width: 80px; height: 15px;" /></a>
283 </p>
284 </div>
286 </body>
287 </html>