Once these tools are installed, you simply need to adjust your printcap
one more time. Add an if key to point to the Magicfilter that goes
with your printer:
lp|The EPSON Stylus Color 777 sitting under my desk:\
:if=/usr/share/magicfilter/StylusColor-777@720dpi-filter:\
:gqfilter:\
:lp=/dev/usb/lp0:\
:sd=/var/spool/lpd/lp:\
:pl#66:\
:pw#80:\
:pc#150:\
:mx#0:\
:sh:
There are filters for dozens and dozens of different printers and
printer settings in /usr/share/magicfilter, so be sure you use the right
one for your printer. Each of these filters is a text file, and usually
the full name of the printer is at the top. This may help you if the file
name of the filter isn't clear.
I also added a gqfilter flag to this printcap entry, which will cause
the input filter to be used even when the print job is coming from a
remote client. This only works with LPRng.
Since I set up the /var/spool/lpd/lp print spool directory earlier, I
only need to check my printcap syntax and restart the server:
# checkpc -f
# /etc/init.d/lprng restart
Now you are able to print all sorts of documents, including Postscript
files. In other words, choosing "Print" from a menu in your favorite web
browser should now work.