With this in /etc/printcap :
# HP Laserjet 1100
# Set Default Printer
lp|ljet:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/lp:\
:if=/usr/local/bin/lpfilter:\
:mx#0:\
:sh
Then /usr/local/bin/lpfilter should look like:
#!/bin/sh
exec /usr/bin/gs -q -dSAFER -sDEVICE=ljet4 -r600 -dNOPAUSE -sOutputFile=- -
Some ill behaved printers, like the Kyocera FS-1010, require a kick to make them behave. In this example of a lpfilter file for the Kyocera FS-1010, we are forcing the laserjet 4 emulation mode (PCL5):
#!/bin/sh
echo -en '!R! FRPO P8, 0; EXIT' > /dev/usb/lp0
sleep 2
/usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=pxlmono -sOutputFile=- -