From owner-freebsd-questions Wed Jan 30 13:48:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from humpty.finadmin.virginia.edu (humpty.finadmin.Virginia.EDU [128.143.87.245]) by hub.freebsd.org (Postfix) with ESMTP id 4C4E637B402 for ; Wed, 30 Jan 2002 13:48:40 -0800 (PST) Received: (from mrg8n@localhost) by humpty.finadmin.virginia.edu (8.11.6/8.11.6) id g0ULkSK40459; Wed, 30 Jan 2002 16:46:28 -0500 (EST) (envelope-from mrg8n) Date: Wed, 30 Jan 2002 16:46:28 -0500 From: Mike Galvez To: Marco Radzinschi Cc: FreeBDS-Questions Subject: Re: How to share HP LaserJet III with Samba? Message-ID: <20020130164628.B40303@mail.virginia.edu> References: <20020130093552.B39303@mail.virginia.edu> <20020130152400.P38083-100000@mail.radzinschi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020130152400.P38083-100000@mail.radzinschi.com>; from marco@radzinschi.com on Wed, Jan 30, 2002 at 03:26:43PM -0500 X-Operating-System: FreeBSD UNIX Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 30, 2002 at 03:26:43PM -0500, Marco Radzinschi wrote: > On Wed, 30 Jan 2002, Mike Galvez wrote: > > > > Below is my /etc/printcap file. I don't want to paste smb.conf because it > > > is way too long, and it does not work. > > > > > > lp|HP LaserJet III:\ > > > :sh:\ > > > :sd=/var/spool/lpd/lp:\ > > > :lp=/dev/lpt0:\ > > > :if=/usr/local/libexec/if-simple: > > > > > > Here is the /usr/local/libexec/if-simple script: > > > > > > #!/bin/sh > > > printf "\033&k2G" && cat && printf "\033&l0H" && exit 0 > > > exit 2 > > > > Is your filter executable? > > Well, I am not _THAT_ stupid. :-) I only mentioned it as it's usually something simple (done it myself).;-) From my printcap: lp|local line printer:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs: I also have the following options in smb.conf: load printers = yes printcap name = /etc/printcap printing = bsd # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writeable = no printable = yes HTH Mike > > I can print with lpr, as I mentioned in my original post, so it is > executable. What I want to do is be able to print from Windows machines > on my network via samba. > > I just printed out "Using Samba" from the O'Reiley site as someone > suggested. Hopefully I will get it to work, but if anyone could supply > the necessary smb.conf paramaters I would nevertheless appreciate it. > > Marco Radzinschi > > E-Mail: marco@radzinschi.com > AOL IM: CrackedBoy > > Running FreeBSD 4.4-RELEASE i386 > 3:24PM up 10 days, 16:46, 1 user, load averages: 0.02, 0.01, 0.00 > -- Michael Galvez Information Technology Specialist III E-Mail: mrg8n@nospam.virginia.edu University of Virginia Office: 434-982-2975 Misery no longer loves company. Nowadays it insists on it. -- Russell Baker To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message