OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: print server with apsfilter and lj6l

From: Alex Lee (alexleecharter.net)
Date: Thu Jul 03 2003 - 18:21:28 CDT


Greetings,

These were my question/reply posted to ' http://www.freebsdforums.org'
a couple months ago. Hope can help.

Alex Lee

++++++++++++++++++++++++++++++
I am running obsd 3.2 -stable on a Dell Latitude laptop.

Installed ghostscript-7.00, ghostview-1.5 and samba-2.2.7 from ports;
apsfilter-7.2.5.tar.gz from apsfilter.org. rc.conf was edited so that
lpd starts automatically.

I believe apsfilter was installed successfully since I can print test
page to a shared HP4500n Color Laserjet printer over the network and
have the following in my /etc/printcap :-
#APS1_BEGIN printer1
lp|clj5c;r=300x300;q=medium;c=full;p=letter;m=auto
:\
:af=/var/spool/lpd/lp/acct:\
:if =/usr/local/etc/apsfilter/basdir/bin/apsfilter\
:lf =/var/spool/lpd/lp/log:\
:lp=/dev/null:\
:mx#0:\
:sd=/var/spool/lpd/lp:\
:sh:
#APS1_END - don't delete this

But when tried to print document with
#lpr filename.whatever

Got error message :-
lpr: cannot open /var/spool/lpd/lp .seq: Permission denied

The FAQ on apsfilter.org says this is either because of lpd permissions
or non-matching user/group ID settings and suggests to use LPRng.

Well, the ports tells me that "LPRng-3.7.4 is marked broken; outdated &
with possible security holes".

I have googled for quite some time and still at a lost as what have I
done wrong and how to resolve the problem. Would appreciate if someone
can enlighten a newbie. Thanks.
++++++++++++++++++++++++++++++++

chmod 0771 /var/spool/lpd/lp resolved the printig problem.

++++++++++++++++++++++++++++++++

On Thursday, July 3, 2003, at 04:34 PM, Lincoln Rutledge wrote:

> Hi folks,
>
> In my "spare time" I've been trying to set up my LaserJet 6L on the
> parallel port of a box running OpenBSD 3.2. I have the basic setup
> working so that lpr test.c will dump a couple of pages of garbage out.
> Ghostscript 7 and apsfilter 7.2.5 installed. I can print a test page
> from the SETUP script in apsfilter no problem, but after exiting setup
> and doing an lpc restart all, when I try to print I just get:
>
> lpr: cannot open /var/spool/lpd/aps1/.seq: Permission denied
>
> This is an installation problem, because there is no .seq file. The
> permissions on the directory are correct, and I'm printing to the
> right printer with
> lpr -P aps1 README
>
> I've been all through it, reloaded last week and this week I'm back to
> square 1 :(
>
> Any help would be appreciated, I have been and continue to search the
> apsfilter mailing list archives.
>
> Thanks,
>
> Lincoln Rutledge
> Information Technology Manager
> Fairfield County District Library
> IT Dept request form:
> http://fcd200.clc.lib.oh.us/techadmin/
> information_technology_maintenan.htm