Show
Ignore:
Timestamp:
07/17/13 22:12:19 (11 years ago)
Author:
jerome
Message:

Removed a remaining reference to psyco

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/branches/1.26_fixes/README

    r3201 r3572  
    3030 
    3131==================================================================== 
    32          
     32 
    3333Planned features are described in the TODO file. 
    3434 
     
    3737 
    3838  - The 'hardware' method consists in querying the printer (via SNMP 
    39     or Netatalk or any other method of your choice) for its internal  
     39    or Netatalk or any other method of your choice) for its internal 
    4040    pages counter. 
    4141    This is done both at the beginning and at the end of a 
    42     print job. The counters difference is then used to  
     42    print job. The counters difference is then used to 
    4343    decrease the user's account balance or increase his quota usage. 
    44      
     44 
    4545  - The 'software' method consists in delegating the computation of the 
    4646    job's size in number of pages to any external command of your choice. 
     
    5454    Of course this means you have to install pkpgcounter if you want to 
    5555    use the default PDL parser. 
    56      
    57   - The 'ink' method consists in using pkpgcounter's code to compute   
     56 
     57  - The 'ink' method consists in using pkpgcounter's code to compute 
    5858    how much of each page is covered by ink in each color of a particular 
    5959    colorspace chosen between CMYK, CMY, RGB, and BW (grayscale). 
    6060    These values are then summed up together and multiplied by a set 
    6161    of coefficients defined in PyKota's configuration files. 
    62      
     62 
    6363PyKota is known to work with most printers, excepted GDI ones (Windows 
    6464only). At least one of the accounting methods above should work 
     
    7373 
    7474  You can now purchase 8x5x365@NextBusinessDay Technical 
    75   Support Contracts from us. The yearly fee is computed with   
     75  Support Contracts from us. The yearly fee is computed with 
    7676  the following formula : 
    7777 
    7878  (100.0 * NbPrintServers) + (2.5 * NbPrinters) + (0.04 * NbUsers) EUROS. 
    79    
     79 
    8080  This fee includes the VAT, and a free subscription to Official 
    8181  PyKota packages. 
    8282 
    8383  Please send an email to alet@librelogiciel.com if you're 
    84   interested in purchasing such a contract.    
     84  interested in purchasing such a contract. 
    8585 
    8686  Remember that purchasing a support contract for Free Software like PyKota 
    87   is a great way to show your appreciation for the work already being done  
     87  is a great way to show your appreciation for the work already being done 
    8888  on this project, and will help to improve this software in the future. 
    8989 
     
    102102  have to compile it into HTML or PDF yourself by using 
    103103  the appropriate tools as installed on your system. 
    104    
     104 
    105105  PyKota's collaborative documentation is available from : 
    106    
     106 
    107107    http://www.pykota.com/wiki/ 
    108      
     108 
    109109  You may learn more about PyKota, if it fits your own organization, 
    110110  its internal working, and some potential performance drawbacks and 
    111111  how to avoid them, in a document created by Ryan Suarez at : 
    112    
     112 
    113113    http://archive.macosxlabs.org/forum/webcrossing_archive/documentation/Pykota_and_CUPS/Pykota_and_CUPS.html 
    114114 
    115115  You may also find the following document interesting : 
    116    
     116 
    117117    http://es.tldp.org/Tutoriales/doc-openldap-samba-cups-python/ 
    118      
    119   This document, written in Spanish by Sergio Gonzalez Gonzalez,   
     118 
     119  This document, written in Spanish by Sergio Gonzalez Gonzalez, 
    120120  describes the integration of PyKota into an OpenLDAP + Samba 
    121   + CUPS installation. Even for people who can't read spanish  
     121  + CUPS installation. Even for people who can't read spanish 
    122122  this document is really interesting, and contains lots of 
    123123  screenshots. 
    124    
    125    
    126 Prerequisite :  
     124 
     125 
     126Prerequisite : 
    127127-------------- 
    128     
     128 
    129129  See : 
    130    
     130 
    131131    http://www.pykota.com/wiki/Dependencies 
    132      
     132 
    133133  for an up-to-date list, or see below (maybe not up-to-date) : 
    134    
     134 
    135135  You need to have the following tools installed on the CUPS Server : 
    136    
     136 
    137137    - CUPS (http://www.cups.org) 
    138138    - Python v2.3 or higher (http://www.python.org) 
    139139    - eGenix' mxDateTime Python extension (http://www.egenix.com) 
    140140    - The pkpgcounter command line tool, version 1.56 or higher. This 
    141       tool is now mandatory for PyKota to work.  
     141      tool is now mandatory for PyKota to work. 
    142142      (http://www.pykota.com/software/pkpgcounter) 
    143     - The pkipplib Python library (http://www.pykota.com/software/pkipplib)   
     143    - The pkipplib Python library (http://www.pykota.com/software/pkipplib) 
    144144    - The JAXML Python module to be able to dump datas in the XML format. 
    145145      (http://www.librelogiciel.com/software/) 
    146     - The Python-PAM module if you need the pknotify command to be able   
     146    - The Python-PAM module if you need the pknotify command to be able 
    147147      to check usernames and passwords. (http://www.pangalactic.org/PyPAM) 
    148148    - The Python-SNMP module to query printers for their page counter. 
    149       (http://pysnmp.sourceforge.net)  
     149      (http://pysnmp.sourceforge.net) 
    150150      IMPORTANT : version 3.4.2 or higher is REQUIRED. 
    151151      Versions 2.x won't work. Versions 4.x now work (tested with v4.1.5a). 
    152152    - The Python-OSD module to use the graphical print quota reminder. 
    153153      (http://repose.cx/pyosd/) 
    154     - The Python-chardet module to autodetect user's character set when   
     154    - The Python-chardet module to autodetect user's character set when 
    155155      printing. (http://chardet.feedparser.org) 
    156156    - SNMP tools (specifically the snmpget command) if you prefer to 
     
    160160      request your printer's lifetime page counter via AppleTalk. 
    161161      (http://netatalk.sourceforge.net) 
    162     - The ReportLab Python module (http://www.reportlab.org) if you want   
     162    - The ReportLab Python module (http://www.reportlab.org) if you want 
    163163      to have PyKota generate nice banners for you. 
    164     - The Python Imaging Library (aka PIL) module  
    165       (http://www.pythonware.com/downloads) if you want to have PyKota  
     164    - The Python Imaging Library (aka PIL) module 
     165      (http://www.pythonware.com/downloads) if you want to have PyKota 
    166166      generate nice banners for you. 
    167167    - PostgreSQL's PygreSQL Python extension and the PostgreSQL client 
    168168      libraries if you plan to use PostgreSQL as the database backend. 
    169169      (http://www.postgresql.org and http://www.pygreql.org) 
    170  or      
    171     - python-ldap Python module and the OpenLDAP client libraries   
     170 or 
     171    - python-ldap Python module and the OpenLDAP client libraries 
    172172      if you plan to use an LDAP server as the database backend. 
    173173      (http://www.openldap.org and http://python-ldap.sourceforge.net) 
    174  or  
     174 or 
    175175    - SQLite v3.2.7 and the SQLite libraries if you plan to use SQLite 
    176       as the database backend (http://www.sqlite.org). You also need the  
     176      as the database backend (http://www.sqlite.org). You also need the 
    177177      PySQLite module v2.0.5 or higher (http://www.pysqlite.org) 
    178178 or 
    179     - The MySQL-python bindings.  
    180       IMPORTANT: If you are using MySQL 4.1, then MySQL-python must be  
     179    - The MySQL-python bindings. 
     180      IMPORTANT: If you are using MySQL 4.1, then MySQL-python must be 
    181181      version 1.2 or greater. Version 1.0 does not work correctly with 4.1. 
    182        
    183      
    184   On Intel i386 architecture, and for performance reasons, it is 
    185   strongly suggested that you install the Python accelerator Psyco,  
    186   available at : 
    187    
    188       http://psyco.sourceforge.net 
    189        
    190   Under Debian :     
    191    
    192       $ apt-get install python-psyco 
    193        
    194   Other architectures may be supported as well in the future, check     
    195   this on Psyco's website. 
    196    
    197   Installing Psyco is not mandatory, but it will speedup PCL5 parsing 
    198   by almost 3 times. PostScript and PDF parsing can also benefit, 
    199   but in an almost unnoticeable manner since this part of the code 
    200   is already optimal. For PCL5 this is a completely different matter, 
    201   and if you install Psyco you will never regret it ! 
    202   Same remark applies for PCL6 (aka PCLXL) : the parser is completely 
    203   different, but the performance gain with Psyco is impressive. 
    204    
     182 
     183 
    205184  You may also benefit from having the following tools installed to 
    206185  deal with some printers : 
    207    
     186 
    208187    - npadmin 
    209188    - netcat 
    210189    - ghostscript 
    211      
     190 
    212191  You need to have the following tools installed on the database 
    213192  server : 
    214    
     193 
    215194    - PostgreSQL (http://www.postgresql.org) 
    216      
    217   or   
    218    
     195 
     196  or 
     197 
    219198    - OpenLDAP, or any other LDAP server (http://www.openldap.org) 
    220      
    221   or    
    222    
     199 
     200  or 
     201 
    223202    - SQLite, v3.2.7 or higher (http://www.sqlite.org). 
    224203      Beware : with SQLite the database server and the print 
    225204      servers MUST be the very same machine. 
    226        
    227   or      
    228    
     205 
     206  or 
     207 
    229208    - MySQL 4.1 or higher. 5.x is recommended. 
    230      
     209 
    231210  This list of prerequisite software may change in the future, when 
    232   PyKota will support more functionnalities you will be given  
     211  PyKota will support more functionnalities you will be given 
    233212  alternatives. 
    234    
    235   Of course the Print Server and the database server can be the  
    236   very same machine if you've got a tiny network, or you can have  
     213 
     214  Of course the Print Server and the database server can be the 
     215  very same machine if you've got a tiny network, or you can have 
    237216  multiple Print Servers all storing their quotas on the same database 
    238217  server if you've got a bigger network. (NB : with SQLite, the database 
    239218  can't be shared between several print servers) 
    240    
    241 Hint :   
     219 
     220Hint : 
    242221------ 
    243222 
    244   - The Debian GNU/Linux distribution is to our knowledge the  
     223  - The Debian GNU/Linux distribution is to our knowledge the 
    245224    easiest distribution to install PyKota on, because almost all 
    246225    of PyKota dependencies are already included, excepted 
     
    253232    manually. 
    254233 
    255 Then :    
     234Then : 
    256235------ 
    257   
     236 
    258237Download the latest PyKota version from the Subversion tree : 
    259238 
     
    263242 
    264243    $ python checkdeps.py 
    265      
     244 
    266245    An availability report for all the software needed by PyKota 
    267246    will be displayed : you'll have to install the missing 
    268247    software if you want PyKota to work correctly. 
    269      
     248 
    270249To install the software, just type : 
    271250 
     
    278257 
    279258    $ pksetup debian 
    280      
    281 or :     
     259 
     260or : 
    282261 
    283262    $ pksetup ubuntu 
    284      
     263 
    285264and follow the instructions to install PyKota in interactive mode, then 
    286265skip the remaining of the section below. 
     
    291270 
    292271    $ adduser --system --group --home /etc/pykota --gecos PyKota pykota 
    293      
     272 
    294273Put the user your printing system is run as in the pykota system group : 
    295274 
    296275    $ adduser lp pykota 
    297      
     276 
    298277    NB : on our system, the CUPS printing system runs as system user 'lp'. 
    299278    Please adapt this to your own system. 
     
    304283change the passwords, or, in the case of the LDAP backend, adapt it 
    305284to your own LDAP DIT, and execute the initialization script 
    306 to create an empty PyKota database. Upgrade scripts may be  
     285to create an empty PyKota database. Upgrade scripts may be 
    307286provided as well. NB : if you use PostgreSQL, a good way to 
    308287make PyKota work first time is to modify PostgreSQL's pg_hba.conf 
     
    312291and PostgreSQL's documentation for details on this subject. 
    313292 
    314 Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample  
    315 sample configuration files to ~pykota/pykota.conf and  
    316 ~pykota/pykotadmin.conf   
     293Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample 
     294sample configuration files to ~pykota/pykota.conf and 
     295~pykota/pykotadmin.conf 
    317296The installation script usually copies these files into /usr/share/pykota 
    318297 
     
    320299be searched first in user pykota's home directory, then in /etc/pykota. 
    321300 
    322 You need to adapt these files to your own needs. Especially you may  
    323 have to create sections named after your own printers, and change  
    324 the administrator's email address which by default is  
    325 root@localhost. Read and try to understand these two very well  
    326 commented files, so that you'll encounter less problems later.  
     301You need to adapt these files to your own needs. Especially you may 
     302have to create sections named after your own printers, and change 
     303the administrator's email address which by default is 
     304root@localhost. Read and try to understand these two very well 
     305commented files, so that you'll encounter less problems later. 
    327306 
    328307The rest of the installation depends on your printing system : 
    329308 
    330309  - CUPS Printing System : 
    331    
     310 
    332311    Once and for all : 
    333      
    334         Create a symbolic link to the cupspykota backend  
     312 
     313        Create a symbolic link to the cupspykota backend 
    335314        in CUPS's backend directory : 
    336          
     315 
    337316          $ cd /usr/lib/cups/backend 
    338317          $ ln -s /usr/share/pykota/cupspykota cupspykota 
    339            
    340         If you use CUPS v1.2 or higher, please do this as well :   
    341          
     318 
     319        If you use CUPS v1.2 or higher, please do this as well : 
     320 
    342321          $ chmod 700 /usr/share/pykota/cupspykota 
    343            
     322 
    344323          This allows the cupspykota backend to support other 
    345324          backends which must be run as user root, like the 
    346325          lpd backend for example. 
    347            
     326 
    348327        Restart CUPS so that the new backend can be detected. 
    349          
     328 
    350329          $ /etc/init.d/cupsys restart 
    351            
    352           for example under Debian, or any similar command depending  
     330 
     331          for example under Debian, or any similar command depending 
    353332          on your operating system of choice. 
    354            
     333 
    355334    For new printers : 
    356      
    357         Go to CUPS management interface (http://localhost:631)  
     335 
     336        Go to CUPS management interface (http://localhost:631) 
    358337        and choose the appropriate PyKota managed device depending 
    359338        on the type of printer you use. For example, if your 
    360339        printer is waiting on : 
    361          
     340 
    362341            socket://myprinter.example.com:9100 
    363              
    364         Then choose :     
    365          
     342 
     343        Then choose : 
     344 
    366345            cupspykota:socket://myprinter.example.com:9100 
    367              
    368         Configure your printer as usual.     
    369          
    370         Now double check /etc/pykota/pykota.conf  
    371          
     346 
     347        Configure your printer as usual. 
     348 
     349        Now double check /etc/pykota/pykota.conf 
     350 
    372351        You should manually create a section named after the 
    373352        printer you've just added, unless you have set 
    374353        all options globally. 
    375          
    376         The new pkturnkey command can help you with correct settings  
     354 
     355        The new pkturnkey command can help you with correct settings 
    377356        for your printers. To have pkturnkey give you some hints 
    378357        about what to put into pykota.conf for a particular 
    379358        print queue, just use its --doconf command line switch : 
    380          
     359 
    381360          $ pkturnkey --doconf TheNameOfThePrintQueue 
    382          
     361 
    383362        pkturnkey will try to tell you what is the best accounting 
    384363        method for each printer and will print some lines you'll 
    385364        just have to copy&paste in the appropriate sections in 
    386365        /etc/pykota/pykota.conf 
    387          
     366 
    388367        For more informations about what pkturnkey can do for you, 
    389368        see pkturnkey's manual page or use the --help command 
    390369        line switch : 
    391          
     370 
    392371          $ pkturnkey --help | less 
    393          
     372 
    394373        That's all. 
    395      
     374 
    396375    For existing print queues : 
    397      
     376 
    398377        You want to route the print queue through PyKota, 
    399378        and you can do this in several manners. 
    400          
     379 
    401380          $ pkprinters --add --cups TheNameOfThePrintQueue 
    402            
    403         or    
    404          
     381 
     382        or 
     383 
    405384          if your printer's DeviceURI is something like : 
    406            
     385 
    407386              socket://myprinter.example.com:9100 
    408                
    409           then you can do this :     
    410            
     387 
     388          then you can do this : 
     389 
    411390          $ pkprinters --add TheNameOfThePrintQueue 
    412391          $ lpadmin -p TheNameOfThePrintQueue \ 
    413392                    -v cupspykota://socket://myprinter.example.com:9100 
    414            
    415         Finally, you could do it manually by modifying the  
     393 
     394        Finally, you could do it manually by modifying the 
    416395        the DeviceURI lines in /etc/cups/printers.conf : 
    417         You would have to preprend 'cupspykota://' in front  
     396        You would have to preprend 'cupspykota://' in front 
    418397        of what is already on these lines. For example, replace : 
    419      
     398 
    420399            DeviceURI socket://myprinter.example.com:9100 
    421          
    422         with :     
    423      
     400 
     401        with : 
     402 
    424403            DeviceURI cupspykota://socket://myprinter.example.com:9100 
    425              
    426         or :     
    427          
     404 
     405        or : 
     406 
    428407            DeviceURI cupspykota://socket://myprinter.example.com:9100 
    429          
     408 
    430409        Save the file and restart CUPS for the changes to take effect. 
    431          
     410 
    432411        Here too, you may find it interesting to use the pkturnkey command as 
    433412        described above to help with manual configuration of the file 
     
    435414 
    436415  - LPRng Printing System : 
    437    
     416 
    438417    IMPORTANT : This release of PyKota DOES NOT support LPRng. 
    439      
     418 
    440419    If you want to use PyKota with LPRng, you have to download 
    441420    an earlier release of PyKota, for example v1.22HotFix1. 
    442          
     421 
    443422Now you can begin to populate the PyKota's database with printers, 
    444423users and groups : 
    445    
    446 Add printers and users to the quota system and set their quota values :  
     424 
     425Add printers and users to the quota system and set their quota values : 
    447426 
    448427You can either use pkturnkey, or do the same things manually by 
     
    452431 
    453432    $ pkprinters --help 
    454      
     433 
    455434    will tell you how to create, manage or delete printers and 
    456435    printers groups. 
    457      
     436 
    458437    $ pkprinters --add --charge 0.05 hp2100 
    459      
     438 
    460439    would add the printer named hp2100 with a price per page 
    461440    of 0.05 unit. 
     
    464443 
    465444    $ pkusers --add --limitby balance --balance 10.0 jerome 
    466      
     445 
    467446    would create user jerome and give him ten credits to spend 
    468447    on any printer. 
    469      
     448 
    470449Finally create print quota entries : 
    471450 
    472451    $ edpykota --add --printer hp2100 john paul george ringo 
    473          
    474     This will create print quota entries for The Beatles on     
     452 
     453    This will create print quota entries for The Beatles on 
    475454    printer hp2100. The print quota entry holds the number of 
    476455    pages printed on a particular printer for a particular 
     
    478457    of balance limits. See pkusers and edpykota's manual 
    479458    pages for details. 
    480      
    481 Your users now should be able to print but not exceed their  
     459 
     460Your users now should be able to print but not exceed their 
    482461printing quota. 
    483462 
     
    485464 
    486465    $ repykota --printer hp2100 
    487      
     466 
    488467or : 
    489468 
    490469    $ repykota 
    491      
     470 
    492471    which will print quota usage for all users on all printers, 
    493472    along with totals, if you are a PyKota Administator. If you are 
    494473    a regular user, only your own quota report will be produced. 
    495      
    496 You can also use these commands :     
    497  
    498     $ pkusers --list  
     474 
     475You can also use these commands : 
     476 
     477    $ pkusers --list 
    499478    $ edpykota --list 
    500      
     479 
    501480    $ pkusers --list john paul george ringo 
    502481    $ edpykota --list --printer hp2100 john paul george ringo 
    503      
     482 
    504483Quota reports are also available remotely by using the CGI script 
    505 printquota.cgi provided in the cgi-bin/ subdirectory. You can  
     484printquota.cgi provided in the cgi-bin/ subdirectory. You can 
    506485also use the CSS stylesheet present in the stylesheets/ subdirectory 
    507 and put it at your web server's DocumentRoot, to benefit from a nicer  
     486and put it at your web server's DocumentRoot, to benefit from a nicer 
    508487look, especially quota violations will appear in different colors. 
    509488 
     
    515494 
    516495  http://otrs.librelogiciel.com/otrs/public.pl?ID=2 
    517             
     496 
    518497============================================================ 
    519498 
     
    524503them available under the GNU General Public License : 
    525504 
    526   - Kanakorn Horsiritham developped phpPykotaAdmin which is  
     505  - Kanakorn Horsiritham developped phpPykotaAdmin which is 
    527506    a web based database independant administrative GUI, 
    528507    written in PHP. 
    529    
     508 
    530509      http://opensource.psu.ac.th/~kanakorn/mambo/ 
    531        
    532     He was also kind enough to write an installation guide   
     510 
     511    He was also kind enough to write an installation guide 
    533512    in english for CUPS and PyKota with phpPykotaAdmin on Fedora 
    534513    Core 3. You'll find this document on the same website. 
    535      
     514 
    536515    This great software currently at version 0.3 is a wonderful 
    537     basis for an administrative GUI since it only depends on  
     516    basis for an administrative GUI since it only depends on 
    538517    PyKota commands to be present to successfully manage 
    539     PyKota's database.  
    540      
     518    PyKota's database. 
     519 
    541520    However this tool is very old now and doesn't work 
    542521    with more recent versions of PyKota. It could be 
    543522    a good starting point if you planned to develop such 
    544523    a web user interface though. 
    545    
    546 Additionnal software will be listed here when they will be   
     524 
     525Additionnal software will be listed here when they will be 
    547526ready. 
    548527 
     
    554533  A mailing list is dedicated to Pykota, you can subscribe to it 
    555534  or consult its archives at : 
    556    
     535 
    557536    http://cgi.librelogiciel.com/mailman/listinfo/pykota 
    558      
    559   The mailing list is the preferred way to obtain support, because   
     537 
     538  The mailing list is the preferred way to obtain support, because 
    560539  all members can help and can also benefit from the solutions 
    561   proposed by other members.  
    562    
     540  proposed by other members. 
     541 
    563542  Posts by non-members are usually rejected. 
    564    
     543 
    565544  The mailing list language is english and only english. 
    566      
    567 IRC :     
     545 
     546IRC : 
    568547----- 
    569548 
    570549  You can also chat with us : 
    571    
     550 
    572551        /server irc.freenode.net 
    573552        /join #pykota 
    574          
    575   Preferred language on this channel is english, but french       
     553 
     554  Preferred language on this channel is english, but french 
    576555  is also accepted. Try to avoid exposing complex problems 
    577556  in french because english speaking people on the channel 
    578557  wouldn't benefit from the solutions. 
    579    
     558 
    580559  PyKota's main author is known as 'tamere' on IRC. 
    581      
     560 
    582561============================================================ 
    583      
     562 
    584563Please e-mail bugs to the mailing list at : pykota@librelogiciel.com 
    585564or to the main author at : alet@librelogiciel.com (Jerome Alet)