* [gentoo-user] Trying to set up HP printer with foo2zjs
@ 2014-10-17 23:50 Frank Steinmetzger
2014-10-18 3:02 ` [gentoo-user] " James
0 siblings, 1 reply; 6+ messages in thread
From: Frank Steinmetzger @ 2014-10-17 23:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 3710 bytes --]
Dear knowledgables
I am trying to set up an HP LaserJet 1000 printer with foo2zjs. I had been
using hplip in the past (which did work), but for several (mostly non-
techical) reasons, I don’t want to use that. I was happy with foo2zjs back
in the day when it was still “stable” in portage.
So I downloaded foo2zjs from its website, compiled it and installed it into
/usr/local. Then I had to copy over an udev rules file and the firmware
helper into /etc/hotplug/usb/hplj1000.
I plugged the printer in -- nothing. That would have been too easy. On a
hunch, I removed the KERNEL=="lp*" test from the udev rule. Now the udev
rule matched and the firmware loader was triggered and did its job
(confirmed by the printer spinning up after receiving the firmware).
I could set up the printer in Cups, which did find the foo2zjs files. Its
details are:
| Driver: HP LaserJet 1000 Foomatic/foo2zjs (recommended) (grayscale, 2-sided printing)
| Connection: usb://HP/LaserJet%201000
But here my journey ends. If I try to print something, nothing happens.
I tried it in a quite fresh Xubuntu in VirtualBox, which came with a basic
hplip installed (without the GUI stuff). Using hp-doctor, I set up the printer,
which mostly constisted of downloading the firmware from the web, and possibly
some other file setup. Afterwards, the printer worked.
So I compared my Gentoo and that Xubuntu. As it turned out, Xubuntu uses usblp,
which everywhere I read I’m told to disable if I want to use cups with USB.
ls -l /dev/hp* gives me:
Ubuntu:
lrwxrwxrwx 1 root root 7 Okt 18 00:52 /dev/hplj1000-0 -> usb/lp0
lrwxrwxrwx 1 root root 15 Okt 18 00:52 /dev/hplj1000-2 -> bus/usb/002/003
Gentoo:
lrwxrwxrwx 1 root root 15 18. Okt 01:35 /dev/hplj1000-9 -> bus/usb/003/012
So what’s my next option? What could I be missing? Thanks for your insight.
PS.: I’m away over Saturday and probably won’t be able to reply until Sunday.
dmesg from Xubuntu when plugging in the printer:
| usb 2-2: new full-speed USB device number 3 using ohci-pci
| usb 2-2: New USB device found, idVendor=03f0, idProduct=0517
| usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
| usb 2-2: Product: hp LaserJet 1000
| usb 2-2: Manufacturer: Hewlett-Packard
| WARNING! power/level is deprecated; use power/control instead
| usblp 2-2:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x0517
| usbcore: registered new interface driver usblp
syslog from my Gentoo:
| [kernel] [21569.964698] usb 3-9: new full-speed USB device number 12 using xhci_hcd
| [kernel] [21570.131930] usb 3-9: New USB device found, idVendor=03f0, idProduct=0517
| [kernel] [21570.131942] usb 3-9: New USB device strings: Mfr=1, Product=2, SerialNumber=0
| [kernel] [21570.131944] usb 3-9: Product: hp LaserJet 1000
| [kernel] [21570.131945] usb 3-9: Manufacturer: Hewlett-Packard
| [mtp-probe] checking bus 3, device 12: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-9"_
| [mtp-probe] bus: 3, device: 12 was not an MTP device_
| [/etc/hotplug/usb/hplj1000] foo2zjs: loading HP LaserJet 1000 firmware /usr/local/share/foo2zjs/firmware/sihp1000.dl to CUPS USB device ...
| [/etc/hotplug/usb/hplj1000] foo2zjs: usb://HP/LaserJet%201000... download successful.
--
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.
”Yeah so if you ever need info about anyone at Harvard, just ask.
I have over 4,000 emails, pictures, addresses, SNS.” – Why? –
”People just submitted it. I don't know why. They "trust me". Dumb fucks.”
– Mark Zuckerberg, founder of facebook
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Trying to set up HP printer with foo2zjs
2014-10-17 23:50 [gentoo-user] Trying to set up HP printer with foo2zjs Frank Steinmetzger
@ 2014-10-18 3:02 ` James
2014-10-18 12:02 ` Frank Steinmetzger
0 siblings, 1 reply; 6+ messages in thread
From: James @ 2014-10-18 3:02 UTC (permalink / raw
To: gentoo-user
Frank Steinmetzger <Warp_7 <at> gmx.de> writes:
> I am trying to set up an HP LaserJet 1000 printer with foo2zjs. I had been
> using hplip in the past (which did work), but for several (mostly non-
> techical) reasons, I don’t want to use that. I was happy with foo2zjs back
> in the day when it was still “stable” in portage.
cups + hplip is pretty robust. I can't quell my curiousity as to
why you would not want to use that solution, paticualrly for an
HP printer?
foo2zjs, I know nothing about, but it is masked in protage, which
begs the question (WHY) if it was once stable?
Some use foomatic. Is that applicable in your circumstance?
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Trying to set up HP printer with foo2zjs
2014-10-18 3:02 ` [gentoo-user] " James
@ 2014-10-18 12:02 ` Frank Steinmetzger
2014-10-18 15:12 ` James
2014-10-18 15:21 ` Neil Bothwick
0 siblings, 2 replies; 6+ messages in thread
From: Frank Steinmetzger @ 2014-10-18 12:02 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1648 bytes --]
On Sat, Oct 18, 2014 at 03:02:59AM +0000, James wrote:
> Frank Steinmetzger <Warp_7 <at> gmx.de> writes:
>
>
> > I am trying to set up an HP LaserJet 1000 printer with foo2zjs. I had been
> > using hplip in the past (which did work), but for several (mostly non-
> > techical) reasons, I don’t want to use that. I was happy with foo2zjs back
> > in the day when it was still “stable” in portage.
>
> cups + hplip is pretty robust. I can't quell my curiousity as to
> why you would not want to use that solution, paticualrly for an
> HP printer?
Mostly because I want a minimal system. I have cups already which KDE can
use, I don’t need (or want) another tool that does the same job and that has
a lot of GUI stuff that my printer doesn’t support anyway (scanners and
such).
Furthermore, it installs a tool which I don’t need and pollutes my tray and
which has no off-switch. Tries to deactivate it in the past had not
succeeded (as I said, non-technical reasons).
Also, with every update it wants to download the proprietary plugin anew
(which I had trouble with in the past b/c I did offline updates) or else no
printo worko.
Lastly, this plugin installation doesn’t work if system python was not
version 2, so every time I had to eselect python 2, install hplip, and
switch back again.
You may certainly call me backward minded, but it worked in the past[TM]
without hplip, and I would like that again.
--
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.
There are those and those. But there are more of those than those.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Trying to set up HP printer with foo2zjs
2014-10-18 12:02 ` Frank Steinmetzger
@ 2014-10-18 15:12 ` James
2014-10-24 19:51 ` Frank Steinmetzger
2014-10-18 15:21 ` Neil Bothwick
1 sibling, 1 reply; 6+ messages in thread
From: James @ 2014-10-18 15:12 UTC (permalink / raw
To: gentoo-user
Frank Steinmetzger <Warp_7 <at> gmx.de> writes:
> > cups + hplip is pretty robust.
> Mostly because I want a minimal system. I have cups already which KDE can
> use, I don’t need (or want) another tool that does the same job and that
> has a lot of GUI stuff that my printer doesn’t support anyway (scanners >
and such).
hey, I run LXDE, and as folks know, I am a minimalist, despite have
several machines with 8 core, 32 gigs of ram.....
So you have compiled these before, with a minimum of flags activated?
The know the number of flags, the smaller the binaries..... (as you know).
> Furthermore, it installs a tool which I don’t need and pollutes my tray
> and which has no off-switch. Tries to deactivate it in the past had not
> succeeded (as I said, non-technical reasons).
Ah, kde frustration? Been there, left that constant_change environment.
Personally, I would not use kde as part of my printing solution. Cups +
hplip work fine without kde involvement.
> Also, with every update it wants to download the proprietary plugin anew
> (which I had trouble with in the past b/c I did offline updates) or else
> no printo worko.
OK, so mask the offending codes?
> Lastly, this plugin installation doesn’t work if system python was not
> version 2, so every time I had to eselect python 2, install hplip, and
> switch back again.
Weird. I have python 3.3 set and it is fine? Ok, set hplip to use the latest
(stable) version of python 2.x only.
> You may certainly call me backward minded, but it worked in the past[TM]
> without hplip, and I would like that again.
Frank, I would not call you this. I enjoy running minimal systems too.
Did you have a ppd file setup via cups? (/etc/cups/ppd) YOu mave have a copy
of the old ppd config file in the cups/ppd dir?
There are a myriad of ways to set up printing. It is your choice. If you
go with somethhing nobody knows about, your most likely will be 'alone', imho.
What is your computer-printer interface? (usb/eth/par/ser/rf)?
Do have sys-apps/hwids installed?
With hplip, I only set these flags: X hpcups libnotify, but my printer is
ethernet.
On a side note, you may want to try lxqt-0.8.0 in a few weeks, when it
is released.....
James
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Trying to set up HP printer with foo2zjs
2014-10-18 12:02 ` Frank Steinmetzger
2014-10-18 15:12 ` James
@ 2014-10-18 15:21 ` Neil Bothwick
1 sibling, 0 replies; 6+ messages in thread
From: Neil Bothwick @ 2014-10-18 15:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 804 bytes --]
On Sat, 18 Oct 2014 14:02:28 +0200, Frank Steinmetzger wrote:
> > cups + hplip is pretty robust. I can't quell my curiousity as to
> > why you would not want to use that solution, paticualrly for an
> > HP printer?
>
> Mostly because I want a minimal system. I have cups already which KDE
> can use, I don’t need (or want) another tool that does the same job and
> that has a lot of GUI stuff that my printer doesn’t support anyway
> (scanners and such).
We have these things called USE flags...
eix hplip
* net-print/hplip
Available versions: 3.14.1 (~)3.14.6 (~)3.14.10 {X doc fax +hpcups
hpijs kde libnotify -libusb0 minimal parport policykit qt4 scanner
snmp static-ppds}
--
Neil Bothwick
Always remember you're unique, just like everyone else.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Trying to set up HP printer with foo2zjs
2014-10-18 15:12 ` James
@ 2014-10-24 19:51 ` Frank Steinmetzger
0 siblings, 0 replies; 6+ messages in thread
From: Frank Steinmetzger @ 2014-10-24 19:51 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 4037 bytes --]
On Sat, Oct 18, 2014 at 03:12:06PM +0000, James wrote:
Sorry, reply took a while. Got lots of different stuff going on right now.
> > > cups + hplip is pretty robust.
>
> > Mostly because I want a minimal system. I have cups already which KDE can
> > use, I don’t need (or want) another tool that does the same job and that
> > has a lot of GUI stuff that my printer doesn’t support anyway (scanners >
> and such).
> […]
> So you have compiled these before, with a minimum of flags activated?
I had been using it for years on my machines that use the printer. I can’t
remember ever having looked at its use flags, though.
> The know the number of flags, the smaller the binaries..... (as you know).
>
> > Furthermore, it installs a tool which I don’t need and pollutes my tray
> > and which has no off-switch. Tries to deactivate it in the past had not
> > succeeded (as I said, non-technical reasons).
>
> Ah, kde frustration? Been there, left that constant_change environment.
> Personally, I would not use kde as part of my printing solution.
Because you don’t use KDE (which is in no way meant as a negative). While I
find the possibility to print from anywhere including the commandline neat
(I was a Windows-only noob until my early 20s), I never actually needed it.
> Cups + > hplip work fine without kde involvement.
But as a KDE user, this time I *want* to use KDE, because I get a consistent
print interface in all applications (oh well, 95 % of my printouts are PDFs
from Okular).
Of course I can still use KDE’s solution even with hplip installed. But
there is still the hp tool in the tray for the exact same thing, wasting
space.
My mind just works in strange ways and is simply bothered by that fact.
Plus, I dislike vendor-specific software on principle. :o)
> > Also, with every update it wants to download the proprietary plugin anew
> > (which I had trouble with in the past b/c I did offline updates) or else
> > no printo worko.
>
> OK, so mask the offending codes?
I don’t quite follow. The printer needs a binary firmware uploaded each time
it is connected to the computer. This comes as a binary “plugin” which is
downloaded by hp-setup. And for some reason this plugin file is only
compatible with a single hplip version, hence the new download after each
update.
The plugin file is actually a shellscript that has a tarball embedded in
base64. This tar contains the actual install files and a python2 script
which does not advertise its version in the shebang. I just tested it on my
old netbook which already had hplip isntalled. If I have python 3 active,
all I get at some point is "Plugin install failed" during printer setup. So
I switch to python2, rinse and repeat and then the installation works.
Incidentally when installing hplip, the ebuild does lots of "Fixing shebang"
on a lot of python files (I had to reinstall b/c a useflag was missing).
> Did you have a ppd file setup via cups? (/etc/cups/ppd) YOu mave have a copy
> of the old ppd config file in the cups/ppd dir?
Right now I have a single PPD in that location which originated from
foo2zjs. Obviously it comes from setting up the printer in cpus, b/c it is
named after the printer’s cups name.
> What is your computer-printer interface? (usb/eth/par/ser/rf)?
USB. -- Made in mid-2002, the printer itself has a parallel port, but came
with (and only with) a USB converter cable so it actually hooks up to the
computer over USB.
> Do have sys-apps/hwids installed?
Yep.
> On a side note, you may want to try lxqt-0.8.0 in a few weeks, when it
> is released.....
I had a look at it a few months ago but found it yet unusable due to missing
functionality (e.g. couldn’t find where to set number of virtual desktops).
--
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any Facebook service.
“Your code is shit.. your argument is shit.” – Linus Torvalds, linux.kernel
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-10-24 19:51 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 23:50 [gentoo-user] Trying to set up HP printer with foo2zjs Frank Steinmetzger
2014-10-18 3:02 ` [gentoo-user] " James
2014-10-18 12:02 ` Frank Steinmetzger
2014-10-18 15:12 ` James
2014-10-24 19:51 ` Frank Steinmetzger
2014-10-18 15:21 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox