logo Sending Linux Print Files to LPD

Return to Introduction  Previous page  Next page

This section outlines how to send print files from Linux to SDI LPD. Additional information about printer configuration and LPR may be found in the Linux help files.

1. Create an SDI LPD Print Queue for Linux print files

Before you can send print files from Linux to SDI LPD you must create a print queue in LPD. This example assumes SDI LPD is running on a Windows PC with an IP address of 192.168.1.2 and a print queue name of LINUXPRTQ.

2. Configure a printer in Linux

The following example was created using Red Hat Linux. The commands and statements may vary slightly for other flavors of Linux.

 

A.Open printconf (Gnome: Main, Programs, System, Printer Configuration)

 

B.Click the New button on the printconf tool bar. Fill in the Add a New Print Queue wizard prompts. For example:

 

Queue Name = SDILPD

Queue Type = Unix Printer         (LPD)

Server = 192.168.1.2        (IP address or host name of Windows PC running LPD)

Queue = LINUXPRTQ        (This must match the queue defined in SDI LPD)

Print Driver = Text Only Printer

Save the changes. (File, Save Changes)

 

C.The above example creates this entry in /etc/printcap

 

SDILPD:\

        :ml=0:\

        :mx=0:\

        :sd=/var/spool/lpd/SDILPD:\

        :af=/var/spool/lpd/SDILPD/SDILPD.acct:\

        :sh:\

        :rm=192.168.1.2:\

        :rp=LINUXPRTQ:\

        :lpd_bounce=true:\

        :if=/usr/share/printconf/util/mf_wrapper:

 

D.Print a test file using the LPR command. This command will print the /etc/hosts file.

 

lpr -PSDIPD /etc/hosts