Changeset 1600 for pykota/trunk/README

Show
Ignore:
Timestamp:
07/16/04 14:22:47 (20 years ago)
Author:
jalet
Message:

LPRng support early version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/README

    r1580 r1600  
    2525     FROM THIS FILE, PYKOTA CAN'T BE USED ANYMORE WITH LPRNG. 
    2626      
    27      SUPPORT FOR LPRNG SHOULD BE RE-ADDED SOON WHEN A HUGE REWRITE 
    28      OF SOME PARTS OF PYKOTA WILL HAVE TAKEN PLACE 
     27     LPRNG SUPPORT IS CURRENTLY BEING REWRITTEN, AND YOU CAN 
     28     ALREADY PLAY WITH IT, BUT DON'T USE IT IN PRODUCTION UNTIL 
     29     THIS NOTE IS REMOVED. 
    2930 
    3031==================================================================== 
     
    4748        - Supports both CUPS and LPRng as the printing system. 
    4849         
    49           NB : LPRng support is currently being rewritten, so 
    50           LPRng is actually not supported in latest CVS versions. 
    51              
    5250    Databases : 
    5351     
     
    174172    counter. 
    175173     
    176     With CUPS, this is done both at the beginning and at the end of a 
     174    This is done both at the beginning and at the end of a 
    177175    print job. The counters difference is then immediately used to  
    178176    decrease the user's account balance or increase his quota usage. 
    179      
    180     With LPRng, this is done just before the beginning of a job, and used  
    181     this to modify the *preceding* user's quota. So you're always late  
    182     of one print job, but this is generally ok. 
    183177     
    184178  - The 'software' method consists in delegating the computation of the 
     
    186180    The command can read the job's data from its standard input and MUST 
    187181    output the job's size on its standard output. Changes to the user 
    188     account are reported immediately, both with CUPS and LPRng. 
    189      
    190 PyKota is known to work fine with HP Laserjet 2100 and 2200, and  
    191 Apple LaserWriter 16/600 PS, both with CUPS and LPRng, under  
    192 Debian GNU/Linux (Sarge and Sid) operating systems. It should work 
    193 fine with most network printers. 
     182    account are reported immediately. 
     183     
     184PyKota is known to work fine with most laser printers, either with 
     185software accounting, or with hardware accounting if the printer 
     186supports this. 
    194187 
    195188============================================================ 
     
    237230       
    238231  Other architectures may be supported as well in the future, check     
    239   on Psyco's website. 
     232  this on Psyco's website. 
    240233   
    241234  Installing Psyco is not mandatory, but it will speedup PCL5 parsing 
     
    244237  is already optimal. For PCL5 this is a completely different matter, 
    245238  and if you install Psyco you will never regret it ! 
    246   Same remark applies for PCL6 (aka PCLXL) but performance improvement 
    247   is yet to be fully tested (it is very high anyway). 
     239  Same remark applies for PCL6 (aka PCLXL) : the parser is completely 
     240  different, but the performance gain with Psyco is impressive. 
    248241   
    249242  You may also benefit from having the following tools installed to 
     
    268261  the Print Server. The PostgreSQL client libraries' version must  
    269262  match the PostgreSQL version used on the Quota Storage Server.  
    270   BEWARE : under Debian Sarge, as of March 15th 2004, there's a 
    271   problem with python2.2-pygresql and python-2.3-pygresql, so please 
    272   install python2.1-pygresql and use Python 2.1 to install and run 
    273   PyKota. This is not a bug in PyKota, and this should be fixed 
    274   by Debian in a few days I hope. 
    275263   
    276264or   
     
    307295 
    308296Go to the initscripts subdirectory of PyKota's sources, and choose 
    309 the appropriate storage backend for your configuration. Read 
     297the appropriate storage backend for your configuration. Read carefully 
    310298the associated README file and execute the initialization script 
    311299to create an empty PyKota Storage. Upgrade scripts may be  
     
    314302Copy the conf/pykota.conf.sample and  conf/pykotadmin.conf.sample  
    315303sample configuration files to /etc/pykota/pykota.conf and  
    316 /etc/pykota/pykotadmin.conf. The installation script tries to do  
    317 this for you if needed and you agreed to this action. You need to  
    318 adapt these files to your own needs. Especially you have to create  
     304/etc/pykota/pykotadmin.conf (the installation script tries to do  
     305this for you if needed and you agreed to this action). You need to  
     306adapt these files to your own needs. Especially you may have to create  
    319307sections named after your own printers, and change the  
    320308administrator's email address which by default is root@localhost. 
     
    342330          $ /etc/init.d/cupsys restart 
    343331           
     332        or :     
     333       
     334          $ /etc/rc.d/init.d/cupsysrestart 
     335           
     336        or any similar command depending on your operating system.   
     337           
    344338    For new printers : 
    345339     
     
    358352         
    359353        Now double check /etc/pykota/pykota.conf  
    360         This file should contain a section named after the 
     354         
     355        You should manually create a section named after the 
    361356        printer you've just added, unless you have set 
    362357        all options globally. 
     358         
    363359        The new pkhint command can help you with correct settings  
    364360        for your printers, but don't rely on it because it is still 
    365         incomplete. 
     361        experimental work. To use pkhint, you have to feed it with 
     362        CUPS' printers.conf file this way : 
     363         
     364          $ pkhint </etc/cups/printers.conf 
     365         
     366        pkhint will try to tell you what is the best accounting 
     367        method for each printer and will print some lines you'll 
     368        just have to copy&paste in the appropriate sections in 
     369        /etc/pykota/pykota.conf 
    366370         
    367371        That's all. 
     
    399403         
    400404        Save the file and restart CUPS. 
     405         
     406        Here too, you may find it interesting to use the pkhint command as 
     407        described above to help with manual configuration of the file 
     408        /etc/pykota/pykota.conf 
    401409 
    402410  - LPRng Printing System : 
    403411   
    404       For now LPRng support in PyKota is deactivated. Please be patient. 
     412    For each printer on which you want to use PyKota : 
     413     
     414        Modify the printer's entry in /etc/printcap : you have to add 
     415        the three following lines : 
     416         
     417          :ac=true:\ 
     418          :as=/usr/share/pykota/lprngpykota:\ 
     419          :ae=/usr/share/pykota/lprngpykota:\ 
     420           
     421        This will tell LPRng to activate accounting, and use the lprngpykota  
     422        accounting filter both at the start and at the end of printing.  
     423         
     424    When all modifications are done, just save the /etc/printcap file and     
     425    restart LPRng : 
     426     
     427          $ /etc/init.d/lprng restart 
     428           
     429        or :     
     430       
     431          $ /etc/rc.d/init.d/lprng restart 
     432           
     433        or any similar command depending on your operating system.   
     434         
     435    NB : the pkhint command can't be used with LPRng for now, so you     
     436         have to modify /etc/pykota/pykota.conf carefully. The comments 
     437         in this file will help you. 
    405438       
    406439Now you can begin to populate the PyKota's database with printers, 
     
    489522    http://cgi.librelogiciel.com/mailman/listinfo/pykota 
    490523     
     524  The mailing list is the preferred way to obtain support, because   
     525  all members can help and can also benefit from the solutions 
     526  proposed by other members.  
     527   
     528  Posts by non-members are usually rejected. 
     529   
     530  The mailing list language is english and only english. 
     531     
    491532IRC :     
    492533----- 
     
    496537        /server irc.freenode.net 
    497538        /join #pykota 
     539         
     540  Preferred language on this channel is english, but french       
     541  is also accepted. Try to avoid exposing complex problems 
     542  in french because english speaking people on the channel 
     543  wouldn't benefit from the solutions. 
     544   
     545  PyKota's main author is known as 'tamere' on IRC. 
    498546     
    499547============================================================