From owner-freebsd-questions Tue Jan 29 19:59: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from teak.adhesivemedia.com (teak.adhesivemedia.com [207.202.159.79]) by hub.freebsd.org (Postfix) with ESMTP id 360A337B402 for ; Tue, 29 Jan 2002 19:59:03 -0800 (PST) Received: from localhost (philip@localhost) by teak.adhesivemedia.com (8.11.6/8.11.6) with ESMTP id g0U3wpv85201; Tue, 29 Jan 2002 19:58:51 -0800 (PST) (envelope-from philip@adhesivemedia.com) Date: Tue, 29 Jan 2002 19:58:51 -0800 (PST) From: Philip Hallstrom To: Marco Radzinschi Cc: FreeBDS-Questions Subject: Re: How to share HP LaserJet III with Samba? In-Reply-To: <20020129222747.P35773-100000@mail.radzinschi.com> Message-ID: <20020129195753.N85142-100000@teak.adhesivemedia.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 I can't answer your question directly, but I'm sure this is covered in O'Reilly's Using Samba book which is available online at: http://www.oreilly.com/catalog/samba/chapter/book/index.html good luck! On Tue, 29 Jan 2002, Marco Radzinschi wrote: > > Hello: > > I have an HP LaserJet III attached to my FreeBSD 4.4 server's > parallel port. I set up lpd so that I can print files out from the > server using lpr. > > I have also set up samba with directories shared out to my windows > machines. However, I cannot figure out how to set up samba to allow the > windows machines to print to the LaserJet III. I got it to the point > where it is listed in network neighborhood, but I cannot print. > > I am assuming that I set up the samba spool directory or permissions > wrong. Could someone tell me how to set up smb.conf and the directory > permissions to get printing to work using the samba guest account? > > Assume I am an idiot. :-) > > 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 > > Thank you, > > Marco Radzinschi > > E-Mail: marco@radzinschi.com > AOL IM: CrackedBoy > > Running FreeBSD 4.4-RELEASE i386 > 10:27PM up 9 days, 23:50, 1 user, load averages: 0.00, 0.00, 0.00 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message