Changeset 1186 for pykota/trunk/README

Show
Ignore:
Timestamp:
11/15/03 15:26:45 (20 years ago)
Author:
jalet
Message:

General improvements to the documentation.
Email address changed in sample configuration file, because
I receive low quota messages almost every day...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/README

    r1185 r1186  
    161161  - The 'querying' method consists in querying the printer (via SNMP 
    162162    or Netatalk or any other method of your choice) for its total pages  
    163     counter, just before the beginning of a job, and use this to modify  
    164     the *preceding* user's quota. So you're always late of one print job,  
    165     but this is generally ok, especially because a check is also done to  
    166     see if the current user is allowed or not to print.  
     163    counter. 
     164     
     165    With CUPS, this is done both at the beginning and at the end of a 
     166    print job. The counters difference is then immediately used to  
     167    decrease the user's account balance or increase his quota usage. 
     168     
     169    With LPRng, this is done just before the beginning of a job, and used  
     170    this to modify the *preceding* user's quota. So you're always late  
     171    of one print job, but this is generally ok, especially because a  
     172    check is also done to see if the current user is allowed or not to  
     173    print.  
    167174     
    168175  - The 'external' method consists in delegating the computation of the 
    169176    job's size in number of pages to any external command of your choice. 
    170177    The command can read the job's data from its standard input and MUST 
    171     output the job's size on its standard output. 
     178    output the job's size on its standard output. Changes to the user 
     179    account are reported immediately, both with CUPS and LPRng. 
    172180     
    173181  - The 'stupid' method consists in counting the 'showpage' PostSript   
    174182    statements in the job. THIS IS UNRELIABLE, but can serve as an 
    175183    example if you plan to write your own accounting method for 
    176     integration into PyKota. 
     184    integration into PyKota. It basically works like the 'external' 
     185    method, but does the computation internally. 
    177186   
    178187PyKota is known to work fine with HP Laserjet 2100 and 2200, and  
     
    189198============= 
    190199 
    191 WARNING : 
    192 ========= 
    193  
    194   If you run a PyKota version lower than 1.03, you definitely have to  
    195   upgrade you Quota Storage Database. Please read the documentation  
    196   included in the initscripts subdirectory first !  
    197    
     200NB : 
     201==== 
     202 
    198203  Users of MacOS-X may find the following tutorial useful : 
    199204 
     
    219224      if you plan to use OpenLDAP as the Quota Storage backend. 
    220225     
     226  You may also benefit from having the following tools installed to 
     227  deal with some printers : 
     228   
     229    - npadmin 
     230    - netcat 
     231    - ghostscript 
     232     
    221233  You need to have the following tools installed on the Quota Storage   
    222234  Server : 
     
    272284provided as well. 
    273285 
    274 Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample 
     286Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample  
    275287sample configuration files to /etc/pykota/pykota.conf and  
    276 /etc/pykota/pykotadmin.conf. The installation script tries to do this  
    277 for you if needed and you agreed to this action. 
    278 You need to adapt these files to your own needs. 
    279 Especially you have to create sections named after your own 
    280 printers, and change the administrator's email address. 
     288/etc/pykota/pykotadmin.conf. The installation script tries to do  
     289this for you if needed and you agreed to this action. You need to  
     290adapt these files to your own needs. Especially you have to create  
     291sections named after your own printers, and change the  
     292administrator's email address which by default is root@localhost. 
     293Read and try to understand these two very well commented files, 
     294so that you'll encounter less problems later. 
     295Also be sure to double check that commands to query printers 
     296for their internal page counter work from the command line 
     297before using them in PyKota's configuration. 
     298 
     299The rest of the installation depends on your printing system : 
    281300 
    282301  - CUPS Printing System : 
     
    309328        Configure your printer as usual.     
    310329         
     330        Now double check /etc/pykota/pykota.conf  
     331        This file should contain a section named after the 
     332        printer you've just added. 
     333         
    311334        That's all. 
    312335     
    313336    For existing printers : 
    314337     
    315         If you had already installed PyKota, then remove 
    316         the *cupsFilter lines in your PPD files for each 
    317         printer already managed printers. Each line to 
    318         remove is of the form : 
     338        If you had already installed a version of PyKota earlier  
     339        than 1.16alpha7, then remove the *cupsFilter lines in your  
     340        PPD files for each printer already managed printers. Each  
     341        line to remove is of the form : 
    319342         
    320343          *cupsFilter: "application/vnd.cups-postscript 0 /usr/bin/pykota" 
    321344         
    322345        Don't touch anything else, especially any other *cupsFilter line. 
    323         Then save each of these files and restart CUPS. 
     346        Then save each of these files. 
    324347         
    325348        Then, the easiest is to directly modify the DeviceURI lines  
     
    344367     
    345368    For each printer on which you want to use print accounting. 
     369     
     370    And then save the file and restart LPRng : 
     371     
     372        $ /etc/init.d/lprng restart 
     373         
     374Now you can begin to populate the PyKota's database with printers, 
     375users and groups : 
    346376   
    347377Add printers and users to the quota system and set their quota values :