For the last month or so, I have been trying to print from my Debian sarge installation - but with no results. I was on the verge of giving up, when I decided to dig more into the details of the
CUPS printing system. Finally, I got the printing working - I was missing the `gs-esp' package (Ghostscript PostScript interpreter - ESP version), which was the root cause. I am summarizing below the agony that I went through while I got this thing working. Hope it helps you... :-)
1. Configured CUPS:
http://localhost:631/ now shows the web-UI of CUPS. Configured a printer (HP LaserJet 4050 series, with jetdirect (socket://printername:9100/)
2. Tried printing through it, but failed. A simple text document failed. CUPS showed me the error `
client-error-not-possible'. Bah!
3. CUPS configuration files generally sit under
/etc/cups. Edited
cupsd.conf, and changed the logging level to
warn. The modified line looked like this
LogLevel warn4. Tried printing the page again, while tailing
/var/log/cups/error_log. The error logged there was
E [10/Mar/2006:12:06:19 +530] Unable to convert file 0 to printable format for job 13!Aha! There, there. Seems like we are not able to convert the file to a proper printing format.
5. Okay, go and install the
`gs-esp' package for Debian using `
apt-get install gs-esp'
6. Reload the CUPS printing system using
/etc/init.d/cupsys reload.
Try printing NOW! :-)
Though this thing seemed pretty simple, it took me a long time to debug and fix - as I was unaware of CUPS, and the overall printing mechanism. Oh, and to add insult to injury, I noticed that
RHEL went away printing happily - guess they load this package by default! :-|
Oh, and as a sidenote, I am facing the same problem with my
FreeBSD 6.0-RELEASE box too. I guess this is the same problem there to, so should not be much difficult to fix! :-)
Anyways, now I am happy.