[1175] | 1 | PyKota's FAQ : |
---|
| 2 | |
---|
| 3 | # $Id$ |
---|
| 4 | |
---|
[1412] | 5 | * I've installed all correctly, I've created users |
---|
| 6 | and printers, but when printing nothing works. |
---|
| 7 | What is the problem ? |
---|
| 8 | The most probable cause for this is that you didn't |
---|
| 9 | adapt /etc/pykota/pykota.conf to your own configuration. |
---|
| 10 | The file installed by default is just an example, you |
---|
| 11 | have to modify it. See the rest of this document to |
---|
| 12 | learn how to really diagnose what went wrong. |
---|
| 13 | |
---|
[1388] | 14 | * Why doesn't CUPS under Debian Woody automatically |
---|
| 15 | detects PyKota managed devices ? |
---|
| 16 | |
---|
| 17 | The CUPS version in Debian Woody is 1.1.14 which is a bit |
---|
| 18 | too old. To use PyKota with this version, just install |
---|
| 19 | your printers as usual in CUPS web interface, and ensure |
---|
| 20 | they work fine, then save your changes, and modify |
---|
| 21 | /etc/cups/printers.conf manually as explained in |
---|
| 22 | PyKota's toplevel README file. Finally restart CUPS, |
---|
| 23 | and your printers should be managed by PyKota. |
---|
[1389] | 24 | Another solution is to install a newer CUPS release. |
---|
[1388] | 25 | |
---|
[1175] | 26 | * Is print accounting ever exact ? |
---|
| 27 | |
---|
| 28 | No. Print accounting is **never** exact, because it depends |
---|
| 29 | on external factors like the presence of paper in the printer, |
---|
| 30 | the quantity of remaining ink in the print cartridge, paper |
---|
| 31 | jams, etc... All these things are very difficult to account |
---|
| 32 | for correctly, and no print accounting package deals with |
---|
| 33 | these artefacts correctly in all situations. |
---|
| 34 | We are however confident that PyKota is one of the more |
---|
| 35 | exact print accounting software, because by default it |
---|
| 36 | asks the printers for how many pages they have really printed. |
---|
| 37 | |
---|
| 38 | * Can PyKota account for ink usage ? |
---|
| 39 | |
---|
| 40 | No. Actually PyKota doesn't account for ink usage, but this |
---|
| 41 | may come in a future release. PyKota only accounts for pages |
---|
| 42 | printed and/or money spent. If ink accounting is a necessity |
---|
| 43 | for you, PrintBill is recommended instead of PyKota. PrintBill |
---|
| 44 | allows you to bill differently per color, and to bill depending |
---|
| 45 | on the percent of the ink covered part of the pages. |
---|
| 46 | |
---|
[1198] | 47 | * What is a 'dumb printer' ? |
---|
| 48 | |
---|
| 49 | In PyKota, the term 'dumb printer' defines a printer which doesn't |
---|
| 50 | understand PostScript AND doesn't have an internal page counter, AND |
---|
| 51 | for which you don't know how to compute a job's size in number of |
---|
| 52 | pages by analyzing its content. Any printer which is not a |
---|
| 53 | 'dumb printer' according to the above definition is supported |
---|
| 54 | with PyKota. |
---|
| 55 | |
---|
[1175] | 56 | * How can I make PyKota work with my non-postscript printer under |
---|
| 57 | CUPS ? |
---|
| 58 | |
---|
[1186] | 59 | From version 1.16alpha7, PyKota includes a CUPS backend which |
---|
[1198] | 60 | allows you to use any type of printer and any driver, provided |
---|
| 61 | your printer is not a 'dumb printer' (see above). |
---|
[1175] | 62 | |
---|
[1198] | 63 | * How can I use my 'dumb printer' with CUPS and PyKota. |
---|
[1175] | 64 | |
---|
[1500] | 65 | You have to use a software accounter directive, and |
---|
| 66 | create a script which understands your printer's |
---|
| 67 | Page Description Language. |
---|
[1198] | 68 | |
---|
[1500] | 69 | PyKota natively understands PostScript and PCL5, |
---|
| 70 | but PCL6 support is in the works, and more PDLs |
---|
| 71 | will be added in the future. However you can always |
---|
| 72 | plug your own PDL analyzer in PyKota. |
---|
[1198] | 73 | |
---|
[1199] | 74 | * I've got a great number of users. How can I automatically |
---|
| 75 | set an initial print quota for them on first print ? |
---|
| 76 | |
---|
| 77 | You have to define an external policy for unknown users, |
---|
| 78 | to automatically add them to the Print Quota database. |
---|
| 79 | The sample configuration file contains examples to do this. |
---|
| 80 | |
---|
[1334] | 81 | * What does the --prototype command line option to edpykota do ? |
---|
| 82 | |
---|
| 83 | This option currently (v1.17) only copies the soft and hard |
---|
| 84 | page limits from a template user to other users. This option |
---|
| 85 | needs to be updated to new PyKota functionnalities, because it |
---|
| 86 | currently lacks. |
---|
| 87 | |
---|
[1198] | 88 | * How can I diagnose the problem when something goes wrong ? |
---|
| 89 | |
---|
[1175] | 90 | Put "LogLevel debug2" in cupsd.conf (usually in /etc/cups/). |
---|
| 91 | Then put "logger: system" and "debug: yes" in |
---|
| 92 | /etc/pykota/pykota.conf. |
---|
| 93 | Finally restart CUPS. |
---|
| 94 | CUPS' error_log file will now contain many informations which |
---|
| 95 | will help diagnose your problem. Also your syslog's output for |
---|
| 96 | the LPR facility (usually /var/log/lpr.log) will contain |
---|
| 97 | PyKota's debug messages, notably all database related queries |
---|
| 98 | and their result, be your database PostgreSQL or OpenLDAP. |
---|
| 99 | With these two files the problem can usually be diagnosed within |
---|
| 100 | minutes. Send them to the mailing list and wait for an answer. |
---|
| 101 | |
---|
[1268] | 102 | * How can I share print quota between some printers only (not all) ? |
---|
| 103 | |
---|
| 104 | To do this you have to put the printers into a printers group, and |
---|
[1282] | 105 | set quota on the printer group, instead of (or in addition to) |
---|
| 106 | the printers themselves. |
---|
[1268] | 107 | |
---|
| 108 | * What is a printer group ? |
---|
| 109 | |
---|
| 110 | A printer group is exactly like a normal printer, but is |
---|
| 111 | unknown by the printing system. You can use printer groups |
---|
| 112 | to share print quota between printers. |
---|
| 113 | |
---|
| 114 | * How can I create a printer group ? |
---|
| 115 | |
---|
[1441] | 116 | Just use pkprinters, like for normal printers, then create |
---|
| 117 | quota entries for users or users groups on it using the |
---|
| 118 | edpykota command |
---|
[1268] | 119 | |
---|
| 120 | * How can I put a printer into a printer group ? |
---|
| 121 | |
---|
[1441] | 122 | Use the pkprinters command to do this. |
---|
[1268] | 123 | |
---|
[1441] | 124 | $ pkprinters --help |
---|
| 125 | |
---|
| 126 | Will print the complete help and tell you how to do. |
---|
[1268] | 127 | |
---|
| 128 | * How quota checking and update is done with printer groups ? |
---|
| 129 | |
---|
| 130 | Print accounting and quota checking is done for a printer and |
---|
| 131 | all the printers groups it belongs to, recursively. |
---|
| 132 | If quota is reached on ANY of these printers for the current user, |
---|
| 133 | printing is denied. |
---|
[1286] | 134 | |
---|
[1268] | 135 | * Is this feature robust ? |
---|
| 136 | |
---|
| 137 | It should be. However, beware of integrity problems. LDAP has no |
---|
| 138 | sense of database integrity, and PostgreSQL constraints have not |
---|
| 139 | yet been fully implemented. The code actually *tries* to forbid |
---|
| 140 | circular printers groups, but if you create printer groups with |
---|
| 141 | another tool (e.g. psql or gq), then you are mostly on you |
---|
| 142 | own to not create infinite loops. |
---|
| 143 | |
---|
[1286] | 144 | * How is computed the job's price ? |
---|
| 145 | |
---|
| 146 | A job's price is computed with this formula : |
---|
| 147 | |
---|
| 148 | SUM((NbPages * PricePerPage) + PricePerJob) |
---|
| 149 | |
---|
| 150 | For current printer and all the printers groups it is |
---|
[1500] | 151 | a member of, if any, recursively. |
---|
[1286] | 152 | This may be difficult to grasp, but offers unprecedented |
---|
| 153 | flexibility. |
---|
| 154 | |
---|
[1175] | 155 | * My question isn't answered there, can you help ? |
---|
| 156 | |
---|
| 157 | Sure. Ask your question to the mailing list. If this is a |
---|
| 158 | frequently asked question, or if your problem is on the contrary |
---|
| 159 | very specific, it will probably be added to this document. |
---|
| 160 | |
---|
[1186] | 161 | You can also ask questions by IRC : |
---|
| 162 | |
---|
| 163 | /server irc.freenode.net |
---|
| 164 | /join #pykota |
---|
| 165 | |
---|
[1216] | 166 | Send any new questions to Jerome Alet - <alet@librelogiciel.com> |
---|