[support] gfjardim's Docker Repository


Recommended Posts

CUPS Server Success

 

I've had some luck with the CUPS server docker, jstrader/airprint-cloudprint
I had to set it up 100% manually.  Oddly enough the docker hub page says, "On unRaid, install from the Community Repositories and enter the required folder locations," but I didn't find such a thing when I searched.
I had to do a whole lot of "+Add another Path, Port, Variable, Label or Device" to get it all set up.

All settings can be found on https://hub.docker.com/r/jstrader/airprint-cloudprint

I ended up mapping to

  • /mnt/user/appdata/cups/config/
  • /mnt/user/appdata/cups/logs/
  • /mnt/user/appdata/cups/cpc/

for 

  • /etc/cups
  • /var/log/cups
  • /etc/cloud-print-connector

respectively, since I already had a share, which is actually not shared on the network, /mnt/user/appdata/

The settings I used, which were not mentioned on the docker hub page were

  • click "Advanced," then set WebUI to http://<IP-ADDRESS-OF-UNRAID-SERVER>:631
  • Network Type: Host
  • Console shell command: Bash
  • I left Privileged set to "OFF"

Once it's all set up, hit the <Apply> button at the bottom of the Docker "Add Container" form page, and you're ready to configure CUPS with the Web GUI.

It worked for AirPrint with no issues.  I followed the directions for Google Cloud Print (I had to enter the container's console), and my Google account says it sees my printer, but I need to sneak off with one of my kids' Chromebooks to see if it really works.

The only thing I don't like is the sluggish performance vs other CUPS containers I've played with, including other v2.3.1 containers.  But, I now have AirPrint and Google Cloud Print, so I'll call it a win.
All this to let my family print to our wireless Brother HL-2270DW laser printer from any device.

Link to comment
  • 4 weeks later...
On 1/27/2020 at 8:56 PM, mathgeek97 said:

CUPS Server Success

I ended up mapping to

  • /mnt/user/appdata/cups/config/
  • /mnt/user/appdata/cups/logs/

for 

  • /etc/cups
  • /var/log/cups

The settings I used, which were not mentioned on the docker hub page were

  • click "Advanced," then set WebUI to http://<IP-ADDRESS-OF-UNRAID-SERVER>:631
  • Network Type: Host
Quote

Network Type: Host

- I tried both Host and Bridge, and they both worked for me.

Quote

/mnt/user/appdata/cups/config/ to /etc/cups

- causes the container to succeed in creation, but fails to start (and no logs)

Quote

/mnt/user/appdata/cups/logs/ to /var/log/cups

- worked perfectly

Quote

click "Advanced," then set WebUI to http://<IP-ADDRESS-OF-UNRAID-SERVER>:631

-  I copied a different container and put `http://[IP]:[PORT:631]/`, which works!

 

 

I have an HP printer connected by USB (with Parallel Port to USB cable) that I cannot get CUPS to see. Some basic info:

 

root@Tower:~# lsusb

Bus 002 Device 003: ID 0781:5575 SanDisk Corp. Cruzer Glide
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 003: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

 

 

root@Tower:~# ls -l /dev/bus/usb/006/
total 0
crw-rw-r-- 1 root root 189, 640 Feb 18 23:43 001
crw-rw-r-- 1 root lp   189, 642 Feb 19 00:50 003

 

Any advice is welcome.

 

 

Edited by Bob1215
formatting
Link to comment
On 2/19/2020 at 2:04 AM, Bob1215 said:

- I tried both Host and Bridge, and they both worked for me.

- causes the container to succeed in creation, but fails to start (and no logs)

- worked perfectly

-  I copied a different container and put `http://[IP]:[PORT:631]/`, which works!

 

 

I have an HP printer connected by USB (with Parallel Port to USB cable) that I cannot get CUPS to see. Some basic info:

 


root@Tower:~# lsusb

Bus 002 Device 003: ID 0781:5575 SanDisk Corp. Cruzer Glide
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 003: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

 

 


root@Tower:~# ls -l /dev/bus/usb/006/
total 0
crw-rw-r-- 1 root root 189, 640 Feb 18 23:43 001
crw-rw-r-- 1 root lp   189, 642 Feb 19 00:50 003

 

Any advice is welcome.

 

 

See how the printer shows up in Unraid. Try, in a console window,

dmesg | grep tty

and see what you get (I'll pretend it was ttyUSB0)

Then in advanced view, add
--device=/dev/bus/usb/006/003:/dev/ttyUSB0

 

You could also see if anything here works: https://wiki.ubuntu.com/DebuggingPrintingProblems

Link to comment

Hi, I have been trying to setup olbat cups as some others here have suggested and can get it working but cannot work out how to make my setup persist a reboot! I've tried mapping /etc/cups to appdata/cups/config but this causes the container to fail to start, my limited knowledge of docker says that appdata is overwriting the container when I want it the other way round yes? Also need the HP plugin to persist as my Laserjet CP1025 color needs the propriatry plugin! If I run hp-plugin in the container console and accept the license then it works until reboot!

My docker run command:

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='cupsd' --net='host' --privileged=true -e TZ="Europe/London" -e HOST_OS="Unraid" -e 'TCP_PORT_631'='631' -v '/var/run/dbus/':'/var/run/dbus/':'rw' -v '/dev/':'/dev/':'rw' -v '/mnt/user/appdata/cupsd/logs':'/var/log/':'rw' 'olbat/cupsd' 

Hopefully someone with better docker knowledge can see where I'm going wrong?

Cheers,

Tim

Link to comment

I think that I'm going to remove CUPS from CA.  It's one of those abandoned applications.  While it does somewhat work, it's not particularly populated with printer drivers that are more commonly used today, and there are many more choices for CUPS available @ dockerHub that are kept more up to date and have a better selection of drivers within them.

Link to comment
  • 4 months later...
On 2/28/2020 at 5:16 PM, dockerPolice said:

I think that I'm going to remove CUPS from CA.  It's one of those abandoned applications.  While it does somewhat work, it's not particularly populated with printer drivers that are more commonly used today, and there are many more choices for CUPS available @ dockerHub that are kept more up to date and have a better selection of drivers within them.

I was actually looking at CUPS when i come across this thread.

 

What other options are there instead of CUPS

Link to comment
  • 3 months later...

I've just started using this CUPS docker in order to print from a machine which has a very limited range of print drivers.  Even though all my printers are networked (I wrote an lpr/lpd driver for it), the machine in question can only print to HP PCL, PS and a couple of other old protocols.  This docker allows me to throw a PDF into a shared directory, and have it printed on, for instance, IPP ink jets.

Link to comment
  • 2 months later...
On 7/6/2020 at 2:09 PM, Greygoose said:

I was actually looking at CUPS when i come across this thread.

 

What other options are there instead of CUPS

Same question, I didn't see any other options.  I wish there was more documentation about how to set this up on UnRaid.  Just want to publish my Samsun wireless printer so my iPhone/iPad can also print.  

 

So far I've gotten to the user/password prompt but it does not accept the defaults mentioned above.

Link to comment
  • 3 weeks later...

I'm very close...  I added the printer, I can see it from other devices, but when I print the jobs in the CUPS webui says:

 

"Unable to locate printer "86CA53000000.local"."

 

Any help is apprecieated.  I see a few references in googleing but I'm not sure how the docker fits into this, perhaps it isn't resolving properly in avahi?  I tried changing the name to the IP, but that doesn't seem to work for me.  I have a the IP dedicated, but I don't see where I can just change the hostname to the IP.

----------------------------

EDIT:  I was able to resolve the network issue.  I edited printers.conf and put in my IP on the DeviceURI line:

 

DeviceURI dnssd://[IP_ADDRESS]/?uuid=00000000-0000-1000-8000-XXXXXXXXXXXX

 

Unfortunately, it now prints, but the job hang at 9% and never completes...  so it looks like I'm on to the next layer of troubleshooting....

 

flips

Edited by flips
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.