I have installed a local HP DeskJet and networked (via SAMBA) HP LaserJet using CUPS. I have been successful in configuring the printers using Easy Software Product's web-based GUI and KDE 3.1's Print Manager.

However, I am unable to print from the command line using LPR filename like I understand I should be able to do. Because of that, I cannot print from OpenOffice, which appears to use the LPR command to print.


Here is the result of the "lpstat" command:

[rjacox] ~: lpstat
Printer 'laserjet@localhost' - cannot open connection - Connection refused
Make sure the remote host supports the LPD protocol and accepts connections from this host and from non-privileged (>1023) ports

And here is the results of an "lpr" command:

[rjacox] ~: lpr test_document
Status Information, attempt 1 of 3:
sending job 'rjacox@localhost+19' to laserjet@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - Connection refused
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry

I can print from the command line using KDE's "kprinter filename" command, and most X applications.

My hostname in /etc/HOSTNAME is "localhost.bendbroadband.com", and everything else seems to work except command-line printing.

This has been a real bugger for me, as I plan on spending quite a bit of time not in "X", one of the reasons I am switching to Linux!

Thanks in advance.

Rob