l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Jun 06 09:23

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Response to request: how to set up printer spooler with no fi
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Response to request: how to set up printer spooler with no filters


Last night you described a printer on an ethernet network that needs to
receive input data from a user application without any filtering or data
munging by a print filter. (Did I describe the problem correctly?) Red Hat
system, recent release.

There are two approaches to this:

1. Do you just want to have a simple script that sends the data to the
   printer right away, nevermind providing a queue or the standard printing

2. Do you want to use the standard printing system, AKA lpr/lpd/lpq, which
   provides a print queue? This normally involves a filter, but can be set up
	without one.

The second option builds on the first.

I suggest to use the 'netcat' utility to implement option #1. The binary is
called 'nc'. It allows you to send arbitrary data across a network. Unless
you have documentation describing the printer's networking protocol needs,
you will need to to some trial and error. You can discover what port the
printer listens on using the port scanner 'nmap'. Both of these are
documented by manual pages (to read, type 'man nc' or 'man nmap' in a
terminal window or virtual console). If you don't have these programs you can
get them from http://rpmfind.net.

If you want to set up a print queue, you need 'lprng'. Don't use the
graphical set-up tool. Instead insert the following into /etc/printcap
(removing any existing contents):

lp|tardis|Xerox DocuPrint N17 with duplex:\

Also insert the proper commands, figured out in step (1), to send data to the
printer, into the file /etc/lprng/lp.filter, and make that file executable.

(Vox-tech readers: please cc Tim if you reply. He is not subscribed to the

Henry House
The attached file is a digital signature. See <http://romana.hajhouse.org/pgp>
for information.  My OpenPGP key: <http://romana.hajhouse.org/hajhouse.asc>.

Attachment: pgp00000.pgp
Description: PGP signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.