|
Size: 644
Comment:
|
Size: 1856
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| This is a generic description of how to setup printers with overlays in control. | = Printer Configuration with Overlays = The steps you should take to install a printer using overlays are as follows: |
| Line 3: | Line 4: |
| ''' 1.''' | 1. Use the multipage overlay script which should be in /u/ccdev/binl/overlay_filter 1. Copy that script and the epsi file to /etc/cups/interfaces/ on the machine you are setting up the printer on 1. Rename the script to something meaningful in terms of printer names eg. invoice_printer 1. You'll need to modify the FILTER variable in the script to use the epsi file that you copied 1. Add the System (Linux) Printer as necessary. Instructions should be in InstallingPrinter. 1. Now that printer is in it should show up in lpstat and show as enabled, if not try reloading cups == Overlays == If you wish to use an overlay in with your printer, the following needs to be done. |
| Line 5: | Line 13: |
| Firstly you sould setup a printer through cups/printconf or another tool available on the system, and if you are using an overlay ensure that the printer is configured with the following parameters. | This is only applicable for CUPS, but the config is similar on older unix systems. |
| Line 7: | Line 15: |
| A. The device is set to raw. B. The print queue is also raw. |
Copy the script that performs the overlay, into cups's interface directory, and make sure its name is identical to the printers name |
| Line 10: | Line 17: |
| eg: | {{{ /etc/cups/interfaces/ }}} Make sure the script is executable by the cupsd, its probably best to make it executable by everyone, but only editable by root. |
| Line 12: | Line 22: |
| {{{ chmod 755 /etc/cups/interfaces/printer-name }}} Run the script with some test data and verify the results |
|
| Line 13: | Line 27: |
| Otherwise attempt to select the device from a list, and match it to its best driver. If the necessary driver isn't listed, check CUPS's compatibility with your printer and attempt to find alternate drivers. eg(gimp-print, or from the manufacturer). |
{{{ /etc/cups/interfaces/printer-name < data.txt }}} Once the script itself has been confirmed to work, then control should now print data with this overlay. === Troubleshooting Overlays === 1. Ensure that the permissions and ownership of the file are correct. 1. If there is a file in the ppd directory with the same name, delete it 1. Did you restart cups after adding the overlay? 1. Run Away, and never come back. 1. Refer to above statement. {{{ rm /etc/cups/ppd/<system-printer-name> }}} |
Printer Configuration with Overlays
The steps you should take to install a printer using overlays are as follows:
- Use the multipage overlay script which should be in /u/ccdev/binl/overlay_filter
- Copy that script and the epsi file to /etc/cups/interfaces/ on the machine you are setting up the printer on
- Rename the script to something meaningful in terms of printer names eg. invoice_printer
- You'll need to modify the FILTER variable in the script to use the epsi file that you copied
Add the System (Linux) Printer as necessary. Instructions should be in InstallingPrinter.
- Now that printer is in it should show up in lpstat and show as enabled, if not try reloading cups
Overlays
If you wish to use an overlay in with your printer, the following needs to be done.
This is only applicable for CUPS, but the config is similar on older unix systems.
Copy the script that performs the overlay, into cups's interface directory, and make sure its name is identical to the printers name
/etc/cups/interfaces/
Make sure the script is executable by the cupsd, its probably best to make it executable by everyone, but only editable by root.
chmod 755 /etc/cups/interfaces/printer-name
Run the script with some test data and verify the results
/etc/cups/interfaces/printer-name < data.txt
Once the script itself has been confirmed to work, then control should now print data with this overlay.
Troubleshooting Overlays
- Ensure that the permissions and ownership of the file are correct.
- If there is a file in the ppd directory with the same name, delete it
- Did you restart cups after adding the overlay?
- Run Away, and never come back.
- Refer to above statement.
rm /etc/cups/ppd/<system-printer-name>
