From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 02:48:51 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AECB416A4CE for ; Mon, 24 Jan 2005 02:48:51 +0000 (GMT) Received: from rrcs-mta-01.hrndva.rr.com (rrcs-mta-01.hrndva.rr.com [24.28.200.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34E2243D31 for ; Mon, 24 Jan 2005 02:48:51 +0000 (GMT) (envelope-from ron@bouncebk.com) Received: from rrcs-fep-10.hrndva.rr.com (rrcs-fep-10b.hrndva.rr.com [172.28.200.148])j0O2moG7010367 for ; Sun, 23 Jan 2005 21:48:50 -0500 (EST) Received: from [192.168.0.5] (really [67.48.105.136]) by rrcs-fep-10.hrndva.rr.com with ESMTP id <20050124024850.PJK25780.rrcs-fep-10.hrndva.rr.com@[192.168.0.5]> for ; Sun, 23 Jan 2005 21:48:50 -0500 Message-ID: <41F461F8.90704@bouncebk.com> Date: Sun, 23 Jan 2005 20:48:24 -0600 From: McCy Ron User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: questions@freebsd.org References: <1106505227.25875.29.camel@whitecortex.net> In-Reply-To: <1106505227.25875.29.camel@whitecortex.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: samba printing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mccyron@kc.rr.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 02:48:51 -0000 I have/had the same problem - couldn't print to the Samba shared printer until I found in the "Handbook" a couple of line of code that were missing in my smb.conf.... [printers] comment = Guttenburgs Pride printable = yes printing = BSD printcap name = /etc/printcap print command = /usr/bin/lpr -P%p -r %s path = /var/spool/samba min print space = 2000 public = yes I've got a printcap setting that uses a "pass-through" filter..... Windows provides the drivers that talk to the printer correctly. BSD need only pass the bytes through. ################################### ### printcap setup for Samba printer share...... broxima|hplj4|Samba Laser:\ :sh:\ :lp=/dev/lpt0:sd=/var/spool/output/broxima:\ :lf=/var/log/smbprt-errs:\ :if=/usr/libexec/pass-prt:\ ### pass-prt ......Pass through filter........ #!/bin/sh /bin/cat && exit 0 exit Mikko Heiskanen wrote: >Hi list, > >I'm having hard time getting printing working from samba winXP client to >a printer parallelport connected to my FreeBSD-4.10-release box. >I have a HP Laserjet 1200 -printer, and am using LPD and apsfilter with >postscript driver as suggested by linuxprinting.org. > >Everything works real well under BSD, but I am unable to get any output >to printer from the Windows box. > >I have gathered different bits and pieces from around the net and >manuals, and have come up with the following: > >/etc/printcap: >lp|PS;r=1200x1200;q=medium;c=full;p=a4;m=auto:\ > :lp=/dev/lpt0:\ > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ > :sd=/var/spool/lpd/lp:\ > :lf=/var/spool/lpd/lp/log:\ > :af=/var/spool/lpd/lp/acct:\ > :mx#0:\ > :sh: >raw|hp|HP LaserJet 1200:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/raw:\ > :lf=/var/spool/raw/log:\ > :af=/var/spool/raw/acct:\ > :mx#0:\ > :sf:\ > :sh: > >$ ls -ld /var/spool/lpd/lp >drwxr-xr-x 2 root daemon 512 Jan 23 19:59 /var/spool/lpd/lp >$ ls -ld /var/spool/raw/ >drwxr-xr-x 2 root wheel 512 Jan 23 19:57 /var/spool/raw/ > >/usr/local/etc/smb.conf: >[global] > hosts allow 10.0.0. > security = user > encrypt passwords = yes > socket options = TCP_NODELAY > client code page=850 > wins support = yes > printing = bsd > printcap name = /etc/printcap >[lp] > comment = Laserjet 1200 > path = /var/spool/samba > printer name = raw > public = yes > writeable = no > printable = yes > >$ ls -ld /var/spool/samba/ >drwxrwxrwt 2 root wheel 512 Jan 23 20:03 /var/spool/samba/ > >In the Windows box, I've added a local printer with the "Add new printer >wizard" pointing it to lpt1-port. After that, I have opened a command >prompt, and typed "net use lpt1: \\10.0.0.1\lp". > >I have filesharing also in samba, and that works without problems. > >My windows username and password are same as samba username and >password. > >However, as said, nothing gets printed. No files are in the >spooldirectories. I do not know how to proceed, and would love some >guidance. Thanks, >Mikko > >ps. would hate to have to put it into windows box, as printer supports >PS. >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > >