Changeset 2115 for pykota/trunk
- Timestamp:
- 02/28/05 01:07:37 (20 years ago)
- Location:
- pykota/trunk/docs
- Files:
-
- 1 added
- 9 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/docs/autopykota.sgml
r1783 r2115 13 13 14 14 <para> 15 < application>autopykota</application> was designed to automatically set15 <command>autopykota</command> was designed to automatically set 16 16 an initial account balance value to newly added users, while taking 17 17 care of not resetting the balance value if the user already exists … … 21 21 <para> 22 22 If you want to limit your users by page quota then you must not use 23 this command. Just use some form of the < application>edpykota</application>23 this command. Just use some form of the <command>edpykota</command> 24 24 command and it will work just fine. On the other hand, if you want 25 25 to limit your users by their account balance, this command was … … 27 27 script to check if user already exists or have a quota entry on 28 28 the current printer before deciding if you have to set the initial 29 balance value or not : < application>autopykota</application> takes29 balance value or not : <command>autopykota</command> takes 30 30 care of all this automagically. 31 31 </para> … … 50 50 51 51 $Log$ 52 Revision 1.2 2005/02/28 00:07:37 jalet 53 Added pkmail's doc. 54 Used the <command> tag instead of <application> for commands. 55 Fixed some typos. 56 Added some missing command line options in the commands reference. 57 52 58 Revision 1.1 2004/10/06 10:03:16 jalet 53 59 Improved documentation -
pykota/trunk/docs/dumpykota.sgml
r1783 r2115 6 6 7 7 <para> 8 If you want to reuse <application>PyKota</application> datas inanother8 If you want to reuse <application>PyKota</application> datas from another 9 9 software, but don't want to modify your existing application to 10 10 have it connect to <application>PyKota</application>'s database, your 11 best option is the new < application>dumpykota</application> command.11 best option is the new <command>dumpykota</command> command. 12 12 </para> 13 13 14 14 <para> 15 < application>dumpykota</application> can export <application>PyKota</application>15 <command>dumpykota</command> can export <application>PyKota</application> 16 16 datas in a number of formats. The supported output formats are 17 17 comma separated values, semicolon separated values, tab separated values, and <acronym>XML</acronym>. 18 </para> 19 20 <para> 21 For the print job history's datas, a special format identical to <application>CUPS</application>' <literal>page_log</literal> 22 format is also supported. 23 This allows you to interface <application>PyKota</application> with third party tools like 24 <application>phpPrintAnalyzer</application> which is a logfile analyzer for <application>CUPS</application>, 25 even in the case where you use <application>LPRng</application> instead of <application>CUPS</application>. 26 </para> 27 28 <para> 18 29 More formats may be added in the future. In particular, 19 30 <acronym>SQL</acronym> and <acronym>LDIF</acronym> are planned, but … … 22 33 23 34 <para> 24 < application>dumpykota</application> can't dump all datas at once though, you have35 <command>dumpykota</command> can't dump all datas at once though, you have 25 36 to specify which type of datas you want. The possible types are : 26 37 <itemizedlist> … … 45 56 <para> 46 57 This command could also be used if you plan to write your own management 47 tools : just write wrappers around the < application>pkprinters</application>,48 < application>edpykota</application>, and <application>dumpykota</application>58 tools : just write wrappers around the <command>pkprinters</command>, 59 <command>edpykota</command>, and <command>dumpykota</command> 49 60 tools, and your own tools will automatically benefit from <application>PyKota</application> 50 61 database backend independance layer. 62 This is exactly what the third party software <application>phpPykotaAdmin</application> does. 63 </para> 64 65 <para> 66 Finally, <command>dumpykota</command>'s functionnality is now also available remotely through 67 the use of the <filename>dumpykota.cgi</filename> <acronym>CGI</acronym> script. 51 68 </para> 52 69 … … 85 102 86 103 $Log$ 104 Revision 1.3 2005/02/28 00:07:37 jalet 105 Added pkmail's doc. 106 Used the <command> tag instead of <application> for commands. 107 Fixed some typos. 108 Added some missing command line options in the commands reference. 109 87 110 Revision 1.2 2004/10/06 10:03:16 jalet 88 111 Improved documentation -
pykota/trunk/docs/edpykota.sgml
r1782 r2115 6 6 7 7 <para> 8 < application>edpykota</application> is the command line tool with which you will8 <command>edpykota</command> is the command line tool with which you will 9 9 maintain your print quota database. 10 10 </para> … … 16 16 <listitem> 17 17 <para> 18 Add printers (it's preferable to use the < application>pkprinters</application> command for this though) ;18 Add printers (it's preferable to use the <command>pkprinters</command> command for this though) ; 19 19 </para> 20 20 </listitem> -
pykota/trunk/docs/installation.sgml
r1906 r2115 29 29 have to decompress and visit its archive, to do so just type the following commands : 30 30 <screen> 31 jerome@nordine:~$ tar -zxf pykota-1.2 0_official.tar.gz32 jerome@nordine:~$ cd pykota-1.2 0_official33 jerome@nordine:~/pykota-1.2 0_official$31 jerome@nordine:~$ tar -zxf pykota-1.21_official.tar.gz 32 jerome@nordine:~$ cd pykota-1.21_official 33 jerome@nordine:~/pykota-1.21_official$ 34 34 </screen> 35 35 </para> … … 160 160 161 161 <para> 162 To run this script, you can use the < application>psql</application> frontend to162 To run this script, you can use the <command>psql</command> frontend to 163 163 <application>PostgreSQL</application>, but your priviledges must be sufficient 164 to be allowed to create users and databases. You can launch < application>psql</application>164 to be allowed to create users and databases. You can launch <command>psql</command> 165 165 as the <literal>postgres</literal> user which is <application>PostgreSQL</application>'s 166 166 default administrator, and connect to the default database named <literal>template1</literal>. 167 167 From a command line interpreter (i.e. shell), type the following commands : 168 168 <screen> 169 jerome@nordine:~$ cd pykota-1.2 0_official/initscripts/postgresql170 jerome@nordine:~/pykota-1.2 0_official/initscripts$ psql -h localhost -U postgres template1169 jerome@nordine:~$ cd pykota-1.21_official/initscripts/postgresql 170 jerome@nordine:~/pykota-1.21_official/initscripts$ psql -h localhost -U postgres template1 171 171 Welcome to psql, the PostgreSQL interactive terminal. 172 172 … … 202 202 203 203 <para> 204 To do so, just type the following lines while still being at the < application>psql</application>204 To do so, just type the following lines while still being at the <command>psql</command> 205 205 prompt (replace the password values by your own, and do the same for the <literal>pykotauser</literal> user) : 206 206 <screen> … … 208 208 ALTER USER 209 209 pykota=# \q 210 jerome@nordine:~/pykota-1.2 0_official/initscripts/postgresql$210 jerome@nordine:~/pykota-1.21_official/initscripts/postgresql$ 211 211 </screen> 212 212 </para> 213 213 214 214 <para> 215 The <literal>\q</literal> command above will quit the < application>psql</application>215 The <literal>\q</literal> command above will quit the <command>psql</command> 216 216 program and return you to the shell's command line prompt. 217 217 </para> … … 360 360 difficult to guess what is the best configuration for you. So you have to 361 361 create them by yourself, either directly with a text editor and the 362 < application>ldapadd</application> command, or with some specialized tool363 like < application>gq</application>. You can look at the <filename>initscripts/ldap/pykota-sample.ldif</filename>362 <command>ldapadd</command> command, or with some specialized tool 363 like <command>gq</command>. You can look at the <filename>initscripts/ldap/pykota-sample.ldif</filename> 364 364 file to see what minimal branches are necessary. 365 365 <note> … … 381 381 <filename>pykota/conf/pykota.conf.sample</filename> to see all the options that are 382 382 needed. Adapt the values to your own configuration, and finally initialize your 383 Quota Storage with the help of the < application>edpykota</application> command.383 Quota Storage with the help of the <command>edpykota</command> command. 384 384 </para> 385 385 </sect2> … … 501 501 <para> 502 502 <application>ucd-snmp</application> or <application>net-snmp</application> tools, version 4.2.5 or above. You only need 503 the < application>snmpget</application> command.503 the <command>snmpget</command> command. 504 504 You can download this software from <ulink url="http://www.sourceforge.net/projects/net-snmp/">http://www.sourceforge.net/projects/net-snmp/</ulink>. 505 505 You only need this if you plan to query your printers for their internal page counter via SNMP. … … 509 509 <para> 510 510 <application>netatalk</application> version 1.6.1 or above. You only need 511 the < application>pap</application> command.511 the <command>pap</command> command. 512 512 You can download this software from <ulink url="http://netatalk.sourceforge.net/">http://netatalk.sourceforge.net/</ulink>. 513 513 You only need this if you plan to query your printers for their internal page counter via AppleTalk. … … 763 763 764 764 $Log$ 765 Revision 1.30 2005/02/28 00:07:37 jalet 766 Added pkmail's doc. 767 Used the <command> tag instead of <application> for commands. 768 Fixed some typos. 769 Added some missing command line options in the commands reference. 770 765 771 Revision 1.29 2004/11/10 22:35:23 jalet 766 772 Changes to the installation documentation -
pykota/trunk/docs/pkprinters.sgml
r1406 r2115 20 20 <group choice="opt"><arg>-a</arg><arg>--add</arg></group> 21 21 <group choice="opt"><arg>-d</arg><arg>--delete</arg></group> 22 <group choice="opt"> 23 <arg>-D <replaceable>desc</replaceable></arg> 24 <arg>--description <replaceable>desc</replaceable></arg> 25 </group> 22 26 <group choice="opt"><arg>-r</arg><arg>--remove</arg></group> 23 27 <group choice="opt"> … … 29 33 <arg>--groups <replaceable>pgroup1</replaceable>,<replaceable>pgroup2</replaceable>,<replaceable>...</replaceable></arg> 30 34 </group> 35 <group choice="opt"><arg>-l</arg><arg>--list</arg></group> 36 <group choice="opt"><arg>-r</arg><arg>--remove</arg></group> 37 <group choice="opt"><arg>-s</arg><arg>--skipexisting</arg></group> 31 38 </cmdsynopsis> 32 39 </para> … … 37 44 38 45 $Log$ 46 Revision 1.2 2005/02/28 00:07:37 jalet 47 Added pkmail's doc. 48 Used the <command> tag instead of <application> for commands. 49 Fixed some typos. 50 Added some missing command line options in the commands reference. 51 39 52 Revision 1.1 2004/03/16 14:42:31 jalet 40 53 Improved documentation -
pykota/trunk/docs/pykota.sgml
r2028 r2115 13 13 <!entity DUMPYKOTA system "dumpykota.sgml"> 14 14 <!entity AUTOPYKOTA system "autopykota.sgml"> 15 <!entity PKMAIL system "pkmail.sgml"> 15 16 <!entity GNUGPL system "gnugpl.sgml"> 16 17 … … 129 130 &PYKOSD; 130 131 132 &PKMAIL; 133 131 134 &SCRIPTS; 132 135 … … 138 141 139 142 $Log$ 143 Revision 1.17 2005/02/28 00:07:37 jalet 144 Added pkmail's doc. 145 Used the <command> tag instead of <application> for commands. 146 Fixed some typos. 147 Added some missing command line options in the commands reference. 148 140 149 Revision 1.16 2005/01/17 08:44:24 jalet 141 150 Modified copyright years -
pykota/trunk/docs/pykotme.sgml
r1166 r2115 2 2 3 3 <chapter> 4 <title id="pykotme">Get print quotes before printing for real with < application>pykotme</application></title>4 <title id="pykotme">Get print quotes before printing for real with <command>pykotme</command></title> 5 5 <para>Last modified on $Date$</para> 6 6 7 7 <para> 8 PyKota features a print quote generator, named < application>pykotme</application>.8 PyKota features a print quote generator, named <command>pykotme</command>. 9 9 This command line tool can be used to learn in advance how much a print job 10 10 will cost to you if you really send it to a printer. … … 14 14 15 15 <para> 16 To get a print quote, you have to launch < application>pykotme</application>16 To get a print quote, you have to launch <command>pykotme</command> 17 17 from the command line, passing your print job's content in the PostScript 18 18 format, either in the form of one or more file names on the command line, … … 21 21 22 22 <para> 23 Without any command line argument, < application>pykotme</application>23 Without any command line argument, <command>pykotme</command> 24 24 automatically reads your job's data from its standard input. 25 25 </para> 26 26 27 27 <para> 28 By default, < application>pykotme</application>28 By default, <command>pykotme</command> 29 29 will display a quote for your job on all printers. You can restrict 30 30 this by using the <literal>-p | --printer</literal> command line … … 38 38 <title>Examples</title> 39 39 <para> 40 Here are some examples of < application>pykotme</application> usage.40 Here are some examples of <command>pykotme</command> usage. 41 41 </para> 42 42 … … 91 91 92 92 $Log$ 93 Revision 1.6 2005/02/28 00:07:37 jalet 94 Added pkmail's doc. 95 Used the <command> tag instead of <application> for commands. 96 Fixed some typos. 97 Added some missing command line options in the commands reference. 98 93 99 Revision 1.5 2003/10/12 20:47:51 jalet 94 100 Doc enhanced. -
pykota/trunk/docs/repykota.sgml
r1783 r2115 15 15 16 16 <para> 17 PyKota features a quota report generator, named < application>repykota</application>,17 PyKota features a quota report generator, named <command>repykota</command>, 18 18 with which you can print the current state of the quota database. 19 19 </para> 20 20 21 21 <para> 22 < application>repykota</application> behaves differently when it is launched by a22 <command>repykota</command> behaves differently when it is launched by a 23 23 <application>PyKota</application> administrator, compared to when it is launched by a normal user. 24 24 </para> … … 32 32 33 33 <para> 34 In the second case, i.e. when < application>repykota</application> is launched by34 In the second case, i.e. when <command>repykota</command> is launched by 35 35 a normal user, the user will only be allowed to see informations about himself or 36 36 the groups he his a member of. … … 45 45 46 46 <para> 47 Launching < application>repykota</application> with no arguments will generate47 Launching <command>repykota</command> with no arguments will generate 48 48 a complete print quota report, depending on what you are allowed to see. 49 49 </para> … … 118 118 If you install the CGI script as described above, any user will be allowed to view the complete print 119 119 quota report, for all users, groups and printers. This is then a different behavior compared to when 120 a normal user wants a print quota report from the command line through < application>repykota</application>.121 If you find this disturbing, then the best is to ask for user authentication whenever the < application>printquota.cgi</application>120 a normal user wants a print quota report from the command line through <command>repykota</command>. 121 If you find this disturbing, then the best is to ask for user authentication whenever the <command>printquota.cgi</command> 122 122 CGI script is accessed. This CGI script will then automatically behave as expected, showing in the print quota 123 report only what the authenticated user is allowed to see, just like when he launches < application>repykota</application>123 report only what the authenticated user is allowed to see, just like when he launches <command>repykota</command> 124 124 from the command line. As a special case, if the user authenticates using the <literal>root</literal> username, 125 125 then there's no restriction on what may appear on the print quota report. … … 129 129 To automatically ask for an authentication dialog whenever the CGI script is accessed, you have to configure 130 130 your web server to do so. If your webserver is <ulink url="http://httpd.apache.org"><application>Apache</application></ulink>, then it's relatively easy. First you have to put 131 < application>printquota.cgi</application> in its own subdirectory below your web server's <filename>cgi-bin</filename>132 directory, for example in <filename>cgi-bin/PyKota/</filename>. Then use the < application>htpasswd</application>131 <command>printquota.cgi</command> in its own subdirectory below your web server's <filename>cgi-bin</filename> 132 directory, for example in <filename>cgi-bin/PyKota/</filename>. Then use the <command>htpasswd</command> 133 133 command line tool to create a file which contains usernames and passwords for all your users allowed to see 134 134 the print quota report from a web browser, and put this file outside of the directories served by <application>Apache</application> … … 152 152 153 153 $Log$ 154 Revision 1.9 2005/02/28 00:07:37 jalet 155 Added pkmail's doc. 156 Used the <command> tag instead of <application> for commands. 157 Fixed some typos. 158 Added some missing command line options in the commands reference. 159 154 160 Revision 1.8 2004/10/06 10:03:16 jalet 155 161 Improved documentation -
pykota/trunk/docs/warnpykota.sgml
r1783 r2115 17 17 However this may not be sufficient, and you may want to warn users who 18 18 have reached their print quota at 19 regular intervals, like every day, for example ina <application>cron</application> job.19 regular intervals, like every day, for example from a <application>cron</application> job. 20 20 </para> 21 21 22 22 <para> 23 23 This may be useful if the user has reached his print quota, and have received an email message telling him so, 24 but then he doesn't print for some days and may forget to solvethe problem, by buying more24 but then he doesn't print for some days and may forget to fix the problem, by buying more 25 25 paper for example. 26 26 </para> 27 27 28 28 <para> 29 The < application>warnpykota</application> command was written with this in mind.29 The <command>warnpykota</command> command was written with this in mind. 30 30 If you put this command in your <filename>crontab</filename>, launching it for example 31 31 every day, then you'll be sure that all your users who are above their print quota 32 32 will not forget it ! Of course they may delete the messages without having read them, 33 but at least they won't be able to say that they didn't receive dthem ;-)33 but at least they won't be able to say that they didn't receive them ;-) 34 34 </para> 35 35 … … 40 40 argument, then for each group he is a member of in the Quota Storage, each 41 41 group member may receive a warning message. You can take care of this if this 42 becomes annoying by forbidding normal users to launch the < application>warnpykota</application>42 becomes annoying by forbidding normal users to launch the <command>warnpykota</command> 43 43 command. 44 44 </para> … … 76 76 77 77 $Log$ 78 Revision 1.7 2005/02/28 00:07:37 jalet 79 Added pkmail's doc. 80 Used the <command> tag instead of <application> for commands. 81 Fixed some typos. 82 Added some missing command line options in the commands reference. 83 78 84 Revision 1.6 2004/10/06 10:03:16 jalet 79 85 Improved documentation