root / pykota / trunk / README @ 2622

Revision 2622, 28.5 kB (checked in by jerome, 19 years ago)

Added 2006 to the copyright's years.

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