Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2002 09:35:52 -0500
From:      Mike Galvez <mrg8n@virginia.edu>
To:        Marco Radzinschi <marco@radzinschi.com>
Cc:        FreeBDS-Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: How to share HP LaserJet III with Samba?
Message-ID:  <20020130093552.B39303@mail.virginia.edu>
In-Reply-To: <20020129222747.P35773-100000@mail.radzinschi.com>; from marco@radzinschi.com on Tue, Jan 29, 2002 at 10:39:44PM -0500
References:  <20020129222747.P35773-100000@mail.radzinschi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 29, 2002 at 10:39:44PM -0500, 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

Is your filter executable?


> 
> 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

-- 
Michael Galvez                                             
Information Technology Specialist III 	E-Mail: mrg8n@nospam.virginia.edu
University of Virginia                  	Office: 434-982-2975 

Money is better than poverty, if only for financial reasons.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020130093552.B39303>