Print | Rate this content

HP LaserJet 3050, 3052, 3055, 3390 and 3392 AiO Series Products - Configuring for LPD Printing

Introduction

The all-in-one contains an LPD (Line Printer Daemon) Server to support LPD printing. This chapter describes how to configure the all-in-one for use with various systems that support LPD printing. These instructions include:

  • LPD on UNIX Systems

    • Configuring BSD-based UNIX systems using LPD

    • Configuring print queues using the SAM utility (HP-UX systems)

  • LPD on Windows NT/2000 systems

For other systems not listed, refer to your operating system documentation and online help.

Recent versions of Novell NetWare (NetWare 5.x with NDPS 2.1 or greater) support LPD printing. For setup instructions and support, refer to the documentation supplied with NetWare. Also, refer to the Technical Information Documentation (TID) on Novell’s support Web site.

About LPD

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.

Some of the widely used systems which are supported by your all-in-one using LPD include:

  • Berkeley-based (BSD) UNIX systems

  • HP-UX

  • Solaris

  • IBM AIX

  • Linux

  • Windows NT/2000/XP

The UNIX configuration examples in this section show the syntax for BSD-based UNIX systems. The syntax for your system may vary. See your system documentation for the correct syntax.

The LPD functionality can be used with any host implementation of LPD that complies with the RFC 1179 document. The process for configuring printer spoolers, however, may differ. See your system documentation for information about configuring these systems.

The LPD programs and protocol include the following:

LPD programs and protocols
Program Name
Purpose of Program
lpr
Queues jobs for printing.
lpq
Displays print queues.
lprm
Removes jobs from print queues.
lpc
Controls print queues.
lpd
Scans and prints the files if the specified all-in-one is connected to the system.
If the specified all-in-one is connected to another system, this process forwards the files to an LPD process on the remote system where the files are to be printed.

Requirements for configuring LPD

Before you can use LPD printing, your all-in-one must be properly connected to the network and have a valid IP address. This information is listed on the all-in-one network configuration page. You must also have the following:

  • An operating system that supports LPD printing.

  • Superuser (root) or Administrator access to your system.

  • The LAN hardware address (or station address) of the print server. This address is printed on the all-in-one network configuration page and is of the form:

    HARDWARE ADDRESS: xxxxxxxxxxxx

    where x is a hexadecimal digit (for example, 0001E6123ABC).

LPD setup overview

The following steps are necessary to configure the all-in-one for LPD printing:

  1. Setting up IP parameters.

  2. Setting up print queues.

  3. Printing a test file.

The following sections provide detailed descriptions for each step.

Step 1. Setting up IP parameters

TCP/IP configuration parameters (such as IP address, subnet mask, default gateway) can be configured on the all-in-one in a variety of ways. These values can be configured manually, or they can be automatically downloaded using DHCP or BOOTP each time the all-in-one is turned on. For more information, see Configuring IP parameters .

Step 2. Setting up print queues

You must set up a print queue for each all-in-one or personality (PCL or PostScript) that you use on the system. The all-in-one supports only one type of queue (raw). Therefore, it does not matter what queue name is given as the all-in-one will treat each one the same. The all-in-one treats data from any source as the same and has no provisions for adding carriage returns, tagging binary Postscript data, special PJL sequences, user-defined strings, etc., to the job stream data. This all-in-one also supports automatic PostScript binary mode stream detection, and thus it does not require (or allow) a special queue type for this service.

Step 3. Printing a test file

Print a test file by using the LPD commands or by using other methods provided for your OS. For instructions, see the information provided for your system.

LPD on UNIX systems

Configuring print queues for BSD-based systems

Edit the /etc/printcap file to include the following entries:

printer_name|short_printer_name:\

:lp=:\

:rm=node_name:\

:rp=remote_printer_name_argument:\ (this can be any queue name desired by the user)

:lf=/usr/spool/lpd/error_log_filename:\

:sd=/usr/spool/lpd/printer_name:

where printer_name identifies the all-in-one to the user, node_name identifies the all-in-one on the network, andremote_printer_name_argument is the print queue designation.

For more information about printcap, see the printcap man page.

Example: Printcap entry

lj1_raw|raw1:\

:lp=:\

:rm=laserjet1:\

:rp=raw:\

:lf=/usr/spool/lpd/lj1_raw.log:\

:sd=/usr/spool/lpd/lj1_raw:

Make sure that your users know the name of each all-in-one, because they must type the names on the command line for printing.

Create the spooling directory by making the following entries. At the root directory, type:

mkdir /usr/spool/lpd

cd /usr/spool/lpd

mkdir printer_name_1 printer_name_2

chown daemon printer_name_1 printer_name_2

chgrp daemon printer_name_1 printer_name_2

chmod g+w printer_name_1 printer_name_2

where printer_name_1 and printer_name_2 refer to the all-in-one devices to be spooled. You may spool several all-in-one devices. The following example shows the command to create the spooling directories for all-in-one devices used for printing.

Example: Creating spooling directory

mkdir /usr/spool/lpd

cd /usr/spool/lpd

mkdir lj1_raw lj1_raw

chown daemon lj1_raw lj1_raw

chgrp daemon lj1_raw lj1_raw

chmod g+w lj1_raw lj1_raw

Configuring print queues using SAM (HP-UX systems)

To configure print queues using SAM (HP-UX systems)

On HP-UX systems you can use the SAM utility to configure remote print queues.

Before you execute the SAM program, select an IP address for the all-in-one and set up an entry for it in the /etc/hosts file on your system running HP-UX.

  1. Start the SAM utility as a superuser.

  2. Select Peripheral Devices from the Main menu.

  3. Select Printers/Plotters from the Peripheral Devices menu.

  4. Select Printers/Plotters from the Printers/Plotters menu.

  5. Select Add a Remote Printer from the Actions list, then select an all-in-one name.

    Examples : my_printer or printer1

  6. Select a remote system name.

    Example : hplj1 (node name of the all-in-one)

  7. Select a remote all-in-one name, and then type the queue name. (The name can be anything, such as raw for example.)

  8. Check for a remote all-in-one on a BSD system. You must type Y .

  9. Click OK at the bottom of the menu. If the configuration is successful, the program prints the message:

    The printer has been added and is ready to accept print requests.

    By default, the lpsched is not running. Make sure you turn the scheduler on when you set up your print queues.
  10. Click OK and select Exit from the List menu.

  11. Select Exit Sam .

By default, the lpsched is not running. Make sure you turn the scheduler on when you set up your print queues.

Printing a test file

To print a test file

To verify that the all-in-one and print server connections are correct, print a test file.

  1. At the UNIX system prompt type:

    lpr -Pprinter_name file_name

    where printer_name is the designated all-in-one andfile_name refers to the file to be printed.

    Examples (for BSD-based systems):

    PostScript File: lpr -Praw1 psfile.ps

    For HP-UX systems, substitute lp -d for lpr -P .

  2. To get print status, type the following at the UNIX prompt:

    lpq -Pprinter_name

    where printer_name is the designated all-in-one.

    Examples (for BSD-based systems):

    lpq -Praw1

    For HP-UX systems, substitute lpstat for lpq -P to get print status.

This completes the process for configuring the all-in-one to use LPD.

LPD on Windows NT/2000 systems

This section describes how to configure Windows NT/2000 networks to use the all-in-one LPD (Line Printer Daemon) services.

The process consists of two parts:

  • Installing TCP/IP software (if not already installed).

  • Configuring a network LPD all-in-one.

Installing TCP/IP software (Windows NT)

To install TCP/IP software (Windows NT)

This procedure lets you check whether you have TCP/IP installed on your Windows NT system, and to install the software if necessary.

You may need your Windows system distribution files or CDs to install TCP/IP components.
  1. To check whether you have Microsoft TCP/IP Printing protocol and TCP/IP printing support:

    • Windows 2000—Click Start , Settings , Control Panel . Then double-click the Network and Dial-up Connections folder. Double-click the Local Area Connection for your network and click Properties .

      If Internet Protocol (TCP/IP) is listed and enabled in the list of components used by this connection, the necessary software is already installed. (See Configuring a network all-in-one for Windows 2000 systems .) If not, go to step 2.

    • NT 4.0—Click Start , Settings , Control Panel . Then double-click the Network option to display the Network dialog box.

      If TCP/IP Protocol is listed in the Protocols tab, and Microsoft TCP/IP Printing is listed in the Services tab, you have already installed the necessary software. (See Configuring a network all-in-one for Windows NT 4.0 systems .) If not, go to step 2.

  2. If you have not previously installed the software:

    • Windows 2000—In the Local Area Connection Properties window, click Install . In the Select Network Component Type window, select Protocol and click Add to add the Internet Protocol (TCP/IP) .

      Follow the instructions on the screen.

    • NT 4.0—Click the Add button for each tab and install the TCP/IP Protocol and the Microsoft TCP/IP Printing service.

      Follow the instructions on the screen.

      When prompted, type the full path to the Windows NT distribution files (you may need your Windows NT workstation or server CD).

  3. Enter TCP/IP configuration values for the computer:

    • Windows 2000—On the General tab in the Local Area Connection Properties window, select Internet Protocol (TCP/IP) and click Properties .

    • NT 4.0—You may be automatically prompted for TCP/IP configuration values. If not, select the Protocols tab in the Networks window and select TCP/IP Protocol . Then click Properties .

    If you are configuring a Windows server, type the IP address, default gateway address, and subnet mask in the appropriate spaces.

    If you are configuring a client, check with your network administrator to learn whether you should enable automatic TCP/IP configuration or whether you should type a static IP address, default gateway address, and subnet mask in the appropriate spaces.

  4. Click OK to exit.

  5. If prompted, exit Windows and restart your computer for the changes to take effect.

Configuring a network all-in-one for Windows 2000 systems

To configure a network all-in-one for Windows 2000 systems

Set up the all-in-one as the default printer by performing the following steps.

  1. Verify that the Print Services for Unix is installed (required for LPR port availability):

    1. Click Start , Setup , and Control Panel . Double-click the Network and Dial-up Connections folder.

    2. Click the Advanced menu and select Optional Networking Components .

    3. Select and enable Other Network File and Print Services .

    4. Click Details , and verify that Print Services for Unix is enabled. If not, enable it.

    5. Click OK , and then Next .

  2. Open the Printers folder (from the Desktop, click Start , Settings , and Printers ).

  3. Double-click Add Printer . From the Add Printer Wizard welcome screen, click Next .

  4. Select Local printer , and disable automatic detection for Plug and Play installation. Click Next .

  5. Select Create a new port , and select LPR Port . Click Next .

  6. In the Add LPR compatible printer window:

    1. Enter the DNS name or IP address of the all-in-one.

    2. For the name of the all-in-one or print queue on the all-in-one, enter (in lowercase) any queue name desired. (Queue names have no effect on output.)

    3. Then click OK .

  7. Select the manufacturer and all-in-one model. (If necessary, click Have Disk and follow the instructions to install the printer driver.) Click Next .

  8. Choose to keep the existing driver, if prompted. Click Next .

  9. Enter an all-in-one name, and choose whether this all-in-one will be the default printer. Click Next .

  10. Choose whether this all-in-one will be available to other computers. If shared, enter a share name that identifies the all-in-one to other users. Click Next .

  11. If desired, enter a location and other information for this all-in-one. Click Next .

  12. Choose whether to print a test page, and click Next .

  13. Click Finish to close the wizard.

Configuring a network all-in-one for Windows NT 4.0 systems

To configure a network all-in-one for Windows NT 4.0 systems

At the Windows NT 4.0 system, set up the all-in-one as the default printer by performing the following steps.

  1. Click Start , select Settings , and click Printers . The Printers window opens.

  2. Double-click Add Printer .

  3. Select My Computer , then click Next .

  4. Click Add Port .

  5. Select LPR Port , and click New Port .

  6. In the Name or address of server providing lpd box, type the IP address or DNS name of the all-in-one.

    NT clients can enter the IP address or name of the NT server that is configured for LPD printing.
  7. In the Name of printer or print queue on that server box, type (in lowercase) the name of the print queue desired. Then click OK .

  8. Ensure that the port is selected in the Add Printer list of the available ports, then click Next .

  9. Follow the remaining instructions on the screen to complete the configuration.

Verifying the configuration

From within Windows NT, print a file from any software program. If the file prints correctly, the configuration was successful.

If the print job is not successful, try printing directly from DOS using the following syntax:

lpr -S<ipaddress> -P<queuename> filename

where ipaddress is the IP address of the print server, queuename is the name of choice (such as “raw”), and filename is the file you wish to print. If the file prints correctly, the configuration was successful. If the file does not print, or prints incorrectly, see Network problems .

Printing from Windows clients

If the LPD all-in-one on the NT/2000 server is shared, Windows clients can connect to the all-in-one on the NT/2000 server using the Windows Add Printer utility in the Printers folder.

LPD on Windows XP systems

This section describes how to configure Windows XP networks to use the all-in-one LPD (Line Printer Daemon) services.

The process consists of two parts:

  • Adding Windows optional networking components

  • Configuring a network LPD all-in-one

Adding Windows optional networking components

To add Windows optional networking components

  1. Click Start .

  2. Click Control Panel .

  3. Click Network and Internet Connections .

  4. Click the Network Connections icon.

  5. Select Advanced in the top menu bar. In the drop-down list, select Optional Networking Components .

  6. Select Other Network File and Print Services and click Next . (If you select Details before selecting Next , you will see “Print Services for UNIX (R)” as a component of Other Network File and Print Services.) The files being loaded will be shown.

  7. Close the Network Connections window. LPR port is now an option in the Properties of an all-in-one under Ports , Add Port .

Configuring a network LPD all-in-one

Adding a new LPD all-in-one

  1. Open the Printers folder (from the desktop, click Start , Printers and Faxes ).

  2. Click Add Printer . On the Add Printer Wizard welcome screen, click Next .

  3. Select Local printer , then uncheck the automatic detection for Plug and Play installation. Click Next .

  4. Select Create a new port , and select LPR Port from the pull-down menu. Click Next .

  5. In the Add LPR Compatible Printer window, do the following:

    1. Type the Domain Name System (DNS) name or Internet protocol (IP) address of the all-in-one.

    2. Type (in lowercase) the name of the print queue. (The name you use is not important.)

    3. Click OK .

  6. Select the manufacturer and all-in-one model. (If necessary, click Have Disk and follow the instructions to install the printer driver.) Click Next .

  7. Click Yes to keep the existing driver, if prompted. Click Next .

  8. Type an all-in-one name and (if desired) click this all-in-one as default (if desired). Click Next .

  9. Select whether to share this all-in-one with other network computers (for example, if your system is a printer server). If shared, type a share name to identify the all-in-one to other users. Click Next .

  10. If desired, enter a location and other information for this all-in-one. Click Next .

  11. Click Yes to print a test page, then click Next .

  12. Click Finish to close the wizard.

Creating an LPR port for an installed all-in-one

  1. Click Start , Printers and Faxes .

  2. Right-click the Printer icon, and select Properties .

  3. Select the Ports tab and Add Port .

  4. Select LPR Port from the Printer Ports dialog box, and select New Port .

  5. In the field labeled Name or address of server providing lpd , enter the DNS name or IP address of the all-in-one.

  6. In the dialog box labeled Name of all-in-one or print queue on that server, (in lowercase) type the name of the print queue for the all-in-one (for example: raw , anything , etc.).

  7. Select OK .

  8. Select Close and OK to close the Properties box.

Provide feedback

Please rate the information on this page to help us improve our content. Thank you!