Printing with lpd...

…My office has a HP Laserjet 5 with a network printserver that supports
lpd print services, but not ftp print services. ( At least that’s what I
think from what I read. )

Basically, I have NO idea how to configure any of the QNX print services, or
even what files are envolved.
I was hoping someone out there could give me a step-by-step on what
processes to start, and what configuration files to setup.
I can get the numeric TCP/IP address from the printer, I know it uses port
515 for lpd, and supports “raw printing” thru port 9100. I can telnet to
it, but I can’t ftp to it, so I don’t think ncftpput will work.

I would appreciate any help that someone could give me…
Thanks

Pete Eddy

On Thu, 27 Sep 2001 13:26:24 -0400, “EZK” <peter.w.eddy@lmco.com>
wrote:

…My office has a HP Laserjet 5 with a network printserver that supports
lpd print services, but not ftp print services. ( At least that’s what I
think from what I read. )

Basically, I have NO idea how to configure any of the QNX print services, or
even what files are envolved.
I was hoping someone out there could give me a step-by-step on what
processes to start, and what configuration files to setup.
I can get the numeric TCP/IP address from the printer, I know it uses port
515 for lpd, and supports “raw printing” thru port 9100. I can telnet to
it, but I can’t ftp to it, so I don’t think ncftpput will work.

I would appreciate any help that someone could give me…
Thanks

Pete Eddy



I have set up dirt-simple printing on our LAN thanks to the lpd

facility running on a networked Canon printer/copier/fax machine.
Text files sent from QNX 6.1 print using the default font which can be
changed through the Canon user interface.

Step 1:
Get on the qdn.qnx.com Web site Online Docs and find the rough draft
System Admininstration Guide. Read the sections on printing,
especially network printing.

Steps 2 through N:
The printer has a network hostname (“OurPrinter”) and an IP address.
So you need an entry in the local /etc/hosts file like:
xxx.xxx.xxx.xxx OurPrinter

You need an entry in the file /etc/printcap of the proper form. Our
Canon expects incoming files to be directed towards a queue called
“print” – but I don’t know how your printer is accommodated. Using
the conventional print device name of lpt1, the printcap entry looks
something like this:

lpt1 | Canon:
:lp=:
:rm=OurPrinter:
:rp=print:
:mx#0:
:sd=/usr/spool/output/lpt1:
:lf=/usr/spool/errors:

See the SysAdmin or other Unix printing docs for details and
confirmation – but rm means remote machine; rp means …uh remote
print queue or likewise; mx uncaps the page limit.
The directories sd (for spooling files) and lf (for errors) must be
hand-created.
With TCP/IP and the lpd daemon running on your QNX box, then issuing
the command
lpr -Plpt1
should result in filename being printed. I hope no critical detail is
missing.
If some power user knows how to apply filters to better format data
into, say, PCL form, I would certainly appreciate a tutorial.

Bob Bottemiller
Stein.DSI/Redmond, WA USA