You are not logged in.

#1 2012-06-19 15:03:18

caco3john
Member
Registered: 2011-11-29
Posts: 12

[SOLVED] Can't setup HP Networked Printer

Newbie to Arch, but have been running other Linux distros for several years with same HW and printer.  Now though with Arch I can't seem to get it working.  Getting ready to pull my hair out soon and would appreciate any help.

I'm running 64bit Arch with KDE and my printer is HP Officejet Pro L7780 connected via LAN. 
- Installed: cups, ghostscript, gsfonts, and hplip per wiki. 
- Added CUPSD and AVAHI-DAEMONS to daemons array. 
- Added my user to sys and lp groups.

When I go to install printer via CLI using 'hp-setup' as user, it finds the network printer but not the PPD.  So I manually browse to either of the following (below), but then get the same error message:

"Printer queue setup failed. Could not connect to CUPS Server.  Is user added to "sys" group(s)"

    /usr/share/ppd/HP/hp-officejet_pro_l7700-hpijs.ppd.gz
    /usr/share/ppd/HP/hp-officejet_pro_l7700.ppd.gz

If I try to set it up via CLI using 'hp-setup' but as root I just get the following error and it aborts:

    No protocol specified
    hp-setup: cannot connect to X server :0

Using the cups web interface (http://localhost:631) will allow me to install but when I print a test page all I get is a single page printed that says "If you can read this, you are using the wrong driver for your printer"

If I use the KDE printer GUI utility it won't start and displays the following error messages:

     The service 'Printer Configuration' does not provide an interface 'KCModule' with keyword 'system-config-printer-kde/system-config-printer-kde.py'  The factory does not support creating components of the specified type.

Found a troubleshooting reference in the wiki for this but fix did not work.

Please help.  Thanks,

John........

Last edited by caco3john (2012-06-20 16:39:31)

Offline

#2 2012-06-19 16:07:42

mike54
Member
From: CZ
Registered: 2010-07-28
Posts: 44

Re: [SOLVED] Can't setup HP Networked Printer

As for the 'cannot connect to X': I suspect you're running hp-setup from a console window logged in as root? Instead, run the console as a regular user and run 'kdesu hp-setup'.

As for the 'wrong driver' - I think I cannot help with that. When I was installing a HP Officejet Pro 8500 A910 connected via LAN, all I had to do was install hplip (and cups, of course), run the cupsd daemon, click 'Manage printing' icon in KDE applications menu (it starts a web browser) and maybe click something like 'add a printer' (I can't remember) and an alert popped out on the webpage saying "found a network printer - install?". That was it.

Hope it helps.

Last edited by mike54 (2012-06-19 16:16:15)

Offline

#3 2012-06-19 16:21:53

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: [SOLVED] Can't setup HP Networked Printer

Mike,

Thanks.  Tried 'kdesu hp-setup' via console logged in as regular user and got the same exact results and errors as with only user privileges.  So solved my 'cannot connect to X' as root, but unfortunately no solution.  Appreciate the input.

John.......

Offline

#4 2012-06-19 16:41:42

mike54
Member
From: CZ
Registered: 2010-07-28
Posts: 44

Re: [SOLVED] Can't setup HP Networked Printer

Have you tried the CUPS Web Interface? (It's the 'Manage printing' icon I mentioned)

Offline

#5 2012-06-19 19:03:04

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: [SOLVED] Can't setup HP Networked Printer

Mike,

Tried the 'Manage printing' icon and it open the standard cups web interface I had originally used.  Previously I had just went direct to it via http://localhost:631 in the browser.  Either way this time it asked me for authorization and I entered my user credentials (not root as done previously) and was able to discover and add printer as before.  However this time when I printed a test page via interface it successfully printed it.  Before (setup as root) it just printed page with ....wrong driver.... message.

Now though if I go to the print menu in Konqueror app it list the printer, but doesn't print (or show up in cups print queue).  In all other applications (firefox, open office, etc) it still does not list the printer as an option.  Logged out and back in.  Still same results.

This has got to be something simple.  Thanks,

John..........

Offline

#6 2012-06-19 19:17:31

mike54
Member
From: CZ
Registered: 2010-07-28
Posts: 44

Re: [SOLVED] Can't setup HP Networked Printer

Well, I have no idea... Maybe cupsd restart or system reboot might help? I don't know KDE/Linux well enough to be able to tell where OpenOffice gets the list of printers from, sorry about that.

One more thought: Is your user in the 'lp' group?

Last edited by mike54 (2012-06-19 19:22:27)

Offline

#7 2012-06-19 19:30:32

DarkCerberus
Banned
From: Holsworthy, Devon
Registered: 2011-12-31
Posts: 252

Re: [SOLVED] Can't setup HP Networked Printer

Have you tried this https://aur.archlinux.org/packages.php?ID=49401  from the AUR Repository?

Last edited by DarkCerberus (2012-06-19 19:31:29)


Our enemies are your enemies, Nick. Disorder, war. It's just a matter of time before a dirty bomb goes off in Moscow, or an EMP fries Chicago.  ---  Alexander Pierce, Captain America: Winter Soldier
Access Denied! De-cryption failed, override denied all files sealed! --- Triskelion, Shield OS
-----
How to ask questions the smart way

Offline

#8 2012-06-19 20:23:32

mike54
Member
From: CZ
Registered: 2010-07-28
Posts: 44

Re: [SOLVED] Can't setup HP Networked Printer

DarkCerberus wrote:

Have you tried this https://aur.archlinux.org/packages.php?ID=49401  from the AUR Repository?

From what I can see - aren't they the same as hplip from extra except older version? Or is it some kind of enhanced version?

Offline

#9 2012-06-20 01:38:25

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Can't setup HP Networked Printer

Maybe the difference is that you are in the sys group but I always authorise as root to "Manage Printers" in the web interface. (I'm having issues with printing but this bit works OK.)

There do seem to be some interesting issues with the latest incarnation of cups (1.5.3), especially in conjunction with the HP printers.

See if your printer is in openprinting.org's database and, if so, check which drivers are available and recommended. You might be able to get it to work with another driver.

Enable debugging via the web interface or in the config file and examine the error logs for cups.

For hp-setup you might need to symlink python - see the wiki. I don't know if this is still required or not. (I'm trying to avoid tangling with this again.)

Check cups-filters is installed.

Possibly consider trying a gutenprint driver. (Again, see what openprinting.org suggests.)

I don't know the printer or your setup. Could you try connecting it directly just to see if that works? It might help figure out the driver you need, for example. (KDE usually auto-configures printers connected via USB, for example. You might be able to pull the config from that.)

To configure from within KDE, you probably need to check for the part of KDE you are missing. I don't especially recommend doing it this way, though. I've looked at the printers this way but I use CLI or the web interface to manage printing in KDE. On the other hand, my success rate with printing in Linux is abysmal so you might want to try just those things I say I don't do. smile

LibreOffice and Firefox should pick up the printers from cups. I didn't do anything extra.

Can you print to PDF and then print the files? Can you print from the command line?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#10 2012-06-20 13:34:58

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: [SOLVED] Can't setup HP Networked Printer

cfr wrote:

Maybe the difference is that you are in the sys group but I always authorise as root to "Manage Printers" in the web interface. (I'm having issues with printing but this bit works OK.)

Had tried it authorized as root and also my user in and out of the sys group without success.

cfr wrote:

See if your printer is in openprinting.org's database and, if so, check which drivers are available and recommended. You might be able to get it to work with another driver.

Had previously checked openprinting.org, but went back and looked again to be sure.  It listed the printer as "works perfectly" and said the recommended driver is hplip which I'm already using.

cfr wrote:

Enable debugging via the web interface or in the config file and examine the error logs for cups.

Enabling it now and will report back.

cfr wrote:

For hp-setup you might need to symlink python - see the wiki. I don't know if this is still required or not. (I'm trying to avoid tangling with this again.)

Check cups-filters is installed.

Will investigate

cfr wrote:

I don't know the printer or your setup. Could you try connecting it directly just to see if that works? It might help figure out the driver you need, for example. (KDE usually auto-configures printers connected via USB, for example. You might be able to pull the config from that.)

I'm running a dual boot with an old openSUSE install that operates the printer perfectly.  Did a basic check it looks like its using the same driver as in ARCH.  So I'm going to hold off on this test for now since it will involve a physical changes.

cfr wrote:

To configure from within KDE, you probably need to check for the part of KDE you are missing. I don't especially recommend doing it this way, though. I've looked at the printers this way but I use CLI or the web interface to manage printing in KDE. On the other hand, my success rate with printing in Linux is abysmal so you might want to try just those things I say I don't do. smile

Trying to debug the KDE interface separately, but agree I'm going to focus on the CLI or Web interface setup for now.

cfr wrote:

LibreOffice and Firefox should pick up the printers from cups. I didn't do anything extra.

Agreed

cfr wrote:

Can you print to PDF and then print the files? Can you print from the command line?

Will try

Offline

#11 2012-06-20 15:33:30

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: [SOLVED] Can't setup HP Networked Printer

Ok new info/question.

Ran 'hp-check' and noticed the following:

Checking Python version...
OK, version 2.7.3 installed

Checking PyQt 4.x version...
OK, version 4.9.1 installed.

Checking for CUPS...
Status: scheduler is not running
Version: 1.5.3
error_log is set to level: warn

Checking for dbus/python-dbus...
dbus daemon is running.
python-dbus version: 1.1.0

Specifically where it states that the CUPS scheduler is NOT running!

What does this mean?  I checked and verified that the 'cupsd' daemon is running but not sure what else to check.

Thanks,

John.............

Offline

#12 2012-06-20 16:38:51

caco3john
Member
Registered: 2011-11-29
Posts: 12

Re: [SOLVED] Can't setup HP Networked Printer

Based on the last post and a little google I found a problem with my /etc/cups/client.conf file.  Apparently early on in the debug process I had edited it and added an explicit 'ServerName' designation with the IP of my network printer.  Once I edited the file to comment it out and restore the original 'ServerName /var/run/cups/cups.sock' line the CUPS scheduler began to run.  (verified via 'hp-check') If I switched it back it stopped.  Didn't even need to restart the cupsd daemon. 

Once the scheduler was running my printer started to show up in all my applications like firefox and Libra office (some I had to restart).  Printing is now working fine and I can administer via web interface.  The KDE printer setup also now works!!!

Thanks for all the help,

John.......

Offline

Board footer

Powered by FluxBB