Manual LPD configuration
There may be some differences with how RedHat is configured now. I don't know if they've moved to Cups yet or not. But if it uses LPD, that I can help out with.
Printers are defined in /etc/printcap file.
Here is an entry from mine:
lp:lp=:rm=10.0.0.5:rp=xjdirect:sd=/var/spool/lpd/lp:if=/var/spool/lpd/lp/filter:sh:mx#0
In my case, this is one line, but many systems will have it split with \ characters to continue across multiple lines. I've had trouble in the past making that work for me.
Each field is separated by a :
The first field is the name of the printer. Default is usually lp. (That means, whichever printer you name lp will be your default printer). You gan give a printer multiple names separated by | ex:
lp|canon200
lp= field defines the device the priter is attached too. For Parallel port printers, this would usually be lp=/dev/lp0 In my case, this is a remote printer, so lp is left blank.
rm and rp fields define a remote printer.
sd is the spool directory for this printer. This directory needs to exist.
if= is the input filter. This is a program that converts whatever file you are trying to print into something your printer understands. In the case of printtool configured printers, this will be a complex series of hard to understand scripts that will gracefully handle just about anything you throw at them. Do a search for posts by me to find an earlier duscussion on how to get your feet wet creating simple ghostcript scripts.
the sh supresses banner pages.
mx# is used to configure a Maximum filesize for printjobs. mx#0 means unlimited.
See man printcap for more information on the kinds of things you can put into a printcap file.
Note: Using printtool should be done by root. Changes you make there will affect all users. Many modern apps will let you choose from your printers in a list. Otherwise, the app will probably let you specify a printing command (lpr) in this case, you choose the printer with -P switch. ex: lpr -P canon200
I hope some of this made sense.
Last edited by Rashkae; 05-09-2002 at 08:54 AM.
|