[REQUEST] AirPrint container


Recommended Posts

I looged in to the docker and executed hp-setup -i, this however  finds my printer, but some error at the end....

 

root@Tower:/# hp-setup -i

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

Copyright (c) 2001-13 Hewlett-Packard 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.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| 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*) ? 1

Using connection type: net
                                                                                                                                                                          Using device: hp:/net/Photosmart_C6100_series?ip=192.168.0.163


Setting up device: hp:/net/Photosmart_C6100_series?ip=192.168.0.163



---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'Photosmart_C6100'*, q=quit) ?
Using queue name: Photosmart_C6100
Locating PPD file... Please wait.

Found PPD file: drv:///hpcups.drv/hp-photosmart_c6100_series.ppd
Description:

Note: The model number may vary slightly from the actual model number on the device.

Does this PPD file appear to be the correct one (y=yes*, n=no, q=quit) ? y
Enter a location description for this printer (q=quit) ?home
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/net/Photosmart_C6100_series?ip=192.168.0.163
Queue name: Photosmart_C6100
PPD file: drv:///hpcups.drv/hp-photosmart_c6100_series.ppd
Location: home
Information:                                                                                                                                                              Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 610, in <module>
    utils.sendEvent(EVENT_CUPS_QUEUES_ADDED,print_uri, printer_name)
  File "/usr/share/hplip/base/utils.py", line 2010, in sendEvent
    SystemBus().send_message(msg)
  File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 194, in __new__
    private=private)
  File "/usr/lib/python2.7/dist-packages/dbus/_dbus.py", line 100, in __new__
    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 122, in __new__
    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
root@Tower:/#

Link to comment

Never mind, I installed my printer in my Ubuntu VM, working perfect from my I-devices :-)

How do I map /var/run to the container ?

 

//Peter

 

Add -v /var/run/dbus:/var/run/dbus to Extra Parameters

With this command I now can discover my printers, they show up in the list Discovered Network Printers:

 

but printing I see this error message in the print job.

"Failed to connect to system bus"

 

One thing that are different from Ubuntu VM and this docker, is in Ubuntu I can see the driver for my C6180 All-In-One, but in the docker only C6100-series

 

//Peter

Link to comment

Never mind, I installed my printer in my Ubuntu VM, working perfect from my I-devices :-)

How do I map /var/run to the container ?

 

//Peter

 

Add -v /var/run/dbus:/var/run/dbus to Extra Parameters

With this command I now can discover my printers, they show up in the list Discovered Network Printers:

 

but printing I see this error message in the print job.

"Failed to connect to system bus"

 

One thing that are different from Ubuntu VM and this docker, is in Ubuntu I can see the driver for my C6180 All-In-One, but in the docker only C6100-series

 

//Peter

 

That's weird. Which Ubuntu version are you using?

Link to comment
  • 3 weeks later...
  • 2 months later...

adding the dbus change also fixed the discovery error for me. Now, however, when i go to add the discovered printer I see this:

Add Printer OKI_DATA_CORP_C531 Error

 

Unable to get list of printer drivers:

 

Broken pipe

 

restarting the container fixes it. After adding the printer, i sent a test print and now see this error:

processing since

Sat 03 Oct 2015 11:25:16 AM UTC

"Unable to locate printer "oki-c531-2e94ba.local"."

Link to comment
  • 1 year later...
  • 3 years later...
8 hours ago, Flyinace2000 said:

Is this still available? I don’t see CUPS or anything print related under “gfjardim” name in the APPS tab.

If you do a docker hub search within Apps (enable it in options), there's far more up to date versions of CUPS than what was available within apps.

  • Like 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.