From owner-freebsd-questions@FreeBSD.ORG Fri May 21 14:53:19 2004 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 46FF416A4CE for ; Fri, 21 May 2004 14:53:19 -0700 (PDT) Received: from smtp810.mail.sc5.yahoo.com (smtp810.mail.sc5.yahoo.com [66.163.170.80]) by mx1.FreeBSD.org (Postfix) with SMTP id 37DBB43D49 for ; Fri, 21 May 2004 14:53:19 -0700 (PDT) (envelope-from addymin@pacbell.net) Received: from unknown (HELO pacbell.net) (m?chinn@pacbell.net@67.120.103.21 with plain) by smtp810.mail.sc5.yahoo.com with SMTP; 21 May 2004 21:53:19 -0000 Message-ID: <40AE7AC7.90802@pacbell.net> Date: Fri, 21 May 2004 14:55:19 -0700 From: Mike User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Network printing question: apsfilter + samba over Win2k network X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: addymin@pacbell.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 May 2004 21:53:19 -0000 Greetings: My server is: FreeBSD 4.9 stable and is acting as a file and (hopefully) print server for 6 local Windows 2000 workstations. Samba 2.28 is installed and serving file shares properly. Now for printer sharing... The printer is an HP 4M laserjet, and I installed apsfilter (via ports) Apsfilter SETUP came up and took me through the process of installing the printer. First I installed the HP [lp] first using "auto" as the default printing method. The HP's test page printed fine Next I installed the HP [aps1]using "raw" as print method. I wanted to use the HP as a print server so I just want the server to "pass" the print job to the Win2K client (is this right?). I want Win2k to handle the print job. Note: I have a Redhat-9 print server that works and it uses a CUPS + SAMBA combination. I'm using Apsfilter for FreeBSD, so I shouldn't need CUPS right? Anyway, for aps1 (raw printer), I set-up a samba printer share, here is that portion of the smb.conf: [hp4m] printable = yes comment = hp4m printer = aps1 lprm command = lprm -P%p %j print command = lpr -r -h -P %p %s lpq command = lpq -P%p path = /var/spool/lpd/aps1 public = yes writeable = yes use client driver = yes PROBLEM: I'm able to "see" the printer from the Win2k client accoss the network, Windows 2k prompts for a driver and I load the driver. Windows reports that the printer is "ready", however when I try to print a test page, nothing happens. This is my first foray into network printing with FreeBSD, and I'm still learning may way around this OS. So any pointers or hints would be greatly appreciated. Thanks, Michael Chinn For reference, here is the /etc/printcap file: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL lp|PS;r=600x600;q=medium;c=full;p=letter;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: # APS1_END - don't delete this # APS2_BEGIN:printer2 # - don't delete start label for apsfilter printer2 # - no other printer defines between BEGIN and END LABEL aps1|PS;r=600x600;q=medium;c=full;p=letter;m=raw:\ :lp=/dev/lpt0:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/aps1:\ :lf=/var/spool/lpd/aps1/log:\ :af=/var/spool/lpd/aps1/acct:\ :mx#0:\ :sf:\ :sh: # APS2_END - don't delete this From the smb.conf: [hp4m] printable = yes comment = hp4m printer = aps1 lprm command = lprm -P%p %j print command = lpr -r -h -P %p %s lpq command = lpq -P%p path = /var/spool/lpd/aps1 public = yes writeable = yes use client driver = yes