LPD and friends

Hi all,

I’m having problems printing under QNX.
I have an HP Laserjet 4L.
If I try to run lpr, I am told to run lpd.
Hence, I try to start the daemon by running
lpd as root (or as a nonpriviledged user, doesn’t
seem to make a difference) and then lpr, and I’m
told to run lpd. I tried copying my /etc/printcap
file from Linux to my QNX RTP /etc directory, but
to no avail.

Also, when I try to print in Voyager or any other
QNX RTP app, my printer spits out blank paper.

Any ideas?
Thanks!
Marc

Comments below.

Previously, Paul Russell wrote in comp.os.qnx:

lpd is the network printer daemon

Can lpd be used for local printers? I have a local printer connected to my computer running QNX RTP, and I would like to enable command line printing via lpr.

It loads /etc/printcap

I’m assuming the /etc/printcap file is not the same format as it would be for Linux. Where can I go for instructions on creating this file?

Check the logs for other problems if things still don’t work.
For photon update /qnx4/photon/print/printers to match your printers,
ensure that the file contains the spool settings defined in printcap for the
photon spools.

I’m not clear where /qnx4/photon/print/printers is located (not on my computer, anyways). Printing under Photon (e.g. in voyager) merely causes my printer to spit out the equivalent number of sheets of blank paper. Is there anything I can do to fix this? Photon correctly detects my printer (HP Laserjet 4L), in any case.

Also ensure that the printer IP addresses are defined in /etc/hosts

Since the printer is local, do I need to give it an IP address?

Anyways, trying to run lpd - it now runs. It just doesn’t associate lp with my local printer. If I try:
lpr -Plp
The command returns alright, but nothing is printed.

Sorry for the questions if some of them are dumb; I’m a QNX RTP newbie so I’m still trying to figure everything out here.

Thanks for the help thus far!
Marc

lpd is the network printer daemon
It loads /etc/printcap
lpd requires a spool directory (/usr/spool/output/lpd) and a logfiles
directory (/usr/adm)
Ensure that these directories exist.
You may also have to chmod +w on these directories so other users can write
to the spool.
Check the logs for other problems if things still don’t work.
For photon update /qnx4/photon/print/printers to match your printers,
ensure that the file contains the spool settings defined in printcap for the
photon spools.
Also ensure that the printer IP addresses are defined in /etc/hosts
-Paul

Marc Raaphorst <vorpal22@home.com> wrote in message
news:Voyager.001023125218.794662A@marc…

Hi all,

I’m having problems printing under QNX.
I have an HP Laserjet 4L.
If I try to run lpr, I am told to run lpd.
Hence, I try to start the daemon by running
lpd as root (or as a nonpriviledged user, doesn’t
seem to make a difference) and then lpr, and I’m
told to run lpd. I tried copying my /etc/printcap
file from Linux to my QNX RTP /etc directory, but
to no avail.

Also, when I try to print in Voyager or any other
QNX RTP app, my printer spits out blank paper.

Any ideas?
Thanks!
Marc

If you are printing locally, then maybe you can use lp instead of lpr (and
maybe lpsrvr instead of lpd),
Check your tcp/ip docs for further info on lpd/lpr.
Most of my knowledge is in QNX4
-Paul

Marc Raaphorst <vorpal22@home.com> wrote in message
news:Voyager.001023191252.1032209A@marc…

Comments below.

Previously, Paul Russell wrote in comp.os.qnx:
lpd is the network printer daemon

Can lpd be used for local printers? I have a local printer connected to my
computer running QNX RTP, and I would like to enable command line printing

via lpr.

It loads /etc/printcap

I’m assuming the /etc/printcap file is not the same format as it would be
for Linux. Where can I go for instructions on creating this file?

Check the logs for other problems if things still don’t work.
For photon update /qnx4/photon/print/printers to match your printers,
ensure that the file contains the spool settings defined in printcap for
the
photon spools.

I’m not clear where /qnx4/photon/print/printers is located (not on my
computer, anyways). Printing under Photon (e.g. in voyager) merely causes my

printer to spit out the equivalent number of sheets of blank paper. Is there
anything I can do to fix this? Photon correctly detects my printer (HP
Laserjet 4L), in any case.

Also ensure that the printer IP addresses are defined in /etc/hosts

Since the printer is local, do I need to give it an IP address?

Anyways, trying to run lpd - it now runs. It just doesn’t associate lp
with my local printer. If I try:
lpr -Plp <document
The command returns alright, but nothing is printed.

Sorry for the questions if some of them are dumb; I’m a QNX RTP newbie so
I’m still trying to figure everything out here.

Thanks for the help thus far!
Marc