|
Size: 644
Comment:
|
Size: 2358
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. |
| Line 5: | Line 6: |
| 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. | 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. The default script is set up for a postscript printer. For a PCL compatible printer (HP LaserJet) you have to change a line near the end of the script to read {{{ gs -sDEVICE=ljet4 ...... (leave the other options as you found them)}}} 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 7: | Line 17: |
| A. The device is set to raw. B. The print queue is also raw. |
This is only applicable for CUPS, but the config is similar on older unix systems. |
| Line 10: | Line 19: |
| eg: | Copy the script that performs the overlay, into cups's interface directory, and make sure its name is identical to the printers name |
| Line 12: | Line 21: |
| {{{ /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 13: | Line 26: |
| 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). |
{{{ 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 === 1. Ensure that the name, permissions and ownership of the file are correct. 1. If there is a file in the ppd directory with the same name, delete it {{{ rm /etc/cups/ppd/<system-printer-name>}}} 1. Did you restart cups after adding the overlay? 1. Remember, the script will be run as the lp user. Make sure you use check the script will be calling the correct programs. One program of note is {{{ pstops }}}. Make sure you use the full path when referring to other programs. 1. Run Away, and never come back. 1. Refer to above statement. ---- CategoryPrinter |
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
The default script is set up for a postscript printer. For a PCL compatible printer (HP LaserJet) you have to change a line near the end of the script to read
gs -sDEVICE=ljet4 ...... (leave the other options as you found them)
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 name, permissions and ownership of the file are correct.
- If there is a file in the ppd directory with the same name, delete it
rm /etc/cups/ppd/<system-printer-name>
- Did you restart cups after adding the overlay?
Remember, the script will be run as the lp user. Make sure you use check the script will be calling the correct programs. One program of note is pstops . Make sure you use the full path when referring to other programs.
- Run Away, and never come back.
- Refer to above statement.
