Changeset 645 for tea4cups/trunk/README
- Timestamp:
- 06/12/05 23:07:29 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/README
r644 r645 30 30 printers at the same time, which is not possible with CUPS. 31 31 32 Another possibility would be for example to send the same document to 32 Another possibility would be for example to send the same document to 33 33 a printer, a PDF generator, a Fax, and as an attachment to an email 34 34 message, all of this by printing it a single time. 35 35 36 Tea4CUPS allows this by permitting you to easily plug your own 37 commands into the very last stage of CUPS' filtering chain. 36 Tea4CUPS allows this by permitting you to easily plug your own 37 commands into the very last stage of CUPS' filtering chain. 38 38 39 39 Tea4CUPS provides two ways to launch commands : 40 40 41 - prehooks : these are guaranteed to be launched before the 41 - prehooks : these are guaranteed to be launched before the 42 42 print job is sent to the real printer. 43 Any prehook which exits -1 can cancel the 43 Any prehook which exits -1 can cancel the 44 44 print job. 45 45 46 46 - posthooks : these are guaranteed to be launched after the 47 47 print job has been sent to the real printer, 48 48 unless the job was previously cancelled by a 49 49 prehook. 50 50 51 51 To help your own commands, Tea4CUPS makes available as part of the 52 52 environment several variables which can be used from the … … 67 67 TEABILLING : Job's billing code (lp -o job-billing=SomeCode file.ps) 68 68 TEACONTROLFILE : Job's IPP message file (usually /var/spool/cups/c?????) 69 TEASTATUS : Original CUPS backend's exit code : ONLY AVAILABLE FROM 69 TEASTATUS : Original CUPS backend's exit code : ONLY AVAILABLE FROM 70 70 posthooks, obviously. 71 72 In the case you want to use both Tea4CUPS and PyKota, you MUST install 71 72 In the case you want to use both Tea4CUPS and PyKota, you MUST install 73 73 PyKota v1.22alpha2 or higher to avoid a race condition. 74 74 … … 81 81 82 82 0 - Download Tea4CUPS from : 83 83 84 84 http://www.librelogiciel.com/software/Tea4CUPS/action_Presentation 85 86 and extract it : 87 85 86 and extract it : 87 88 88 $ tar -zxf tea4cups-x.yy.tar.gz 89 89 90 90 where x.yy is Tea4CUPS' version number. 91 92 1 - Copy the 'tea4cups' command into CUPS' backend directory, 91 92 1 - Copy the 'tea4cups' command into CUPS' backend directory, 93 93 for example : 94 94 95 95 $ cp tea4cups /usr/lib/cups/backend 96 96 97 97 2 - Restart CUPS in order for this new backend to be detected. 98 98 NB : For this to work you need CUPS 1.1.15 or higher. 99 99 You can use Tea4CUPS with older versions if you want, but 100 100 without autodetection. 101 102 3 - Either from CUPS' web interface, add new printers with 101 102 3 - Either from CUPS' web interface, add new printers with 103 103 'Tea4CUPS managed' in front of the device's name. 104 105 Or by directly modifying CUPS' printers.conf file, prepend 104 105 Or by directly modifying CUPS' printers.conf file, prepend 106 106 each DeviceURI value with 'tea4cups://', and restart CUPS. 107 107 (Use this last method if autodetection doesn't work because 108 108 the version of CUPS you use is too old) 109 110 4 - Copy tea4cups.conf into CUPS' configuration directory (where 109 110 4 - Copy tea4cups.conf into CUPS' configuration directory (where 111 111 cupsd.conf resides) : 112 112 113 113 $ cp tea4cups.conf /etc/cups/ 114 115 5 - Modify tea4cups.conf to suit your needs. Several examples 114 115 5 - Modify tea4cups.conf to suit your needs. Several examples 116 116 are included. 117 118 6 - There's no 6 ! 119 117 118 6 - There's no 6 ! 119 120 120 ============================================================================= 121 121 122 Troubleshooting : 122 Troubleshooting : 123 123 ----------------- 124 124 125 125 1 - Set "LogLevel debug2" in CUPS' cupsd.conf 126 126 127 127 2 - Restart CUPS. 128 128 129 129 3 - Set "debug: yes" in the [global] section of tea4cups.conf 130 130 131 131 4 - Print something on a print queue managed 132 132 by Tea4CUPS. 133 133 134 134 5 - Look at CUPS' error_log file for diagnostic and error messages. 135 135 136 136 ============================================================================= 137 137 138 CUPS (Common UNIX(r) Printing System) is trademark property of Easy Software 138 CUPS (Common UNIX(r) Printing System) is trademark property of Easy Software 139 139 Products. 140 140 … … 144 144 145 145 ============================================================================= 146 146 147 147 Please e-mail bugs to : alet@librelogiciel.com (Jerome Alet)