6.2 UNIX Printing

6-32

TCP/IP Configuration Chapter 6
Note
Next, you will need to edit the printer interface program you created
in step 3.
4. At the prompt, type:
#cd /usr/nic
and using your favorite editor, open and edit the port1_interface
file.
5. Search on FILTER=” and insert the following line above or
below the # FILTER=”${LPCAT} section of the file. Remark
out (using the # sign) any other FILTER entries present in this
section of the file.
FILTER=“/usr/nic/infilter | /usr/nic/
nicfilter printer_server_name 10001”
Note
6. Save the f ile and close the editor.
You need to configure the host-side printer using lpadmin.
7. Type the following:
#lpadmin -p <printer name> -v /dev/null -i
/usr/nic/port1_interface
Use of this default interface in most cases will suffice for generic or
routine printing of most PostScript, PCL, and ASCII files. In order
to utilize a printer specific interface other than the default interface
script (named standard), you must have a copy of that printer inter-
face edited and installed in the /usr/nic directory.
The <printer_server_name> must be the same as the one present in
the /etc/hosts file. Optional ar guments to be inserted after the 10001
entry and before the trailing “are ${banner}, ${user_name},
${request_ID}, and ${files}. For further explanation of these and
the statement above, refer to the System 5 Release 4 System Admin-
istration Manual.
PageWorks.book Page 32 Tuesday, August 4, 1998 11:21 AM