Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2002 16:46:28 -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:  <20020130164628.B40303@mail.virginia.edu>
In-Reply-To: <20020130152400.P38083-100000@mail.radzinschi.com>; from marco@radzinschi.com on Wed, Jan 30, 2002 at 03:26:43PM -0500
References:  <20020130093552.B39303@mail.virginia.edu> <20020130152400.P38083-100000@mail.radzinschi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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