Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2000 11:48:05 -0400
From:      "Kevin Gross" <kc144@sprynet.com>
To:        "questions" <freebsd-questions@freebsd.org>
Subject:   Printing from FreeBSD to WinNT
Message-ID:  <021101bff0cf$90de7da0$0100a8c0@144>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?021101bff0cf$90de7da0$0100a8c0>