Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Aug 2013 14:39:32 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Juris Kaminskis <juris.kaminskis@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setup HP Laserjet 1120m over network with LPD
Message-ID:  <alpine.BSF.2.00.1308221435530.19744@wonkity.com>
In-Reply-To: <CAKJAkzt-BPPxtNaRC_FH_CO4QzWUC53m9wRAV5eZPL0w9_-39w@mail.gmail.com>
References:  <CAKJAkzvA5%2BG5mOAZKKQOS6zdq%2B=A0i-BpbtjJtDwZJipskuz0A@mail.gmail.com> <CAKJAkzumacBJuR-bvCcERjL1BwTBQvbDDqNfv_u=%2BkwS0jgvSw@mail.gmail.com> <alpine.BSF.2.00.1308200725550.95636@wonkity.com> <20130820153321.c99e018a.freebsd@edvax.de> <CAKJAkzt-BPPxtNaRC_FH_CO4QzWUC53m9wRAV5eZPL0w9_-39w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 22 Aug 2013, Juris Kaminskis wrote:

> finally my printer responds with this command:
>
> nc 192.168.1.105 9100 < output.xqx

Okay, that's a good start.

> but I have no idea how to get it running through the normal LPD spooling
> system. output.xqx file I generate first with the foo2xqx-wrapper filter
> and it accepts only postscript

That is considered normal for Unix printers.  If you want the complexity 
of a filter that autodetects input type, save adding that for later.

> i tried this printcap entry:
>
> HP|lp|Printer:\
> :lp=9100@192.168.1.105:\
> :sh:\
> :mx#0:\
> :sd=/var/spool/hp:\
> :if=/usr/bin/foo2xqx-wrapper:\
> :lf=/var/log/lpd-errs:
>
> but in the Status file i have:  waiting for 9100@192.168.1.105 to come up

Do not use IP addresses.  lpd really, really, *really* wants a 
resolvable hostname.  Entering it in /etc/hosts is enough, then use that 
name above.

> btw: gsed package was not mentioned as dependency for foo2xqx-wrapper in
> the Installation Notes

Depending on where those notes are, that should be mentioned to the 
author of the notes or the port maintainer.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1308221435530.19744>