[ILUG] Re: printcap settings and windows printer

michael conry michael.conry at ucd.ie
Mon Sep 25 14:47:52 IST 2000


I did something similar myself, to allow me to print to the office
laserjet 5si from my linux box. I use apsfilter (and find it very good)
with SuSE linux which i also find good.
I would refer you to the link:
http://sdb.suse.de/sdb/en/html/fehr_druck_1.html
basically, they replace the if (input filter) from the printcap entry
with another little script of the form:
-----------------------[/usr/local/sbin/netzprint_lp8]------------
#!/bin/sh
/usr/lib/apsfilter/filter/aps-epson-a4-auto-color - $1 $2 $3 $4 $5 $6 $7

$8| \
/usr/local/sbin/smbprint $1 $2 $3 $4 $5 $6 $7 $8

This has the effect of sending what you want to print (say myfile.jpeg)
to the aps script, which converts into raw printer code via post-script.
This raw printer code is then sent to smbprint which feeds it to your
printer over the smb connection. There is also a small alteration to
smbprint recommended.
The configuration file with details like the server name, password, etc
are all located in a config file you put in the spool directory.

If this solves your problem (the link is good) then great. If you want
more detail, then mail and i will forward my scripts to you which should
sort things out. (or you could do like Conor says and put the printer on
your linux box and share to windows)
bye for now
mick





More information about the ILUG mailing list