tazpanel view README.html @ rev 617

revision of german messages
author Hans-G?nter Theisgen
date Mon Oct 09 17:15:22 2017 +0100 (2017-10-09)
parents 831e551d12d4
line source
1 <section>
2 <header>SliTaz Web Control Panel</header>
3 <div>
4 <p>TazPanel is the SliTaz Control Panel, a web interface which lets you manage the full system in a radically simple way. The output xHTML code is valid HTML 5 and all theming is done with standard CSS 3. TazPanel is published under a BSD License.</p>
7 <h3>Use it!</h3>
9 <p>You can clone the tazpanel repo into <tt>/var/www/tazpanel</tt> and work on this copy or clone it somewhere else and <tt>'make install'</tt>. After, add <tt>tazpanel</tt> to your <tt>/etc/hosts</tt>, type <tt>'./tazpanel start'</tt> to start the server and go to the URL: <tt>http://tazpanel:82</tt>. Panel user and password are defined in the <tt>httpd.conf</tt> and default is <tt>root:root</tt></p>
12 <h3>i18n</h3>
14 <p>TazPanel has been coded from the beginning with gettext support. Please forget <tt>'echo'</tt> and use <tt>gettext</tt>, but remember that <tt>gettext ""</tt> is equivalent to <tt>echo -n</tt>. All scripts use the same <tt>TEXTDOMAIN</tt> and the same pot files, and all translations go in the <tt>po/</tt> folder. To start a new translation please use <tt>msginit</tt> from the pot file directory. Example for French/France locale (fr_FR):</p>
15 <pre>$ msginit -l fr_FR -o fr.po -i tazpanel.pot</pre>
16 <p>To update all translations from a newly updated pot file:</p>
17 <pre>$ make msgmerge</pre>
20 <h3>User interface</h3>
22 <p>If you develop an official SliTaz GUI for TazPanel, please follow the default style. If you need more CSS markup and you are not a coder, please ask an official developer for the best way to implement your idea. TazPanel is fully themable and more than one theme can be installed, this will allow us to make packages in a TazPanel style! All the GUI is done with HTML 5 and CSS 3; some javascript can be used, but with precautions… one more time, it's better to check with a main contributor before adding too much stuff; the goal is, as for all the SliTaz projects: KISS</p>
25 <h3>CGI template and files</h3>
27 <p>To start or test a new function with TazPanel you will find a file in <tt>utils/template.cgi</tt> that needs to be in the <tt>$PANEL</tt> root to work, all TazPanel CGI scripts are in that location. If you think your code is too big to fit in another script you can eventually create a new CGI page and update all links, but please to talk to the AUTHORS beforehand.</p>
28 <dl>
29 <dt>index.cgi</dt>
30 <dd>Main Tazpanel CGI script</dd>
31 <dt>boot.cgi</dt>
32 <dd>All what happens before login</dd>
33 <dt>network.cgi</dt>
34 <dd>All related stuff to networking (Ethernet, Wi-Fi, services)</dd>
35 <dt>pkgs.cgi</dt>
36 <dd>Tazpkg packages CGI interface</dd>
37 <dt>settings.cgi</dt>
38 <dd>System settings and services such as time, users accounts, locales or daemons management</dd>
39 <dt>live.cgi</dt>
40 <dd>All tools related to Live systems (CD, USB, Frugal)</dd>
41 <dt>hardware.cgi</dt>
42 <dd>Devices drivers, firmware, printing</dd>
43 <dt>help.cgi</dt>
44 <dd>Cat the html doc and this README file</dd>
45 </dl>
46 <p>For common functions have a look at <tt>lib/libtazpanel</tt>, where you may find functions you need already coded such as a <tt>xhtml_header</tt> to get the style <tt>header.html</tt> in your CGI script. For the loading message you can use <tt>loading_msg</tt>. When cat is used:</p>
47 <pre>$(gettext "Text to translate")</pre>
50 <h3>Web server</h3>
52 <p>TazPanel can run with the Busybox httpd applet or LightTPD and probably Apache. Start the webserver with a custom config to listen only on a local port for security reasons since we run as root to perform system actions, example:</p>
53 <pre># httpd -p 82 u root -c /etc/slitaz/httpd.conf</pre>
54 <p>Or use a tazpanel cmdline:</p>
55 <pre># ./tazpanel start</pre>
57 </div>
58 </section>