Re: SOLVED Re: USB printer CUPS stalls on "Sending data to printer"
On Wed 22 Jun 2016 at 19:13:42 -0400, Ralph Katz wrote:
> On 06/22/2016 06:11 PM, Emanuel Berg wrote:
> > Ralph Katz <ralph.katz@rcn.com> writes:
> >
> >> CUPS just recognizes it automagically after you
> >> install printer-driver-foo2zjs, which maybe you
> >> did. I installed the printer simply from the
> >> cups browser interface.
> >> http://localhost:631/admin --> add printer,
> >> scroll thru choices and select driver:
> >> "HP-LaserJet_Pro_P1102w.ppd HP LaserJet Pro
> >> P1102w Foomatic/foo2zjs-z2 (recommended)"
> >
> > IT WORKS!
> >
> > Foomatic did it! :)
> >
> > This is the package that was missing:
> >
> > foomatic-db-compressed-ppds
> >
> > And this is the function that added
> > the printer! (Both versions work!)
> >
> > Man, it feels like we just summited K2!
> >
> > Thanks a lot, even to Brian despite aspects to
> > his style :)
> >
> > test-foomatic () {
> > local -a devices
> > devices=("${(@f)$(sudo lpinfo -v | \grep LaserJet | cut -d ' ' -f 2)}")
> >
> > local foomatic='foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd'
> > local name=laser-foomatic
> >
> > local number=1
> > for d in $devices; do
> > sudo lpadmin \
> > -p ${name}-$number \
> > -E \
> > -v $d \
> > -m $foomatic
> > number=$(( number + 1 ))
> > done
> > }
> >
> > Source: http://user.it.uu.se/~embe8573/conf/.zsh/printers
> >
>
> Glad you got it working! Changing Subject for the archives.
Similarily glad but recording for the archives that
foomatic-db-compressed-ppds is not required to set up
and use a print queue with printer-driver-foo2zjs.
Reply to: