Configure USB-connected Printer

Issues related to hardware problems
eren13
Posts: 5
Joined: 2019/05/13 09:59:45

Configure USB-connected Printer

Post by eren13 » 2019/05/13 10:19:30

Hello,

I am new to the UNIX world and Red Hat distributions.
I am trying to configure a USB-connected HP M402-dn printer.
I am having a hard time with this .

- I can see the printer connected under the > usb-devices cmd.
- I cannot see the printer under the > lpstat -t cmd :
lpstat -t
scheduler is running
no system default destination
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.
lpstat: No destinations added.


- I cannot set the printer as default in order to print.
I tried with lpadmin, lpdest, EXPORT, and so on.
All in vain.

- I cannot install the .rpm from HP
rpm -i hplip-3.19.3_rhel-7.0.x86_64.rpm
error: Failed dependencies:
libImageProcessor.so()(64bit) is needed by hplipfull-3.19.3-0.x86_64
libImageProcessor.so(VERS_1.0)(64bit) is needed by hplipfull-3.19.3-0.x86_64


- Due to the fact that i cannot set to default the connected printer, I cannot print anything on my system.
lpr asgar123141.JPG
lpr: Error - no default destination available.


What can I do in order to configure this printer ?
I have also tried with some CUPS tricks, but they did not help me.
What are your impressions on this ?


PS : This is the distribution version : 3.10.0-957.el7.x86_64

Many thanks,
Robert

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Configure USB-connected Printer

Post by TrevorH » 2019/05/13 13:00:48

You need to run yum update to get all patches released since 7.6 came out though this won't help with your current problem.

You also need to run yum install hplip not download some external package.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Configure USB-connected Printer

Post by aks » 2019/05/13 17:08:10

I cannot install the .rpm from HP
rpm -i hplip-3.19.3_rhel-7.0.x86_64.rpm
Why do you need to do this? Hplip (3.15-9) is in the default CentOS repo (and as a side effect YUM will sort out the dependencies for you).

yum install hplip

doesn't work for you?

eren13
Posts: 5
Joined: 2019/05/13 09:59:45

Re: Configure USB-connected Printer

Post by eren13 » 2019/05/14 11:42:02

Thank you very much for your replies.
I have installed now the .rpms through yum ;
>> rpm -qa | grep hplip
hplip-3.15.9-3.el7.x86_64
hplip-common-3.15.9-3.el7.x86_64
hplip-libs-3.15.9-3.el7.x86_64


How can i setup my printer now as default in order to print at it ?
I used lpr, but to no avail;
>> lpr asgar123141.JPG
lpr: Error - no default destination available.


Many thanks.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Configure USB-connected Printer

Post by aks » 2019/05/14 15:52:34

Um run hp-setup?

From memory, if you want the GUI you may need to install hplip-gui.

All this is easily answered by <insert you favourite Internet search engine here>

MartinR
Posts: 714
Joined: 2015/05/11 07:53:27
Location: UK

Re: Configure USB-connected Printer

Post by MartinR » 2019/05/14 20:57:25

Or by

Code: Select all

yum list \*hplip\*
which on my system shows

Code: Select all

Installed Packages
hplip.x86_64                                        3.15.9-3.el7                                         @base
hplip-common.x86_64                                 3.15.9-3.el7                                         @base
hplip-gui.x86_64                                    3.15.9-3.el7                                         @base
hplip-libs.x86_64                                   3.15.9-3.el7                                         @base

eren13
Posts: 5
Joined: 2019/05/13 09:59:45

Re: Configure USB-connected Printer

Post by eren13 » 2019/05/15 08:01:29

Thank youa gain for your answers.

Believe me when I am saying that I have spent more than 3 hours looking on different forums, threads and topics trying to find out the solution to this. Nothing good.

The printer seems to be not-connected for those commands.
Even though it is up and running and i can see it under lsusb/usb-devices;
>> lsusb
Bus 001 Device 011: ID 03f0:602a HP, Inc


I tried with >> hp-setup -i 001:011
>> hp-setup --auto 001:006



| SELECT CONNECTION (I/O) TYPE |
--------------------------------

Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
2 par Parallel Port (LPT:)

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0


I choose 0 (usb connection/the default one) and the next message appears :

error: No device found that support this feature.

What do you think ?

Thanks again.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Configure USB-connected Printer

Post by aks » 2019/05/15 18:09:36

Internet search for:
"Linux HP M402-dn printer"
(Hit number 1 in my search)

reveals:
https://h30434.www3.hp.com/t5/Printers- ... -p/5354422
that suggests you need a later version of hplip - although I don't know this. Often the version string is CentOS does not necessarily match the actual "content" of a particular version string from a vendor.

I'd suggest you ask HP (and I suspect they'll want you to down the "latest" hplip from HP).

eren13
Posts: 5
Joined: 2019/05/13 09:59:45

Re: Configure USB-connected Printer

Post by eren13 » 2019/05/16 07:55:52

Thanks for you answer aks.

I have already downloaded the latest hplip from their website and like i stated in my first post, i have already tried installing it but i bumped into :

>>rpm -i hplip-3.19.3_rhel-7.0.x86_64.rpm
error: Failed dependencies:
libImageProcessor.so()(64bit) is needed by hplipfull-3.19.3-0.x86_64
libImageProcessor.so(VERS_1.0)(64bit) is needed by hplipfull-3.19.3-0.x86_64


Then, the next leads were about yum install hplip and so on.

If anyone has another clue, please let me know.

Many thanks again.

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: Configure USB-connected Printer

Post by stevemowbray » 2019/05/16 12:58:51

Use yum to install the rpm:
yum install hplip-3.19.3_rhel-7.0.x86_64.rpm
which will try to install dependencies for you, unlike rpm.

Post Reply