Brett's Notes

Wednesday, April 20, 2005

'Printing in Solaris' or 'Diary of a Madman'...

This thing helped me get a printer set up on our network...


HP Jetdirect Print Servers - Configuring LPD Printing on Sun Solaris
Introduction

This document describes how to configure the HP Jetdirect print server for use with Sun Solaris systems that have the Line Printer Daemon (LPD) installed.
Line Printer Daemon (LPD) refers to the protocol and programs associated with line-printer spooling services that may be installed on various TCP/IP systems.
Click here for more complete information from Sun’s Web site .

There are several different methods that could be used to print form Sun Solaris. Each is discussed below.
Configuring print queues using lpadmin for Solaris 2.6

1. Type: lpadmin -p queue_name -v /dev/null
2. Type: lpadmin -p queue_name -i /usr/lib/lp/model/netstandard
3. Type: lpadmin -p queue_name -o dest=hostname_or_IP:text -o protocol=bsd -o timeout=time_in_seconds


NOTE: On the "dest=hostname:xxxx" variable, use "raw" for PostScript®, HPG/L2, or other formatted files. Use "text" for unformatted ASCII files; this adds a carriage return/line feed termination command and will prevent the print from stair-stepping typical with UNIX ASCII text. For a HP Jetdirect three port external print server, use "raw1" or "text1" for parallel port one, "raw2" or "text2" for parallel port two and "raw3" or "text3" for port three.
Click here additional information on stair-stepping.

4. Type: enable queue_name NOTE: This command won’t work in the Bourne shell. Switch to csh
5. Type: accept queue_name NOTE: This command won’t work in the Bourne shell. Switch to csh

If the operating system is Solaris 2.6 or 7, the printer configuration may be stored in several different locations, depending on how the system is set up for "Naming Services;" therefore manually editing files is not an appropriate option. The best method of changing the remote printer name to "text" is the one of the following commands: lpset -a bsdaddr=IP address of Jetdirect,text local lp destination name lpset -n systemfns -a bsdaddr=IPaddress of Jetdirect,text local lp destination name
For more information about these steps, refer to the man pages on the Solaris computer (at a system prompt, type “man lpadmin”.

0 Comments:

Post a Comment

<< Home