slitaz-forge view tank/web/index.php @ rev 14

Made tank index.php use uname -p to tell what cpu have. You will need the real uname in coreutils-context-system installed for this to work right.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Feb 26 05:01:53 2011 +0000 (2011-02-26)
parents 33479b294b31
children b8119a69e3ba
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 Tank</title>
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
7 <meta name="description" content="slitaz tank 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 <a href="http://tank.slitaz.org/"><img id="logo"
18 src="pics/website/logo.png"
19 title="tank.slitaz.org" alt="tank.slitaz.org" /></a>
20 <p id="titre">#!/Tank</p>
21 </div>
23 <!-- Content -->
24 <div id="content-full">
26 <!-- Block begin -->
27 <div class="block">
28 <!-- Nav block begin -->
29 <div id="block_nav">
30 <h3><img src="pics/website/development.png" alt="png" />Devel corner</h3>
31 <ul>
32 <li><a href="http://www.slitaz.org/en/devel/">Website/devel</a></li>
33 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
34 <li><a href="http://hg.slitaz.org/">Mercurial Repos</a></li>
35 <li><a href="http://bb.slitaz.org/">Build Bot</a></li>
36 <li><a href="http://scn.slitaz.org/">Community Network</a></li>
37 <li><a href="http://people.slitaz.org/">SliTaz People</a></li>
38 </ul>
39 <!-- Nav block end -->
40 </div>
41 <!-- Top block begin -->
42 <div id="block_top">
43 <h1>Codename: tank</h1>
44 <p>
45 This is the SliTaz GNU/Linux main server and build host. The server runs
46 naturally SliTaz (stable) and provides some services to all contributors
47 such as: secure access, disk space, a public directory, cron jobs and the
48 <a href="http://bb.slitaz.org/">Build Bot</a>.
49 </p>
50 <p>
51 Tank CPU is a AMD Dual Core 2 GHz - 2GB RAM - Located next to Lausanne,
52 Switzerland and offered by Thomas Hinterberger and hosted by Christophe
53 Lincoln. Tank is also monitored by RRDtool which provides
54 <a href="graphs.php">graphical stats</a>.
55 </p>
56 <!-- Top block end -->
57 </div>
58 <!-- Block end -->
59 </div>
61 <h2><a href="graphs.php"><img
62 style="vertical-align: middle; padding: 0 4px 0 0;"
63 title="Tank RRDtool graphs" alt="graphs"
64 src="pics/website/monitor.png" /></a>System stats</h2>
66 <h4>Cpu</h4>
68 <pre class="package">
69 <?php
70 system("uname -p")
71 ?>
72 </pre>
74 <h4>Uptime</h4>
76 <pre class="package">
77 <?php
78 system("uptime | sed 's/^\s*//'");
79 ?>
80 </pre>
82 <h4>Disk usage</h4>
84 <pre class="package">
85 <?php
86 system("df -h | sed '/^rootfs/d' | grep '\(^/dev\|Filesystem\)'");
87 ?>
88 </pre>
90 <h4>Network</h4>
91 <pre class="package">
92 <?php
93 system("ifconfig eth0 | awk '{ if (/X packet/ || /X byte/) print }' | sed 's/^\s*//'");
94 ?>
95 </pre>
97 <h2><a href="/stats/awstats.pl?config=www.slitaz.org"><img
98 style="vertical-align: middle; padding: 0 4px 0 0;"
99 title="Tank Virtual hosts" alt="vhosts"
100 src="pics/website/vhosts.png" /></a>Virtual hosts</h2>
102 <ul>
103 <li><a href="http://www.slitaz.org/">www.slitaz.org</a> - SliTaz Website.
104 (<a href="/stats/awstats.pl?config=www.slitaz.org">stats</a>)</li>
105 <li><a href="http://doc.slitaz.org/">doc.slitaz.org</a> - Documentation platform.</li>
106 <li><a href="http://pkgs.slitaz.org/">pkgs.slitaz.org</a> - Packages Web interface.</li>
107 <li><a href="http://boot.slitaz.org/">boot.slitaz.org</a> - gPXE Web boot.</li>
108 <li><a href="http://hg.slitaz.org/">hg.slitaz.org</a> - Mercurial repositories.</li>
109 <li><a href="http://bb.slitaz.org/">bb.slitaz.org</a> - SliTaz Build Bot.</li>
110 <li><a href="http://people.slitaz.org/">people.slitaz.org</a> - SliTaz People stuff.</li>
111 <li><a href="http://pro.slitaz.org/">pro.slitaz.org</a> - SliTaz Professional services.</li>
112 </ul>
114 <h2><img
115 style="vertical-align: middle; padding: 0 4px 0 0;"
116 title="Erjo Virtual hosts" alt="vhosts"
117 src="pics/website/vhosts.png" />Other hosts</h2>
119 <p>
120 These services are hosted by some individual sponsors who gracefully offer
121 resources to the SliTaz project.
122 </p>
123 <ul>
124 <li><a href="http://forum.slitaz.org/">forum.slitaz.org</a> - SliTaz support forum.</li>
125 <li><a href="http://labs.slitaz.org/">labs.slitaz.org</a> - SliTaz Laboratories.</li>
126 <li><a href="http://mirror.slitaz.org/">mirror.slitaz.org</a> - SliTaz main mirror and replicas.
127 (<a href="http://mirror.slitaz.org/info/">more...</a>)</li>
128 <li><a href="http://scn.slitaz.org/">scn.slitaz.org</a> - Community platform.</li>
129 <li><a href="http://pizza.slitaz.org/">pizza.slitaz.org</a> - SliTaz flavor builder.</li>
130 </ul>
132 <h2><a href="http://mirror.slitaz.org/info/"> <img
133 style="vertical-align: middle; padding: 0 4px 0 0;"
134 src="pics/website/vhosts.png"
135 title="Secondary mirrors" alt="mirrors" /></a>Mirrors</h2>
136 <p>
137 These mirrors are updated using the url <b>rsync://mirror.slitaz.org/slitaz/</b>
138 (<a href="http://mirror.slitaz.org/awstats.pl?config=rsync">stats</a>)
139 </p>
140 <ul>
141 <li><a href="http://mirror.switch.ch/ftp/mirror/slitaz/">
142 http://mirror.switch.ch/ftp/mirror/slitaz/</a> or
143 <a href="ftp://mirror.switch.ch/mirror/slitaz/">
144 ftp://mirror.switch.ch/mirror/slitaz/</a></li>
145 <li><a href="http://download.tuxfamily.org/slitaz/">
146 http://download.tuxfamily.org/slitaz/</a></li>
147 <li><a href="http://www.linuxembarque.com/slitaz/mirror/">
148 http://www.linuxembarque.com/slitaz/mirror/</a></li>
149 <li><a href="http://mirror.lupaworld.com/slitaz/">
150 http://mirror.lupaworld.com/slitaz/</a></li>
151 <li><a href="http://slitaz.c3sl.ufpr.br/">
152 http://slitaz.c3sl.ufpr.br/</a> or
153 <a href="ftp://slitaz.c3sl.ufpr.br/slitaz/">
154 ftp://slitaz.c3sl.ufpr.br/slitaz/</a></li>
155 <li><a href="http://slitaz.mirror.garr.it/mirrors/slitaz/">
156 http://slitaz.mirror.garr.it/mirrors/slitaz/</a></li>
157 <li><a href="http://www.gtlib.gatech.edu/pub/slitaz/">
158 http://www.gtlib.gatech.edu/pub/slitaz/</a> or
159 <a href="ftp://ftp.gtlib.gatech.edu/pub/slitaz/">
160 ftp://ftp.gtlib.gatech.edu/pub/slitaz/</a></li>
161 <li><a href="ftp://ftp.pina.si/slitaz/">
162 ftp://ftp.pina.si/slitaz/</a></li>
163 </ul>
165 <!-- End of content -->
166 </div>
168 <!-- Footer -->
169 <div id="footer">
170 <div class="right_box">
171 <h4>SliTaz Network</h4>
172 <ul>
173 <li><a href="http://doc.slitaz.org/">Documentation</a></li>
174 <li><a href="http://forum.slitaz.org/">Support Forum</a></li>
175 <li><a href="http://scn.slitaz.org/">Community Network</a></li>
176 <li><a href="http://labs.slitaz.org/">Laboratories</a></li>
177 <li><a href="http://twitter.com/slitaz">SliTaz on Twitter</a></li>
178 <li><a href="http://distrowatch.com/slitaz">SliTaz on DistroWatch</a></li>
179 </ul>
180 </div>
181 <h4>SliTaz Website</h4>
182 <ul>
183 <li><a href="#header">Top of the page</a></li>
184 <li>Copyright &copy; <?php echo date('Y'); ?>
185 <a href="http://www.slitaz.org/">SliTaz</a></li>
186 <li><a href="http://www.slitaz.org/en/about/">About the project</a></li>
187 <li><a href="http://www.slitaz.org/netmap.php">Network Map</a></li>
188 <li>Page modified the <?php echo (date( "d M Y", getlastmod())); ?></li>
189 <li><a href="http://validator.w3.org/check?uri=referer"><img
190 src="pics/website/xhtml10.png" alt="Valid XHTML 1.0"
191 title="Code validé XHTML 1.0"
192 style="width: 80px; height: 15px; vertical-align: middle;" /></a></li>
193 </ul>
194 </div>
196 </body>
197 </html>