Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 May 2002 18:42:18 +0200 (CEST)
From:      Marco Beishuizen <mbeis@wxs.nl>
To:        Warren Block <wblock@wonkity.com>
Cc:        FreeBSD questions mailing list <questions@FreeBSD.ORG>
Subject:   Re: [partly solved] printing via a JetDirect 600N printserver
Message-ID:  <20020504181106.E299-200000@yokozuna.bsd>
In-Reply-To: <Pine.BSF.4.21.0205041002250.75938-100000@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Sat, 4 May 2002, the wise Warren Block spoke, and said:

> On Sat, 4 May 2002, Marco Beishuizen wrote:
>
> > The printer got IP address 10.0.0.152, and with windows printing is
> > ok. I'm able to ping to the printer.
>
> > My problem is parly solved because I still can't print from FreeBSD.
> > I'm still trying to configure the printer with apsfilter, but when I
> > try to print a test page I got the message "unknown printer".
>
> More details are needed.  What command line are you using?  What is in
> /etc/printcap?

I'm not using a specific command line but the apsfilter script in an
xterm. In this script you can select some options like the driver and
resolution etc. and at the end it generates a printcap file.

The only thing I need to change is the setup of the interface, which
changes from parallel to network. When I do this I have to enter the
IP address (10.0.0.152) and the printer name (raw). The script also
provides the option to print a test page, it does this with:

gs -q -dBATCH -dNOPAUSE -dSAFER -r600x600 -sDEVICE=lj5gray
-sPAPERSIZE=a4 -sOutputFile='/tmp/apsfilter5808/test_page.aps'
setup/test.ps

The error message is:

-rw-r--r--  1 root  wheel  5518752 May  4 18:23
/tmp/apsfilter5808/test_page.aps
lpr: raw@10.0.0.152: unknown printer

When I change hostname or printername it doesn't have any effect.

My printcap at this moment is the same as the original one that comes
with FreeBSD, with all lines marked out, because apsfilter has not
generated a new printcap yet. I have attached the printcap file that
is generated when I do install it with the not working settings.

> -Warren Block * Rapid City, South Dakota USA
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>


Marco

-- 
Second Law of Business Meetings:
	If there are two possible ways to spell a person's name, you
will pick the wrong one.

Corollary:
	If there is only one way to spell a name, you will spell it
wrong, anyway.

[-- Attachment #2 --]
#	@(#)printcap	5.3 (Berkeley) 6/30/90
# $FreeBSD: src/etc/printcap,v 1.10.2.1 2001/03/06 02:04:52 obrien Exp $

#
# This enables a simple local "raw" printer, hooked up to the first
# parallel port.  No kind of filtering is done, so everything you pass
# to the "lpr" command will be printed unmodified.
#
# Remember, for further print queues you're going to add, you have
# to choose different spool directories (the "sd" capability below),
# otherwise you will greatly confuse lpd.
#
# For some advanced printing, have a look at the "apsfilter" package.
# It plugs into the lpd system, allowing you to print a variety of
# different file types by converting everything to PostScript(tm)
# format.  For more information about apsfilter visit
#
#	     http://www.apsfilter.org/
#
# If you don't have a PostScript(tm) printer, don't panic, but do
# also install the latest "ghostscript" package for best printer support.
#
# Do also refer to the "printing" section of the handbook.  
#
#	http://www.freebsd.org/handbook/printing.html
#
# A local copy can be found under
#
#	/usr/share/doc/handbook/handbook.{html,latin1}.
#
# Banner pages are now suppressed by default.  Remove the :sh: capability
# to turn them back on.
#
#lp|local line printer:\
#	:sh:\
#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
#
# Sample remote printer.  The physical printer is on machine "lphost".
# You can perform any kind of local filtering directly.  If you need
# local filters (e.g. LF -> CR-LF conversion for HP printers), create
# a filter script that sends the proper escape sequence to the printer
# and then concatenates stdin to stdout.
#
#remote|sample remote printer:\
#	:sh:\
#	:rm=lphost:sd=/var/spool/output/lphost:lf=/var/log/lpd-errs:\
#	:if=/usr/local/libexec/if-script:
#
# Simple Russian printer with hardware CP866 character set, output filter
# used for KOI8-R -> CP866 conversion
#
#lp|Russian local line printer:\
#	:sh:of=/usr/libexec/lpr/ru/koi2alt:\
#	:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:
# APS1_BEGIN:printer1
# - don't delete start label for apsfilter printer1
# - no other printer defines between BEGIN and END LABEL
lp|lj5gray;r=600x600;q=high;c=gray;p=a4;m=auto:\
    :lp=:\
    :rm=:\
    :rp=raw:\
    :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

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