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

mirror-tools: add /etc/lighttpd/vhosts.conf
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 18 10:21:49 2010 +0100 (2010-11-18)
parents e3491e83e805
children ac532f610797
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/mirror</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: mirror</font></h2>
70 <p>
71 Mirror CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
72 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
73 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
74 "if (n == 4) printf \"quad \"; print s }' ")?> -
75 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
76 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
77 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> -
78 Located in France next to Roubaix. This page has real time statistics
79 provided by PHP <code>system()</code>. Mirror is also monitored by RRDtool
80 which provides <a href="graphs.php">graphical stats</a>.
81 </p>
83 <h3><a href="graphs.php">
84 <img title="Mirror RRDtool graphs" src="pics/website/monitor.png" alt="graphs" />
85 </a>System stats</h3>
87 <h4>Uptime</h4>
89 <pre class="package">
90 <?php
91 system("uptime | sed 's/^\s*//'");
92 ?>
93 </pre>
95 <h4>Disk usage</h4>
96 <pre class="package">
97 <?php
98 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
99 ?>
100 </pre>
102 <h4>Network</h4>
103 <pre class="package">
104 <?php
105 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
106 ?>
107 </pre>
109 <?php if (isset($_GET["all"])) { ?>
110 <h4>Logins</h4>
111 <pre class="package">
112 <?php
113 system("last");
114 ?>
115 </pre>
117 <h4>Processes</h4>
118 <pre class="package">
119 <?php
120 system("top -n1 -b");
121 ?>
122 </pre>
123 <?php } ?>
125 <a name="vhosts"></a>
126 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=info.mirror.slitaz.org" target="_blank">
127 <img title="Mirror Virtual hosts" alt="vhosts"
128 src="pics/website/vhosts.png" /></a>Virtual hosts</h3>
130 <ul>
131 <li><a href="http://mirror.slitaz.org/">mirror.slitaz.org</a> - SliTaz Mirror.
132 (<a href="http://mirror.slitaz.org/stats" target="_blank">stats</a>)</li>
133 <li><a href="http://pizza.slitaz.org/">pizza.slitaz.org</a> - SliTaz Flavor builder.
134 (<a href="http://mirror.slitaz.org/awstats.pl?config=pizza.mirror.slitaz.org" target="_blank">stats</a>)</li>
135 <li><a href="https://ajaxterm.slitaz.org/">ajaxterm.slitaz.org</a> - Slitaz Web Console.
136 (<a href="http://mirror.slitaz.org/awstats.pl?config=ajaxterm.slitaz.org" target="_blank">stats</a>)</li>
137 </ul>
139 <a name="replicas"></a>
140 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=replicas.mirror.slitaz.org" target="_blank">
141 <img title="Tank replicas" alt="replicas"
142 src="pics/website/vhosts.png" /></a>Tank replicas</h3>
144 <ul>
145 <li><a href="http://mirror.slitaz.org/www/">www.slitaz.org</a> - SliTaz Website.
146 (<a href="http://www.slitaz.org/" target="_blank">main</a>)</li>
147 <li><a href="http://mirror.slitaz.org/doc/">doc.slitaz.org</a> - Documentation.
148 (<a href="http://doc.slitaz.org/" target="_blank">main</a>)</li>
149 <li><a href="http://mirror.slitaz.org/pkgs/">pkgs.slitaz.org</a> - Packages Web interface.
150 (<a href="http://pkgs.slitaz.org/" target="_blank">main</a>)</li>
151 <li><a href="http://mirror.slitaz.org/hg/">hg.slitaz.org</a> - Mercurial repositories (read only).
152 (<a href="http://hg.slitaz.org/" target="_blank">main</a>
153 <a href="http://hg.tuxfamily.org/mercurialroot/slitaz/" target="_blank">tuxfamily</a>)</li>
154 <li><a href="http://mirror.slitaz.org/webboot/">boot.slitaz.org</a> - gPXE Web boot.
155 (<a href="http://boot.slitaz.org/" target="_blank">main</a>)</li>
156 </ul>
158 <a name="mirrors"></a>
159 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=rsync" target="_blank">
160 <img title="Secondary mirrors" src="pics/website/vhosts.png"
161 alt="mirrors" /></a>Mirrors</h3>
162 Most mirrors are updated using the url: <b>rsync://mirror.slitaz.org/slitaz/</b>
163 (<a href="http://mirror.slitaz.org/awstats.pl?config=rsync">stats</a>)
164 <ul>
165 <li><a href="http://en.utrace.de/?query=mirror.switch.ch">
166 <img title="map" src="pics/website/ch.png" alt="map" /></a>
167 <a href="http://mirror.switch.ch/ftp/mirror/slitaz/">
168 http://mirror.switch.ch/ftp/mirror/slitaz/</a> or
169 <a href="ftp://mirror.switch.ch/mirror/slitaz/">ftp</a></li>
170 <li><a href="http://en.utrace.de/?query=www.gtlib.gatech.edu">
171 <img title="map" src="pics/website/us.png" alt="map" /></a>
172 <a href="http://www.gtlib.gatech.edu/pub/slitaz/">
173 http://www.gtlib.gatech.edu/pub/slitaz/</a> or
174 <a href="ftp://ftp.gtlib.gatech.edu/pub/slitaz/">ftp</a> or
175 <a href="rsync://www.gtlib.gatech.edu/slitaz/">rsync</a></li>
176 <li><a href="http://en.utrace.de/?query=download.tuxfamily.org">
177 <img title="map" src="pics/website/fr.png" alt="map" /></a>
178 <a href="http://download.tuxfamily.org/slitaz/">
179 http://download.tuxfamily.org/slitaz/</a> or
180 <a href="ftp://download.tuxfamily.org/slitaz/">ftp</a> or
181 <a href="rsync://download.tuxfamily.org/pub/slitaz/">rsync</a></li>
182 <!-- li><a href="http://www.linuxembarque.com/slitaz/mirror/">
183 <img title="map" src="pics/website/fr.png" alt="map" /></a>
184 <a href="http://www.linuxembarque.com/slitaz/mirror/">
185 http://www.linuxembarque.com/slitaz/mirror/</a></li -->
186 <li><a href="http://en.utrace.de/?query=mirror.lupaworld.com">
187 <img title="map" src="pics/website/cn.png" alt="map" /></a>
188 <a href="http://mirror.lupaworld.com/slitaz/">
189 http://mirror.lupaworld.com/slitaz/</a></li>
190 <li><a href="http://en.utrace.de/?query=slitaz.c3sl.ufpr.br">
191 <img title="map" src="pics/website/br.png" alt="map" /></a>
192 <a href="http://slitaz.c3sl.ufpr.br/">
193 http://slitaz.c3sl.ufpr.br/</a> or
194 <a href="ftp://slitaz.c3sl.ufpr.br/slitaz/">ftp</a> or
195 <a href="rsync://slitaz.c3sl.ufpr.br/slitaz/">rsync</a></li>
196 <li><a href="http://en.utrace.de/?query=slitaz.mirror.garr.it">
197 <img title="map" src="pics/website/it.png" alt="map" /></a>
198 <a href="http://slitaz.mirror.garr.it/mirrors/slitaz/">
199 http://slitaz.mirror.garr.it/mirrors/slitaz/</a> or
200 <a href="ftp://slitaz.mirror.garr.it/mirrors/slitaz/">ftp</a> or
201 <a href="rsync://slitaz.mirror.garr.it/mirrors/slitaz/">rsync</a></li>
202 <!-- li><a href="http://mirror.drustvo-dns.si/slitaz/">
203 http://mirror.drustvo-dns.si/slitaz/</a></li -->
204 <li><a href="http://en.utrace.de/?query=ftp.pina.si">
205 <img title="map" src="pics/website/si.png" alt="map" /></a>
206 <a href="ftp://ftp.pina.si/slitaz/">
207 ftp://ftp.pina.si/slitaz/</a></li>
208 <li><a href="http://en.utrace.de/?query=distro.ibiblio.org">
209 <img title="map" src="pics/website/us.png" alt="map" /></a>
210 <a href="http://distro.ibiblio.org/pub/linux/distributions/slitaz/">
211 http://distro.ibiblio.org/pub/linux/distributions/slitaz/</a> or
212 <a href="ftp://distro.ibiblio.org/pub/linux/distributions/slitaz/">ftp</a></li>
213 <li><a href="http://en.utrace.de/?query=ftp.vim.org">
214 <img title="map" src="pics/website/nl.png" alt="map" /></a>
215 <a href="http://ftp.vim.org/ftp/os/Linux/distr/slitaz/">
216 http://ftp.vim.org/ftp/os/Linux/distr/slitaz/</a> or
217 <a href="ftp://ftp.vim.org/mirror/os/Linux/distr/slitaz/">
218 ftp</a></li>
219 <li><a href="http://en.utrace.de/?query=ftp.nedit.org">
220 <img title="map" src="pics/website/nl.png" alt="map" /></a>
221 <a href="http://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/">
222 http://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/</a> or
223 <a href="ftp://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/">
224 ftp</a></li>
225 <li><a href="http://en.utrace.de/?query=ftp.ch.xemacs.org">
226 <img title="map" src="pics/website/ch.png" alt="map" /></a>
227 <a href="http://ftp.ch.xemacs.org/ftp/pool/2/mirror/slitaz/" />
228 http://ftp.ch.xemacs.org/ftp/pool/2/mirror/slitaz/</a> or
229 <a href="ftp://ftp.ch.xemacs.org//pool/2/mirror/slitaz/" />
230 ftp</a></li>
231 </ul>
233 <a name="builds"></a>
234 <h3><img title="Daily builds" src="pics/website/monitor.png" alt="builds" />
235 Daily builds</h3>
237 <?php
238 function display_log($file,$anchor,$url)
239 {
240 echo '<a name="'.$anchor.'"></a>';
241 echo "<a href=\"$url\">";
242 system("stat -c '<h4>%y %n</h4>' ".$file." | sed -e 's/.000000000//' -e 's|/var/log/\(.*\).log|\\1.iso|'");
243 echo "</a>";
244 echo "<pre>";
245 system("cat ".$file." | sed -e 's/.\[[0-9][^mG]*.//g' | awk '".
246 '{ if (/\[/) { n=index($0,"["); printf("%s%s%s\n",substr($0,1,n-1),'.
247 'substr("\t\t\t\t\t\t\t",1,9-(n/8)),substr($0,n)); } else print }'."'");
248 echo "</pre>";
249 }
251 display_log("/var/log/packages-stable.log", "buildstable", "/iso/stable/packages-3.0.iso");
252 display_log("/var/log/packages-cooking.log","buildcooking","/iso/cooking/packages-cooking.iso");
253 ?>
254 <!-- End of content with round corner -->
255 </div>
256 <div id="content_bottom">
257 <div class="bottom_left"></div>
258 <div class="bottom_right"></div>
259 </div>
261 <!-- Start of footer and copy notice -->
262 <div id="copy">
263 <p>
264 Last update : <?php echo date('r'); ?>
265 </p>
266 <p>
267 Copyright &copy; <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> -
268 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
269 </p>
270 <!-- End of copy -->
271 </div>
273 <!-- Bottom and logo's -->
274 <div id="bottom">
275 <p>
276 <a href="http://validator.w3.org/check?uri=referer"><img
277 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
278 title="Code validé XHTML 1.0"
279 style="width: 80px; height: 15px;" /></a>
280 </p>
281 </div>
283 </body>
284 </html>