SuSE Linux: Versions up to (including) 7.3
For SuSE Linux 8.0, refer to the "Reference" manual.
You have set up your printer according to the support database articles "Installing a Printer" or "Installing a Printer Since SuSE Linux 6.4" or to the articles mentioned there. You have paid special attention to the prerequisites listed in the article "Installing a Printer".
Even though the printer has been set up as described in the above-mentioned
support database articles, it does not work. A print test with
lpr /etc/fstab
or
lpr -Plp /etc/fstab
fails without displaying any error messages.
A log of what happens during the execution of lpr -Plp
/etc/fstab
will prove very useful for troubleshooting.
/var/lib/apsfilter/apsfilter
with a text editor and change the lines
# For debugging --- see for stderr in /var/spool/.../log # for output see under /tmp/ in aps_out.to# #set -x #PRINT_TO_FILE="true"
# For debugging --- see for stderr in /var/spool/.../log # for output see under /tmp/ in aps_out.# set -x #PRINT_TO_FILE="true"
/etc/printcap
.
The entries for the standard (color) printer in /etc/printcap
look (in short) like this (in the example we have used a Ghostscript
driver hpdj, paper size a4, and a resolution of 300x300dpi):
... ascii... ... :lf=/var/spool/lpd/hpdj-a4-ascii-mono-300/log:\ ... lp... ... :lf=/var/spool/lpd/hpdj-a4-auto-color-300/log:\ ...
:lf= . . . :\
stands for the respective log files of
the single printer queues.
In this example, if we print with
lpr file name
or
lpr -Plp file name
, the log file
/var/spool/lpd/hpdj-a4-auto-color-300/log
will be used.
On the other hand, if we print with
lpr -Pascii file name
,
the log file used will be
/var/spool/lpd/hpdj-a4-ascii-mono-300/log
.
cat /dev/null > /var/spool/lpd/hpdj-a4-ascii-mono-300/log
cat /dev/null > /var/spool/lpd/hpdj-a4-auto-color-300/log
.
less /var/spool/lpd/hpdj-a4-ascii-mono-300/log
less /var/spool/lpd/hpdj-a4-auto-color-300/log