root / pykota / trunk / README @ 3036

Revision 3036, 28.3 kB (checked in by jerome, 18 years ago)

Charging for ink usage, finally !

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
RevLine 
[695]1# $Id$
2
[2478]3PyKota - Print Quotas for CUPS and LPRng
[695]4
[2622]5(c) 2003, 2004, 2005, 2006 Jerome Alet <alet@librelogiciel.com>
[873]6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
[695]10
[873]11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14GNU General Public License for more details.
[695]15
[873]16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
[2303]18Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
[873]19
[761]20====================================================================
[695]21
[1052]22READ SPECIAL LICENSING AND REDISTRIBUTION TERMS IN THE FILE 'LICENSE'
[761]23
24====================================================================
25
[1154]26PyKota features :
27-----------------
[695]28
[2051]29    Free Software :
30   
31        - Licensed under the terms of the GNU General Public License.
32       
33    Commercially Supported :   
34   
[2909]35        - Support Contracts are available from http://www.pykota.com/technical-support/
[2051]36       
[1154]37    Operating systems :
38   
39        - Any Unix-like system as print server.
40           
41        - Any operating system as client.
42           
43    Printing systems :
44   
[1283]45        - Supports both CUPS and LPRng as the printing system.
[2471]46          NB : LPRng is only supported with versions
[2478]47          of PyKota <= v1.22HotFix1, but support for LPRng
48          may be reintroduced at a later date.
49          This version DOES NOT support LPRng !
[2471]50       
[1154]51    Databases :
52   
[2597]53        - Supports PostgreSQL as the database backend.
54          An SQL script to create the database is included.
[1043]55       
[2597]56        - Supports any LDAP server as the database backend.
[1475]57          Complete LDAP schema and sample empty tree are included.
[1160]58          Plugging PyKota into your existing LDAP infrastructure
59          is really easy thanks to PyKota's great configurability.
[2051]60         
[2597]61        - Supports SQLite as the database backend.
62          An SQL script to create the database is included.
63         
[2638]64        - Supports MySQL as the database backend.
65          An SQL script to create the database is included.
66
[2051]67        - The print jobs history can be stored in any database 
68          of your choice (or in plain text files) if needed.
[2597]69         
70        - Master and slave databases are supported : master 
71          in read+write mode, slave in readonly mode.
72          Master and slave databases can be of different types !
[1160]73           
[1154]74    Printers :       
75   
[1475]76        - Hardware or Software accounting methods are completely
77          configurable.
78         
[1154]79        - Supports any printer which can report its internal
[1475]80          page counter. Can ask printers for their internal
[1561]81          page counter via SNMP, Netatalk, PJL, PS, or any
82          other way.
[1475]83          This is completely configurable.
[1154]84         
[1701]85        - Supports DSC compliant and binary PostScript, PDF, PCL5 (up to),
[3015]86          PCLXL (aka PCL6), ESC/P2, DVI, TIFF, OpenDocument (ISO/IEC DIS 26300),
87          Zenographics ZjStream, and Samsung QPDL (aka SPL2) natively through
88          the direct use of pkpgcounter's code for software accounting methods.
89          More formats to come.
[2350]90         
91        - Supports any other Page Description Language for which you 
92          have a parser which can be scripted.
[1154]93           
94    Quota systems :       
95   
[1260]96        - Supports printers and printers groups quotas.
[739]97       
[1260]98        - Supports users and users groups quotas.
99       
[1154]100        - Supports page quotas.
101          Page quotas can be set differently on a per printer
102          and per user/group basis.
[739]103       
[1154]104        - Supports account balance quotas in any currency.
105          Account balance quotas can be set on a per user
106          basis. The account balance is shared amongst
[1561]107          all printers. The history of payments (positive
108          or negative credits to an user account) is kept.
[980]109         
[2151]110        - Supports high granularity periodic print quotas : down
111          to one minute intervals if needed.
112       
[1610]113        - Page quotas and account balance can be set/reset
[1154]114          independantly.
115         
[2067]116        - Page quotas can be set on a per user or per group basis
117          for a particular printer.
[1154]118         
119        - Price per page and per job can be set differently 
120          on any printer.
[794]121       
[3036]122        - Price depending on ink/toner usage is supported
123          with many printer drivers.
124       
[1154]125        - Low level of page quota or account balance are
126          configurable.
[739]127         
[1154]128        - Both soft and hard limit with configurable grace delay 
129          can be set for page quota.
[900]130         
[2470]131        - Both soft and hard limits can be increased or decreased at will. 
132       
[1154]133        - Possibility to disable quota enforcement for any user
134          or group, while still keeping page accounting.
[1928]135         
[2067]136        - Each user can have an overcharging (or undercharging) factor, 
137          which is applied whenever PyKota computes the cost of a
138          print job.
139         
[2391]140        - Specific pages and credits counters can be defined per billing code,
141          and can be reset independantly of the printing history.
[2470]142         
143        - Supports a passthrough mode for printers, which doesn't modify 
144          users quota when they print.
145         
146        - Supports a maximum number of pages per job, configurable for each 
147          printer.
148         
149        - Each user can be completely forbidden to print, independantly from
150          other users.
151         
152        - A transparent printing mode is supported for users, in which
153          their quota is not modified when they print.
154         
[1154]155    Administration :       
156   
[2470]157        - Almost turn-key solution, with the help of the pkturnkey command
158          line tool for database initialization and initial configuration.
159         
[2067]160        - Powerful delegation of administrative priviledges.
161       
[1154]162        - Powerful administration tools can be used to
163          automate setting or resetting of quotas or
164          account balances at specific intervals.
[925]165         
[1154]166        - Administration tools can modify several users, 
[2051]167          groups, or printers at once with the use of
168          powerful wildcard characters.
[925]169         
[1154]170        - Account balances can be set, incremented, or 
[1580]171          decremented. History of payments is kept.
[1153]172         
[2067]173        - Number of pages used can be set, incremented, or 
174          decremented.
175         
[1273]176        - Both printers and users can be automatically added on
177          first print in a completely configurable way.
[1154]178         
179        - Quota report generator available either from the 
180          command line or in any web browser.
181          The web-based quota report generator can be
182          user/password protected.
183         
184        - Print quote generator can tell users how much 
185          a print job will cost them in advance.
186         
[2688]187        - PDF invoice generator to charge back users.
188         
[1154]189        - Policy with regard to unregistered users can   
190          be configured for each printer to either deny
191          printing, allow printing, or delegate the
192          decision to any external tool.
193         
194        - Warning and error messages can be automatically 
[2051]195          sent via email or via any other mean to the administrator,
196          the user, both, or none.
[1154]197         
198        - Warning and error messages' content is completely
199          configurable.
200         
201        - Configuration can be changed without needing to 
202          restart the printing system.
[739]203       
[1154]204        - Complete print job history is kept. This can be
[2850]205          disabled if needed.         
[1154]206         
207        - Automated low quota or balance remainder can be
208          scheduled regularly or launched manually.
209         
[2067]210        - Starting and Ending personalized dynamic banners can be
211          generated on the fly, and accounted for or not, depending
212          on some configuration settings.
213          Banners can still be enabled even if the print job is denied.
214          NB : Banners are a CUPS only feature for now.
215         
[2349]216        - Duplicate print jobs can be forbidden automatically. The decision
[2351]217          can be left to any script to decide this on a per job basis.
[2067]218         
[2394]219        - Username and billing code can be overwritten at printing time,
220          to allow people to login as guest users and print as authenticated
221          users, for example.
222         
[2849]223        - The pknotify command can now interact with remote users who run 
224          the PyKotIcon application which is distributed separately.
225         
[1744]226        - Powerful data dumper to export datas to other
[1804]227          software (spreadsheets for example). Actually
228          supported formats are :
[1744]229         
[1804]230            - Comma separated values ;
231           
232            - Semicolon separated values ;
233           
234            - Tab separated values ;
235           
236            - XML.
[2048]237           
238            - CUPS' page_log format, to easily interface in
239              real time with third party apps like phpPrintAnalyzer
240              and similar tools.
[1804]241         
[1155]242    User Interface :         
243   
[1154]244        - All the command line tools accept the -h | --help
245          command line option which prints all the available
246          options and show usage examples.
[1155]247         
[2545]248        - Completely internationalized. Actually supports at least partially
249          English, French, Polish, Spanish, Portuguese, Brazilian, Swedish,
[2048]250          Thai, Greek, German, Italian, Norwegian (Bokm�, Turkish
251          and traditional Chinese languages.
[1891]252          More to come.
[2048]253         
[2243]254        - Web enabled print quota monitor, data dumper, and quote
[2153]255          generator.
[2048]256       
[2049]257        - An On Screen Display X-Window print quota monitor is included.
[2048]258       
[2051]259        - An email gateway to allow users to retrieve their print quota
260          information by sending an email message to a dedicated address
261          is included.
262       
[2049]263        - Third party web based management tools are available.
[1154]264
265====================================================================
266       
[739]267Planned features are described in the TODO file.
268
[1507]269Actually two (or an infinity of) page accounting methods are
[980]270implemented :
[695]271
[1475]272  - The 'hardware' method consists in querying the printer (via SNMP
[1181]273    or Netatalk or any other method of your choice) for its total pages
[1186]274    counter.
[1600]275    This is done both at the beginning and at the end of a
[1186]276    print job. The counters difference is then immediately used to
277    decrease the user's account balance or increase his quota usage.
278   
[1475]279  - The 'software' method consists in delegating the computation of the
[980]280    job's size in number of pages to any external command of your choice.
281    The command can read the job's data from its standard input and MUST
[1186]282    output the job's size on its standard output. Changes to the user
[2345]283    account are reported immediately.
[980]284   
[2345]285    PyKota featured an internal software accounting method which handles
286    several Page Description Languages : DSC compliant and binary PostScript,
287    PDF, PCLXL (aka PCL6), PCL3/4/5, ESC/P2, DVI, TIFF, OpenOffice.org Writer
288    and OpenOffice.org Impress. This software is now distributed separately
289    as 'pkpgcounter', and not included anymore in PyKota, so you must now
290    download and install it before running PyKota.
291   
[1600]292PyKota is known to work fine with most laser printers, either with
293software accounting, or with hardware accounting if the printer
294supports this.
[724]295
[695]296============================================================
297
[2001]298SUPPORT CONTRACTS:
299==================
300
301  You can now purchase 8x5x365@NextBusinessDay Technical
[2126]302  Support Contracts from us. The yearly fee is computed with 
303  the following formula :
[2001]304
305  (100.0 * NbPrintServers) + (2.5 * NbPrinters) + (0.04 * NbUsers) EUROS.
306 
[2542]307  This fee includes the VAT, and a free subscription to Official
308  PyKota packages.
[2001]309
310  Please send an email to alet@librelogiciel.com if you're
[2126]311  interested in purchasing such a contract.   
[2001]312
[2126]313  Remember that purchasing a support contract for Free Software like PyKota
314  is a great way to show your appreciation for the work already being done
315  on this project, and will help to improve this software in the future.
316
[2001]317============================================================
318
[695]319INSTALLATION:
320=============
321
[1186]322NB :
323====
[887]324
[2714]325  PyKota's documentation is available as DocBook SGML sources
326  files in the pykota/docs directory. If you obtained an
327  Official package, in the same directory you'll also find
328  the documentation in HTML and PDF formats.
[2543]329 
[2714]330  PyKota's collaborative documentation is available from :
331 
[2909]332    http://www.pykota.com/wiki/
[2543]333   
[1397]334  You may learn more about PyKota, if it fits your own organization,
335  its internal working, and some potential performance drawbacks and
[2054]336  how to avoid them, in a document created by Ryan Suarez at :
[1397]337 
[2005]338    http://archive.macosxlabs.org/forum/webcrossing_archive/documentation/Pykota_and_CUPS/Pykota_and_CUPS.html
[1034]339
[1651]340  You may also find the following document interesting :
341 
342    http://es.tldp.org/Tutoriales/doc-openldap-samba-cups-python/
343   
344  This document, written in Spanish by Sergio Gonzalez Gonzalez, 
345  describes the integration of PyKota into an OpenLDAP + Samba
346  + CUPS installation. Even for people who can't read spanish
347  this document is really interesting, and contains lots of
348  screenshots.
349 
[1951]350  Finally, SuSe users may find the following document to best describe
351  how to install PyKota on their favorite distribution. It's a Spanish
[2714]352  document written by Dennis Romero, and is mostly outdated now :
[1951]353 
354    http://www.cvr.espol.edu.ec/people/dennis/Pykota1.19-SuSE9.1.pdf
355 
356 
[714]357Prerequisite :
358--------------
359   
[2714]360  See :
361 
[2909]362    http://www.pykota.com/wiki/Dependencies
[2714]363   
364  for an up-to-date list, or see below (maybe not up-to-date) :
365 
[714]366  You need to have the following tools installed on the CUPS Server :
367 
[2478]368    - CUPS (http://www.cups.org)
[2784]369    - Python v2.2 or higher (http://www.python.org)
[1886]370    - eGenix' mxDateTime Python extension (http://www.egenix.com)
[2345]371    - The pkpgcounter command line tool, version 1.56 or higher. This
372      tool is now mandatory for PyKota to work.
[2909]373      (http://www.pykota.com/software/pkpgcounter)
[2891]374    - The pkipplib Python library (http://www.pykota.com/software/pkipplib) 
[1771]375    - The JAXML Python module to be able to dump datas in the XML format.
[1886]376      (http://www.librelogiciel.com/software/)
[2784]377    - The Python-PAM module if you need the pknotify command to be able 
[3006]378      to check usernames and passwords. (http://www.pangalactic.org/PyPAM)
[1771]379    - The Python-SNMP module to query printers for their page counter.
[3006]380      (http://pysnmp.sourceforge.net)
[2877]381      IMPORTANT : version 3.4.2 or higher is REQUIRED.
382      Versions 2.x won't work. Versions 4.x now work (tested with v4.1.5a).
[1771]383    - The Python-OSD module to use the graphical print quota reminder.
[2189]384      (http://repose.cx/pyosd/)
[3006]385    - The Python-chardet module to autodetect user's character set when 
386      printing. (http://chardet.feedparser.org)
[1771]387    - SNMP tools (specifically the snmpget command) if you prefer to
388      use your own script to request query printers.
[2189]389      (http://www.net-snmp.org)
[919]390    - Netatalk (specifically the pap command) if you plan to
391      request your printer's lifetime page counter via AppleTalk.
[1886]392      (http://netatalk.sourceforge.net)
[1927]393    - The ReportLab Python module (http://www.reportlab.org) if you want 
394      to have PyKota generate nice banners for you.
395    - The Python Imaging Library (aka PIL) module
396      (http://www.pythonware.com/downloads) if you want to have PyKota
397      generate nice banners for you.
[1043]398    - PostgreSQL's PygreSQL Python extension and the PostgreSQL client
[2597]399      libraries if you plan to use PostgreSQL as the database backend.
[1886]400      (http://www.postgresql.org and http://www.pygreql.org)
[1043]401 or     
402    - python-ldap Python module and the OpenLDAP client libraries 
[2597]403      if you plan to use an LDAP server as the database backend.
[1886]404      (http://www.openldap.org and http://python-ldap.sourceforge.net)
[2597]405 or
406    - SQLite v3.2.7 and the SQLite libraries if you plan to use SQLite
407      as the database backend (http://www.sqlite.org). You also need the
408      PySQLite module v2.0.5 or higher (http://www.pysqlite.org)
[2638]409 or
[2714]410    - The MySQL-python bindings.
[2638]411      IMPORTANT: If you are using MySQL 4.1, then MySQL-python must be
412      version 1.2 or greater. Version 1.0 does not work correctly with 4.1.
[2597]413     
[714]414   
[1771]415  On Intel i386 architecture, and for performance reasons, it is
416  strongly suggested that you install the Python accelerator Psyco,
417  available at :
[1570]418 
419      http://psyco.sourceforge.net
420     
[1571]421  Under Debian :   
422 
423      $ apt-get install python-psyco
424     
425  Other architectures may be supported as well in the future, check   
[1600]426  this on Psyco's website.
[1571]427 
[1578]428  Installing Psyco is not mandatory, but it will speedup PCL5 parsing
[1570]429  by almost 3 times. PostScript and PDF parsing can also benefit,
430  but in an almost unnoticeable manner since this part of the code
[1575]431  is already optimal. For PCL5 this is a completely different matter,
[1570]432  and if you install Psyco you will never regret it !
[1600]433  Same remark applies for PCL6 (aka PCLXL) : the parser is completely
434  different, but the performance gain with Psyco is impressive.
[1570]435 
[1186]436  You may also benefit from having the following tools installed to
437  deal with some printers :
438 
439    - npadmin
440    - netcat
441    - ghostscript
442   
[2597]443  You need to have the following tools installed on the database
444  server :
[714]445 
[1886]446    - PostgreSQL (http://www.postgresql.org)
[714]447   
[1043]448  or 
449 
[1886]450    - OpenLDAP, or any other LDAP server (http://www.openldap.org)
[1043]451   
[2597]452  or   
453 
454    - SQLite, v3.2.7 or higher (http://www.sqlite.org).
455      Beware : with SQLite the database server and the print
456      servers MUST be the very same machine.
[2714]457     
458  or     
[714]459 
[2870]460    - MySQL 4.1 or higher.
[2714]461   
[714]462  This list of prerequisite software may change in the future, when
463  PyKota will support more functionnalities you will be given
464  alternatives.
465 
[2597]466  Of course the Print Server and the database server can be the
[851]467  very same machine if you've got a tiny network, or you can have
[2597]468  multiple Print Servers all storing their quotas on the same database
469  server if you've got a bigger network. (NB : with SQLite, the database
470  can't be shared between several print servers)
[851]471 
[1886]472Hint : 
473------
474
475  - The Debian GNU/Linux distribution is to our knowledge the
476    easiest distribution to install PyKota on, because all
477    of PyKota dependencies are already included, excepted
478    for the PySNMP (http://pysnmp.sourceforge.net) module
[2345]479    and the pkpgcounter utility which for now have to be downloaded
480    and installed separately.
[1886]481
[714]482Then :   
483------
484 
[2135]485Download the latest PyKota version from the Subversion tree :
[695]486
[2135]487    $ svn co svn://svn.librelogiciel.com/pykota/trunk pykota
[695]488
[1906]489You can now check if the dependencies are correct by typing :
[695]490
[2135]491    $ python checkdeps.py
[1906]492   
[2234]493    An availability report for all the software needed by PyKota
494    will be displayed : you'll have to install the missing
495    software if you want PyKota to work correctly.
496   
[1906]497To install the software, just type :
498
[2135]499    $ python setup.py install
[695]500
501You may need to be logged in with sufficient privileges (e.g. root)
502
[1960]503Create a system user for PyKota :
504
[2135]505    $ adduser --system --group --home /etc/pykota --gecos PyKota pykota
[1960]506   
507Put the user your printing system is run as in the pykota system group :
508
[2135]509    $ adduser lp pykota
[1960]510   
511    NB : on our system, the CUPS printing system runs as system user 'lp'.
512    Please adapt this to your own system.
513
[695]514Go to the initscripts subdirectory of PyKota's sources, and choose
[1600]515the appropriate storage backend for your configuration. Read carefully
[695]516the associated README file and execute the initialization script
[2597]517to create an empty PyKota database. Upgrade scripts may be
[2269]518provided as well. NB : if you use PostgreSQL, a good way to
519make PyKota work first time is to modify PostgreSQL's pg_hba.conf
520to allow the 'trust' database connection mode. However once PyKota
521works it is HIGHLY RECOMMENDED TO CHANGE THIS TO A MORE SECURE
522VALUE.
[695]523
[1186]524Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample
[1107]525sample configuration files to /etc/pykota/pykota.conf and
[1905]526/etc/pykota/pykotadmin.conf 
527The installation script usually copies these files into /usr/share/pykota
[1198]528
[1979]529NB : You can move PyKota's configuration files elsewhere, they will
530be searched first in user pykota's home directory.
531
[1905]532You need to adapt these files to your own needs. Especially you may
533have to create sections named after your own printers, and change
534the administrator's email address which by default is
535root@localhost. Read and try to understand these two very well
536commented files, so that you'll encounter less problems later.
537
[1198]538Also be sure to double check that commands that query printers
[1186]539for their internal page counter work from the command line
540before using them in PyKota's configuration.
[695]541
[1186]542The rest of the installation depends on your printing system :
543
[1185]544  - CUPS Printing System :
[952]545 
[1185]546    Once and for all :
[952]547   
[1185]548        Create a symbolic link to the cupspykota backend
549        in CUPS's backend directory :
550       
551          $ cd /usr/lib/cups/backend
[1345]552          $ ln -s /usr/share/pykota/cupspykota cupspykota
[1185]553         
[2943]554        If you use CUPS v1.2 or higher, please do this as well : 
555       
556          $ chmod 700 /usr/share/pykota/cupspykota
557         
558          This allows the cupspykota backend to support other
559          backends which must be run as user root, like the
560          lpd backend for example.
561         
[1185]562        Restart CUPS so that the new backend can be detected.
563       
564          $ /etc/init.d/cupsys restart
565         
[1600]566        or :   
567     
[1979]568          $ /etc/rc.d/init.d/cupsys restart
[1600]569         
570        or any similar command depending on your operating system. 
571         
[1185]572    For new printers :
[952]573   
[1185]574        Go to CUPS management interface (http://localhost:631)
575        and choose the appropriate PyKota managed device depending
576        on the type of printer you use. For example, if your
577        printer is waiting on :
578       
[1354]579            socket://myprinter.example.com:9100
[1185]580           
581        Then choose :   
582       
[1354]583            cupspykota:socket://myprinter.example.com:9100
[1185]584           
585        Configure your printer as usual.   
586       
[1186]587        Now double check /etc/pykota/pykota.conf
[1600]588       
589        You should manually create a section named after the
[1402]590        printer you've just added, unless you have set
591        all options globally.
[1600]592       
[2468]593        The new pkturnkey command can help you with correct settings
[1408]594        for your printers, but don't rely on it because it is still
[2468]595        experimental work. To have pkturnkey give you some hints
596        about what to put into pykota.conf, just use its --doconf
597        command line switch :
[1186]598       
[2468]599          $ pkturnkey --doconf
[1600]600       
[2468]601        pkturnkey will try to tell you what is the best accounting
[1600]602        method for each printer and will print some lines you'll
603        just have to copy&paste in the appropriate sections in
604        /etc/pykota/pykota.conf
605       
[2468]606        For more informations about what pkturnkey can do for you,
607        see pkturnkey's manual page or use the --help command
608        line switch :
609       
610          $ pkturnkey --help | less
611       
[1185]612        That's all.
[952]613   
[1185]614    For existing printers :
615   
[2714]616        The easiest is to directly modify the DeviceURI lines
[1185]617        in /etc/cups/printers.conf, you just have to put
618        'cupspykota:' in front of what is already on these lines.
619        For example, replace :
620   
[1354]621            DeviceURI socket://myprinter.example.com:9100
[1185]622       
623        with :   
624   
[1354]625            DeviceURI cupspykota:socket://myprinter.example.com:9100
[1345]626           
627        or :   
[1185]628       
[1354]629            DeviceURI cupspykota://socket://myprinter.example.com:9100
[1345]630       
[1185]631        Save the file and restart CUPS.
[1600]632       
[2470]633        Here too, you may find it interesting to use the pkturnkey command as
[1600]634        described above to help with manual configuration of the file
635        /etc/pykota/pykota.conf
[695]636
[1185]637  - LPRng Printing System :
[952]638 
[2478]639    IMPORTANT : This release of PyKota DOES NOT support LPRng.
[1600]640   
[2478]641    If you want to use PyKota with LPRng, you have to download
642    an earlier release of PyKota, for example v1.22HotFix1.
[1600]643       
[1186]644Now you can begin to populate the PyKota's database with printers,
645users and groups :
[952]646 
[716]647Add printers and users to the quota system and set their quota values :
[695]648
[2470]649You can either use pkturnkey, or do the same things manually by
[2714]650using the pkprinters, pkusers and edpykota command line tools :
[1345]651
[2714]652Create printers :
653
[1345]654    $ pkprinters --help
655   
656    will tell you how to create, manage or delete printers and
657    printers groups.
[1402]658   
659    $ pkprinters --add --charge 0.05 hp2100
660   
661    would add the printer named hp2100 with a price per page
662    of 0.05 unit.
[1345]663
[2714]664Create users :
[1402]665
[2714]666    $ pkusers --add --limitby balance --balane 10.0 jerome
[1086]667   
[2714]668    would create user jerome and give him ten credits to spend
669    on any printer.
[1086]670   
[2714]671Finally create print quota entries :
[695]672
[2714]673    $ edpykota --add -P hp2100 jerome
674       
675    This will create a print quota entry for user jerome on   
676    printer hp2100. The print quota entry holds the number of
677    pages printed on a particular printer for a particular
678    user, as well as optional page limits to be used instead
679    of balance limits. See pkusers and edpykota's manual
680    pages for details.
681   
[2478]682Restart CUPS, for example under Debian GNU/Linux systems :         
[695]683
[725]684    $ /etc/init.d/cupsys restart
[990]685   
[695]686Your users now should be able to print but not exceed their
687printing quota.
688
[2234]689To see printer quota usage on printer hp2100, you can use :
[794]690
[2234]691    $ repykota --printer hp2100
[794]692   
693or :
694
695    $ repykota
696   
697    which will print quota usage for all users on all printers,
[2054]698    along with totals, if you are a PyKota Administator. If you are
[1107]699    a regular user, only your own quota report will be produced.
[794]700   
[1107]701Quota reports are also available remotely by using the CGI script
[1345]702printquota.cgi provided in the cgi-bin/ subdirectory. You can
703also use the CSS stylesheet present in the stylesheets/ subdirectory
[1402]704and put it at your web server's DocumentRoot, to benefit from a nicer
705look, especially quota violations will appear in different colors.
[990]706
[2262]707For additionnal security concerns, please give a look at the SECURITY
[980]708file which is part of this software.
[2234]709
710To diagnose a problem when something doesn't work as expected,
711please read the very first entry in the FAQ document.
[741]712           
[695]713============================================================
714
[1979]715Additionnal tools :
716-------------------
717
718Some people have developped tools around PyKota, and make
719them available under the GNU General Public License :
720
721  - Kanakorn Horsiritham developped phpPykotaAdmin which is
[2126]722    a web based database independant administrative GUI,
723    written in PHP.
[1979]724 
725      http://opensource.psu.ac.th/~kanakorn/mambo/
[2126]726     
727    He was also kind enough to write an installation guide 
728    in english for CUPS and PyKota with phpPykotaAdmin on Fedora
729    Core 3. You'll find this document on the same website.
730   
731    This great software currently at version 0.3 is a wonderful
732    basis for an administrative GUI since it only depends on
733    PyKota commands to be present to successfully manage
734    PyKota's database.
[1979]735 
736Additionnal software will be listed here when they will be 
737ready.
738
739============================================================
740
[958]741Mailing list :
742--------------
743
744  A mailing list is dedicated to Pykota, you can subscribe to it
745  or consult its archives at :
746 
747    http://cgi.librelogiciel.com/mailman/listinfo/pykota
748   
[1600]749  The mailing list is the preferred way to obtain support, because 
750  all members can help and can also benefit from the solutions
751  proposed by other members.
752 
753  Posts by non-members are usually rejected.
754 
755  The mailing list language is english and only english.
756   
[1181]757IRC :   
758-----
759
760  You can also chat with us :
761 
762        /server irc.freenode.net
763        /join #pykota
[1600]764       
765  Preferred language on this channel is english, but french     
766  is also accepted. Try to avoid exposing complex problems
767  in french because english speaking people on the channel
768  wouldn't benefit from the solutions.
769 
770  PyKota's main author is known as 'tamere' on IRC.
[1181]771   
[958]772============================================================
773   
[1107]774Please e-mail bugs to the mailing list at : pykota@librelogiciel.com
775or to the main author at : alet@librelogiciel.com (Jerome Alet)
Note: See TracBrowser for help on using the browser.