slitaz-forge view pangolin/web/index.php @ rev 579

Main mirror is mirror1.slitaz.org (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 27 11:38:44 2014 +0200 (2014-09-27)
parents 37fadd188b73
children 49a5eaf087ee
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 Pangolin</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz pangolin 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>
13 <body>
15 <!-- Header -->
16 <div id="header">
17 <div id="logo"></div>
18 <div id="network">
19 <a href="http://www.slitaz.org/">Home</a>
20 <a href="http://scn.slitaz.org/">Community</a>
21 <a href="http://doc.slitaz.org/">Doc</a>
22 <a href="http://forum.slitaz.org/">Forum</a>
23 <a href="http://irc.slitaz.org/">IRC</a>
24 <a href="http://slitaz.pro/">Pro</a>
25 <a href="http://shop.slitaz.org/">Shop</a>
26 <a href="http://bugs.slitaz.org">Bugs</a>
27 <a href="http://hg.slitaz.org/?sort=lastchange">Hg</a>
28 </div>
29 <h1><a href="http://www.slitaz.org/">SliTaz Pangolin</a></h1>
30 </div>
32 <!-- Block -->
33 <div id="block">
34 <!-- Navigation -->
35 <div id="block_nav">
36 <h4><img src="images/development.png" alt="development.png" />Developers Corner</h4>
37 <div class="right_box">
38 <ul>
39 <li><a href="http://tank.slitaz.org/">Tank Server</a></li>
40 <li><a href="http://mirror1.slitaz.org/">Main Mirror</a></li>
41 </ul>
42 </div>
43 <div class="left_box">
44 <ul>
45 <li><a href="http://www.slitaz.org/en/devel/">Devel Doc</a></li>
46 <li><a href="http://people.slitaz.org/">SliTaz People</a></li>
47 <li><a href="http://cook.slitaz.org/">Cooker</a></li>
48 <li><a href="http://pizza.slitaz.me/">Pizza Builder</a></li>
49 </ul>
50 </div>
51 </div>
52 <!-- Information/image -->
53 <div id="block_info">
54 <h4>Codename: pangolin - Maintainer: erjo</h4>
55 <p>
56 This is the SliTaz GNU/Linux main server and build host.
57 The server runs naturally SliTaz and provides some services
58 to all contributors.
59 </p>
60 <p>
61 Pangolin CPU is a <?php system("sed -e '/^model name/!d;s/.*Intel(R) //;" .
62 "s/@//;s/(.*)//;s/CPU //;s/.*AMD //;s/.*: //;s/Processor //' </proc/cpuinfo |" .
63 " awk '{ s=$0; n++ } END { if (n == 2) printf \"dual \";" .
64 "if (n == 4) printf \"quad \"; print s }' ")?> -
65 <?php system("free | awk '/Mem:/ { x=2*$2-1; while (x >= 1024) { x /= 1024; ".
66 "n++ }; y=1; while (x > 2) { x /= 2; y *= 2}; ".
67 "printf \"%d%cB RAM\",y,substr(\"MG\",n,1) }' ")?>
68 - Located in Paris,
69 France. Pangolin is also monitored by RRDtool which provides
70 <a href="graphs.php">graphical stats</a>.
71 </p>
72 </div>
73 </div>
75 <!-- Content -->
76 <div id="content">
78 <h2><a href="graphs.php"><img
79 style="vertical-align: middle; padding: 0 4px 4px 0;"
80 title="Pangolin RRDtool graphs" alt="graphs"
81 src="images/monitor.png" /></a>System stats</h2>
83 <h4>Uptime</h4>
85 <pre class="package">
86 <?php
87 system("uptime | sed 's/^\s*//'");
88 ?>
89 </pre>
91 <h4>Disk usage</h4>
92 <pre class="package">
93 <?php
94 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
95 ?>
96 </pre>
98 <h4>Network</h4>
99 <pre class="package">
100 <?php
101 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
102 ?>
103 </pre>
105 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
106 style="vertical-align: middle; padding: 0 4px 4px 0;"
107 title="Pangolin Virtual hosts" alt="vhosts"
108 src="images/network.png" /></a>Virtual hosts</h2>
110 <ul>
111 <li><a href="http://www.slitaz.org/">www.slitaz.org</a> - SliTaz Website.
112 (<a href="/stats/awstats.pl?config=www.slitaz.org">stats</a>)</li>
113 <li><a href="http://doc.slitaz.org/">doc.slitaz.org</a> - Documentation platform.</li>
114 <li><a href="http://forum.slitaz.org/">forum.slitaz.org</a> - SliTaz support forum.</li>
115 <li><a href="http://vanilla.slitaz.org/">vanilla.slitaz.org</a> - previous SliTaz forum.</li>
116 <li><a href="http://hg.slitaz.org/">hg.slitaz.org</a> - Mercurial repositories.</li>
117 <li><a href="http://pizza.slitaz.me/">pizza.slitaz.me</a> - SliTaz flavor builder.</li>
118 <li><a href="http://scn.slitaz.org/">scn.slitaz.org</a> - Community platform.</li>
119 </ul>
121 <h2><img
122 style="vertical-align: middle; padding: 0 4px 4px 0;"
123 title="Erjo Virtual hosts" alt="vhosts"
124 src="images/network.png" />Other hosts</h2>
126 <p>
127 These services are hosted by some individual sponsors who gracefully offer
128 resources to the SliTaz project.
129 </p>
130 <ul>
131 <li><a href="http://mirror.slitaz.org/">mirror1.slitaz.org</a> - SliTaz main mirror and replicas.
132 (<a href="http://mirror1.slitaz.org/info/">more...</a>)</li>
133 <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.</li>
134 <li><a href="http://tiny.slitaz.org/">tiny.slitaz.org</a> - Tiny SliTaz builder.</li>
135 <!-- ajaxterm archives console-mirror demo dvd floppy ssh usbkey -->
136 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - gPXE Web boot.</li>
137 <li><a href="http://cook.slitaz.org/">cook.slitaz.org</a> - SliTaz Build Bot.</li>
138 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.</li>
139 <li><a href="http://slitaz.pro/">slitaz.pro</a> - SliTaz Professional services.</li>
140 <!-- bb cloud ssfs stats store tank -->
141 </ul>
143 <a name="mirrors"></a>
144 <h2><a href="http://mirror1.slitaz.org/info/"> <img
145 style="vertical-align: middle; padding: 0 4px 4px 0;"
146 src="images/network.png"
147 title="Secondary mirrors" alt="mirrors" /></a>Mirrors</h2>
148 Most mirrors are updated using the url: <b>rsync://mirror1.slitaz.org/slitaz/</b>
149 (<a href="http://mirror1.slitaz.org/awstats.pl?config=rsync">stats</a>)
150 <pre>
151 rsync -azH --delete rsync://mirror1.slitaz.org/slitaz/ /local/slitaz/mirror/ </pre>
152 New mirrors should be announced on the
153 <a href="http://www.slitaz.org/en/mailing-list.html">mailing list</a>.
154 <ul>
155 <?php
156 $output_url_file="";
157 $output_url_handler;
158 $mirrors_url_file="./mirrors";
160 function test_url($link, $proto)
161 {
162 global $output_url_file;
163 global $mirrors_url_file;
164 global $output_url_handler;
166 if ($output_url_file != "") {
167 switch($proto) {
168 case "http" :
169 case "ftp" :
170 $cmd = "busybox wget -s $link/README" ;
171 break;
172 case "rsync" :
173 $cmd = "rsync $link > /dev/null 2>&1" ;
174 break;
175 default :
176 return FALSE;
177 }
178 if (shell_exec("$cmd && echo -n OK") == "OK") {
179 fwrite($output_url_handler,$link."\n");
180 return TRUE;
181 }
182 return FALSE;
183 }
184 return shell_exec("grep -qs ^$link$ $mirrors_url_file && echo -n OK") == "OK";
185 }
187 if (! file_exists($mirrors_url_file)) {
188 $output_url_file = tempnam('/tmp','mkmirrors');
189 $output_url_handler = fopen($output_url_file, "w");
190 fwrite($output_url_handler,"http://mirror1.slitaz.org/\n");
191 fwrite($output_url_handler,"rsync://mirror1.slitaz.org/\n");
192 }
194 # Flags icons from http://www.famfamfam.com/lab/icons/flags/famfamfam_flag_icons.zip
195 foreach (array(
196 array( "flag" => "ch",
197 "http" => "http://mirror.switch.ch/ftp/mirror/slitaz/",
198 "ftp" => "ftp://mirror.switch.ch/mirror/slitaz/"),
199 array( "flag" => "us",
200 "http" => "http://www.gtlib.gatech.edu/pub/slitaz/",
201 "ftp" => "ftp://ftp.gtlib.gatech.edu/pub/slitaz/",
202 "rsync" => "rsync://www.gtlib.gatech.edu/slitaz/"),
203 array( "flag" => "fr",
204 "http" => "http://download.tuxfamily.org/slitaz/",
205 "ftp" => "ftp://download.tuxfamily.org/slitaz/",
206 "rsync" => "rsync://download.tuxfamily.org/pub/slitaz/"),
207 array( "flag" => "fr",
208 "http" => "http://www.linuxembarque.com/slitaz/mirror/"),
209 array( "flag" => "cn",
210 "http" => "http://mirror.lupaworld.com/slitaz/"),
211 array( "flag" => "cn",
212 "http" => "http://ks.lupaworld.com/slitaz/"),
213 array( "flag" => "br",
214 "http" => "http://slitaz.c3sl.ufpr.br/",
215 "ftp" => "ftp://slitaz.c3sl.ufpr.br/slitaz/",
216 "rsync" => "rsync://slitaz.c3sl.ufpr.br/slitaz/"),
217 array( "flag" => "it",
218 "http" => "http://slitaz.mirror.garr.it/mirrors/slitaz/",
219 "ftp" => "ftp://slitaz.mirror.garr.it/mirrors/slitaz/",
220 "rsync" => "rsync://slitaz.mirror.garr.it/mirrors/slitaz/"),
221 array( "flag" => "si",
222 "http" => "http://mirror.drustvo-dns.si/slitaz/"),
223 array( "flag" => "si",
224 "ftp" => "ftp://ftp.pina.si/slitaz/"),
225 array( "flag" => "us",
226 "http" => "http://distro.ibiblio.org/pub/linux/distributions/slitaz/",
227 "ftp" => "ftp://distro.ibiblio.org/pub/linux/distributions/slitaz/"),
228 array( "flag" => "nl",
229 "http" => "http://ftp.vim.org/ftp/os/Linux/distr/slitaz/",
230 "ftp" => "ftp://ftp.vim.org/mirror/os/Linux/distr/slitaz/"),
231 array( "flag" => "nl",
232 "http" => "http://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/",
233 "ftp" => "ftp://ftp.nedit.org/ftp/ftp/pub/os/Linux/distr/slitaz/"),
234 array( "flag" => "ch",
235 "http" => "http://ftp.ch.xemacs.org/ftp/pool/2/mirror/slitaz/",
236 "ftp" => "ftp://ftp.ch.xemacs.org//pool/2/mirror/slitaz/"),
237 array( "flag" => "de",
238 "http" => "http://ftp.uni-stuttgart.de/slitaz/",
239 "ftp" => "ftp://ftp.uni-stuttgart.de/slitaz/"),
240 array( "flag" => "ro",
241 "http" => "http://ftp.info.uvt.ro/pub/slitaz/",
242 "ftp" => "ftp://ftp.info.uvt.ro/pub/slitaz/",
243 "rsync" => "rsync://ftp.info.uvt.ro/ftp/pub/slitaz/"),
244 array( "flag" => "au",
245 "http" => "http://mirror.iprimus.com/slitaz/"),
246 array( "flag" => "au",
247 "http" => "http://mirror01.ipgn.com.au/slitaz/"),
248 array( "flag" => "us",
249 "http" => "http://mirror.clarkson.edu/slitaz/",
250 "rsync" => "rsync://mirror.clarkson.edu/slitaz/")) as $mirror) {
251 $flag = "pics/website/".$mirror["flag"].".png";
252 $head = TRUE;
253 foreach(array("http", "ftp", "rsync") as $proto) {
254 if (!isset($mirror[$proto])) continue;
255 $link = $mirror[$proto];
256 if (!test_url($link, $proto)) continue;
257 $serveur = parse_url($link, PHP_URL_HOST);
258 if ($head) echo <<<EOT
259 <li><a href="http://en.utrace.de/?query=$serveur">
260 <img title="map" src="$flag" alt="map" /></a>
261 <a href="$link">$link</a>
262 EOT;
263 else echo <<<EOT
264 or <a href="$link">$proto</a>
265 EOT;
266 $head = FALSE;
267 }
268 if ($head) continue;
269 echo " </li>\n";
270 }
272 if ($output_url_file != "") {
273 fclose($output_url_handler);
274 rename($output_url_file, $mirrors_url_file);
275 chmod($mirrors_url_file, 0644);
276 }
278 ?>
279 </ul>
281 <!-- End of content -->
282 </div>
284 <!-- Footer -->
285 <div id="footer">
286 Copyright &copy; <span class="year"></span>
287 <a href="http://www.slitaz.org/">SliTaz</a> - Network:
288 <a href="http://scn.slitaz.org/">Community</a>
289 <a href="http://doc.slitaz.org/">Doc</a>
290 <a href="http://forum.slitaz.org/">Forum</a>
291 <a href="http://pkgs.slitaz.org/">Packages</a>
292 <a href="http://bugs.slitaz.org">Bugs</a>
293 <a href="http://hg.slitaz.org/">Hg</a>
294 <p>
295 SliTaz @
296 <a href="http://twitter.com/slitaz">Twitter</a>
297 <a href="http://www.facebook.com/slitaz">Facebook</a>
298 <a href="http://distrowatch.com/slitaz">Distrowatch</a>
299 <a href="http://en.wikipedia.org/wiki/SliTaz">Wikipedia</a>
300 <a href="http://flattr.com/profile/slitaz">Flattr</a>
301 </p>
302 </div>
304 </body>
305 </html>