LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-29-2017, 09:23 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,461

Rep: Reputation: 122Reputation: 122
Trouble installing HP 1102w with HP Device Manager


I have Slackware 14.2 and KDE. I've used the 'HP Device Manager' (hplip) to install HP printers in the past with success. Today I tried installing a USB connected HP Laserjet Professional P 1102w. I clicked 'USB' on device discovery, and then got a dialog saying "Smart Install Device(s) Detected / Smart install is enabled in 'HP Laserjet Professional p 1102w device(s). Do you want to download and disable smart install to perform device functionalities?" My button options are 'Download and Disable' and 'Cancel'. When I tried 'Download and Disable', I got the message "Digial signature verification failed for the file /tmp/tmpXL_Kz ... Do you still want to run Smart Install disabler?" I clicked 'Yes', but got "Failed to disable smart install. Please refer to link https://developers.hp.com/hp-linux-imaging-and-printing for more information." That link appears to allow me to download a more recent version of hplip. Before I do that, I'm wondering if anyone else has run into this and what solution you took.
 
Old 12-30-2017, 12:45 AM   #2
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
There is a SmartInstallDisable utility that might be helpful here...
https://developers.hp.com/search/sit...installdisable

A similar thread that may be helpful to you...
https://askubuntu.com/questions/8963...-smart-install
 
Old 12-30-2017, 08:03 AM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,461

Original Poster
Rep: Reputation: 122Reputation: 122
The problem is that your 1st link and the various links on the ubuntu page are old and they now all redirect to https://developers.hp.com/hp-linux-imaging-and-printing, including hplipopensource.com/hplip-web/smartinstall/SmartinstallDisable-Tool.run; none of which mention the disable tool.

The link https://developers.hp.com/hp-linux-i..._devices/index shows my HP 1102w as being supported by hplip as of version 3.12.6 and I am running version 3.16.5. So, it should work, but I cannot run that SmartinstallDisable bit.
 
Old 12-30-2017, 10:31 AM   #4
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 5,562

Rep: Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610Reputation: 1610
I prefer to install my HP P2015 laserjet by using my web browser and navigate to:
localhost:631

In that interface you should be able to uninstall a printer and install the one you want with the correct driver.
 
Old 12-30-2017, 01:41 PM   #5
gauchao
Member
 
Registered: Dec 2009
Location: Veneto
Distribution: SLACKWARE 14.2 64bit
Posts: 231

Rep: Reputation: 52
I have the same printer (HP LJ p1102) with Slack64 14.2 and it has always worked fine this way:

Run in a terminal window (as root)

Quote:
#hp-setup
and let hplip find out your printer and download the plugin.

I have just removed my device from CUPS and re-installed the printer under CLI and everything went fine.

Do you have CUPS running? CUPS is necessary here. [hplips 3.16.5]
 
Old 12-30-2017, 02:57 PM   #6
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
This hp-linux-imaging-and-printing/howto page suggests that hp-doctor can be used to disable the 'Smart Install' device.

Quote:
Using HPLIP tool:
Run hp-doctor script. It will notify you whether there is a Smart Install device connected and prompt you for disabling the same.
However, as HPs no longer support this 'feature' I don't know whether this utility still can do this job. Worth a shot though.

In any case, AFAIU it appears as a mass storage device to the USB subsystem, so it might be possible to disable it with a suitable udev rule and eject command perhaps.

BTW, I found this old bug report which links to an archive page containing the necessary...
https://web.archive.org/web/20160316...sable-Tool.run


I also found a bug report and thread where it was found usb_modeswitch could be used, but you'd have to substirute for the product ID used by the 1018 model of course. YMMV...

https://bugs.launchpad.net/hplip/+bug/672134
http://www.draisberghof.de/usb_modes...opic.php?t=537
 
Old 01-01-2018, 08:31 PM   #7
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,461

Original Poster
Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by hitest View Post
I prefer to install my HP P2015 laserjet by using my web browser and navigate to:
localhost:631
This does not list the 1102w as a found printer.
Quote:
Originally Posted by gauchao View Post
I have the same printer (HP LJ p1102) with Slack64 14.2 and it has always worked fine this way:

Run in a terminal window (as root)

and let hplip find out your printer and download the plugin.

I have just removed my device from CUPS and re-installed the printer under CLI and everything went fine.

Do you have CUPS running? CUPS is necessary here. [hplips 3.16.5]
Tried this as root. Same result as in my OP: "Failed to disable smart install. ...". CUPS is running. I wonder what is different about your setup if you've done this successfully using 14.2? Here's my CLI output:
Code:
# hp-setup

HP Linux Imaging and Printing System (ver. 3.16.5)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

Searching... (bus=usb, search=(None), desc=0)
Receiving digital keys: /usr/bin/gpg --homedir /root/.hplip/.gnupg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0x4ABA2F66DBD5A95894910E0673D770CDA59047B9
error: Failed to disable smart install.
Please refer link 'http://hplipopensource.com/node/367' for more information
Quote:
Originally Posted by ferrari View Post
This hp-linux-imaging-and-printing/howto page suggests that hp-doctor can be used to disable the 'Smart Install' device.

However, as HPs no longer support this 'feature' I don't know whether this utility still can do this job. Worth a shot though.

In any case, AFAIU it appears as a mass storage device to the USB subsystem, so it might be possible to disable it with a suitable udev rule and eject command perhaps.

BTW, I found this old bug report which links to an archive page containing the necessary...
https://web.archive.org/web/20160316...sable-Tool.run


I also found a bug report and thread where it was found usb_modeswitch could be used, but you'd have to substirute for the product ID used by the 1018 model of course. YMMV...

https://bugs.launchpad.net/hplip/+bug/672134
http://www.draisberghof.de/usb_modes...opic.php?t=537
[/quote]
Went to your 1st link. Tried 2nd method:
Code:
2. Using HPLIP tool:
Run hp-doctor script.
When I run hplip tool (hp-setup) there is no option on any menu tab or action for "hp-doctor".

Tried 3rd method:
Code:
3. Using Linux commands:
  a. To detect Smart Install:
        Run command "lsusb" in terminal to obtain USB ID's.
        ex: $> lsusb

            Bus 001 Device 004: ID 03f0:042a Hewlett-Packard

where,

Bus  ID is 001

Device ID is 004

    Run command "lsusb -s [[bus]:][devnumber] | grep bInterfaceClass"
    ex: $> lsusb -s 001:004 | grep bInterfaceClass
    If the output contains "8 Mass Storage". It means the device has the Smart Install service enabled and is detected as mass storage device.
My command 'lssub -s 002:002 | grep bInterfaceClass gave nothing.
Code:
# lsusb -s 002:002                  
Bus 002 Device 002: ID 03f0:102a Hewlett-Packard
Following these methods, there are the instructions:
Code:
To disable Smart Install:

    Download  SmartInstallDisable-Tool.run (Right-click the link and choose "Save Link As..." to save the file to your computer)
No link is provided to download this tool. My Internet searches have not turned up any such download.

I'll try your last suggestion link(s) tomorrow. Meanwhile, the 1st link's method #1 was to use the printer front-panel to disable SmartInstall. I'll try that in the morning.

Last edited by mfoley; 01-01-2018 at 10:22 PM.
 
Old 01-01-2018, 10:31 PM   #8
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
Yes, if your printer has a front-panel, that's the first thing to try.
 
Old 01-02-2018, 03:42 AM   #9
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,184

Rep: Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017Reputation: 1017
The 1102w is a major PITA. I have not been able to access the web interface through USB. And any HP setup program I tried failed.

The best way I found is this. Run the HP installer in Windows (yuk!) Not in a VBox VM, but native, bare metal Windows (YUK!). Once you have gone to the silly printer unpacking instructions in the installer, say that you want to install the printer as network printer. Set up the wireless and assign a static IP.

Once you did that, the printer can be normally accessed from a web browser. Now you can install the printer in CUPS as a normal IP printer. If the 1102 is not listed, try a generic (older) HP monochrome printer. I don't recall if the 1102 supports Postscript. If not, use PCL5.

I should add to this that last month I had a bunch of 1102W printers where the wireless suddenly failed after years of service. One after another started to intermittently drop the wireless connection. Rendering the printer installable but unusable. Just a reminder in case you are not able to set up a reliable network connection.

The problem with running this printer in USB mode is that you do not have access to the web interface. And I am not even sure it works from Linux in USB mode.

jlinkels
 
1 members found this post helpful.
Old 01-02-2018, 06:04 PM   #10
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,461

Original Poster
Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by ferrari View Post
Yes, if your printer has a front-panel, that's the first thing to try.
Unfortunately, there is no front panel.
Quote:
Originally Posted by jlinkels View Post
The 1102w is a major PITA. I have not been able to access the web interface through USB. And any HP setup program I tried failed. ...
Boy, you ain't kidding!

I started to follow your advice. I moved the USB cable to a USB 2.0 since Windows 7 does not support USB3.0 and, when I powered on the printer, BEHOLD! I got a message, on Linux, saying that a plugin needed to be downloaded! I downloaded the plugin. Then ran hp-setup again and it found the printer! There was a ppd file for this printer, so I selected it, tested and that all worked! Not sure if the problem was the USB 2.0 versus 3.0, or if cups was not running (it was not auto-starting at boot time), or if I needed to hit the power button on the printer. Although I'm pretty sure I did have cups running and the printer powered on. USB 3.0 ...?

Next problem. I do need this on my Win7 VM. In fact, it would be OK to be on the VM only. Originally, I did have the 1102w listed as a printer on the WIN7 VM (it is an image restore). I tried to send a test page to the printer, but it just stayed in the queue, even with a spooler restart. So, I deleted the printer to try and install it again. Bad idea. Oddly, when I rebooted the WIN7, the test page printed! But alas, the printer is gone from selections.

I tried downloading 1102w driver and installing. That was going well, but the installation program is not able to detect the printer connected to the USB. I can't enable wireless since there is no wireless in the office.

I'll pursue trying to figure out why it doesn't see the printer connected to the USB (after all, it did print the test page to that printer on that USB port!). Meanwhile, I could try sharing this printer from Linux. I added the following to /etc/cups/cupsd.conf
Code:
<Location />
    Order allow,deny
    Allow localhost
    Allow 192.168.0.*
</Location>
...

Listen 192.168.0.52:631
and restarted cups, but that didn't work. I then remove the above and ran:
Code:
# cupsctl --share-printers --remote-any
# lpadmin -p "HP_LaserJet_Professional_P_1102w" -o printer-is-shared=true
and restarted cups, but the printer does not show even on another Linux computer on the same 192.168.0.0/subnet.

What am I doing wrong?
 
Old 01-02-2018, 06:57 PM   #11
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
Check that it is not a firewall blocking CUPS.
 
Old 01-02-2018, 09:00 PM   #12
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 1,461

Original Poster
Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by ferrari View Post
Check that it is not a firewall blocking CUPS.
With the Linux hosts on the LAN, there is no firewall at all.

This link https://wiki.archlinux.org/index.php...FLinux_systems, says,
Quote:
To enable browsing (shared printer discovery), Avahi must be installed and running on the server. If you do not need printer discovery, Avahi is not required on either the server or the client.

To enable browsing, either select Share printers connected to this system in the web interface, or manually turn on Browsing and set the BrowseAddress:

/etc/cups/cupsd.conf

...
Browsing On
BrowseAddress 192.168.0.*:631
...
I don't have Avahi, is there a way for me to search/list shared printer? I could type in the URL of the printer? From a different workstation I can 'telnet 192.168.0.52 631' and get a connection.

My /etc/cups/printers.conf has
Code:
<Printer HP_LaserJet_Professional_P_1102w>
UUID urn:uuid:e79a6c46-1509-3459-5fc8-f05480a62641
Info HP_LaserJet_Professional_P_1102w
MakeModel HP LaserJet Professional P 1102w, hpcups 3.16.5, requires proprietary plugin
DeviceURI hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W400679PR1a
State Idle
StateTime 1514933098
ConfigTime 1514936576
Type 36876
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>
It does say "Shared Yes"

From a different Linux host I can see the printer:
Code:
# lpstat -h charmaine:631 -s
no system default destination
device for HP_LaserJet_Professional_P_1102w: hp:/usb/HP_LaserJet_Professional_P_1102w?serial=000000000W400679PR1a
Lastly, on the Win7 computer, I tried 'Add Printer > by name', using http://192.168.0.53:632/printers/HP_...sional_P_1102w, per the same link listed above. I got, "Windows couldn't connect to the printer".

More ...

I was able to configure the 1102w on a remote Linux using http://192.168.0.52:631/ipp, the printer name, and specifying the "HP LaserJet Professional P 1102w, hpcups 3.16.5, requires proprietary plugin" driver. The test page didn't print giving: "Paused - "The printer configuration is incorrect or the printer no longer exists."

Last edited by mfoley; 01-02-2018 at 09:56 PM.
 
Old 01-02-2018, 09:49 PM   #13
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
1) Which versions of CUPS are in use for the server and clients?

2) Use nmap to scan for open ports on the server from a client machine. For example, I have a CUPS server with address 192.168.1.12....
Code:
~> nmap 192.168.1.12

Starting Nmap 6.47 ( http://nmap.org ) at 2018-01-03 16:27 NZDT
Nmap scan report for linux-54cw (192.168.1.12)
Host is up (0.022s latency).
Not shown: 997 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
111/tcp open  rpcbind
631/tcp open  ipp

Nmap done: 1 IP address (1 host up) scanned in 1.76 seconds
3) My working server cupsd.conf is configured with
Code:
Port 631
You could try manually configuring a client machine with a CUPS printer URI of the form
Code:
ipp://hostname:631/printers/queue_name
 
Old 01-02-2018, 09:50 PM   #14
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
Quote:
I don't have Avahi, is there a way for me to search/list shared printer?
From a terminal, run the following command
Code:
lpinfo -l -v
What is returned from a client machine?
 
Old 01-02-2018, 11:22 PM   #15
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 3,316

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
Quote:
Lastly, on the Win7 computer, I tried 'Add Printer > by name', using http://192.168.0.53:632/printers/HP_...sional_P_1102w, per the same link listed above. I got, "Windows couldn't connect to the printer".
That should be port 631 of course...
Code:
http://192.168.0.53:631/printers/HP_LaserJet_Professional_P_1102w

Last edited by ferrari; 01-02-2018 at 11:29 PM.
 
  


Reply

Tags
hplip, kde4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble installing Xastir: Trouble with the dependency library gpsmanshp tristan.sebens Linux - Software 0 10-13-2017 04:48 AM
Trouble installing drivers for wireless usb device in Backtrack 5 toneloc51 Linux - Networking 5 03-22-2012 09:49 PM
Trouble installing GSM device driver using 'make' on Ubuntu 8.04, 2.6.24-19-lpia stephend Linux - Hardware 0 03-20-2009 03:02 PM
Trouble with Composite Manager??? rjohnson244 Linux - Software 2 05-20-2005 09:46 PM
trouble Installing multi port serial device unforgivn Linux - Hardware 0 06-02-2004 05:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration