tazpanel annotate README @ rev 49

Update all page with latest functions such as debug, bunch of fixes and adding support for deamons
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 09 00:22:23 2011 +0200 (2011-04-09)
parents 56d55a9dcc9c
children 730f8bcacabc
rev   line source
pankso@0 1 SliTaz Web Control Panel
pankso@0 2 ================================================================================
pankso@0 3
pankso@0 4
pankso@0 5 Tazpanel is the SliTaz Control Panel, a web interface who let you manage the
pankso@0 6 full system in a redically simple way. The output xHTML code is valid xHTML 5
pankso@17 7 and all theming is done with standard CSS 3.
pankso@0 8
pankso@0 9
pankso@44 10 Use it!
pankso@44 11 ------
pankso@44 12 You can clone the tazpanel repo into /var/www/tazpanel and work on this
pankso@44 13 copy or clone it someweher esle and 'make install'. After, add tazpanel to
pankso@44 14 your /etc/hosts, type './tazpanel start' to start the server and go to the
pankso@46 15 URL: http://tazpanel:8090 Panel user and password is defined in httpd.conf
pankso@46 16 and default is root:root
pankso@44 17
pankso@44 18
pankso@19 19 i18n
pankso@19 20 ----
pankso@19 21 TazPanel have been coded from the beginning with gettext support. Please
pankso@19 22 forget 'echo' and use gettext, but remember that gettext "" is equivalent
pankso@40 23 to echo -n. All script use the same TEXTDOMAIN and the same pot files, all
pankso@34 24 translations goes in the po/ folder. To start a new translation please
pankso@27 25 use msginit from the pot file directory. Example for French/France
pankso@27 26 locale (fr_FR):
pankso@27 27
pankso@27 28 $ msginit -l fr_FR -o fr.po -i tazpanel.pot
pankso@27 29
pankso@27 30 To update all translations from a newly updated the pot file:
pankso@27 31
pankso@27 32 $ make msgmerge
pankso@19 33
pankso@19 34
pankso@19 35 User interface
pankso@19 36 --------------
pankso@19 37 If you develope an official SliTaz GUI for TazPanel, please follow the style.
pankso@19 38 If you need more CSS markup and you not a coder, please ask an official
pankso@19 39 developer the better way to implement your idea. TazPanel is fully themable
pankso@19 40 and more than one theme can be installed, this will let us make packages
pankso@19 41 for TazPanel style! All the GUI is done with xHTML 5 and CSS 3, some
pankso@19 42 javascript can be used, but with precaution... one more time, it's better
pankso@19 43 to check with a main contributor before adding to much stuff, the goal is,
pankso@19 44 as for the all SliTaz project: KISS
pankso@19 45
pankso@19 46
pankso@19 47 CGI template and files
pankso@19 48 ----------------------
pankso@19 49 To start or test new function with TazPanel you will find a a file in
pankso@19 50 utils/template.cgi that need to be in the $PANEL root to work, all TazPanel
pankso@19 51 CGI scripts are in that location. If you think your code is too big to fit
pankso@19 52 in an other script you can eventually creat a new CGI page and update all
pankso@19 53 links, but please to talk to the AUTHORS before.
pankso@19 54
pankso@46 55 * index.cgi Main Tazpanel CGI script (some stuff may be splited
pankso@46 56 into users.cgi, boot.cgi, etc if too big or slow)
pankso@46 57 * network.cgi All related stuff to networking (eth, wifi, servives)
pankso@46 58 * pkgs.cgi Tazpkg packages CGI interface
pankso@46 59 * system.cgi System settings and services such as time, users
pankso@46 60 accounts, locales or daemons management
pankso@46 61 * live.cgi All tools related to Live systems (CD, USB, Frugal)
pankso@46 62 * hardware.cgi Devices drivers, firmware, printing
pankso@44 63
pankso@44 64 For common function have a look to lib/libtazpanel you may founf functions
pankso@44 65 yoou need already coded such as xhtml_header to get the style header.html
pankso@46 66 in you CGI script. For the loading message you can use loading_msg. When
pankso@46 67 cat is used: `gettext "Text to translate"`
pankso@46 68
pankso@19 69
pankso@0 70 Web server
pankso@0 71 ----------
pankso@0 72 Tazpanel can run with Busybox httpd applet or LightTPD an propably Apache.
pankso@0 73 Start the webserver with custom config to listen only on local port for
pankso@0 74 security reason since we run as root to perform system actions, example:
pankso@0 75
pankso@37 76 # httpd -p 8090 u root -c /etc/slitaz/httpd.conf
pankso@0 77
pankso@17 78 Or use tazpanel cmdline:
pankso@17 79
pankso@19 80 # ./tazpanel start
pankso@49 81
pankso@49 82
pankso@49 83 ================================================================================