Date: 16 Nov 2002 13:07:39 +0000 From: Stacey Roberts <stacey@vickiandstacey.com> To: Michael =?ISO-8859-1?Q?Lo=DFin?= <phallobst@web.de>, apsfilter-help@apsfilter.org, FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Printing to Win2K share printer with apsfilter via samba fails Message-ID: <1037452058.373.23.camel@localhost> In-Reply-To: <200211140818.gAE8I8X11691@mailgate5.cinetic.de> References: <200211140818.gAE8I8X11691@mailgate5.cinetic.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Michael, I've got an update. On Thu, 2002-11-14 at 08:18, Michael Loßin wrote: > apsfilter-help@apsfilter.org schrieb am 13.11.02 20:08:35: > > > 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:\ > > > > /dev/null ?!? Are you sure this is supposed to be here? > > The setup should have done this (or is it just for > > testing purposes?). > > > > > :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 > > > > What you've seen here (inclusinve of the ":lp=/dev/null:\" line) is > > EXACTLY what I ended up with after configuring / installing apsfilter. > > > > What you've suggested as what the /etc/printcap entry that should have > > been inserted by apsfilter is news to me. I've been posting that very > > same /etc/printcap entry for over a week, and no-one's said anything > > about it. In fact, Michael, every single respondent, said that its fine. > > Well, the lp=/dev/null was created only with some "help" > by you, since the apsfilter setup can't know which device > to talk to. > So during the setup (in "interface setup") you must've > entered "/dev/null" as the target device, but it should > rather be "/dev/lp0" or something like that. Okay., I've changed this as you've suggested: # 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/lpt0:\ :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 $ Changed permissions on apsfilterrc, and restarted lpd: # chmod 644 /usr/local/etc/apsfilter/hp845c/apsfilterrc # lpc restart all hp845c: no daemon to abort printing enabled daemon restarted # ps waux | grep lpd root 156 0.0 0.2 976 664 ?? Ss 10:27AM 0:00.01 /usr/sbin/lpd -l # Sent print job from command line: $ lpr -Php845c test $ Nothing going on at the printer.., Checking the queue: $ lpc status all hp845c: queuing is enabled printing is enabled 1 entry in spool area waiting for hp845c to become ready (offline?) $ Now this I've not seen before.., but where's the job gone?: # ps waux | grep -i lpd root 156 0.0 0.2 976 664 ?? Is 10:27AM 0:00.01 /usr/sbin/lpd -l root 74482 0.0 0.2 976 696 ?? S 12:54PM 0:00.01 /usr/sbin/lpd -l # PID 74482 might well be that job.., Checking spool logs: $ ls -l /var/spool/lpd/hp845c/ total 5 -rw-r--r-- 1 root daemon 0 Nov 15 18:40 acct -rw-rw---- 1 daemon daemon 130 Nov 16 12:54 cfA002Demon.vickiandstacey.com -rw-rw---- 1 stacey daemon 1110 Nov 16 12:54 dfA002Demon.vickiandstacey.com -rw-rw-r-- 1 root daemon 0 Nov 16 12:54 errs.YKp21x9 -rw-rw-r-- 1 root daemon 6 Nov 16 12:54 lock -rw-r--r-- 1 root daemon 0 Nov 15 18:40 log -rw-rw-r-- 1 root daemon 46 Nov 16 12:54 status $ The log and errs.* files are both empty: $ file /var/spool/lpd/hp845c/log /var/spool/lpd/hp845c/log: empty $ file /var/spool/lpd/hp845c/errs.YKp21x9 /var/spool/lpd/hp845c/errs.YKp21x9: empty $ Checking messages: $ tail /var/log/messages Nov 16 11:00:00 Demon newsyslog[44054]: logfile turned over Nov 16 11:28:12 Demon /kernel: ipfw: limit 10 reached on entry 622 Nov 16 12:52:16 Demon su: stacey to root on /dev/ttyp0 Nov 16 12:53:55 Demon lpd[74477]: Demon.vickiandstacey.com requests printjob hp845c Nov 16 12:54:30 Demon lpd[74482]: Demon.vickiandstacey.com requests printjob hp845c Nov 16 12:55:22 Demon /kernel: ipfw: limit 10 reached on entry 820 $ This isn't working, no noises at the printer, no traffic on the switch, nothing this ain't happening.., killing print jobs $ lprm -Php845c - dfA002Demon.vickiandstacey.com dequeued cfA002Demon.vickiandstacey.com dequeued $ Let me know what more I could do for you, please. Stacey > > > > 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. > > > > > But this file DOES exist: > > > [it really does] > > > > It's probably a file permission problem. Please tell us > > what the permissions of > > "/usr/local/etc/apsfilter/hp845c/apsfilterrc" are. > > > > Its set to 600. > > This is not guaranteed to work -- it depends on the > printer spooler. Please make it world readable > (chmod 644 /usr/local/etc/apsfilter/hp845c/apsfilterrc) > and try again. (Don't forget the lp=/dev/lp0 stuff, > and restart the printer spooler daemon.) > > I don't know why this doesn't work for you. Did you > use a distribution specific package or the original > tarball from www.apsfilter.org? > > > Michael > ________________________________________________________________ > Viren? Wir wissen nicht was Ihr Arzt empfiehlt. Wir empfehlen den > Virencheck für Dateianhänge! http://freemail.web.de/features/?mc=021159 -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1037452058.373.23.camel>