apsfilter question/problem

Mike Jeays mj001 at rogers.com
Fri Feb 17 10:36:30 PST 2006


On Fri, 2006-02-17 at 11:09 +0000, Denny White wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> I read the article at Onlamp about printing for the impatient.
> Installed apsfilter and samba on my old hp netserver so I'd
> be able to print to an hp 722c deskjet printer connected to
> an xp box. Gimp-print was also installed. Ghostscript was
> already installed. I ran /usr/local/share/apsfilter/./SETUP
> & thought I had it whipped. That's where the fun started.
> Apparently I've missed something along the way, since the
> print job never gets sent to the xp box. I also found out
> at linuxprinting.org that the recommended hp 722c driver
> is pnm2ppa. There was only one section in the install script
> that mentioned that driver, 10) PPA printer, so I chose that.
> It plugs it into the setup, but when I try to print a test
> page, I get ERROR: additional filter 'pnm2ppa' not found.
> I found the driver at linuxprinting.org & downloaded it.
> How do I go about using it? Is there a way to compile it
> into ghostscript? I have ghostscript-gnu-nox11-7.07_14 &
> the apsfilter setup script found it & didn't complain.
> Do I need to install another more complete version? I know
> if I install ghostscript-afpl, I'll also have to recompile
> & reinstall apsfilter with the proper make options. When
> I choose the more generic just plain deskjet printer driver,
> the script accepts it, and when I try to print a test page,
> there's no complaining about the driver like when I try the
> ppa driver. Test page is created, supposedly sent to the
> xp printer with even a speed, average around 950 kb/s, but
> I see where it only goes to stdin. I'm definitely not a
> programmer, but another filter, ghostscript, something, has
> to relay it to stdout, is that correct?
> So, I could use some pointers on this. If anyone interested
> in answering needs more info, I'll be glad to plug it in to
> a reply. Like smb.conf, apsfilterrc, & so forth. Thanks.
> Denny White
> 
> GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
> Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (OpenBSD)
> 
> iD8DBQFD9a7dy0Ty5RZE55oRAg/8AKCaidZVu40OrIvmGeLm/Zw40RDAqgCaAggH
> YmKpizvD6o7ihgZM8MmQKn0=
> =wm8n
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

This combination worked fine for me.

-------------------------------------------------------------
# Printcap file: Added 2005-04-25 based on pnm2ppa suggestions.
  
lp|ascii|unix:\
                :lp=/dev/lpt0:\
                :sd=/var/spool/lpd:\
                :if=/home/mike/bin/pnm2ppa-filter:\
                :mx#0:\
                :sh:
-------------------------------------------------------------
#!/bin/sh
# printcap-filter
TMP=/tmp/pnm2ppa.tmp
cat >$TMP
ch1=`head -1 $TMP | cut -c 1`
if [ "$ch1" = '%' ]
then
 cat $TMP | /usr/local/bin/gs -sDEVICE=ppmraw -q -dNOPAUSE -r600 \
-sOutputFile=- - | \
 /usr/local/bin/pnm2ppa -i - -o -  
else  
  cat $TMP | /usr/local/bin/enscript -B -q -p - | \
  /usr/local/bin/gs -sDEVICE=ppmraw -q -dNOPAUSE -r600 \
  -sOutputFile=- - | \
  /usr/local/bin/pnm2ppa -i - -o -
fi
rm $TMP


-- 
Mike Jeays
http://ca.geocities.com/mike.jeays@rogers.com



More information about the freebsd-questions mailing list