Re: lpd(8) network printing

2011-10-19 Thread Predrag Punosevac
Philipp Westphal wrote:
> I have no problems with local printing but when it comes to remote
> printing that is what i can read in /var/log/lpd-errs: 
snip
> remember having similar problems back in 1998 running FreeBSD, i think
> a patch did the job back then, is here someone whoo can tell me more
> about that?  I didn't find anything about network printing within the
> FAQ

Because there is nothing OpenBSD specific about printing using lpd. 

To my knowledge lpd on OpenBSD and FreeBSD should have the same
functionality of old Berkeley lpd. That would mean that you could
refresh your knowledge of network printing by reading FreeBSD Handbook

http://www.freebsd.org/doc/handbook/printing-advanced.html

You can check out that OpenBSD lpd code has changed very little over
long period of time

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/lpr/

You left out many information which makes it difficult to help you. I
gathered that OpenBSD is supposed to act as a printer server? However, I
do not know the topology of your network, firewall configuration on the
client and server side (you have to open a port on the firewall of your
printer server to receive printing jobs), you might have a DNS problem
if you use for example OpenDNS for your local network (my recommendation
that you run local DNS server or use DNS server of your local Internet
service provider if you want to have network printing). You didn't tell
us if the client is also OpenBSD machine or something else? If it is a
OpenBSD machine please show us printcap file of the client.

Did you edit /etc/hosts.lpd file on the machine which you use as a
printer server and did you add IP addresses of client machines?

Please help us if you want us to help you.

Best,
Predrag



lpd(8) network printing

2011-10-17 Thread Philipp Westphal
Hello to all of you,

I just had the idea to use my OpenBSD box in combination with an old
HP-Laserjet 4* to provide network printing.

oh ... before i forgett it 'S OpenBSD current, from today (but i have the same
problems running 4.9  rel. or stab.).

I have no problems with local printing but when it comes to remote printing
that is what i can read in /var/log/lpd-errs:

--schnipp--

Oct 17 20:36:28 link lpd[25798]: restarted
Oct 17 20:39:00 link lpd[25798]: accept: Software caused connection abort
Oct 17 20:39:32 link lpd[25798]: accept: Software caused connection abort
Oct 17 20:46:58 link lpd[5885]: restarted
Oct 17 20:47:01 link lpd[13015]: restarted
Oct 17 20:47:16 link lpd[11622]: restarted
Oct 17 20:47:50 link lpd[25798]: accept: Software caused connection abort
Oct 17 20:49:11 link lpd[25798]: accept: Software caused connection abort
Oct 17 20:50:21 link lpd[27334]: restarted
Oct 17 20:51:50 link lpd[25798]: accept: Software caused connection abort
Oct 17 20:52:24 link lpd[25798]: accept: Software caused connection abort

--schnapp--

my /etc/printcap:


--schnipp--

#   $OpenBSD: printcap,v 1.4 2003/03/28 21:32:30 jmc Exp $

#lp|local line printer:\
#   :lp=/dev/lp:sd=/var/spool/output:lf=/var/log/lpd-errs:

#rp|remote line printer:\
#   :lp=:rm=printhost:rp=lp:sd=/var/spool/output:lf=/var/log/lpd-errs:


lp|lj4dith;r=600x600;q=medium;c=full;p=a4;m=auto:\
:lp=/dev/lpt0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
# APS1_END - don't delete this

schnapp-


i remember having similar problems back in 1998 running FreeBSD, i think a
patch did the job back then, is here someone whoo can tell me more about that?
I didn't find anything about network printing within the FAQ,
-- 

"When I grow up, 
  I want to be an honest lawyer so things like that can't happen."

-- Richard Nixon as a boy (on the Teapot Dome scandal)


()  asccii ribbon campaign - against HTML e-mail
/\  www.asciiribbon.org- against proprietary attachments