LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-20-2016, 12:00 PM   #1
lgiancri
LQ Newbie
 
Registered: Dec 2005
Location: Italy
Distribution: slackware forever
Posts: 19

Rep: Reputation: 0
cups-hplip cannot share printer on lan


Hi everybody,
I installed Slackware 14.2 on two hosts (one is 386 the other is 86_64).
Curiosly, everything seemed ok, but when I tried to print to the only printer (HP laserjet p1005) from one of the other computers in the house I discovered that the printer was .. invisible.
The laserjet is phisically connected via usb to one of the hosts where I installed Slackware 14.2 and so far I've not been able to make it "shared". I downgraded hplip to the version included in Slackware 14.1, after that I compiled cups myself (2.1.4), but with no positive result. Eventually I had to downgrade Slackware ... to 14.1.
Is there anybody who is experiencing the same problem? Have you tried to figure out where the problem is?
Thanks
Luigi
 
Old 07-20-2016, 05:28 PM   #2
the3dfxdude
Member
 
Registered: May 2007
Posts: 734

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
So, yes I am having this problem. I have debugged it to great length, but do not for sure know why this is now being triggered on Cups-2.1.4. It's possibly not related to that it is 32-bit/64-bit mix. Basically I am seeing that on the client, the hpcups filter is invoked, then output gzipped, sent to server, and then hpcups is invoked again using the received gzipped file. So hpcups is a Cups Raster to HP device output. Piping raster data through hpcups once would be fine. But sending it again through hpcups is a big no-no. The client should not be invoking hpcups, I believe, and should likely be sending the cups raster gzipped directly to the server.

Was this an upgrade, or a clean install?

Can you print locally?

Edit:
Oops. The problem you mentioned is that you aren't finding your printer automatically across the network. This is due to the Cups browsing change. I was getting my hopes up that you had the same issue I had. I just add my printer manually using ipp. But you can turn on browsing if you want.

Last edited by the3dfxdude; 07-20-2016 at 06:04 PM.
 
Old 07-20-2016, 06:55 PM   #3
the3dfxdude
Member
 
Registered: May 2007
Posts: 734

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
OK I figured out the "double filtering". I need to select Raw as the driver on the client. If you don't want to install the third-party browsing interface to do this automatically, then: (but see below first for command line!! web interface is harder to work with to manage setup of network printers!)

1. Open http://localhost:631/ in your browser.
2. Go to administration.
3. Click add printer.
4. Enter the url "ipp://server.hostname/printers/queue_name" ... see the queue name you entered on your server. Continue.
5. Enter a local queue name. Continue
6. Select "Raw" for Make. Click add printer.
7. Click add printer.
8. Set the default options.

Done.

BUT... I'm finding that you have to enable the printer queue on the command line. I can't seem to do it from the web interface? (Someone correct me if I'm wrong)

So you can do this on the command line alot faster, including enabling the queue.

lpadmin -p local_queue_name -v ipp://server.hostname/printers/queue_name -m raw -E

The vast amount of docs on the web (including Cups itself) really need updating to actually explain how to do a manual network printer. It's all pretty much extremely outdated and lacking on any current tutorial on how to do things today. But this following page finally explained it, when I knew I needed to look up "double filtering".
https://wiki.debian.org/PrintQueuesC...e_with_lpadmin
https://wiki.debian.org/PrintQueuesC...uble_Filtering

Doesn't this seem like a change though? Or did the old Cups just figure out what to do automatically with the old browsing protocol? Anyway raw printer management doesn't seem to really work all that well from the web interface. I think adding printers this way is definitely broken-ish.

Last edited by the3dfxdude; 07-20-2016 at 07:45 PM. Reason: Update on enabling the queue
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Rename printer under CUPS & HPLIP waddles Linux - Software 3 10-09-2012 08:09 PM
HPlip woes on --current ; Sharing printer gets broken if the hplip gui is launched Old_Fogie Slackware 2 10-28-2010 10:23 AM
CUPS and HPLIP Duplicating Printer Entries, 13.1 tronayne Slackware 3 07-19-2010 04:00 PM
[SOLVED] HP PSC 1315 - Printer detected under CUPs but not working (hplip/hpijs driver) vharishankar Linux - Hardware 19 09-01-2009 02:26 PM
CUPS printer will not share to windows client - printer does not have correct drivers Hotchips Linux - Server 2 07-22-2007 02:56 AM

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

All times are GMT -5. The time now is 09:55 PM.

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
Open Source Consulting | Domain Registration