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 |
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..... |
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! |
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.
|
Re: Slackware 9 and CUPS (CUPS=crap) - printing
Quote:
I'm on a Slackware 8 system and I installed CUPS manually. Peace... |
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... |
Quote:
Quote:
Peace... |
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. :) |
Quote:
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 |
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. |
I think that is source of the prob. Now /etc/rc.d/init.d do not have the cups start up script anymore.
|
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 |
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. |
Cool .. glad to see you happy again ;)
Cheers, Tink |
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) |
can someone please give me the commands to print using gs to cups?
|
Try this!
I've gotten cups to work properly on 2 different desktops and 2 different notebooks using my method. Try it!
CUPS Slack9 Howto: 1.) Download the latest cups package from your favorite Slackware ftp mirror. You can find it in the Slack9/patches/packages folder. 2.) Install the cups package by doing: # installpkg cups-version.tgz 3.) Reboot. You should see cups start with output "Cups scheduler started". 3.) Go to Linuxprinting.org. On the left side navigation bar, select The Database-> Printer Listings. Select your make/model printer, then click on the Show button. The next page will give you the option to generate a ppd file for your printer. Click on download PPD and save the file to /usr/share/cups/model. The file should be in a model.ppd format, if not, then rename it to my_printer.ppd. 4.) Restart cups by doing # /etc/rc.d/rc.cups restart. 5.) Go here and download the latest foomatic-filters.tar.gz (version 3.0 as of this writing). Then do the following: # tar -xzf foomatic-filters-3.0.0.tar.gz # ./configure # make # cp foomatic-rip /usr/lib/cups/filter/ 6.) Open your favorite browser and point it to http://localhost:631 7.) Under Administrative Tasks, add your printer. Just follow the directions. 8.) That's all there is to it! |
Glad you got it working (partially at least) carbon. I agree with Tink, CUPS is great. As to gs, i had a lot of problems with ESP gs (though that might be cos i needed extra stuff for my PSC). What is the output of
Code:
gs -h |
Yesterday I downloaded, compiled and installed AFPL ghostscript 8.1.
Everything seems ok, until I tried to open pdf files. It doesn't open pdf files anymore. But it can open postscript files. I used ghostview to do these. Honestly, I am not familiar at all with ghostscript. Anyhow, they have been many crashes with gs. At one point it even crash my x-window (had to ctrl-alt-backspace). I guess I should get the binary version of gs 8.1? Or can someone suggest some great options to pass to ./configure ? Setting up printing is the toughest thing in Linux; IMHO. |
THANKS JYMBO
Dude, a huge THANK YOU for that mini-howto. I just got a new printer and was having a bear of a time trying to get CUPS to work. Your advice saved me hours of time, no doubt. Thanks again -- J.W.
|
Finally! Someone is reading my cups/Slack9 mini-howto. I must've posted it all over the place in this forum, but no one has bothered to listen to me, except you.
Glad I was able to help, and hope others will give my method a try. |
my slackware 9 is one month old from the full 4 cd set in a box ed set and i still cannot print out the slackware linux essentials book so i can begin to learn linux . ( please note everything works ok in w98 ) . i have read so many web sites and so many threads but my canon get my canon bjc4300 still will not work under linux .My problem is i cannot print the slackware linux manual ,or anthing else
and all the info online is totally baffling to a windows/dos user of 15 years use . I just dont know where to start .. My cups server will not respond so that route is no use. i have tried lprng and that does not work either . There are so many ways to print in linux , but i dont know where to start , >fFor instance how do i install new software in kde , i would like to read the howtos on printing , but where is the command to install software from the cd s . ? I have read oreillys BASH book from cover to cover many times buts its not in there . Do i have to run the installation setup to instal new software from the cd s when i am in kde ? Any advise most welcome please ... |
All times are GMT -5. The time now is 10:27 AM. |