• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Please help with linux Printing

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

snowmobile74

Member
Joined
Oct 25, 2001
Location
Iowa
hey guys I went through a book and some man pages and still cant figure out this damn problem I found out theres a little test for the printing system

heres what ' testpc -f '
Warning - ** cannot open '/var/spool/lpd/logs/' - 'Is a directory'
Warning - ** cannot create '/var/spool/lpd/logs/' - 'Is a directory'
Warning - changing ownership '/var/spool/lpd/logs/' to 4/7
Warning - changing ownership '/var/spool/lpd/logs/' to 4/7
Warning - chown '/var/spool/lpd/logs/' failed, No such file or directory
Warning - ** ownership or permissions problem with '/var/spool/lpd/logs/'

heres my /etc/printercap file
lp:\
:force_localhost:\
:filter_options= --lprng $Z /var/spool/lpd/filter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/logs/:\
:lp=/dev/usb/lp0:\
:if=/var/spool/lpd/lpdomatic:

contents of /var/spool/lpd
filter lp lp0 lpdomatic lpq lpq.0


can anyone give me help? it would be greatly apriciated

-thanks
 
Did you read the printercap man page?

<Cut And Paste>
Name Type Default Description
lp str ``/dev/lp'' device name to open for output
sd str ``/usr/spool/lpd'' spool directory
lf str ``/dev/console'' error logging file name
lp str ``/dev/lp'' device name to open for output
if str NULL name of text filter which does accounting

LOGGING

Error messages generated by the line printer programs themselves (that
is, the lp* programs) are logged by syslog(3) using the LPR facility.
Messages printed on stderr of one of the filters are sent to the
corresponding lf file. The filters may, of course, use syslog
themselves.

Error messages sent to the console have a carriage return and a line feed
appended to them, rather than just a line feed.

</Cut And Paste>

As you can see lf is the error logging file name. Now, in your printercap you have
' :lf=/var/spool/lpd/logs/:\' which is a directory. That's why you have all of those error messages when you run 'testpc -f'. Try changing it to ':lf=/var/spool/lpd/log:\' and see what happens.

Post back if that doesn't work.
 
oh OK thats not supposed to be a direcotry he he oops thanks moorcito

ok well thats fixed but I have a more pressing problem sigh this one is very anoying . . .

allright I used the command
lpr -lp -Z docs /some/document.crap
I tested a few files I made with pico a text mode text editor

ok so the command executes perfectly it seems the printer comes to life! and starts to feed in paper (its a photosmart 1000 wtih an LCD display) the display on it says

* Printing from pc*

but then it says

* PC DATA WAS NOT RECIVED *
check conection to PC

its pluged in via USB so if I hit ok it does print something but its just an error message

Error: /invalidfont in findfont
Operand stack:
iso1dict fCourier --nostring

formated as it is printed

ANY help would be greatly apriciated . . .
 
Back