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

2016-06-24 Thread Emanuel Berg
Brian  writes:

>>> A guaranteed technique is to install all
>>> printing related packages.
>>
>> Unless there are conflicts...
>
> When you have installed the packages
> I mentioned you can come back and tell us
> what the conflicts are. Meanwhile, the advice
> is good and stands.

What packages exactly?

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



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

2016-06-23 Thread Brian
On Fri 24 Jun 2016 at 00:05:12 +0200, Emanuel Berg wrote:

> Brian  writes:
> 
> > A guaranteed technique is to install all
> > printing related packages.
> 
> Unless there are conflicts...

When you have installed the packages I mentioned you can come back
and tell us what the conflicts are. Meanwhile, the advice is good
and stands.

> > I thought all drivers were built for
> > all architectures.
> 
> We just saw the Samsung ULD for the Xpress
> M2026W - it was compiled for i386 and x86_64,
> but not ARM.

You can talk to Samsung about that. 



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

2016-06-23 Thread Emanuel Berg
Brian  writes:

> A guaranteed technique is to install all
> printing related packages.

Unless there are conflicts...

> I thought all drivers were built for
> all architectures.

We just saw the Samsung ULD for the Xpress
M2026W - it was compiled for i386 and x86_64,
but not ARM.

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



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

2016-06-23 Thread Brian
On Thu 23 Jun 2016 at 20:33:29 +0200, Emanuel Berg wrote:

> Brian  writes:
> 
> > Do you mean this?: A user has or intends to
> > buy, for example, an HP LaserJet P1102w.
> > How does she determine whether Debian has
> > a PPD and driver for it and what package to
> > install to get them?
> 
> Yes.

A guaranteed technique is to install all printing related packages.

When Debian is installed it offers to install a Print Server task.
Newcomers (and others) who do this can use the web interface or 'lpinfo
-m' to get a complete list of supported printers. If the printer you
have is not listed you can be virtually assured you will have to use the
manufacturer's resources to set the device up.

If for some reason this task is not initially installed it can be
installed later with

  apt-get install task-print-server

A user would well advised to look at openprinting,org as a first step in
installing a print queue. It is usually possible to work out the name of
the required package on Debian from the advice there. Taking the
recommended option is not a bad choice.

Installing printer-driver-all is also a good move (but it does not give
you the same as task-print-server). It would lead to lpinfo giving you
the alternatives for your HP LaserJet P1102w.

> Also: a driver for the particular architecture.

I thought all drivers were built for all architectures.



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

2016-06-23 Thread Emanuel Berg
Brian  writes:

> Do you mean this?: A user has or intends to
> buy, for example, an HP LaserJet P1102w.
> How does she determine whether Debian has
> a PPD and driver for it and what package to
> install to get them?

Yes.

Also: a driver for the particular architecture.

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



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

2016-06-23 Thread Brian
On Thu 23 Jun 2016 at 18:07:15 +0200, Emanuel Berg wrote:

> Brian  writes:
> 
> > It would also have found hpcups and hpijs
> > PPDs, unless the packages had been removed.
> > Given the extra step of having to install
> > a non-free plugin and seeing foo2zjs is
> > recommended would be a good enough reason for
> > choosing foo2zjs:
> >
> >  lpadmin -p  -v  -E -m 
> >
> > A 10 second job after the preparatory work is
> > done. :)
> 
> Yes, what remains is what packages need to
> be installed.

Do you mean this?: A user has or intends to buy, for example, an
HP LaserJet P1102w. How does she determine whether Debian has a
PPD and driver for it and what package to install to get them?
Sorry to be a little pedantic but it would be good to be clear on
what an answer should address?



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

2016-06-23 Thread Emanuel Berg
Brian  writes:

> It would also have found hpcups and hpijs
> PPDs, unless the packages had been removed.
> Given the extra step of having to install
> a non-free plugin and seeing foo2zjs is
> recommended would be a good enough reason for
> choosing foo2zjs:
>
>  lpadmin -p  -v  -E -m 
>
> A 10 second job after the preparatory work is
> done. :)

Yes, what remains is what packages need to
be installed.

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



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

2016-06-23 Thread Brian
On Thu 23 Jun 2016 at 05:23:15 +0200, Emanuel Berg wrote:

> Brian  writes:
> 
> > 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.
> 
> Right, the turn of events was this line
> 
> foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd
> 
> which I found with
> 
> $ lpinfo -m | grep 1102w

It would also have found hpcups and hpijs PPDs, unless the packages
had been removed. Given the extra step of having to install a non-free
plugin and seeing foo2zjs is recommended would be a good enough reason
for choosing foo2zjs:

 lpadmin -p  -v  -E -m 

A 10 second job after the preparatory work is done. :)

> But I can't find it on the disk and my
> functions to track it can't find it either!
> Perhaps not a real file but some abstraction
> foo2zjs uses...

The file is in the driver file foo2zjs in /usr/lib/cups/driver. lpinfo
consults the driver file.

> file-to-pack () {
> apt-file update > /dev/null
> apt-file search $@
> }
> 
> pack-to-file () {
> local pack=$1
> local -a files
> files=("${(@f)$(dpkg --listfiles $pack)}")
> for f in $files; do
> if [[ -f $f ]]; then echo $f; fi
> done
> }

All that these functions seem to have done is turn a gentle five minute
stroll into a day long Himalayan expedition.



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

2016-06-22 Thread Emanuel Berg
Brian  writes:

> 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.

Right, the turn of events was this line

foo2zjs:0/ppd/foo2zjs/HP-LaserJet_Pro_P1102w.ppd

which I found with

$ lpinfo -m | grep 1102w

But I can't find it on the disk and my
functions to track it can't find it either!
Perhaps not a real file but some abstraction
foo2zjs uses...

file-to-pack () {
apt-file update > /dev/null
apt-file search $@
}

pack-to-file () {
local pack=$1
local -a files
files=("${(@f)$(dpkg --listfiles $pack)}")
for f in $files; do
if [[ -f $f ]]; then echo $f; fi
done
}

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



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

2016-06-22 Thread Brian
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  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.