Serial 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 serial.
Use a null modem cable because the printer is set up as a DTE device (swap pins 2 and 3). Tektronix printer default serial settings are as follows:
Note: For instructions on changing the serial settings see the printer's user manual.
Speed: 9600 (printer default) Flagging: Software (XON/XOFF) Data Bits: 8 Parity: Ignore
To set up a printcap entry for a printer connected locally via the serial 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:
phaser:\
:br#9600:\
:rw:\
:fc#00000374:\
:fs#00000003:\
:xc#0:\
:xs#0040060:\
:mx#0:\
:sf:\
:sh:\
:sd=/var/spool/phaser:\
:if=/var/spool/phaser/if:\
:lp=/dev/ttya:
#
Note: The device driver name in the lp parameter may be different depending upon
which serial port the printer is connected to and the device driver naming scheme
for the workstation. Use the device driver set up for your serial interface, shown as
/dev/ttya 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.
If your operating system supports the ms entry in the print cap, then substitute the fc, fs, xc and xs entries with the following line:
:ms=-crtscts, 1xon, 1xoff, cs8, -paremb, -cstopb:
If the printer serial port is set for 7 data bits, change the value for xs to setting below. All other setup parameters remain the same.
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.
To give the if file executable permission, type:
To print a PostScript file, type:
|
| |
|