1-2. Using an Ethernet Connection
PER-PRT-0004
1-12
9/98
Westinghouse Proprietary Class 2C
1-2.6. Adding a Text Printer to Another Drop (Non-Printer Manager
Drop)
Perform the following to make print requests from a command line at a
non-Printer Manager drop:
1. Become superuser at the drop and use a text editor to edit the /etc/hosts file as
shown in the example below (replacing the printer’s IP address with the printer
address selected for your network):
su
<applicable password>
#
# Internet host table
#
127.0.0.1 localhost loghost
192.9.200.200
drop200
192.9.200.001
teksc
tektext
2. While still superuser, enter the following to set up a UNIX printer queue
(named tektext) on a remote drop.
lpsystem -t bsd tektext
lpadmin -p tektext -s tektext!PS -I postscript
lpshut
/usr/lib/lpsched
enable tektext
accept tektext
3. Only send PostScript files to this printer. The “postprint” command can be used
to create a PostScript file from a text file.Use the following command to test the
printer by creating a PostScript file and sending it to the printer:
/usr/lib/lp/postscript/postprint <filename> |
lp -onobanner -dtektext
For example, enter the following to print the “/etc/hosts” file:
/usr/lib/lp/postscript/postprint /etc/hosts |
lp -onobanner -dtektext
If the file is already a PostScript file, use the following command to send it to
the printer:
lp -onobanner -dtektext <filename>