I have some problem with configure the printer, I did use 'a2ps' software
which will generate /etc/printcap for me, but the error message 'lpr:
unable to get official name for local machine' still comes out, so I don't
think is the setting problem. Is it possible that I did not configure the
network(local host)?
----------
my printer is epson dot metrix, and using slakware, 2.0.30
I use
cat readme.txt /dev/lp1
can print out the readme.txt to the printer
lpr readme.txt or lpr -Psample readme.txt
lpr: unable to get official name for local machine
my /etc/printcap
#lp|Generic dot-matrix printer entry:\
lp|Generic dot-matrix printer entry:\
:lp=/dev/lp1:\
:sd=/var/spool/lp1/lp:sh:\
:if=/usr/bin/lpf:\
:df=/var/spool/lp1/filter.ps:\
:tf=/var/spool/lp1/filter.ps:\
:af=/var/spool/lp1/lp-acct:\
:lf=/var/spool/lp1/lp-err:
#
# A sample printcap template
sample|EpsonLQ100|Epson Dot-metrix LQ-100:\
:lp=/dev/null:\
:sd=/usr/spool/lp1:\
:mx#0:\
:if=/usr/spool/lp1/myptr-if.tcl:\
:lf=/usr/spool/lp1/myptr-log:\
:sh:\
:sf: