From owner-freebsd-questions Thu Aug 27 03:07:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA18187 for freebsd-questions-outgoing; Thu, 27 Aug 1998 03:07:52 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dylan.visint.co.uk (dylan.visint.co.uk [194.207.134.180]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA18182 for ; Thu, 27 Aug 1998 03:07:50 -0700 (PDT) (envelope-from stewart@visint.co.uk) Received: from localhost (stewart@localhost) by dylan.visint.co.uk (8.8.8/8.8.8) with SMTP id LAA06499; Thu, 27 Aug 1998 11:06:48 +0100 (BST) (envelope-from stewart@visint.co.uk) X-Authentication-Warning: dylan.visint.co.uk: stewart owned process doing -bs Date: Thu, 27 Aug 1998 11:06:48 +0100 (BST) From: Stewart Morgan To: The Hermit Hacker cc: samba@samba.anu.edu.au, freebsd-questions@FreeBSD.ORG Subject: Re: /etc/printcap for samba-shared printer... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message