Parallel Configuration for BSD Printing
|
Note: You will need superuser privileges to do this procedure.
The following procedure describes how to modify the /etc/printcap file to configure a BSD workstation to support a color PostScript printer connected parallel.
To set up a printcap entry for a printer connected locally via the parallel port, perform the following steps.
- Log onto your system as root.
- Make a backup copy of the /etc/printcap file.
- Append the following to the /etc/printcap file and set the port parameters as necessary:
phaser:\
:mx#0:\
:sf:\
:sh:\
:sd=/var/spool/phaser:\
:if=/var/spool/phaser/if:\
:lp=/dev/bpp0:
#
Note: The device driver name in the lp parameter may be different depending upon
which parallel port the printer is connected to and the device driver naming
scheme for the workstation. Use the device driver set up for your parallel interface,
shown as /dev/bpp0 in the example above. If you are unsure, see your system
documentation. The print queue name, shown as phaser in the example above,
may be changed to whatever printer name you choose.
Create a directory called /var/spool/phaser and create a file in the directory called if. The file content should be:
#!/bin/sh echo -n ^D /bin/cat - echo -n ^D
Note: ^D is the control-D character, not a caret-D. To add the control-D character in vi,
type ctrl-v, which allows the next character input to be a control character, then
type ctrl-d. Only the ctrl-d will be displayed.
Give the if file executable permission by typing:
To print a PostScript file type:
|
| |
|