"Andrew S. Zbikowski" wrote:

> >
> > #
> > # Copyright (c) 1983 Regents of the University of California.
> > # All rights reserved.
> > #
> > #       @(#)etc.printcap        5.2 (Berkeley) 5/5/88
> > #
> > # Remote Deskjet Printer connected to Windows
> > lp|deskjet:\
> >         :lp=:\
> >         :sd=/var/spool/lpd/indra:\
> >         :rm=windows.mydomain.com:\
> >         :rp=deskjet:\
> >         :sh:sf:mx#0:\
> >         :pl#66:pw#80:
>
> First off, you should check to see if linux supports your deskjet at all.
> Some (but not all) HP DeskJets are Windows only (host based) printers. They
> don't work for the same reason winmodems don't work in Linux.
>
> If it is supported by linux, things are looking up. Install apsfilter or
> magicfilter to help you set up filters for printing to your printer. Want
> the bad news now? You can't print to a printer shared by a windows box (to
> the best of my knowelege anyway...) via lpr.

Sure you can.  Its been a year since I set it up .. should be in the samba
howto's and the online manual.

/etc/printcap:
##PRINTTOOL3## SMB ljet4 600x600 letter {} LaserJet4 Default 1
laser:
        :sd=/var/spool/lpd/laser
        :mx0:sh
        :af=/var/spool/lpd/laser/acct
        :lp=/dev/null
#        :ifhp=model=hp4mplus
#        :if=/usr/libexec/filters/ifhp
        :if=/var/spool/lpd/laser/filter

/etc/smb.conf:
[laser]
   comment = HP LaserJet 4M+
   printer name = laser
   path = /var/spool/samba
   browseable = yes
   guest ok = yes
   writable = no
   printable = yes
   print command = /usr/bin/lpr -P%p -r %s




---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org
For additional commands, e-mail: tclug-list-help at mn-linux.org