From owner-freebsd-questions Tue Jul 18 12:22:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.techline.com (mx1.techline.com [204.201.36.16]) by hub.freebsd.org (Postfix) with ESMTP id 51DFA37B921 for ; Tue, 18 Jul 2000 12:22:10 -0700 (PDT) (envelope-from ghp@techline.com) Received: from ghp0535.techline.com (ghp-gw.techline.com [204.201.38.80]) by mx1.techline.com (8.8.7/8.8.7) with ESMTP id MAA01025 for ; Tue, 18 Jul 2000 12:42:34 -0700 Message-Id: <4.3.2.7.2.20000718114923.00d2ec30@mail.techline.com> Date: Tue, 18 Jul 2000 11:53:52 -0700 To: freebsd-questions@freebsd.org From: Ben Hohman Subject: Re: Printing from FreeBSD to WinNT In-Reply-To: <021101bff0cf$90de7da0$0100a8c0@144> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kevin, Have you set up the printer as the default. Where I work, each user has a default printer. To print to other printers on the network (this is HPUX, but it should be close), it is lp -dprintername my_file.txt So you either need to specifiy a default for the user or name it. That might explain why when you hook it up directly it works (system default). Ben At 7/18/00 08:48 AM, you wrote: >Hi all, > >I'm having a bit of a problem getting my FreeBSD 4-stable (as of 7/17/00) >box to print to my WinNT 4.0sp6a machine. I have a fully functional network >and samba set up correctly (in fact, my bsd box acts as a file server for >the win machine). On my NT machine, I have a HP LaserJet 6L working >correctly. On the BSD box, I installed the most recent apsfilter from the >ports along with ghostscript. Just to test my apsfilter setup, I connected >the laserjet to the FreeBSD box and everything works just fine (provided I >change the apsfilter setup to reflect a lpt0 connection). So I am >basically having a problem printing to NT over the network. When I set up >apsfilter via the /usr/local/apsfilter/SETUP script to print to the NT >printer, I apparently entered all the information correctly. I was able to >print out the apsfilter test page through the laserjet connected to NT. But >now I can't print out regular documents to the printer, i.e., > >$ lp document.txt >$ lpr document.txt >$ lpr -Plp document.txt > >and nothing happens. Nothing happens on the NT box, either. Here is my >/etc/printcap (notice I have entries for the remote--lp and raw--and >local--lp2 and raw2--connections): > ># @(#)printcap 5.3 (Berkeley) 6/30/90 ># $FreeBSD: src/etc/printcap,v 1.10 1999/08/27 23:23:43 peter Exp $ > ># LABEL apsfilter ># apsfilter setup Tue Jul 18 01:36:35 EDT 2000 ># ># DON'T DELETE THIS: ># APS_BASEDIR:/usr/local/apsfilter ># ># APS1_BEGIN:printer1:ljet4:letter:600x600 ># - don't delete start label for apsfilter printer1 ># - no other printer defines between BEGIN and END LABEL ># >lp|aps1-ljet4-letter-auto-600x600|Printer1 ljet4 letter auto 600x600:\ > :lp=/dev/null:\ > :sd=/var/spool/lpd/printer1-ljet4-letter-auto-600x600:\ > :lf=/var/spool/lpd/printer1-ljet4-letter-auto-600x600/log:\ > :af=/var/spool/lpd/printer1-ljet4-letter-auto-600x600/acct:\ > :if=/usr/local/apsfilter/filter/aps1-ljet4-letter-auto-600x600:\ > :mx#0:\ > :sh: >raw|aps2-ljet4-letter-raw|Printer1 ljet4 letter raw:\ > :lp=/dev/null:\ > :sd=/var/spool/lpd/printer1-ljet4-letter-raw:\ > :lf=/var/spool/lpd/printer1-ljet4-letter-raw/log:\ > :af=/var/spool/lpd/printer1-ljet4-letter-raw/acct:\ > :if=/usr/local/apsfilter/filter/aps2-ljet4-letter-raw:\ > :mx#0:\ > :sf:\ > :sh: ># APS1_END - don't delete this END LABEL for printer1 ># ># APS2_BEGIN:printer2:ljet4:letter:600x600 ># - don't delete start label for apsfilter printer2 ># - no other printer defines between BEGIN and END LABEL ># >lp2|aps3-ljet4-letter-auto-600x600|Printer2 ljet4 letter auto 600x600:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/lpd/printer2-ljet4-letter-auto-600x600:\ > :lf=/var/spool/lpd/printer2-ljet4-letter-auto-600x600/log:\ > :af=/var/spool/lpd/printer2-ljet4-letter-auto-600x600/acct:\ > :if=/usr/local/apsfilter/filter/aps3-ljet4-letter-auto-600x600:\ > :mx#0:\ > :sh: >raw2|aps4-ljet4-letter-raw|Printer2 ljet4 letter raw:\ > :lp=/dev/lpt0:\ > :sd=/var/spool/lpd/printer2-ljet4-letter-raw:\ > :lf=/var/spool/lpd/printer2-ljet4-letter-raw/log:\ > :af=/var/spool/lpd/printer2-ljet4-letter-raw/acct:\ > :if=/usr/local/apsfilter/filter/aps4-ljet4-letter-raw:\ > :mx#0:\ > :sf:\ > :sh: ># APS2_END - don't delete this END LABEL for printer2 > > > > > > > >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