[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: USB printer CUPS stalls on "Sending data to printer"



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

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


Reply to: