To print *directly* to a network printer, you add it to /etc/printcap, same
as other printers. Here is an example entry from my LAN, for my HP LaserJet
4 printer --
ascii|caxton_ascii:\
:lp=:\
:rm=caxton:\
:rp=text:\
:lf=/var/spool/lpd/ERRORLOG:\
:sd=/var/spool/lpd/caxton_text:
The key entry there is rm= , which has to point to a resolvable name (on my
LAN, it's a name in /etc/hosts). "man printcap" may give you more help; I
got the sample entry I used to create this one from the printed manuals that
came with the printer. Or the /etc/printcap on the Sun host may provide the
local info you need.
Or, if the Sun is set up for it, with lpd listening on port 515, you could
use a printcap entry that points to it and uses it as a spooler.
Which way you *should* do it depends on practices at your site; ask your
sysadmin.
At 03:52 PM 9/21/99 -0400, Robert B. Haehnel wrote:
>I want to print from my linux box to a network printer. Local printing to my
>/dev/lp0 works fine, but not to the printers on my LAN. If I print from my
>acct on the sun station all I have to do is type:
>
>lpr -PPrintername filename
>
>I try the same with my linuxbox, and I get:
>
>lpr: Printername: unknown printer
>
>How do I get linux to recognize these networked printers?
------------------------------------"Never tell me the odds!"---
Ray Olszewski -- Han Solo
Palo Alto, CA [EMAIL PROTECTED]
----------------------------------------------------------------