Date: 10 Nov 2002 15:30:45 +0000 From: Stacey Roberts <stacey@Demon.vickiandstacey.com> To: apsfilter-help@apsfilter.org, FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Printing to Win2K share printer with apsfilter via samba fails Message-ID: <1036942247.92273.4.camel@Demon.vickiandstacey.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Hello,
I've installed apsfilter-7.2.3, and despite successfully printing
the test page, I am unable to get anything to print either from an
application (opera / AbiWord), nor command line.
Checking printer status:
# lpc status all
hp845c:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
#
System:
# uname -a
FreeBSD <snipped> 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Oct 12 10:04:03
BST 2002 root@<snipped>:/usr/obj/usr/src/sys/<snipped> i386
#
Printer entry created by apsfilter setup in /etc/printcap:
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
hp845c|ijs/DESKJET_845;r=600x300;q=high;c=full;p=a4;m=auto:\
:lp=/dev/null:\
:if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/hp845c:\
:lf=/var/spool/lpd/hp845c/log:\
:af=/var/spool/lpd/hp845c/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this
#
I try printing webpage from opera, I get:
# lpc status all
hp845c:
queuing is enabled
printing is enabled
no entries in spool area
printer idle
You have new mail.
#
Checking mail:
From daemon@Demon.vickiandstacey.com Sun Nov 10 15:10:14 2002
Date: Sun, 10 Nov 2002 15:10:14 GMT
From: Owner of many system processes <daemon@Demon.vickiandstacey.com>
To: root@Demon.vickiandstacey.com
Cc: stacey@Demon.vickiandstacey.com
Subject: apsfilter: can't find configuration
apsfilter fatal error: can't find configuration
The configuration file /usr/local/etc/apsfilter/hp845c/apsfilterrc
is missing. Please run SETUP.
-- apsfilter, your lpd input filter
&
Checking spool logs:
# tail /var/spool/lpd/hp845c/log
apsfilter: The configuration file
/usr/local/etc/apsfilter/hp845c/apsfilterrc
apsfilter: is missing. Please run SETUP.
cat: /rc: No such file or directory
rm: No such file or directory
/usr/local/etc/apsfilter/basedir/bin/apsfilter: line 116: /rc:
Permission denied
apsfilter: can't find configuration
apsfilter: The configuration file
/usr/local/etc/apsfilter/hp845c/apsfilterrc
apsfilter: is missing. Please run SETUP.
cat: /rc: No such file or directory
rm: No such file or directory
#
But this file DOES exist:
# more /usr/local/etc/apsfilter/hp845c/apsfilterrc
#
# don't delete these settings
#
PRINTER='ijs/DESKJET_845'
PAPERSIZE='a4'
METHOD='auto'
QUALITY='high'
COLOR='full'
RESOLUTION='600x300'
#
# additional configuration follows
# insert settings as seen in /usr/local/etc/apsfilter/apsfilterrc
#
#
That's failed big time. I'll try printing with lpr:
# pwd
/usr/home/stacey
# date
Sun Nov 10 15:15:23 GMT 2002
# file test
test: ASCII English text
# lpr -Php845c test
# lpc status all
hp845c:
queuing is enabled
printing is enabled
no entries in spool area
hp845c is ready and printing
#
Nothing..,
Checking logs again:-
Messages:
Nov 10 15:15:42 Demon lpd[91979]: Demon.vickiandstacey.com requests
printjob hp845c
Nov 10 15:15:43 Demon lpd[91979]: restarting hp845c
Nov 10 15:15:45 Demon last message repeated 3 times
Nov 10 15:15:46 Demon lpd[91979]: hp845c: job could not be printed
(cfA033Demon.vickiandstacey.com)
Nov 10 15:15:47 Demon lpd[91979]: mail sent to user root about job
<unknown> on printer hp845c (FATALERR)
#
Checking root's mail:
Message 21:
From daemon@Demon.vickiandstacey.com Sun Nov 10 15:15:47 2002
Date: Sun, 10 Nov 2002 15:15:46 GMT
From: Owner of many system processes <daemon@Demon.vickiandstacey.com>
To: root@Demon.vickiandstacey.com
Subject: hp845c printer job "<unknown>"
Reply-To: root@Demon.vickiandstacey.com
Your printer job
could not be printed
&
Checking spool again:
# date
Sun Nov 10 15:18:07 GMT 2002
# tail /var/spool/lpd/hp845c/log
apsfilter: The configuration file
/usr/local/etc/apsfilter/hp845c/apsfilterrc
apsfilter: is missing. Please run SETUP.
cat: /rc: No such file or directory
rm: No such file or directory
/usr/local/etc/apsfilter/basedir/bin/apsfilter: line 116: /rc:
Permission denied
apsfilter: can't find configuration
apsfilter: The configuration file
/usr/local/etc/apsfilter/hp845c/apsfilterrc
apsfilter: is missing. Please run SETUP.
cat: /rc: No such file or directory
rm: No such file or directory
#
There's a "permission denied" error being thrown. Checking permissions
on the offending file:
# ls -al /usr/local/etc/apsfilter/basedir/bin/apsfilter
-r-xr-xr-x 1 root wheel 56940 Nov 8 22:24
/usr/local/etc/apsfilter/basedir/bin/apsfilter
#
Is this not what it should be? I didn't see instructions to change
permissions on any of apsfilter config file, scripts, nor any files
concerning printing anywhere.
Again complaints about a missing file.., this file DOES EXIST:
# more /usr/local/etc/apsfilter/hp845c/apsfilterrc
#
# don't delete these settings
#
PRINTER='ijs/DESKJET_845'
PAPERSIZE='a4'
METHOD='auto'
QUALITY='high'
COLOR='full'
RESOLUTION='600x300'
#
# additional configuration follows
# insert settings as seen in /usr/local/etc/apsfilter/apsfilterrc
#
#
I've searched the apsfilter mailing list archives.., googled.., and read
the faq and what online docs there are available for installation and
usage, but haven't found anything that addresses what I'm seeing here.
Is there some step I've missed?
I have not touched /etc/printcap, as apsfilter is supposed to set this
up for me. Or, am I wrong in this presumption?
This is the second time I'm posting about this problem. I've received
kind replies FreeBSD list members (for which I am overly grateful), and
would look forward to hearing from apsfilter folks as well.
The apsfilter "online feeeback" facility fails, that's why I'm having to
post this via e-mail.
Thanks for the patience.
Stacey
--
Stacey Roberts
B.Sc (HONS) Computer Science
Web: www.vickiandstacey.com
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQEVAwUAPc57o5vQeubckvvXAQGcSggAs8By3dIFqyEBqZN0NtzcXZKaLratH4Cc
X4jZQEE7Vh7cmYb9MrNb1WbpWkuGTq4KZssZAE97T89G8vzSKChElqMqgxMPdq69
WWcDydvBQH8xjg5h7NdqA5qenERCPM7czGYifqh19xjwSRiZ6/ExqcUBR8Lomn8l
1x5MFhRLMVpB4fyXhwfeCWRIiC8WGkUy4Gvyo0iP3wP5fWdKhw1fNNpkSrdHi1/D
OwPOZQ4lz9O8SsooWWy/5Xjttp2i1E//ehlD8yp1pqEfsYAx5shxUfkIWuZ9RVvt
cNJ7MPHb/oj1IQY1KC/Fqi7rHQgmftSKiMzVLo7z/W8p67eembnK7g==
=bMAP
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1036942247.92273.4.camel>
