1819870 Members
2705 Online
109607 Solutions
New Discussion юеВ

CUPS and Printing

 
SOLVED
Go to solution
Ted Ellis_2
Honored Contributor

CUPS and Printing

I have a 7.3 RH linux build. I did not perform the install, but do know that the person who did install it installed everything. I am now using CUPS for the first time. I am able to configure printers and send nice test pages, but am curious about using lp from the command line. If I enter a normal lp command (lp -d queue_name file), I get something like the following:

Status Information:
sending job 'root@tflx1+496' to HP8100_3@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer HP8100_3@localhost
job 'root@tflx1+496' transfer to HP8100_3@localhost failed
error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ACK_FAIL'
sending str '^BHP8100_3' to HP8100_3@localhost
error msg: 'spool queue for 'hp8100_3' does not exist on server tflx1.triu.com'
error msg: ' non-existent printer or you need to run 'checkpc -f''

assistance greatly appreciated. the checkpc -f does not fix anything... here is what it reports:

Warning - HP8100_3: 'no :rm, :lp, or :sv entry'
Warning - HP8100_3: Bad printcap entry - missing 'sd' or 'client' entry?
Warning - TECH_HP4K_4: 'no :rm, :lp, or :sv entry'
Warning - TECH_HP4K_4: Bad printcap entry - missing 'sd' or 'client' entry?
Warning - XEROX425_2: 'no :rm, :lp, or :sv entry'
Warning - XEROX425_2: Bad printcap entry - missing 'sd' or 'client' entry?
Warning - XEROX470_3: 'no :rm, :lp, or :sv entry'
Warning - XEROX470_3: Bad printcap entry - missing 'sd' or 'client' entry?
Warning - XEROX470_4: 'no :rm, :lp, or :sv entry'
Warning - XEROX470_4: Bad printcap entry - missing 'sd' or 'client' entry?

if I update the printcap with sd entries, the checkpc seems to be ok, but I can still not print with lp.... and lpstat reports missing queues. I think this is my lack of knowledge with CUPS... CUPS prints a test page, but lp fails. So how do you print with CUPS from the command line?

Ted
4 REPLIES 4
Stuart Browne
Honored Contributor
Solution

Re: CUPS and Printing

You want to chech which the current Best version currently is by using 'alternatives --display print' ?

If it's "/usr/bin/lpr.LPRng", then you'll need to switch the print subsystem using 'alternatives --set print /usr/bin/lpr.cups"

You'll then need to make sure that 'lpd' is not running (service lpd stop), and cupsd is (service cups start).

Use the 'chkconfig' command to make this permemant.

Manually modifying the printcap is a useless exercise as it's only there for compatability reasons (not actually used).
One long-haired git at your service...
U.SivaKumar_2
Honored Contributor

Re: CUPS and Printing

Hi,
list the directory
# ls -la /var/spool/lpd/
total 24
drwx------ 6 daemon daemon 4096 May 8 12:02 ./
drwxr-xr-x 10 root root 4096 May 8 12:02 ../
drwx------ 2 daemon daemon 4096 May 29 09:26 pr1/
drwx------ 2 daemon daemon 4096 May 29 09:32 pr2/
drwx------ 2 daemon daemon 4096 May 29 09:44 pr3/
drwx------ 2 daemon daemon 4096 May 29 09:31 pr4/

Do you have these subdirectories ?. IF no create it as above. And restart lpd . try again

regards,
U.SivaKumar

Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: CUPS and Printing

Hi,
Also check whether you can ping to localhost ??

regards,
U.SivaKumar
Innovations are made when conventions are broken
Ted Ellis_2
Honored Contributor

Re: CUPS and Printing

thanks for the assistance... we have resolved the issue by simply removing CUPS. Maybe not the best solution, but we are printing where we need to print.

No further replies required.

Ted