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/docs/installation.sgml

    r1500 r1600  
    2929    have to decompress and visit its archive, to do so just type the following commands : 
    3030    <screen> 
    31 jerome@nordine:~$ tar -zxf pykota-1.18_official.tar.gz     
    32 jerome@nordine:~$ cd pykota-1.18_official 
    33 jerome@nordine:~/pykota-1.18_official$ 
     31jerome@nordine:~$ tar -zxf pykota-1.19_official.tar.gz     
     32jerome@nordine:~$ cd pykota-1.19_official 
     33jerome@nordine:~/pykota-1.19_official$ 
    3434    </screen> 
    3535  </para> 
     
    152152            <filename>initscripts/postgresql/pykota-postgresql.sql</filename> file 
    153153            accordingly, and report your changes into <application>PyKota</application>'s 
    154             configuration file. 
     154            configuration files. 
    155155          </para> 
    156156        </note>   
     
    165165        From a command line interpreter (i.e. shell), type the following commands : 
    166166        <screen> 
    167 jerome@nordine:~$ cd pykota-1.18_official/initscripts/postgresql 
    168 jerome@nordine:~/pykota-1.18_official/initscripts$ psql -h localhost -U postgres template1 
     167jerome@nordine:~$ cd pykota-1.19_official/initscripts/postgresql 
     168jerome@nordine:~/pykota-1.19_official/initscripts$ psql -h localhost -U postgres template1 
    169169Welcome to psql, the PostgreSQL interactive terminal. 
    170170 
     
    197197ALTER USER 
    198198pykota=# \q 
    199 jerome@nordine:~/pykota-1.18_official/initscripts/postgresql$ 
     199jerome@nordine:~/pykota-1.19_official/initscripts/postgresql$ 
    200200        </screen> 
    201201      </para> 
     
    210210        take any other step as needed. Please refer to <application>PostgreSQL</application>'s 
    211211        documentation for details. Also if <application>PyKota</application>'s configuration 
    212         file <filename>/etc/pykota/pykotadmin.conf</filename> is readable by anyone with access on your file system, a local user could  
    213         create some script to modify his own print quota. 
     212        file <filename>/etc/pykota/pykotadmin.conf</filename> is readable by anyone with access on your file system,  
     213        a local user could create some script to modify his own print quota. 
    214214        <warning> 
    215215          <title>Warning</title> 
     
    248248      <para> 
    249249        From version 1.09 on, <application>OpenLDAP</application> can be used as a Quota Storage Backend. 
    250         It is possible that other LDAP servers can be used, but this is currently untested. 
     250        Some other LDAP servers can be used, but this is currently untested in production. 
    251251      </para> 
    252252       
     
    283283        While this is not mandatory, it is recommended that you setup 
    284284        some indexes for some often accessed PyKota attributes. 
    285         Actually, the <acronym>LDAP</acronym> schema included with 
    286         PyKota doesn't allow indexes of another type than <literal>eq</literal>, 
    287         but this will change in a next release. Here are the minimal indexes 
     285        Here are the minimal indexes 
    288286        lines you may want to put in <filename>slapd.conf</filename> : 
    289287        <screen> 
    290288# Indexes for PyKota 
    291 index pykotaUserName eq 
    292 index pykotaGroupName eq 
    293 index pykotaPrinterName eq 
     289index pykotaUserName pres,eq,sub 
     290index pykotaGroupName pres,eq,sub 
     291index pykotaPrinterName pres,eq,sub 
    294292index pykotaLastJobIdent eq 
    295293        </screen> 
     294      </para> 
     295       
     296      <para> 
     297        Now you must ensure that the DNs you'll use to bind to     
     298        your OpenLDAP server don't have search queries size limits, 
     299        which gives for example (OpenLDAP 2.1.x or above) : 
     300         
     301<screen>         
     302# No Limits for PyKota's administrator and read-only user 
     303limits dn="cn=RWadmin,dc=example,dc=com" size.soft=-1 size.hard=soft 
     304limits dn="cn=ROadmin,dc=example,dc=com" size.soft=-1 size.hard=soft 
     305</screen>         
     306 
     307        Where RWadmin and ROadmin are the usernames used to bind to your 
     308        OpenLDAP server within PyKota, respectively in ReadWrite mode  
     309        (as set in pykotadmin.conf) and in ReadOnly mode (as set in pykota.conf). 
    296310      </para> 
    297311       
     
    381395          <para> 
    382396            <application>CUPS</application> version 1.1 or above, or <application>LPRng</application> 
    383             version 3.8.20 or above (it probably works with older versions but this is untested). 
     397            version 3.8.27 or above (it probably works with older versions but this is untested). 
    384398            You can download them from <ulink url="http://www.cups.org">http://www.cups.org</ulink> 
    385399            or <ulink url="http://lprng.sourceforge.net">http://lprng.sourceforge.net</ulink> 
     
    532546      Please create a backup of the <filename>/etc/pykota</filename> 
    533547      directory before modifying anything. 
    534       Under some circumstances, the setup PyKota may refuse to install PyKota 
     548      Under some circumstances, PyKota's setup script may refuse to install PyKota 
    535549      until you have modified your configuration. Just do it and restart 
    536550      the installation script as described above. 
     
    611625      <para> 
    612626        Then when creating new printers or reconfiguring existing ones, just 
    613         choose devices which are <literal>PyKota managed</literal> instead of 
     627        choose devices which are <literal>PyKota managed</literal> 
     628        <footnote> 
     629          <para> 
     630            Debian 3.0 Woody is known to have problems : CUPS 1.1.14 doesn't automatically 
     631            detect <literal>PyKota managed</literal> devices. So you have to manually 
     632            modify CUPS' <filename>printers.conf</filename> file as explained in  
     633            PyKota's toplevel <filename>README</filename> file. 
     634          </para> 
     635        </footnote> 
     636        instead of 
    614637        normal devices. You've got one <literal>PyKota managed</literal> device 
    615638        for each regular device available from CUPS, so just choose the appropriate 
     
    645668    <sect2> 
    646669      <title>With LPRng</title> 
    647       <para> 
    648         ######### TODO ########## 
    649       </para> 
    650        
    651       <para> 
    652         You have to restart <application>LPRng</application> for this modification to 
    653         take effect :  
     670       
     671      <para> 
     672        For each printer on which you want to use <application>PyKota</application>, just modify the printer's  
     673        entry in <filename>/etc/printcap</filename> : you have to add 
     674        the three following lines : 
     675         
     676<screen>         
     677  :ac=true:\ 
     678  :as=/usr/share/pykota/lprngpykota:\ 
     679  :ae=/usr/share/pykota/lprngpykota:\ 
     680</screen>           
     681 
     682        This will tell <application>LPRng</application> to activate accounting, and use the <filename>lprngpykota</filename>  
     683        accounting filter both at the start and at the end of printing.  
     684      </para> 
     685       
     686       
     687      <para> 
     688        Repeat the above procedure for each print queue on which you want to use 
     689        PyKota. That's all ! 
     690      </para> 
     691       
     692      <para> 
     693        When all modifications are done, just save the <filename>/etc/printcap</filename> file  
     694        and restart <application>LPRng</application> for the changes to take effect :  
    654695        <screen> 
    655696$ /etc/init.d/lprng restart         
    656697        </screen> 
    657       </para> 
    658        
    659       <para> 
    660         Repeat the above procedure for each print queue on which you want to use 
    661         PyKota. That's all ! 
    662698      </para> 
    663699       
     
    689725 
    690726$Log$ 
     727Revision 1.26  2004/07/16 12:22:46  jalet 
     728LPRng support early version 
     729 
    691730Revision 1.25  2004/05/25 09:49:53  jalet 
    692731The old pykota filter has been removed. LPRng support disabled for now.