1821981 Members
5605 Online
109638 Solutions
New Discussion юеВ

LPR Usage

 
Nobody's Hero
Valued Contributor

LPR Usage

Anyone usr 'lpr' before?
I have no idea how to use it.
I installed the following products:
-rw-r--r-- 1 root root 547405 Jun 28 09:36 ifhp-3.5.10-1.i386.rpm
-rw-r--r-- 1 root root 5210800 Jun 28 08:44 LPRng-3.8.27-1.i386.rpm
-rw-r--r-- 1 root root 234863 Jun 28 09:34 LPRngTool-1.3.2-1.i386.rpm


When I run:lpr -V artr0126.126

I get:

LPRng-3.8.27, Kerberos5, Copyright 1988-2003 Patrick Powell,
sending job 'root@piranha+530' to missingprinter@localhost
connecting to 'localhost', attempt 1
cannot open connection to localhost - Connection refused
Make sure the remote host supports the LPD protocol
Status Information, attempt 1 of 3:
Waiting 10 seconds before retry

When I run: lpq

I get:

Printer 'missingprinter@localhost' - cannot open connection - Connection refused
Make sure the remote host supports the LPD protocol.


Looks like it cant find a printer. Am I supposed to config this product somehow? I am trying to find the instructions.






UNIX IS GOOD
4 REPLIES 4
Stuart Browne
Honored Contributor

Re: LPR Usage

You probably also want to install the 'Foomatic' packages, as this makes configuring LPRng based subsystems so much easier, and also gives you the ability to cleaning/easily print to non-LPD or Physical-Device based printers much easier (i.e. has wrappers for SMB and direct-port based print servers).

It also comes with a wide range of drivers for printers, as well as 'if' filters.

There should be RH packages for it, as well as 'printconf' and 'printconf-tui' config stuff.
One long-haired git at your service...
Gopi Sekar
Honored Contributor

Re: LPR Usage


It says it can not find any printer or no printers are configured.

Configure the printer (local/remote), if you are using RH/Fedora then there are utilities(both GUI and text based) called systemconfig-printconf

If you are using SUSE then use yast2 to configure your printer

let us know your distribution and we should be able to give more clear information
Never Never Never Giveup
Nobody's Hero
Valued Contributor

Re: LPR Usage

I am running RedHat9

I have a network printer configured on the system. It was working until I installed the LPR'ing packages:

Now lpstat says:

lpstat SP31P07
Printer: sp31p07@piranha - ERROR: spool queue for 'sp31p07' does not exist on server piranha.ihs-inc.com
check for correct printer name or you may need to run
'checkpc -f' to create queue
UNIX IS GOOD
Gopi Sekar
Honored Contributor

Re: LPR Usage


i believe RH 9.0 has printconf-tui or printconf-gui which can be used to configure your printer.

as far as your error, it seems like you have configured a wrong printer spool which does not exist

Hope this helps,
Gopi
Never Never Never Giveup