At 09:54 17/06/01 +0100, Steven Murdoch wrote:
>Also I need to print via a shared HP 1100 on a Windows machine, again 
>Redhat did an excellent job of setting this up with ghostscript, so all I 
>have to do is type "lpr filename.ps" and it will use ghostscript convert it 
>to HP PCL and then use Samba to send it to the printer, by way of a huge 
>shell script. Can Debian do the same without me having to recreate a 376 
>line shell script.

Here's the config from a box I use - works for me.

HTH
Colin

---/etc/printcap------------------------------
hplaser:\
        :sd=/var/spool/lpd/hplaser:\
        :mx#0:\
        :lp=/dev/null:\
        :if=/var/spool/lpd/hplaser/filter:\
        :cm=Postscript converted and redirect to lp1:\
        :sh:

---/var/spool/lpd/hplaser/filter --------------------
#!/bin/sh
        gs -q -sDEVICE=ljet4 \
                -r300x300 \
                -sPAPERSIZE=a4 \
                -dNOPAUSE \
                -dSAFER \
                -sOutputFile=- - | /usr/bin/smbprint \\\\server\\sharename


---/usr/bin/smbprint ----------------------------------
#!/bin/bash

(
echo "print -"
cat
) | /usr/bin/smbclient "$1" "" -P >/tmp/lastloprint.log


--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------

Reply via email to