doc: link images removed

doc: stylesheet improved
encoding changed from utf-8 to utf-16
This commit is contained in:
lars 2005-09-05 22:33:23 +00:00
parent 989a64d3d7
commit 7dcc84c75b
17 changed files with 224 additions and 203 deletions

View File

@ -178,7 +178,7 @@ case "$1" in
ssh -F "$SSH_CONFIG_FILE" "$SSH_HOST"
;;
help|--help )
echo "Syntax: `basename $0` ( qemu | chroot | upload | diff | merge | help )"
echo "Syntax: `basename $0` ( qemu | chroot | upload | diff | merge | ssh | help )"
echo
;;
* )

View File

@ -41,5 +41,6 @@ if [ $# -gt 0 ]
fi
umount -n "$MNT_DST"
umount -n proc
# check for an active chroot environment
[ -z "$(ps -e | grep chroot-start.sh)" ] && umount -n proc
rm -r "$TMP_DIR"

View File

@ -1,4 +1,4 @@
<div class="doc">
<div id="doc">
<?cs include:DocDir + '/' + Data.Doc.Page + '.html' ?>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-16"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CryptoBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />

View File

@ -75,14 +75,14 @@
<h2 id="head-97e3ed911f9a14c537e247a2719dc86b73056dde">Überblick</h2>
<p>Die CryptoBox ist eine <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Live-cd"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">Live-CD</a> mit der sich jeder alte Rechner in Sekundenschnelle in einen verschlüsselnden Server umwandeln lässt. Damit kannst du sensible Daten speichern, ohne dass du etwas über <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Kryptografie"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">Kryptografie</a> wissen musst. </p>
<p>Die CryptoBox ist eine <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Live-cd">Live-CD</a> mit der sich jeder alte Rechner in Sekundenschnelle in einen verschlüsselnden Server umwandeln lässt. Damit kannst du sensible Daten speichern, ohne dass du etwas über <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Kryptografie">Kryptografie</a> wissen musst. </p>
<h3 id="head-b44206765ef44c91cbfd0ba23b33b43a192eeb8d">Was kann die CryptoBox?</h3>
<ul>
<li><p> Ein vollständiger <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Samba_%28Software%29"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">Samba</a>-Dateiserver (für alle freien Betriebssysteme, sowie Windows und Mac OS) bietet Zugriff auf deine Daten. </p>
<li><p> Ein vollständiger <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Samba_%28Software%29">Samba</a>-Dateiserver (für alle freien Betriebssysteme, sowie Windows und Mac OS) bietet Zugriff auf deine Daten. </p>
</li>
<li><p> Deine Daten werden mit <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Advanced_Encryption_Standard"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">AES</a> verschlüsselt (256 Bit Schlüssellänge). </p>
<li><p> Deine Daten werden mit <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> verschlüsselt (256 Bit Schlüssellänge). </p>
</li>
<li><p> Die Web-Oberfläche bietet dir kinderleichten Zugriff auf alle Funktionen der CryptoBox. </p>
<ul>
@ -90,7 +90,7 @@
</li>
<li><p> Konfiguration der Netzwerk- und Sicherheitseinstellungen </p>
</li>
<li><p> Abgesehen von deinem <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Webbrowser"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">Browser</a> brauchst du keine weiteren Programme </p>
<li><p> Abgesehen von deinem <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Webbrowser">Browser</a> brauchst du keine weiteren Programme </p>
</li>
</ul>
</li>
@ -144,7 +144,7 @@
<p>unterstützte Clients</p>
</td>
<td>
<p><a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Liste_der_Betriebssysteme"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">*nix; *bsd; Windows; Mac OS</a></p>
<p><a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Liste_der_Betriebssysteme">*nix; *bsd; Windows; Mac OS</a></p>
</td>
</tr>
<tr>
@ -152,7 +152,7 @@
<p>interner Fileserver</p>
</td>
<td>
<p><a class="external" href="http://samba.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> samba</a> (Netzwerkfreigaben)</p>
<p><a class="external" href="http://samba.org">samba</a> (Netzwerkfreigaben)</p>
</td>
</tr>
<tr>
@ -160,7 +160,7 @@
<p>Benutzerschnittstelle</p>
</td>
<td>
<p>per Browser bedienbar (<a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Perl"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">Perl</a>-Webinterface via https)</p>
<p>per Browser bedienbar (<a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Perl">Perl</a>-Webinterface via https)</p>
</td>
</tr>
<tr>
@ -168,7 +168,7 @@
<p>Verschlüsselung</p>
</td>
<td>
<p><a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Advanced_Encryption_Standard"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">AES</a> via device-mapper</p>
<p><a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> via device-mapper</p>
</td>
</tr>
</table>
@ -181,7 +181,7 @@
<h3 id="head-52db644c60a52bcaed2c809cb51e1255bec6eb6e">Einrichtung</h3>
<ol type="1">
<li><p>Lade dir ein <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/ISO-Image"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">iso-Image</a> aus dem <a class="external" href="https://systemausfall.org/toolforge/cryptobox/download"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Download-Bereich</a> herunter. <em>[Die Entwicklung der CryptoBox befindet sich noch in einer frühen Phase. Momentan testen wir die ersten lauffähigen, funktionstüchtigen Versionen. In wenigen Tagen wird das erste Release verfügbar sein.]</em> </p>
<li><p>Lade dir ein <a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/ISO-Image">iso-Image</a> aus dem <a class="external" href="https://systemausfall.org/toolforge/cryptobox/download">Download-Bereich</a> herunter. <em>[Die Entwicklung der CryptoBox befindet sich noch in einer frühen Phase. Momentan testen wir die ersten lauffähigen, funktionstüchtigen Versionen. In wenigen Tagen wird das erste Release verfügbar sein.]</em> </p>
</li>
<li><p>Kopiere dieses Image auf eine CD (RW). </p>
</li>
@ -214,7 +214,7 @@
<p>Du hast einen Verbesserungsvorschlag oder findest gar einen Fehler: </p>
<ul>
<li><p> Schreib's in unsere <a class="external" href="https://systemausfall.org/trac/cryptobox"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Gedankensammelstelle</a> - wir beheben das Problem oder nehmen, bei Unklarheiten, Kontakt mit dir auf. </p>
<li><p> Schreib's in unsere <a class="external" href="https://systemausfall.org/trac/cryptobox">Gedankensammelstelle</a> - wir beheben das Problem oder nehmen, bei Unklarheiten, Kontakt mit dir auf. </p>
</li>
</ul>
@ -234,9 +234,9 @@
</li>
<li><p> das System ist resistent gegenüber Schadsoftware (Viren, Würmer), da die CD nicht beschreibbar ist </p>
</li>
<li><p> die Übertragung des Passworts zur Aktivierung der Crypto-Daten erfolgt verschlüsselt (<a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/HTTPS"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPediaDe]" height="16" width="16">HTTPS</a>) </p>
<li><p> die Übertragung des Passworts zur Aktivierung der Crypto-Daten erfolgt verschlüsselt (<a class="interwiki" title="WikiPediaDe" href="http://de.wikipedia.org/wiki/HTTPS">HTTPS</a>) </p>
</li>
<li><p> basiert auf einer der stabilsten und sichersten Linux Distributionen (<a class="external" href="http://ww.debian.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian</a>) </p>
<li><p> basiert auf einer der stabilsten und sichersten Linux Distributionen (<a class="external" href="http://ww.debian.org">Debian</a>) </p>
</li>
<li><p> minimale Hardware-Anforderungen </p>
</li>
@ -258,7 +258,7 @@
<p>Eine CryptoBox-LiveCD wird in folgenden Schritten erstellt: </p>
<ol type="1">
<li><p>ein minimales <a class="external" href="http://www.debian.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian</a>-System erzeugen (mit <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=dfsbuild"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">dfsbuild</a>) </p>
<li><p>ein minimales <a class="external" href="http://www.debian.org">Debian</a>-System erzeugen (mit <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=dfsbuild">dfsbuild</a>) </p>
</li>
<li><p>spezifische Anpassungen des Systems vornehmen </p>
</li>
@ -273,9 +273,9 @@
<h3 id="head-ecfc074956b9f39a0fbfab314758db9cf39df4ce">Anforderungen</h3>
<ul>
<li><p> ein <a class="external" href="http://www.debian.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian</a>-System (eine <em>chroot</em>-Umgebung genügt auch) </p>
<li><p> ein <a class="external" href="http://www.debian.org">Debian</a>-System (eine <em>chroot</em>-Umgebung genügt auch) </p>
</li>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=qemu"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">qemu</a> zum Testen des erzeugten Systems in einer virtuellen Umgebung </p>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=qemu">qemu</a> zum Testen des erzeugten Systems in einer virtuellen Umgebung </p>
</li>
</ul>
@ -286,14 +286,14 @@
<h3 id="head-64a0a5e5f036e433b2a7101016e6e6af96f5a29d">Versionsverwaltung</h3>
<p>Wir verwenden <a class="external" href="http://subversion.tigris.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> subversion</a> zur Koordination der Arbeit an der CryptoBox. Der Lese-Zugang zum Repository ist öffentlich. </p>
<p>Wir verwenden <a class="external" href="http://subversion.tigris.org">subversion</a> zur Koordination der Arbeit an der CryptoBox. Der Lese-Zugang zum Repository ist öffentlich. </p>
<p>Das Repository ist über folgende Adressen erreichbar: </p>
<dl>
<dt>Kommandozeile</dt>
<dd><p><a href="https://svn.systemausfall.org/svn/cryptobox"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> https://svn.systemausfall.org/svn/cryptobox</a> </p>
<dd><p><a href="https://svn.systemausfall.org/svn/cryptobox">https://svn.systemausfall.org/svn/cryptobox</a> </p>
</dd>
<dt>Web-Interface</dt>
<dd><p><a href="https://systemausfall.org/websvn/cryptobox"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> https://systemausfall.org/websvn/cryptobox</a> </p>
<dd><p><a href="https://systemausfall.org/websvn/cryptobox">https://systemausfall.org/websvn/cryptobox</a> </p>
</dd>
</dl>
@ -319,9 +319,9 @@
<h2 id="head-a3671f2dd22b53b402496f62c4f62c847220f2a1">Rechtliches</h2>
<ol type="1">
<li><p>Alle Skripte unterliegen der <a class="external" href="http://www.fsf.org/licensing/licenses/gpl.html"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> GPL</a> - sie sind also quasi vollständig frei. </p>
<li><p>Alle Skripte unterliegen der <a class="external" href="http://www.fsf.org/licensing/licenses/gpl.html">GPL</a> - sie sind also quasi vollständig frei. </p>
</li>
<li><p>Die Dokumentation unterliegt einer <em><a class="external" href="http://creativecommons.org/licenses/by-sa/2.5/"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Creative Commons</a></em>-Lizenz, damit wird die Möglichkeit der freien Verbreitung des gesammelten Wissens gewährleistet. </p>
<li><p>Die Dokumentation unterliegt einer <em><a class="external" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Commons</a></em>-Lizenz, damit wird die Möglichkeit der freien Verbreitung des gesammelten Wissens gewährleistet. </p>
</li>
<li><p>Wir übernehmen keinerlei Haftung für eventuelle Folgen, die durch die Nutzung einer CryptoBox entstehen könnten. </p>
</li>

View File

@ -86,6 +86,10 @@
</li>
<li><p> <a href="/cryptobox?action=doc&page=CryptoBoxDevCustomBuild">CryptoBoxDevCustomBuild</a> </p>
</li>
<li><p> <a href="/cryptobox?action=doc&page=CryptoBoxDevCustomConfigure">CryptoBoxDevCustomConfigure</a> </p>
</li>
<li><p> <a href="/cryptobox?action=doc&page=CryptoBoxDevValidation">CryptoBoxDevValidation</a> </p>
</li>
</ul>
<h2 id="head-6eb518f032b739c4ddc4336b19cefd3fa16e20aa">Komponenten</h2>
@ -94,9 +98,9 @@
<h3 id="head-734d8f8dd2dc75137657154aab53d33f64f891bd">dfsbuild</h3>
<p>Das Linux Grundsystem für die <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> CD wird mit <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=dfsbuild"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">dfsbuild</a> gebaut. Das ist ein Programm, welches eine <a class="external" href="http://www.debian.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian</a> Live-CD erzeugt.<br>
<p>Das Linux Grundsystem für die <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> CD wird mit <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=dfsbuild">dfsbuild</a> gebaut. Das ist ein Programm, welches eine <a class="external" href="http://www.debian.org">Debian</a> Live-CD erzeugt.<br>
<em>(Wir entwickeln die <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> bisher auf Debian/Linux-Systemen. Prinzipiell dürfte es auch mit deiner Lieblingsdistro funktionieren, nur der anfängliche Einrichtungsaufwand wird dadurch größer.)</em> </p>
<p>Für "dfsbuild" bietet sich <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">apt-cacher</a> an. Damit brauchst du nicht für jeden Bau des Grundsystems alle Debian-Pakete erneut herunter laden. </p>
<p>Für "dfsbuild" bietet sich <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher">apt-cacher</a> an. Damit brauchst du nicht für jeden Bau des Grundsystems alle Debian-Pakete erneut herunter laden. </p>
<p>Installation: </p>
<ul>
<li><p> <tt>apt-get&nbsp;install&nbsp;dfsbuild&nbsp;apt-cacher</tt> </p>
@ -104,16 +108,16 @@
</ul>
<p>Die <em>dfsbuild</em>-Dokumentation ist noch recht spärlich. Du kommst aber kaum in direkten Kontakt mit <em>dfsbuild</em>, da es durch 'cbox-build' aufgerufen wird. Die folgenden Links helfen dir vielleicht trotzdem weiter: </p>
<ul>
<li><p> <a class="external" href="http://www.debian-administration.org/articles/125"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian Administration: Building Debian CD-ROMS Part 1 - dfsbuild</a> </p>
<li><p> <a class="external" href="http://www.debian-administration.org/articles/125">Debian Administration: Building Debian CD-ROMS Part 1 - dfsbuild</a> </p>
</li>
<li><p> <a class="external" href="http://www.debian-administration.org/articles/149"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian Administration: Getting in deep with dfsbuild</a> </p>
<li><p> <a class="external" href="http://www.debian-administration.org/articles/149">Debian Administration: Getting in deep with dfsbuild</a> </p>
</li>
</ul>
<h3 id="head-693b97f1f140e361364dcc277c0afa779430f527">cbox-build</h3>
<p>Die wichtige Kleinarbeit, damit aus dem dfsbuild-System eine <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> wird, erledigt <em>cbox-build.sh</em>.<br>
Das Script und die bestehenden Konfigurationsdateien liegen im <a class="interwiki" title="SubVersion" href="/websvn/cryptobox"><img src="/cryptobox-img/moin-inter.png" alt="[SubVersion]" height="16" width="16">cryptobox-Repository</a>. </p>
Das Script und die bestehenden Konfigurationsdateien liegen im <a class="interwiki" title="SubVersion" href="/websvn/cryptobox">cryptobox-Repository</a>. </p>
<p>Mit diesem Script baust du deine eigene <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a>-CD. Hier ein verkürzter Überblick: </p>
<div>
<table>
@ -319,7 +323,7 @@
<ul>
<li><p> Du brauchst etwa 1GB Plattenplatz für den Bau einer Cryptobox. Das eigentliche CD-Image wird aber nur knapp 250MB groß. </p>
</li>
<li><p> Für <em>dfsbuild</em> bietet sich <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">apt-cacher</a> an. Damit müssen die Debian-Pakete nicht bei jedem neuen <em>dfsbuild</em>-Vorgang erneut heruntergeladen werden. </p>
<li><p> Für <em>dfsbuild</em> bietet sich <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher">apt-cacher</a> an. Damit müssen die Debian-Pakete nicht bei jedem neuen <em>dfsbuild</em>-Vorgang erneut heruntergeladen werden. </p>
</li>
<li><p> cbox-build muss für folgende Vorgänge mit root Rechten laufen: <tt>dfsbuild,&nbsp;config,&nbsp;chroot,&nbsp;revert</tt> </p>
</li>
@ -360,7 +364,7 @@ CONFIG_TUN=m</pre>
<a id="bottom"></a>
</div>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 16:19:53 by <span title="">lars</span></p>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 20:22:46 by <span title="">lars</span></p>
</div> <!-- end page -->

View File

@ -0,0 +1,68 @@
<a id="top"></a>
<ol>
<li>
<a href="#head-eaec6be4efea7b38c41712778bfd4fb8d2827d3c">Overview</a>
</li>
<li>
<a href="#head-51173f0423ca91d36cd0cfcdc75a06d90cc087ee">Locations</a>
</li>
<li>
<a href="#head-9b9b6463081c4d9d13e3aadebe9daaf61fa67b5c">Examples</a>
</li>
</ol>
<p> </p>
<hr>
<p> </p>
<p><em>back to <a href="/cryptobox?action=doc&page=CryptoBoxDev">CryptoBoxDev</a></em> </p>
<h2 id="head-eaec6be4efea7b38c41712778bfd4fb8d2827d3c">Overview</h2>
<p>You may change nearly every aspect of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> by using the custom configuration hook directory. </p>
<p>Any script inside of this directory will be executed after the default configuration procedure (see <a href="/cryptobox?action=doc&page=CryptoBoxDevWorkFlow">CryptoBoxDevWorkFlow</a>). </p>
<p>The order of execution is defined by the names of the scripts (alphabetically). </p>
<h2 id="head-51173f0423ca91d36cd0cfcdc75a06d90cc087ee">Locations</h2>
<p>Some example customization scripts can be found in <em>configure-examples.d/</em>. </p>
<p>You may put your scripts into <em>configure-local.d/</em>. They will be sourced by <em>cbox-build.sh</em>. </p>
<h2 id="head-9b9b6463081c4d9d13e3aadebe9daaf61fa67b5c">Examples</h2>
<p>The examples in <em>configure-examples.d/</em> can be copied to <em>configure-local.d/</em> and adjusted to your needs. </p>
<dl>
<dt>set_default_ip</dt>
<dd><p>change the default IP address of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> </p>
</dd>
<dt>set_default_language</dt>
<dd><p>set the default language </p>
</dd>
<dt>set_default_timeout</dt>
<dd><p>set the default idle time for automatic unmounting </p>
</dd>
<dt>set_hostname</dt>
<dd><p>change the default hostname </p>
</dd>
<dt>set_root_pw</dt>
<dd><p>change the password of root (only useful for a development <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a>) </p>
</dd>
<dt>import_authorized_keys</dt>
<dd><p>upload a <em>ssh</em> key for passwordless access to a development <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> </p>
</dd>
<dt>set_scan_devices</dt>
<dd><p>where to look for usable harddisks </p>
</dd>
</dl>
<a id="bottom"></a>
</div>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 20:16:37 by <span title="">lars</span></p>
</div> <!-- end page -->

View File

@ -26,27 +26,29 @@
<h2 id="head-5b50aeed8139c95e5a2670d4248978d942c5edd6">Software requirements</h2>
<p>We use <a class="external" href="http://debian.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> Debian</a> as our development environment. This was a natural choice, as the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a>-LiveCD is also based on Debian. Other distributions should work too, of course - <a class="interwiki" title="Acronym" href="http://www.acronymfinder.com/af-query.asp?String=exact&amp;Acronym=YMMV"><img src="/cryptobox-img/moin-inter.png" alt="[Acronym]" height="16" width="16">YMMV</a>. </p>
<p>We use <a class="external" href="http://debian.org">Debian</a> as our development environment. This was a natural choice, as the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a>-LiveCD is also based on Debian. Other distributions should work too, of course - <a class="interwiki" title="Acronym" href="http://www.acronymfinder.com/af-query.asp?String=exact&amp;Acronym=YMMV">YMMV</a>. </p>
<p>required: </p>
<ul>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=dfsbuild"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">dfsbuild</a> </p>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=dfsbuild">dfsbuild</a> </p>
</li>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=subversion"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">subversion</a> </p>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=subversion">subversion</a> </p>
</li>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=chroot"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">chroot</a> </p>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=chroot">chroot</a> </p>
</li>
</ul>
<p>recommended: </p>
<ul>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">apt-cacher</a> or <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-proxy"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">apt-proxy</a> </p>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher">apt-cacher</a> or <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-proxy">apt-proxy</a> </p>
</li>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=qemu"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">qemu</a> </p>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=qemu">qemu</a> </p>
</li>
<li><p> <a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=curl">curl</a> </p>
</li>
</ul>
<h2 id="head-e988a63aa4744649892e3c85e239927edb01f336">Get the source</h2>
<p>Download the latest release from our <a class="external" href="http://subversion.tigris.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> subversion</a>-Repository:
<p>Download the latest release from our <a class="external" href="http://subversion.tigris.org">subversion</a>-Repository:
</p>
<pre>
svn checkout https://svn.systemausfall.org/svn/cryptobox/trunk </pre>
@ -64,7 +66,7 @@ svn checkout https://svn.systemausfall.org/svn/cryptobox/trunk </pre>
<a id="bottom"></a>
</div>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 13:50:51 by <span title="">lars</span></p>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 18:48:32 by <span title="">lars</span></p>
</div> <!-- end page -->

View File

@ -0,0 +1,61 @@
<a id="top"></a>
<ol>
<li>
<a href="#head-5e20146fd39363329427c6251209cccb8d374f3e">Overview</a>
</li>
<li>
<a href="#head-6e1d416048c4d8ebfb5b3919b4d924c77e652a7b">Validate</a>
</li>
<li>
<a href="#head-5634566bd24f83d397b43525fc62685f6e678fbf">How to create a test</a>
</li>
</ol>
<p> </p>
<hr>
<p> </p>
<h2 id="head-5e20146fd39363329427c6251209cccb8d374f3e">Overview</h2>
<p>The validation feature allows to check the programming logic of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a>. A lot of test cases are defined to test as many functions of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> as possible. </p>
<p>The requests are processed with <a class="external" href="http://curl.haxx.se/">curl</a>. </p>
<p>The received web page is saved to allow a later design review or css debugging. </p>
<p>The current state of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> is represented by ten single values (e.g.: <em>box is configured</em>, <em>IP of the box</em>, <em>current language setting</em>, ...), which are invisibly a part of each html page (as comments). The returned status of every request is compared to the predicted value of the test case. </p>
<p>Similar test cases are pooled into test groups (e.g.: <em>initialization</em>, <em>configuration</em> and <em>mounting</em>). </p>
<h2 id="head-6e1d416048c4d8ebfb5b3919b4d924c77e652a7b">Validate</h2>
<p>Run <tt>tools/validate.sh&nbsp;check_all</tt> to conduct all tests of all groups. See <tt>tools/validate.sh&nbsp;help</tt> for other actions. </p>
<p>The results will be saved at <em>validation/report</em>. </p>
<p>In addition to every single retrieved page, a html page called <em>summary.html</em> is created, which contains the state checks of all tests in a group. </p>
<h2 id="head-5634566bd24f83d397b43525fc62685f6e678fbf">How to create a test</h2>
<p>All test cases can be found in <em>validation/test-cases</em>. </p>
<p>Every test consists of: </p>
<dl>
<dt>input.curl</dt>
<dd><p>the configuration file for the <em>curl</em> request </p>
</dd>
<dt>output</dt>
<dd><p>the predicted state of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> after the call </p>
</dd>
<dt>description</dt>
<dd><p>a short description of the test (will be used for the summary) </p>
</dd>
</dl>
<p>Use the existing test cases as a template for new tests. </p>
<p>Any logical branch of the web interface CGI should be validated by a test case. </p>
<a id="bottom"></a>
</div>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 19:48:55 by <span title="">lars</span></p>
</div> <!-- end page -->

View File

@ -82,7 +82,7 @@
<p>Run <tt>./cbox-build.sh&nbsp;dfsbuild</tt> to create the base system for the LiveCD. </p>
<p>The result can be found in <em>_builddir/cd1/image</em>. </p>
<p>If you do not want to use the <em><a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher"><img src="/cryptobox-img/moin-inter.png" alt="[DebianPackage]" height="16" width="16">apt-cacher</a></em> to save bandwith and time, then you should modify the <em>mirror</em>-setting in <em>dfs.cbox.conf</em> (see <a href="/cryptobox?action=doc&page=CryptoBoxDevCustomBuild">CryptoBoxDevCustomBuild</a> for details). </p>
<p>If you do not want to use the <em><a class="interwiki" title="DebianPackage" href="http://packages.debian.org/cgi-bin/search_packages.pl?searchon=names&amp;subword=1&amp;version=all&amp;release=all&amp;keywords=apt-cacher">apt-cacher</a></em> to save bandwith and time, then you should modify the <em>mirror</em>-setting in <em>dfs-cbox.conf</em> (see <a href="/cryptobox?action=doc&page=CryptoBoxDevCustomBuild">CryptoBoxDevCustomBuild</a> for details). </p>
<h3 id="head-b12afd5dca3afd8290b311944f1dd1ab3d16fa6f">Configure the base image</h3>
@ -112,12 +112,12 @@
<h3 id="head-25203ae5362d0bbc82ec84b349fb463c1e615b48">Chroot: quick &amp; dirty tests</h3>
<p>If you modified the <em>perl</em>- or <em>shell</em>-scripts of the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a>, then you can check for syntax errors by running them in a <em>chroot</em> environment. Be careful: you have access to all ressources of your computer, while you are working within a <em>chroot</em> environment - so you can easily repartition your real disk ... </p>
<p>To start a <em>chroot</em> environment, you can execute <tt>./cbox-build.sh&nbsp;chroot</tt>. </p>
<p>To start a <em>chroot</em> environment, you can execute <tt>./cbox-dev.sh&nbsp;chroot</tt>. </p>
<p>For more intensive tests, you may use <em>qemu</em> (see below) or burn real LiveCDs - of course this would take much more time. </p>
<h3 id="head-2278b94f0a24871a501d80c4e6e0c53d1f5621ca">Qemu: nearly complete emulation</h3>
<p>The processor emulator <a class="external" href="http://fabrice.bellard.free.fr/qemu"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> qemu</a> allows you test the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> in a virtual environment, that is completely separated from your real computer's resources. It is the tool of choice, if you do nat have a real computer around for testing. </p>
<p>The processor emulator <a class="external" href="http://fabrice.bellard.free.fr/qemu">qemu</a> allows you test the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> in a virtual environment, that is completely separated from your real computer's resources. It is the tool of choice, if you do nat have a real computer around for testing. </p>
<p>Beware - there are some problems, when using <em>qemu</em>: </p>
<ul>
<li><p> <em>smbd</em> does not start (segfault) </p>
@ -125,27 +125,27 @@
<li><p> ??? </p>
</li>
</ul>
<p>To start a <em>qemu</em> emulation of the <em>iso</em> image, you may type: <tt>./cbox-build.sh&nbsp;qemu</tt>. </p>
<p>To start a <em>qemu</em> emulation of the <em>iso</em> image, you may type: <tt>./cbox-dev.sh&nbsp;qemu</tt>. </p>
<h2 id="head-0692ec42b1a03fdbc5eb920dd05b86c5f04130e6">Debugging and merging</h2>
<p>This section is only useful for developers, who want to develop on a running <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> system (emulated or real). </p>
<p>You may access the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> directly or you can use <em>ssh</em> to open a remote session (<tt>./cbox-build.sh&nbsp;ssh</tt>). </p>
<p>You may access the <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> directly or you can use <em>ssh</em> to open a remote session (<tt>./cbox-dev.sh&nbsp;ssh</tt>). </p>
<h3 id="head-b163acd694c2681db27c18414367513219cfc06f">Development on a running system</h3>
<p>When you run an emulation or test a real LiveCD, you may encounter problems and bugs. To test your fixes for these problems, it is convenient, to change the running test system. Afterwards you can merge these changes to your local development copy. </p>
<p>Type <tt>./cbox-build.sh&nbsp;diff</tt> to see the changes, you made on the running <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> system. </p>
<p>Type <tt>./cbox-build.sh&nbsp;merge</tt> to merge these changes to your local working copy. </p>
<p>Type <tt>./cbox-dev.sh&nbsp;diff</tt> to see the changes, you made on the running <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> system. </p>
<p>Type <tt>./cbox-dev.sh&nbsp;merge</tt> to merge these changes to your local working copy. </p>
<h3 id="head-4bfb5d81f79e604fd8a4eb20a6d709bc65562fe3">Uploading a new release</h3>
<p>Alternatively you may also upload a new version of your local working copy to the running <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> system. </p>
<p>Type <tt>./cbox-build.sh&nbsp;upload</tt> - beware: all recent changes you made to the running <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> system, are lost. </p>
<p>Type <tt>./cbox-dev.sh&nbsp;upload</tt> - beware: all recent changes you made to the running <a href="/cryptobox?action=doc&page=CryptoBox">CryptoBox</a> system, are lost. </p>
<a id="bottom"></a>
</div>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 16:13:58 by <span title="">lars</span></p>
<p id="pageinfo" class="info" lang="en" dir="ltr">last edited 2005-09-05 19:45:51 by <span title="">lars</span></p>
</div> <!-- end page -->

View File

@ -32,7 +32,7 @@
<p>supported clients</p>
</td>
<td>
<p><a class="interwiki" title="WikiPedia" href="http://en.wikipedia.org/wiki/Operating_System"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPedia]" height="16" width="16">*nix; *bsd; Windows; Mac OS</a></p>
<p><a class="interwiki" title="WikiPedia" href="http://en.wikipedia.org/wiki/Operating_System">*nix; *bsd; Windows; Mac OS</a></p>
</td>
</tr>
<tr>
@ -40,7 +40,7 @@
<p>internal fileserver</p>
</td>
<td>
<p><a class="external" href="http://samba.org"><img src="/cryptobox-img/moin-www.png" alt="[WWW]" height="11" width="11"> samba</a> (Networkshares)</p>
<p><a class="external" href="http://samba.org">samba</a> (Networkshares)</p>
</td>
</tr>
<tr>
@ -56,7 +56,7 @@
<p>encryption</p>
</td>
<td>
<p><a class="interwiki" title="WikiPedia" href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard"><img src="/cryptobox-img/moin-inter.png" alt="[WikiPedia]" height="16" width="16">AES</a> via device-mapper</p>
<p><a class="interwiki" title="WikiPedia" href="http://en.wikipedia.org/wiki/Advanced_Encryption_Standard">AES</a> via device-mapper</p>
</td>
</tr>
</table>
@ -64,7 +64,7 @@
<h3 id="head-8d738f62cb1a70005c64de686c424efe89f07ad2">Development</h3>
<p>Browse the source code in the <a class="interwiki" title="SubVersion" href="/websvn/cryptobox"><img src="/cryptobox-img/moin-inter.png" alt="[SubVersion]" height="16" width="16">CryptoBox-websvn</a> </p>
<p>Browse the source code in the <a class="interwiki" title="SubVersion" href="/websvn/cryptobox">CryptoBox-websvn</a> </p>
<h3 id="head-f5510e22bd4e832da55c40e1e95886a46fc05b7e">TODO</h3>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

View File

@ -17,7 +17,7 @@ body {
margin-right: auto;
}
#main h1, h2 {
#main h1, h2, h3 {
font-family: sans-serif, arial;
font-weight: normal;
letter-spacing: 0.05em;
@ -35,6 +35,10 @@ body {
font-size: 1.5em;
}
#main h3 {
font-size: 1.2em;
}
#head {
width: 600px;
height: 120px;
@ -71,7 +75,6 @@ body {
#content p {
font-size: 0.9em;
text-indent: 1em;
padding: 0 1em;
text-align: justify;
}
@ -288,7 +291,28 @@ button:hover {
/* ------------=-=-=- documentation -=-=-=------------- */
// #doc { }
#doc ol,ul li {
text-align: left;
margin-left: 20px;
}
#doc dl dt {
text-align: left;
margin-left: 20px;
font-style: italic;
}
#doc h1 {
padding-top: 25px;
}
#doc h2 {
padding-top: 20px;
}
#doc h3 {
padding-top: 10px;
}
/* ------------=-=-=- special things -=-=-=------------- */

View File

@ -5,7 +5,7 @@ set -u
ROOT_DIR="$(dirname $(dirname $0))"
# retrieve these pages from the wiki
PAGES="CryptoBox CryptoBoxDev CryptoBoxKonzept CryptoBoxEn CryptoBoxDevPreparation CryptoBoxDevCustomBuild CryptoBoxDevWorkFlow"
PAGES="CryptoBox CryptoBoxDev CryptoBoxKonzept CryptoBoxEn CryptoBoxDevPreparation CryptoBoxDevCustomBuild CryptoBoxDevWorkFlow CryptoBoxDevValidation CryptoBoxDevCustomConfigure"
# base URL
WIKI_HOST="https://systemausfall.org"
@ -37,11 +37,11 @@ for PAGE in $PAGES; do
# remove all lines before and after "body"
sed -i '1,/_END_OF_HEADER_/d; /_START_OF_FOOTER_/,$d' "$TMP_FILE"
#echo " adding header and footer ..."
#[ -e "${TMP_FILE}.0" ] && rm "${TMP_FILE}.0"
#mv "$TMP_FILE" "${TMP_FILE}.0"
#cat "$HEADER_FILE" "${TMP_FILE}.0" "$FOOTER_FILE" >"$TMP_FILE"
#rm "${TMP_FILE}.0"
echo " removing link images (moin specific) ..."
# remove inter-wiki images
sed -i 's#<[^<]*moin-inter.png[^>]*>##g' "$TMP_FILE"
# remove moin-www images
sed -i 's#<[^<]*moin-www.png[^>]*> ##g' "$TMP_FILE"
echo " downloading requisites ..."
wget --quiet --ignore-tags=a --no-clobber --page-requisites --convert-links --no-parent --no-directories --base="$WIKI_HOST$WIKI_URL" --directory-prefix="$TMP_DIR" --html-extension --force-html --input-file="$TMP_FILE" || { echo "Downloading requisites for ($PAGE_SRC) failed!"; exit 1; }

View File

@ -1,139 +0,0 @@
#!/bin/sh
set -eu
# parse config file
. /etc/cryptobox/cryptobox.conf
function get_cgi_param()
# parse the query string for a parameter
{
# thttpd does not set query string if it is empty
set | grep -q "^QUERY_STRING=" || return 0
# filter the value
echo "$QUERY_STRING" | sed 's/&/\n/g' | grep "^$1=" | cut -d '=' -f 2-
}
function header()
{
echo "Content-Type: text/html"
echo
echo '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CryptoBox</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
</head>
<body>'
echo "<p align=\"right\"><a href=\"$SCRIPT_NAME\">Main page</a></p>"
# nav bar
echo '<div id="groups_generate">'
list_groups4generate
echo '</div>'
echo '<div id="groups_display">'
list_groups4display
echo '</div>'
echo '<p><hr/></p>'
if [ -n "$GROUP" ]
then echo '<div id="cases" style="float:left">'
list_cases "$GROUP"
echo '</div>'
fi
echo '<div id="content">'
}
function footer()
{
echo '</div>'
echo '</body></html>'
}
function list_groups4generate()
{
echo '<p><b>Generate report: </b>'
local list=$($VALIDATE_SCRIPT list)
if [ -z "$list" ]
then echo 'none'
else for a in $list
do echo "<a href=\"${SCRIPT_NAME}?action=generate&group=$a\">$a</a>&nbsp;"
done
fi
echo '</p>'
}
function list_groups4display()
{
echo '<p><b>View generated report: </b>'
local list=$(find "$REPORT_DIR" -type d -mindepth 1 -maxdepth 1 | sort | while read a
do echo $(basename "$a"); done)
if [ -z "$list" ]
then echo 'none available'
else for a in $list
do echo "<a href=\"${SCRIPT_NAME}?action=display&group=$a\">$a</a>&nbsp;"
done
fi
echo '</p>'
}
function list_cases()
# parameter: group
{
echo '<p>'
if [ -d "$REPORT_DIR/$1" ]
then find "$REPORT_DIR/$1" -type f -name \*.html | while read a; do basename "${a%.html}"; done | sort | while read a
do echo "<a href=\"/report/$1/${a}.html\">$a</a><br/>"
done
fi
echo '</p>'
}
function display_case()
# parameter: group case
{
local FILE="$REPORT_DIR/$1/${2}.html"
if [ -e "$FILE" ]
then cat "$FILE" | sed '1,/<body/d; /<\/body>/,$d'
else echo "<p align=\"center\">File ($FILE) not found!</p>"
fi
}
########### main ##############
ACTION=$(get_cgi_param action)
GROUP=$(get_cgi_param group)
CASE=$(get_cgi_param case)
header
if [ ! -e "$DEV_FEATURES_SCRIPT" ]
then echo '<p align="center">This action is only availbale for a development CryptoBox-CD.</p>'
elif [ "$ACTION" = "generate" -a -n "$GROUP" ]
then $VALIDATE_SCRIPT check "$GROUP" </dev/null &>/dev/null &
echo '<p align="center">Validation will take some minutes ...</p>'
elif [ "$ACTION" = "display" ]
then if [ -n "$GROUP" -a -n "$CASE" ]
then display_case "$GROUP" "$CASE"
elif [ -n "$GROUP" ]
then display_case "$GROUP" "summary"
fi
else [ -n "$ACTION" ] && echo "<p align=\"center\">Unknown action ($ACTION)!</p>"
fi
footer