LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 9 and CUPS (CUPS=crap) - printing (http://www.linuxquestions.org/questions/slackware-14/slackware-9-and-cups-cups%3Dcrap-printing-75130/)

carboncopy 07-23-2003 04:57 AM

Slackware 9 and CUPS (CUPS=crap) - printing
 
Description: HP LaserJet 2100 Series PS
Location: Multimedia Signal Processing Corner (MSPC)
Printer State: idle, accepting jobs.
"unable to open print file "/usr/var/spool/cups/d00010-001" - Permission denied"
Device URI: parallel:/dev/lp0

carboncopy 07-23-2003 05:01 AM

wops
forgot to give the details.

I have been working on getting the printer up properly for days now.
And it is like spending the whole day not just a few hours.

I have manged to compile and install CUPS, ghostcript, foomatic, etc.

I actually manage to print text file using xpdq. But so far I am not able to print anything using CUPS.

The previous posting says Permission denied.
What is wrong?
ARgh.....

BigBadPenguin 07-23-2003 06:09 AM

hi carboncopy,
The first thing I'd do is enable debugging in /etc/cupsd.conf (just edit it and you should find the option). This will give you more info in /var/log/cups/error_log which should help more to see exactly what the problem is (the errors it pops up on the webbased thing are often misleading).
Check if that gives you any clues, if not, post it up!

CodeWarrior 07-23-2003 05:22 PM

I got my old HP printer working using APSFilter. You might want to try that if the CUPS route is hopeless. If I remember correctly, you should be able to find APSFilter in your /etc directory.

tomdkat 07-23-2003 05:34 PM

Re: Slackware 9 and CUPS (CUPS=crap) - printing
 
Quote:

Originally posted by carboncopy
"unable to open print file "/usr/var/spool/cups/d00010-001" - Permission denied"

Check to make sure the permissions on "/usr/var/spool/cups" are set to 777. I believe I had similar problems with the directory CUPS uses for spooling on my system and setting the permissions to 777 on that directory solved the problem for me.

I'm on a Slackware 8 system and I installed CUPS manually.

Peace...

Tinkster 07-23-2003 06:54 PM

Odd ... my cups (also installed manually from
source on Slack 8.1 ) has it's spooler in
/var/spool/cups,
the permissions are (and should be) 700,
owner lp:sys ... (777 is a bad idea, at least
in a multi-user installation) ...

Btw, it works like a charm for me, with local
and networked printers.

Cheers,
Tink

P.S.: as for that CUPS=crap-notion...
CUPS (in my not so humble opinion) is
the best thing that ever happened in
Linux-(Unix-) printing...

tomdkat 07-23-2003 07:10 PM

Quote:

Originally posted by Tinkster
Odd ... my cups (also installed manually from
source on Slack 8.1 ) has it's spooler in
/var/spool/cups,
the permissions are (and should be) 700,
owner lp:sys ... (777 is a bad idea, at least
in a multi-user installation) ...

I'll have to go back and make sure the owner:group info matches what CUPS is configured to run as. I DO agree that 777 is not the BEST solution, but since I'm the only user.... :)

Quote:


P.S.: as for that CUPS=crap-notion...
CUPS (in my not so humble opinion) is
the best thing that ever happened in
Linux-(Unix-) printing...

IMO, I agree 100% :)

Peace...

carboncopy 07-23-2003 10:24 PM

okay. i actually enable debug2 so it will log everything and increase the max size of the log file to 10M.

here is the error_log file

I [22/Jul/2003:12:49:54 +0800] Listening to 0:631
I [22/Jul/2003:12:49:54 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/Jul/2003:12:49:54 +0800] Configured for up to 100 clients.
I [22/Jul/2003:12:49:54 +0800] Allowing up to 100 client connections per host.
I [22/Jul/2003:12:49:54 +0800] Full reload is required.
I [22/Jul/2003:12:49:55 +0800] LoadPPDs: Wrote "/etc/cups/ppds.dat", 198 PPDs...
I [22/Jul/2003:12:49:55 +0800] Full reload complete.
I [22/Jul/2003:12:49:55 +0800] ESP Print Pro v4.4 starting...
I [22/Jul/2003:12:49:55 +0800] No license detected...
I [22/Jul/2003:12:51:27 +0800] Listening to 0:631
I [22/Jul/2003:12:51:27 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/Jul/2003:12:51:27 +0800] Configured for up to 100 clients.
I [22/Jul/2003:12:51:27 +0800] Allowing up to 100 client connections per host.
I [22/Jul/2003:12:51:27 +0800] Full reload is required.
I [22/Jul/2003:12:51:27 +0800] LoadPPDs: Read "/etc/cups/ppds.dat", 198 PPDs...
I [22/Jul/2003:12:51:34 +0800] LoadPPDs: Wrote "/etc/cups/ppds.dat", 1155 PPDs...
I [22/Jul/2003:12:51:34 +0800] Full reload complete.
I [22/Jul/2003:12:51:34 +0800] ESP Print Pro v4.4 starting...
I [22/Jul/2003:12:51:34 +0800] No license detected...
E [22/Jul/2003:14:12:29 +0800] Scheduler shutting down due to SIGTERM.
40 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/Jul/2003:12:58:40 +0800] Configured for up to 100 clients.
I [22/Jul/2003:12:58:40 +0800] Allowing up to 100 client connections per host.
I [22/Jul/2003:12:58:40 +0800] Full reload is required.
I [22/Jul/2003:12:58:40 +0800] LoadPPDs: Read "/etc/cups/ppds.dat", 1155 PPDs...
I [22/Jul/2003:12:58:40 +0800] LoadPPDs: No new or changed PPDs...
I [22/Jul/2003:12:58:40 +0800] Full reload complete.
I [22/Jul/2003:12:58:40 +0800] ESP Print Pro v4.4 starting...
I [22/Jul/2003:12:58:40 +0800] No license detected...
E [22/Jul/2003:12:58:40 +0800] StartListening: Unable to bind socket - Address already in use.


By the way I installed ESP Print Pro 4.4, but don't have the license as you can see in the error_log. Now how do I remove Print Pro?

Could it be that that is the problem?

Anyway, I checked the permission of /var/spool/cups ; /var/spool/cups/tmp it seems ok. though it is not 777 it is 710 for former and [drwxrwx--T] fot the later. What is the T stand for?

Well, when I say cups is crap is just my frustration over this printing matter. I am planning to complete move to Linux. I just need to resolve two issues, printing and burning cds. After that I am fully detached from windoze.

Maybe I should make my life easier by depending on Apple. :)

Tinkster 07-23-2003 10:45 PM

Quote:

By the way I installed ESP Print Pro 4.4, but don't have the license as you can see in the error_log. Now how do I remove Print Pro?
Never tried that one, but I'd say it's likely :}
to be the cause of your problems...

My suggestion would be to remove it (and
probably cups, too) and start over with that.

Which version of CUPS are you using, how
did you install?

Cheers,
Tink

carboncopy 07-23-2003 10:54 PM

I am using cups 1.1.19. Downloaded the source and compile and installed it to --prefix=/usr

What about /etc/printcap and /etc/cups/printers.conf? Do we need to edit it?

okay I removed printpro using their remove script.

But not yet try printing anything.

carboncopy 07-23-2003 10:55 PM

I think that is source of the prob. Now /etc/rc.d/init.d do not have the cups start up script anymore.

Tinkster 07-23-2003 10:59 PM

That structure is ugly, anyway ... :)

You can happily copy the cups-script
to /etc/rc.d and call it from rc.M ...
I think in Slack 9 there's already a call
for it in the script, just commented out.

Cheers,
Tink

carboncopy 07-23-2003 11:08 PM

YES!

CUPS have redeem its name. Printer Test Page is out and it is beautiful.
Thanks guys.

Now need to test print pdf, postscript and also text and kwords files.

Tinkster 07-23-2003 11:13 PM

Cool .. glad to see you happy again ;)

Cheers,
Tink

carboncopy 07-23-2003 11:20 PM

how do i set up the filters for cups?
I am in KDE, it does have those funnel thingy, but it ain't working.

pdf printing crash. I checked ps -aux
gs is printing to pdfwriter (-Ppdfwriter)

I am still blur about the filter thingy. Well I know what is suppose to do. But still how to put the puzzle together? (Configuration)


All times are GMT -5. The time now is 11:45 PM.