wok-6.x view mirror-tools/stuff/var/www/mirror-info/index.php @ rev 7111

Fixed get-linux-source script again in linux-source (i hope). Fixed path for url file.
author Christopher Rogers <slaxemulator@gmail.com>
date Wed Nov 03 20:09:13 2010 +0000 (2010-11-03)
parents fc589526bc5c
children bea570b9faaa
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://forum.slitaz.org/">Community Forum</a></li>
42 <li><a href="http://community.slitaz.org/">Community Platform</a></li>
43 <li><a href="http://labs.slitaz.org/">SliTaz Laboratories</a></li>
44 <li><a href="http://pkgs.slitaz.org/">Packages Database</a></li>
45 <li><a href="http://boot.slitaz.org/">SliTaz Web Boot</a></li>
46 <li><a href="http://tank.slitaz.org/">SliTaz main server</a></li>
47 <li><a href="http://bb.slitaz.org/">SliTaz Build Bot</a></li>
48 <li><a href="http://hg.slitaz.org/">SliTaz Repositories</a></li>
49 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
50 <li><a href="http://www.distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
51 </ul>
52 </div>
54 <!-- End navigation menu -->
55 </div>
57 <!-- Content top. -->
58 <div id="content_top">
59 <div class="top_left"></div>
60 <div class="top_right"></div>
61 </div>
63 <!-- Content -->
64 <div id="content">
66 <h1><font color="#3E1220">Server</font></h1>
67 <h2><font color="#DF8F06">Codename: mirror</font></h2>
69 <p>
70 Mirror CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
71 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
72 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
73 "if (n == 4) printf \"quad \"; print s }' ")?> -
74 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
75 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
76 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?> -
77 Located in France next to Roubaix. This page has real time statistics
78 provided by PHP <code>system()</code>. Mirror is also monitored by RRDtool
79 which provides <a href="graphs.php">graphical stats</a>.
80 </p>
82 <h3><a href="graphs.php">
83 <img title="Mirror RRDtool graphs" src="pics/website/monitor.png" alt="graphs" />
84 </a>System stats</h3>
86 <h4>Uptime</h4>
88 <pre class="package">
89 <?php
90 system("uptime | sed 's/^\s*//'");
91 ?>
92 </pre>
94 <h4>Disk usage</h4>
95 <pre class="package">
96 <?php
97 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
98 ?>
99 </pre>
101 <h4>Network</h4>
102 <pre class="package">
103 <?php
104 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
105 ?>
106 </pre>
108 <?php if (isset($_GET["all"])) { ?>
109 <h4>Logins</h4>
110 <pre class="package">
111 <?php
112 system("last");
113 ?>
114 </pre>
116 <h4>Processes</h4>
117 <pre class="package">
118 <?php
119 system("top -n1 -b");
120 ?>
121 </pre>
122 <?php } ?>
124 <a name="vhosts"></a>
125 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=info.mirror.slitaz.org" target="_blank">
126 <img title="Mirror Virtual hosts" alt="vhosts"
127 src="pics/website/vhosts.png" /></a>Virtual hosts</h3>
129 <ul>
130 <li><a href="http://mirror.slitaz.org/">mirror.slitaz.org</a> - SliTaz Mirror.
131 (<a href="http://mirror.slitaz.org/stats" target="_blank">stats</a>)</li>
132 <li><a href="http://pizza.slitaz.org/">pizza.slitaz.org</a> - SliTaz Flavor builder.
133 (<a href="http://mirror.slitaz.org/awstats.pl?config=pizza.mirror.slitaz.org" target="_blank">stats</a>)</li>
134 <li><a href="https://ajaxterm.slitaz.org/">ajaxterm.slitaz.org</a> - Slitaz Web Console.
135 (<a href="http://mirror.slitaz.org/awstats.pl?config=ajaxterm.slitaz.org" target="_blank">stats</a>)</li>
136 </ul>
138 <a name="replicas"></a>
139 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=replicas.mirror.slitaz.org" target="_blank">
140 <img title="Tank replicas" alt="replicas"
141 src="pics/website/vhosts.png" /></a>Tank replicas</h3>
143 <ul>
144 <li><a href="http://mirror.slitaz.org/www/">www.slitaz.org</a> - SliTaz Website.
145 (<a href="http://www.slitaz.org/" target="_blank">main</a>)</li>
146 <li><a href="http://mirror.slitaz.org/pkgs/">pkgs.slitaz.org</a> - Packages Web interface.
147 (<a href="http://pkgs.slitaz.org/" target="_blank">main</a>)</li>
148 <li><a href="http://mirror.slitaz.org/hg/">hg.slitaz.org</a> - Mercurial repositories (read only).
149 (<a href="http://hg.slitaz.org/" target="_blank">main</a>
150 <a href="http://hg.tuxfamily.org/mercurialroot/slitaz/" target="_blank">tuxfamily</a>)</li>
151 <li><a href="http://mirror.slitaz.org/webboot/">boot.slitaz.org</a> - gPXE Web boot.
152 (<a href="http://boot.slitaz.org/" target="_blank">main</a>)</li>
153 </ul>
155 <a name="mirrors"></a>
156 <h3><a href="http://mirror.slitaz.org/awstats.pl?config=rsync" target="_blank">
157 <img title="Secondary mirrors" src="pics/website/vhosts.png"
158 alt="mirrors" /></a>Mirrors</h3>
159 These mirrors are updated using the url: <b>rsync://mirror.slitaz.org/slitaz/</b>
160 (<a href="http://mirror.slitaz.org/awstats.pl?config=rsync">stats</a>)
161 <ul>
162 <li><a href="http://en.utrace.de/?query=mirror.switch.ch">
163 <img title="map" src="pics/website/ch.png" alt="map" /></a>
164 <a href="http://mirror.switch.ch/ftp/mirror/slitaz/">
165 http://mirror.switch.ch/ftp/mirror/slitaz/</a> or
166 <a href="ftp://mirror.switch.ch/mirror/slitaz/">
167 ftp://mirror.switch.ch/mirror/slitaz/</a></li>
168 <li><a href="http://en.utrace.de/?query=www.gtlib.gatech.edu">
169 <img title="map" src="pics/website/us.png" alt="map" /></a>
170 <a href="http://www.gtlib.gatech.edu/pub/slitaz/">
171 http://www.gtlib.gatech.edu/pub/slitaz/</a> or
172 <a href="ftp://ftp.gtlib.gatech.edu/pub/slitaz/">
173 ftp://ftp.gtlib.gatech.edu/pub/slitaz/</a></li>
174 <li><a href="http://en.utrace.de/?query=download.tuxfamily.org">
175 <img title="map" src="pics/website/fr.png" alt="map" /></a>
176 <a href="http://download.tuxfamily.org/slitaz/">
177 http://download.tuxfamily.org/slitaz/</a></li>
178 <!-- li><a href="http://www.linuxembarque.com/slitaz/mirror/">
179 http://www.linuxembarque.com/slitaz/mirror/</a></li -->
180 <li><a href="http://en.utrace.de/?query=mirror.lupaworld.com">
181 <img title="map" src="pics/website/cn.png" alt="map" /></a>
182 <a href="http://mirror.lupaworld.com/slitaz/">
183 http://mirror.lupaworld.com/slitaz/</a></li>
184 <li><a href="http://en.utrace.de/?query=slitaz.c3sl.ufpr.br">
185 <img title="map" src="pics/website/br.png" alt="map" /></a>
186 <a href="http://slitaz.c3sl.ufpr.br/">
187 http://slitaz.c3sl.ufpr.br/</a> or
188 <a href="ftp://slitaz.c3sl.ufpr.br/slitaz/">
189 ftp://slitaz.c3sl.ufpr.br/slitaz/</a></li>
190 <li><a href="http://en.utrace.de/?query=slitaz.mirror.garr.it">
191 <img title="map" src="pics/website/it.png" alt="map" /></a>
192 <a href="http://slitaz.mirror.garr.it/mirrors/slitaz/">
193 http://slitaz.mirror.garr.it/mirrors/slitaz/</a></li>
194 <!-- li><a href="http://mirror.drustvo-dns.si/slitaz/">
195 http://mirror.drustvo-dns.si/slitaz/</a></li -->
196 <li><a href="http://en.utrace.de/?query=ftp.pina.si">
197 <img title="map" src="pics/website/si.png" alt="map" /></a>
198 <a href="ftp://ftp.pina.si/slitaz/">
199 ftp://ftp.pina.si/slitaz/</a></li>
200 <li><a href="http://en.utrace.de/?query=distro.ibiblio.org">
201 <img title="map" src="pics/website/us.png" alt="map" /></a>
202 <a href="http://distro.ibiblio.org/pub/linux/distributions/slitaz/">
203 http://distro.ibiblio.org/pub/linux/distributions/slitaz/</a></li>
204 <li><a href="http://en.utrace.de/?query=ftp.vim.org">
205 <img title="map" src="pics/website/nl.png" alt="map" /></a>
206 <a href="http://ftp.vim.org/ftp/os/Linux/distr/slitaz/">
207 http://ftp.vim.org/ftp/os/Linux/distr/slitaz/</a></li>
208 </ul>
210 <a name="builds"></a>
211 <h3><img title="Daily builds" src="pics/website/monitor.png" alt="builds" />
212 Daily builds</h3>
214 <?php
215 function display_log($file,$anchor)
216 {
217 echo '<a name="'.$anchor.'"></a>';
218 system("stat -c '<h4>%y %n</h4>' ".$file." | sed -e 's/.000000000//' -e 's|/var/log/\(.*\).log|\\1.iso|'");
219 echo "<pre>";
220 system("cat ".$file." | sed -e 's/.\[[0-9][^mG]*.//g' | awk '".
221 '{ if (/\[/) { n=index($0,"["); printf("%s%s%s\n",substr($0,1,n-1),'.
222 'substr("\t\t\t\t\t\t\t",1,9-(n/8)),substr($0,n)); } else print }'."'");
223 echo "</pre>";
224 }
226 display_log("/var/log/packages-stable.log", "buildstable" );
227 display_log("/var/log/packages-cooking.log","buildcooking");
228 display_log("/var/log/sources-cooking.log", "buildsources");
229 ?>
230 <!-- End of content with round corner -->
231 </div>
232 <div id="content_bottom">
233 <div class="bottom_left"></div>
234 <div class="bottom_right"></div>
235 </div>
237 <!-- Start of footer and copy notice -->
238 <div id="copy">
239 <p>
240 Last update : <?php echo date('r'); ?>
241 </p>
242 <p>
243 Copyright &copy; <?php echo date('Y'); ?> <a href="http://www.slitaz.org/">SliTaz</a> -
244 <a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>
245 </p>
246 <!-- End of copy -->
247 </div>
249 <!-- Bottom and logo's -->
250 <div id="bottom">
251 <p>
252 <a href="http://validator.w3.org/check?uri=referer"><img
253 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
254 title="Code validé XHTML 1.0"
255 style="width: 80px; height: 15px;" /></a>
256 </p>
257 </div>
259 </body>
260 </html>