Well ... basically you do it by writing an appropriate printcap entry for
the printer. This involves giving the printer a name; indicating where it is
to be found; and specifying the parameters needed to print to it.

For example, my printcap file has this example for a "generic" entry:

# Generic printer:
lp:lp=/dev/lp1:sd=/var/spool/lpd/lpgeneric:sh

lp                              is the name of the entry
lp=/dev/lp1                     is where the printer is connected 
                                to the system
sd=/var/spool/lpd/lpgeneric     is the location of the spool directory
                                used by lpd
sh                              is a switch to supress printing of
                                headers on jobs

A more complex entry for a remote printer, again from my printcap file, is
as follows:

ascii|caxton_ascii:\
 :lp=:\
 :rm=caxton:\
 :rp=text:\
 :lf=/var/spool/lpd/ERRORLOG:\
 :sd=/var/spool/lpd/caxton_text:

Here 

lp is blank because it isn't a local printer
rm=     gives the hostname (in /etc/hosts) for the printer)
lf=     specifies the location of a file for debug errors
rp=     is the reomote-printer queue name, in this case a label
                that lets the actual printer (an HP LaserJet 4)
                distinguish text and Postscript input.

I don't know the Laserjet 4050 specifically, but the best way to find the
right printcap entry may be to look in the manual for it. HP is pretty good
abotu supporting Unix, and I found a good model for my printcap entry in the
HP-LJ4 manual.

Beyond that, I'd look exectly where you have looked -- the man pages for
printcap, lpr, and lpd, and the Printing HowTo. I'm not sure what "to to
avail" and "None helped" mean, but I find these resources clear and useful.    

At 03:10 PM 10/29/99 -0700, Dan Browning wrote:
>How do I configure a printer (Laserjet 4050) using the console?  I've tried
>
>$man printcap
>$man lpr
>$man lpd
>
>None helped.  I looked for howtos and info's, but to no avail.
>
>I need to configure local (LPT1), and a few remote (SMB, LPD) printers for
>this particular linux box.  I'm considering loading X just to find out how
>it makes the printcap file and then remove X.

------------------------------------"Never tell me the odds!"---
Ray Olszewski                                        -- Han Solo
Palo Alto, CA                                    [EMAIL PROTECTED]        
----------------------------------------------------------------

Reply via email to