USB printer CUPS stalls on "Sending data to printer"

Jun 20, 2016 22 Replies

I found some foomatic stuff in the repos but no PPD files.

However this file

/usr/share/foomatic/db/source/printer/HP-LaserJet_Pro_P1102w.xml

say:

This printer is supported by the foo2zjs free software printer driver.

And I do have

/usr/bin/foo2zjs

but how do I set that up with CUPS?

underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -

can you not use a web browser to set up cups?

Doing it 'by hand' is a fearful bore.

A lie can travel halfway around the world while the truth is putting on its shoes.

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!

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:

formatting link

underground experts united .... http://user.it.uu.se/~embe8573 Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic - so far: 55 Blogomatic articles -

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required