Changeset 3413 for pykota/trunk/README

Show
Ignore:
Timestamp:
09/27/08 22:02:37 (16 years ago)
Author:
jerome
Message:

Removed unnecessary spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/README

    r3408 r3413  
    2929 
    3030==================================================================== 
    31          
     31 
    3232Planned features are described in the TODO file. 
    3333 
     
    3636 
    3737  - The 'hardware' method consists in querying the printer (via SNMP 
    38     or Netatalk or any other method of your choice) for its internal  
     38    or Netatalk or any other method of your choice) for its internal 
    3939    pages counter. 
    4040    This is done both at the beginning and at the end of a 
    41     print job. The counters difference is then used to  
     41    print job. The counters difference is then used to 
    4242    decrease the user's account balance or increase his quota usage. 
    43      
     43 
    4444  - The 'software' method consists in delegating the computation of the 
    4545    job's size in number of pages to any external command of your choice. 
     
    5454    An up-to-date list of supported Page Description Languages and their 
    5555    level of support is available from : 
    56        
     56 
    5757      http://www.pykota.com/software/pkpgcounter/ 
    58      
    59   - The 'ink' method consists in using pkpgcounter's code to compute   
     58 
     59  - The 'ink' method consists in using pkpgcounter's code to compute 
    6060    how much of each page is covered by ink in each color of a particular 
    6161    colorspace chosen between CMYK, CMY, RGB, and BW (grayscale). 
    6262    These values are then summed up together and multiplied by a set 
    6363    of coefficients defined in PyKota's configuration files. 
    64      
     64 
    6565PyKota is known to work with most printers, excepted GDI ones (Windows 
    6666only). At least one of the accounting methods above should work 
     
    7575 
    7676  You can now purchase 8x5x365@NextBusinessDay Technical 
    77   Support Contracts from us. The yearly fee is computed with   
     77  Support Contracts from us. The yearly fee is computed with 
    7878  the following formula : 
    7979 
    8080  (100.0 * NbPrintServers) + (2.5 * NbPrinters) + (0.04 * NbUsers) EUROS. 
    81    
     81 
    8282  This fee includes the VAT, and a free subscription to Official 
    8383  PyKota packages. 
    8484 
    8585  Please send an email to alet@librelogiciel.com if you're 
    86   interested in purchasing such a contract.    
     86  interested in purchasing such a contract. 
    8787 
    8888  Remember that purchasing a support contract for Free Software like PyKota 
    89   is a great way to show your appreciation for the work already being done  
     89  is a great way to show your appreciation for the work already being done 
    9090  on this project, and will help to improve this software in the future. 
    9191 
     
    104104  have to compile it into HTML or PDF yourself by using 
    105105  the appropriate tools as installed on your system. 
    106    
     106 
    107107  PyKota's collaborative documentation is available from : 
    108    
     108 
    109109    http://www.pykota.com/wiki/ 
    110      
     110 
    111111  You may learn more about PyKota, if it fits your own organization, 
    112112  its internal working, and some potential performance drawbacks and 
    113113  how to avoid them, in a document created by Ryan Suarez at : 
    114    
     114 
    115115    http://archive.macosxlabs.org/forum/webcrossing_archive/documentation/Pykota_and_CUPS/Pykota_and_CUPS.html 
    116116 
    117117  You may also find the following document interesting : 
    118    
     118 
    119119    http://es.tldp.org/Tutoriales/doc-openldap-samba-cups-python/ 
    120      
    121   This document, written in Spanish by Sergio Gonzalez Gonzalez,   
     120 
     121  This document, written in Spanish by Sergio Gonzalez Gonzalez, 
    122122  describes the integration of PyKota into an OpenLDAP + Samba 
    123   + CUPS installation. Even for people who can't read spanish  
     123  + CUPS installation. Even for people who can't read spanish 
    124124  this document is really interesting, and contains lots of 
    125125  screenshots. 
    126    
    127    
    128 Prerequisite :  
     126 
     127 
     128Prerequisite : 
    129129-------------- 
    130     
     130 
    131131  See : 
    132    
     132 
    133133    http://www.pykota.com/wiki/Dependencies 
    134      
     134 
    135135  for an up-to-date list, or see below (maybe not up-to-date) : 
    136    
     136 
    137137  You need to have the following tools installed on the CUPS Server : 
    138    
     138 
    139139    - CUPS (http://www.cups.org). PyKota v1.27 requires CUPS v1.3.4 or higher. 
    140140    - Python v2.3 or higher (http://www.python.org) 
    141141    - eGenix' mxDateTime Python extension (http://www.egenix.com) 
    142142    - The pkpgcounter command line tool, version 1.56 or higher. This 
    143       tool is now mandatory for PyKota to work.  
     143      tool is now mandatory for PyKota to work. 
    144144      (http://www.pykota.com/software/pkpgcounter) 
    145     - The pkipplib Python library (http://www.pykota.com/software/pkipplib)   
     145    - The pkipplib Python library (http://www.pykota.com/software/pkipplib) 
    146146    - The JAXML Python module to be able to dump datas in the XML format. 
    147147      (http://www.librelogiciel.com/software/) 
    148     - The Python-PAM module if you need the pknotify command to be able   
     148    - The Python-PAM module if you need the pknotify command to be able 
    149149      to check usernames and passwords. (http://www.pangalactic.org/PyPAM) 
    150150    - The Python-SNMP module to query printers for their page counter. 
    151       (http://pysnmp.sourceforge.net)  
     151      (http://pysnmp.sourceforge.net) 
    152152      IMPORTANT : version 3.4.2 or higher is REQUIRED. 
    153153      Versions 2.x won't work. Versions 4.x now work (tested with v4.1.5a). 
     
    161161      request your printer's lifetime page counter via AppleTalk. 
    162162      (http://netatalk.sourceforge.net) 
    163     - The ReportLab Python module (http://www.reportlab.org) if you want   
     163    - The ReportLab Python module (http://www.reportlab.org) if you want 
    164164      to have PyKota generate nice banners for you. 
    165     - The Python Imaging Library (aka PIL) module  
    166       (http://www.pythonware.com/downloads) if you want to have PyKota  
     165    - The Python Imaging Library (aka PIL) module 
     166      (http://www.pythonware.com/downloads) if you want to have PyKota 
    167167      generate nice banners for you. 
    168168    - PostgreSQL's PygreSQL Python extension and the PostgreSQL client 
    169169      libraries if you plan to use PostgreSQL as the database backend. 
    170170      (http://www.postgresql.org and http://www.pygreql.org) 
    171  or      
    172     - python-ldap Python module and the OpenLDAP client libraries   
     171 or 
     172    - python-ldap Python module and the OpenLDAP client libraries 
    173173      if you plan to use an LDAP server as the database backend. 
    174174      (http://www.openldap.org and http://python-ldap.sourceforge.net) 
    175  or  
     175 or 
    176176    - SQLite v3.2.7 and the SQLite libraries if you plan to use SQLite 
    177       as the database backend (http://www.sqlite.org). You also need the  
     177      as the database backend (http://www.sqlite.org). You also need the 
    178178      PySQLite module v2.0.5 or higher (http://www.pysqlite.org) 
    179179 or 
    180     - The MySQL-python bindings.  
    181       IMPORTANT: If you are using MySQL 4.1, then MySQL-python must be  
     180    - The MySQL-python bindings. 
     181      IMPORTANT: If you are using MySQL 4.1, then MySQL-python must be 
    182182      version 1.2 or greater. Version 1.0 does not work correctly with 4.1. 
    183        
    184      
     183 
     184 
    185185  On Intel i386 architecture, and for performance reasons, it is 
    186186  suggested that you install the Python accelerator Psyco, available from : 
    187    
     187 
    188188      http://psyco.sourceforge.net 
    189        
    190   Under Debian :     
    191    
     189 
     190  Under Debian : 
     191 
    192192      $ apt-get install python-psyco 
    193        
    194   Other architectures may be supported as well in the future, check     
     193 
     194  Other architectures may be supported as well in the future, check 
    195195  this on Psyco's website. 
    196    
    197   Installing Psyco is not mandatory, but may really speed the parsing  
     196 
     197  Installing Psyco is not mandatory, but may really speed the parsing 
    198198  of some print jobs. 
    199      
     199 
    200200  You need to have the following tools installed on the database 
    201201  server : 
    202    
     202 
    203203    - PostgreSQL (http://www.postgresql.org) 
    204      
    205   or   
    206    
     204 
     205  or 
     206 
    207207    - OpenLDAP, or any other LDAP server (http://www.openldap.org) 
    208      
    209   or    
    210    
     208 
     209  or 
     210 
    211211    - SQLite, v3.2.7 or higher (http://www.sqlite.org). 
    212212      Beware : with SQLite the database server and the print 
    213213      servers MUST be the very same machine. 
    214        
    215   or      
    216    
     214 
     215  or 
     216 
    217217    - MySQL 4.1 or higher. 5.x is recommended. 
    218      
     218 
    219219  This list of prerequisite software may change in the future, when 
    220   PyKota will support more functionnalities you will be given  
     220  PyKota will support more functionnalities you will be given 
    221221  alternatives. 
    222    
    223   Of course the Print Server and the database server can be the  
    224   very same machine if you've got a tiny network, or you can have  
     222 
     223  Of course the Print Server and the database server can be the 
     224  very same machine if you've got a tiny network, or you can have 
    225225  multiple Print Servers all storing their quotas on the same database 
    226226  server if you've got a bigger network. (NB : with SQLite, the database 
    227227  can't be shared between several print servers) 
    228    
    229 Hint :   
     228 
     229Hint : 
    230230------ 
    231231 
    232   - The Debian GNU/Linux distribution is to our knowledge the  
     232  - The Debian GNU/Linux distribution is to our knowledge the 
    233233    easiest distribution to install PyKota on, because almost all 
    234234    of PyKota dependencies are already included. 
     
    238238    manually. 
    239239 
    240 Then :    
     240Then : 
    241241------ 
    242   
     242 
    243243Download the latest PyKota version from the Subversion tree : 
    244244 
     
    248248 
    249249    $ python checkdeps.py 
    250      
     250 
    251251    An availability report for all the software needed by PyKota 
    252252    will be displayed : you'll have to install the missing 
    253253    software if you want PyKota to work correctly. 
    254      
     254 
    255255To install the software, just type : 
    256256 
     
    263263 
    264264    $ pksetup debian 
    265      
    266 or :     
     265 
     266or : 
    267267 
    268268    $ pksetup ubuntu 
    269      
     269 
    270270and follow the instructions to install PyKota in interactive mode, then 
    271271skip the remaining of the section below. 
     
    276276 
    277277    $ adduser --system --group --home /etc/pykota --gecos PyKota pykota 
    278      
     278 
    279279Put the user your printing system is run as in the pykota system group : 
    280280 
    281281    $ adduser lp pykota 
    282      
     282 
    283283    NB : on our system, the CUPS printing system runs as system user 'lp'. 
    284284    Please adapt this to your own system. 
     
    289289change the passwords, or, in the case of the LDAP backend, adapt it 
    290290to your own LDAP DIT, and execute the initialization script 
    291 to create an empty PyKota database. Upgrade scripts may be  
     291to create an empty PyKota database. Upgrade scripts may be 
    292292provided as well. NB : if you use PostgreSQL, a good way to 
    293293make PyKota work first time is to modify PostgreSQL's pg_hba.conf 
     
    297297and PostgreSQL's documentation for details on this subject. 
    298298 
    299 Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample  
    300 sample configuration files to ~pykota/pykota.conf and  
    301 ~pykota/pykotadmin.conf   
     299Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample 
     300sample configuration files to ~pykota/pykota.conf and 
     301~pykota/pykotadmin.conf 
    302302The installation script usually copies these files into /usr/share/pykota 
    303303 
     
    305305be searched first in user pykota's home directory, then in /etc/pykota. 
    306306 
    307 You need to adapt these files to your own needs. Especially you may  
    308 have to create sections named after your own printers, and change  
    309 the administrator's email address which by default is  
    310 root@localhost. Read and try to understand these two very well  
    311 commented files, so that you'll encounter less problems later.  
     307You need to adapt these files to your own needs. Especially you may 
     308have to create sections named after your own printers, and change 
     309the administrator's email address which by default is 
     310root@localhost. Read and try to understand these two very well 
     311commented files, so that you'll encounter less problems later. 
    312312 
    313313The rest of the installation depends on your printing system : 
    314314 
    315315  - CUPS Printing System : 
    316    
     316 
    317317    Once and for all : 
    318      
     318 
    319319        Modify CUPS' cupsd.conf to make CUPS listen to 127.0.0.1:631 
    320320        INSTEAD OF to an unix domain socket, in addition to any 
    321321        external network interface CUPS might already be listening to. 
    322          
    323         Create a symbolic link to the cupspykota backend  
     322 
     323        Create a symbolic link to the cupspykota backend 
    324324        in CUPS's backend directory : 
    325          
     325 
    326326          $ cd /usr/lib/cups/backend 
    327327          $ ln -s /usr/share/pykota/cupspykota cupspykota 
    328            
    329         If you use CUPS v1.2 or higher, please do this as well :   
    330          
     328 
     329        If you use CUPS v1.2 or higher, please do this as well : 
     330 
    331331          $ chmod 700 /usr/share/pykota/cupspykota 
    332            
     332 
    333333          This allows the cupspykota backend to support other 
    334334          backends which must be run as user root, like the 
    335335          lpd backend for example. 
    336            
     336 
    337337        Restart CUPS so that the new backend can be detected. 
    338          
     338 
    339339          $ /etc/init.d/cupsys restart 
    340            
    341           for example under Debian, or any similar command depending  
     340 
     341          for example under Debian, or any similar command depending 
    342342          on your operating system of choice. 
    343            
     343 
    344344    For new printers : 
    345      
    346         Go to CUPS management interface (http://localhost:631)  
     345 
     346        Go to CUPS management interface (http://localhost:631) 
    347347        and choose the appropriate PyKota managed device depending 
    348348        on the type of printer you use. For example, if your 
    349349        printer is waiting on : 
    350          
     350 
    351351            socket://myprinter.example.com:9100 
    352              
    353         Then choose :     
    354          
     352 
     353        Then choose : 
     354 
    355355            cupspykota:socket://myprinter.example.com:9100 
    356              
    357         Configure your printer as usual.     
    358          
    359         Now double check /etc/pykota/pykota.conf  
    360          
     356 
     357        Configure your printer as usual. 
     358 
     359        Now double check /etc/pykota/pykota.conf 
     360 
    361361        You should manually create a section named after the 
    362362        printer you've just added, unless you have set 
    363363        all options globally. 
    364          
    365         The new pkturnkey command can help you with correct settings  
     364 
     365        The new pkturnkey command can help you with correct settings 
    366366        for your printers. To have pkturnkey give you some hints 
    367367        about what to put into pykota.conf for a particular 
    368368        print queue, just use its --doconf command line switch : 
    369          
     369 
    370370          $ pkturnkey --doconf TheNameOfThePrintQueue 
    371          
     371 
    372372        pkturnkey will try to tell you what is the best accounting 
    373373        method for each printer and will print some lines you'll 
    374374        just have to copy&paste in the appropriate sections in 
    375375        /etc/pykota/pykota.conf 
    376          
     376 
    377377        For more informations about what pkturnkey can do for you, 
    378378        see pkturnkey's manual page or use the --help command 
    379379        line switch : 
    380          
     380 
    381381          $ pkturnkey --help | less 
    382          
     382 
    383383        That's all. 
    384      
     384 
    385385    For existing print queues : 
    386      
     386 
    387387        You want to route the print queue through PyKota, 
    388388        and you can do this in several manners. 
    389          
     389 
    390390          $ pkprinters --add --cups TheNameOfThePrintQueue 
    391            
    392         or    
    393          
     391 
     392        or 
     393 
    394394          if your printer's DeviceURI is something like : 
    395            
     395 
    396396              socket://myprinter.example.com:9100 
    397                
    398           then you can do this :     
    399            
     397 
     398          then you can do this : 
     399 
    400400          $ pkprinters --add TheNameOfThePrintQueue 
    401401          $ lpadmin -p TheNameOfThePrintQueue \ 
    402402                    -v cupspykota://socket://myprinter.example.com:9100 
    403            
    404         Finally, you could do it manually by modifying the  
     403 
     404        Finally, you could do it manually by modifying the 
    405405        the DeviceURI lines in /etc/cups/printers.conf : 
    406         You would have to preprend 'cupspykota://' in front  
     406        You would have to preprend 'cupspykota://' in front 
    407407        of what is already on these lines. For example, replace : 
    408      
     408 
    409409            DeviceURI socket://myprinter.example.com:9100 
    410          
    411         with :     
    412      
     410 
     411        with : 
     412 
    413413            DeviceURI cupspykota://socket://myprinter.example.com:9100 
    414              
    415         or :     
    416          
     414 
     415        or : 
     416 
    417417            DeviceURI cupspykota://socket://myprinter.example.com:9100 
    418          
     418 
    419419        Save the file and restart CUPS for the changes to take effect. 
    420          
     420 
    421421        Here too, you may find it interesting to use the pkturnkey command as 
    422422        described above to help with manual configuration of the file 
     
    425425Now you can begin to populate the PyKota's database with printers, 
    426426users and groups : 
    427    
    428 Add printers and users to the quota system and set their quota values :  
     427 
     428Add printers and users to the quota system and set their quota values : 
    429429 
    430430You can either use pkturnkey, or do the same things manually by 
     
    434434 
    435435    $ pkprinters --help 
    436      
     436 
    437437    will tell you how to create, manage or delete printers and 
    438438    printers groups. 
    439      
     439 
    440440    $ pkprinters --add --charge 0.05 hp2100 
    441      
     441 
    442442    would add the printer named hp2100 with a price per page 
    443443    of 0.05 unit. 
     
    446446 
    447447    $ pkusers --add --limitby balance --balance 10.0 jerome 
    448      
     448 
    449449    would create user jerome and give him ten credits to spend 
    450450    on any printer. 
    451      
     451 
    452452Finally create print quota entries : 
    453453 
    454454    $ edpykota --add --printer hp2100 john paul george ringo 
    455          
    456     This will create print quota entries for The Beatles on     
     455 
     456    This will create print quota entries for The Beatles on 
    457457    printer hp2100. The print quota entry holds the number of 
    458458    pages printed on a particular printer for a particular 
     
    460460    of balance limits. See pkusers and edpykota's manual 
    461461    pages for details. 
    462      
    463 Your users now should be able to print but not exceed their  
     462 
     463Your users now should be able to print but not exceed their 
    464464printing quota. 
    465465 
     
    467467 
    468468    $ repykota --printer hp2100 
    469      
     469 
    470470or : 
    471471 
    472472    $ repykota 
    473      
     473 
    474474    which will print quota usage for all users on all printers, 
    475475    along with totals, if you are a PyKota Administator. If you are 
    476476    a regular user, only your own quota report will be produced. 
    477      
    478 You can also use these commands :     
    479  
    480     $ pkusers --list  
     477 
     478You can also use these commands : 
     479 
     480    $ pkusers --list 
    481481    $ edpykota --list 
    482      
     482 
    483483    $ pkusers --list john paul george ringo 
    484484    $ edpykota --list --printer hp2100 john paul george ringo 
    485      
     485 
    486486Quota reports are also available remotely by using the CGI script 
    487 printquota.cgi provided in the cgi-bin/ subdirectory. You can  
     487printquota.cgi provided in the cgi-bin/ subdirectory. You can 
    488488also use the CSS stylesheet present in the stylesheets/ subdirectory 
    489 and put it at your web server's DocumentRoot, to benefit from a nicer  
     489and put it at your web server's DocumentRoot, to benefit from a nicer 
    490490look, especially quota violations will appear in different colors. 
    491491 
     
    497497 
    498498  http://otrs.librelogiciel.com/otrs/public.pl?ID=2 
    499             
     499 
    500500============================================================ 
    501501 
     
    505505  A mailing list is dedicated to PyKota, you can subscribe to it 
    506506  or consult its archives at : 
    507    
     507 
    508508    http://lists.pykota.com/mailman/listinfo/pykota 
    509      
    510   This mailing list is the preferred way to obtain support, because   
     509 
     510  This mailing list is the preferred way to obtain support, because 
    511511  all members can help and can also benefit from the solutions 
    512   proposed by other members.  
    513    
     512  proposed by other members. 
     513 
    514514  Another mailing list, dedicated to developers, is available from : 
    515    
     515 
    516516    http://lists.pykota.com/mailman/listinfo/pykota-devel 
    517      
    518   In this mailing list you can discuss implementation details, bugs,   
     517 
     518  In this mailing list you can discuss implementation details, bugs, 
    519519  ideas, and so on. All commit messages are also sent to this list. 
    520    
     520 
    521521  Posts by non-members are rejected. 
    522    
     522 
    523523  The mailing lists language is english and only english. 
    524      
    525 IRC :     
     524 
     525IRC : 
    526526----- 
    527527 
    528528  You can also chat with us : 
    529    
     529 
    530530        /server irc.freenode.net 
    531531        /join #pykota 
    532          
    533   Preferred language on this channel is english, but french       
     532 
     533  Preferred language on this channel is english, but french 
    534534  is also accepted. Try to avoid exposing complex problems 
    535535  in french because english speaking people on the channel 
    536536  wouldn't benefit from the solutions. 
    537    
     537 
    538538  PyKota's main author is known as 'tamere' on IRC. 
    539    
    540 Bug Tracker :     
     539 
     540Bug Tracker : 
    541541------------- 
    542542 
    543543  You can report bugs to our bug tracker on the development website 
    544544  at : 
    545    
     545 
    546546      http://trac.pykota.com 
    547      
     547