Morning... Just spent this evening getting printing setup off my FreeBSD machine (oh, how I love Solaris at these times *groan*)...got it now so that I can print directly from Netscape, color and graphics and all. The printer is an HP 560c. Now, I want to be able to print from my Windoze95 machine, and have samba setup for that, as well as file sharing. If I setup my Windoze machine such that my printer is \\thelab\deskjet, which is the same printer (in /etc/printcap) that I use for Netscape under Unix, the test page gets sent across, but it isn't correct (graphic is all skewed). I'm figuring that there is something different that I must do with my printcap for a samba-shared printer vs local, but looking through the archives, can't find anything other then "use samba", so I ask here. My current entry is: deskjet:ps:PS:S:lp:HP DeskJet Printer:\ :sh:sd=/var/spool/lpd/deskjet:\ :lp=/dev/lpt0:\ :if=/usr/local/libexec/ifhp:\ :lf=/var/log/log.printer: The if filter is the /usr/share/examples/hpif file, for piping postscript through ghostscript. On the Windoze side, I have the HP 560c drivers loaded, and a friend mentioned something about just wanted to pass it through straight, but getting rid of the if= line doesn't appear to help, so that's not doing it right :( What am I overlooking? Thanks... Marc G. Fournier Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
Well, you do not need the filter because the output from the windows box is already formated. It will munge any output. I have two entries in the printcap one for the windows and one for the system. The only diffrence the windows one has not filter and the lp one does. Stefan> My current entry is: > > deskjet:ps:PS:S:lp:HP DeskJet Printer:\ > :sh:sd=/var/spool/lpd/deskjet:\ > :lp=/dev/lpt0:\ > :if=/usr/local/libexec/ifhp:\ > :lf=/var/log/log.printer: > > The if filter is the /usr/share/examples/hpif file, for piping > postscript through ghostscript. > > On the Windoze side, I have the HP 560c drivers loaded, and a > friend mentioned something about just wanted to pass it through straight, > but getting rid of the if= line doesn't appear to help, so that's not > doing it right :( > > What am I overlooking? > > Thanks... > > Marc G. Fournier > Systems Administrator @ hub.org > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message >
On Tue, 25 Aug 1998, The Hermit Hacker wrote:> > Morning... > > Just spent this evening getting printing setup off my FreeBSD > machine (oh, how I love Solaris at these times *groan*)...got it now so > that I can print directly from Netscape, color and graphics and all. > > The printer is an HP 560c. > > Now, I want to be able to print from my Windoze95 machine, and > have samba setup for that, as well as file sharing. If I setup my Windoze > machine such that my printer is \\thelab\deskjet, which is the same > printer (in /etc/printcap) that I use for Netscape under Unix, the test > page gets sent across, but it isn't correct (graphic is all skewed).If it's any help this is the setup we've got -- basically, it' all from the Samba documentation (docs/Printing.txt I think?). Woody's printer is an HP LaserJet 4 non-ps printer. /etc/printcap -----8<------ woody|Woody's Printer:\ :sh:\ :sd=/var/spool/output/woody:\ :lp=/dev/null:\ :if=/usr/scripts/PrintToWoody: ----->8------ /usr/scripts/PrintToWoody -----8<------ #!/bin/sh -x # This script is an input filter for printcap printing on a unix machine. It # uses the smbclient program to print the file to the specified smb-based # server and service. # For example you could have a printcap entry like this # # smb:lp=/dev/null:sd=/usr/spool/smb:sh:if=/usr/local/samba/smbprint ( # NOTE You may wish to add the line `echo translate' if you want automatic # CR/LF translation when printing. # echo translate echo "print -" cat ) | /usr/local/bin/smbclient "\\\\woody\\HP\ LJ" "" -U woody -N -P ----->8------ Simply change the relevent details (man smbclient(1) also helps). Stewart Morgan -------------- - Systems Administrator Vision Interactive Ltd 18 Whiteladies Road, Clifton, Bristol, BS8 2LG. E-Mail : stewart@visint.co.uk Tel : +44 (0)117 973 0597 Fax : +44 (0)117 923 8522 WWW : http://www.visint.co.uk/