Thanks to the following mass of people who promptly responded, though I got
distracted and wasn't able to try their suggestions immediately:
Darryl Cook, Jeffrey Hummel, Hajnik Ferenc, Tru64User (aka Richard), Pat
O'Brien, Ernie LaBonte, Babu Chandra Babu, Peter Strern, Nadim Dharani adn
Jaun Carlos Cruz.
After setting up printcap, services and adding a hosts file entry for the
printer I just used lpc and lpr, took about 15 minutes. I used Peter
Stern's example, here it is:
Here's a sample printcap entry for network printer under v4.0f:
# HP4000N
hp|hp4000:\
:af=/usr/adm/dghpacct:\
:ct=tcp:\
:if=/usr/lbin/pcfof +Chplj4000tn.pcf:\
:lf=/usr/adm/lperr:\
:lp=_at_dg-4000/hpjd:\
:mx#0:\
:of=/usr/lbin/pcfof +Chplj4000tn.pcf:\
:pl#66:\
:pw#80:\
:rw:\
:sd=/usr/spool/lpd:\
:sh:\
:xf=/usr/lbin/xf:
Note that you set :ct=tcp: and that for "if" and "of" you would use:
:if=/usr/lbin/pcfof +Chplj4mplus.pcf:
:of=/usr/lbin/pcfof +Chplj4mplus.pcf:
a file that appears in the /usr/lbin/pcf directory.
Finally, you need to add the following line to the /etc/services file
(or NIS equivalent):
hpjd 9100/tcp # HP Jet Direct card for HP 4M Plus
Original post:
> I have a 4.0f system that I want to be able to print to a network printer
> with. In the documentation it states that there should be a tcp option
> for connection, but it does not show up in the printconfig gui. I haven't
> configured a printer before so I am not sure where to start on this from a
> command line point of view. I searched the archives and found a simlilar
> post, but there was no summary.
>
> The printer that I want to connect to shows up in the gui list, but as I
> said, doesn't have a tcp connection option. It is a HP 4M Plus. If
> anyone has a network version of this printer working I would appreciate a
> shove in the right direction!
>
> Thanks!
>
> Trevor Osatchuk
> Process Solutions Canada Ltd.
> Support and Integration Analyst
> (780) 452-2227 Ext. 286
> trevor.osatchuk_at_pscl.com
>
> Any man whose errors take ten years to correct is quite a man.
> - J. Robert Oppenheimer, speaking of Albert Einstein
>
Received on Thu Oct 25 2001 - 17:13:26 NZDT