Bob1215 Posted February 19, 2020 Share Posted February 19, 2020 (edited) 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: [email protected]:~# 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 [email protected]:~# 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 February 19, 2020 by Bob1215 formatting Quote Link to comment
mathgeek97 Posted February 27, 2020 Share Posted February 27, 2020 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: [email protected]:~# 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 [email protected]:~# 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 Quote Link to comment
MothyTim Posted February 28, 2020 Share Posted February 28, 2020 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: [email protected]:# /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 Quote Link to comment
dockerPolice Posted February 28, 2020 Share Posted February 28, 2020 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. Quote Link to comment
Greygoose Posted July 6, 2020 Share Posted July 6, 2020 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 Quote Link to comment
Hammy Havoc Posted October 12, 2020 Share Posted October 12, 2020 Hi all! One of the final things left to do in my escape from Windows Server is sharing a USB printer on the network. jstrader/airprint-cloudprint is no longer available. What's the current recommendation? And yes, I'm aware having a print server is somewhat of an abnormality in 2020. :- ) Quote Link to comment
PeterB Posted October 20, 2020 Share Posted October 20, 2020 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. Quote Link to comment
Flyinace2000 Posted December 28, 2020 Share Posted December 28, 2020 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. Quote Link to comment
Flyinace2000 Posted December 28, 2020 Share Posted December 28, 2020 Got it started Under the Extra Parameters in advanced view I added "-e CUPS_USER_ADMIN=admin -e CUPS_USER_PASSWORD=password" Quote Link to comment
Flyinace2000 Posted December 31, 2020 Share Posted December 31, 2020 So this might of been a lost cause. Can I use CUPS to publish my wireless printer so that i can print via my iOS devices? I’ve setup a print share inside of CUPS, i can see that printer share on my desktop, but nothing on iOS devices. Quote Link to comment
Flyinace2000 Posted December 31, 2020 Share Posted December 31, 2020 I’m able to add a printer manually to CUPS, but not via network discover. Logs show 31/Dec/2020:09:11:32 -0500] Unable to communicate with avahi-daemon: Daemon not running Quote Link to comment
MothyTim Posted December 31, 2020 Share Posted December 31, 2020 2 minutes ago, Flyinace2000 said: I’m able to add a printer manually to CUPS, but not via network discover. Logs show 31/Dec/2020:09:11:32 -0500] Unable to communicate with avahi-daemon: Daemon not running I can't see the rest of your config, have you mapped /var/run/dbus/ ?? Quote Link to comment
Flyinace2000 Posted December 31, 2020 Share Posted December 31, 2020 10 minutes ago, MothyTim said: I can't see the rest of your config, have you mapped /var/run/dbus/ ?? Nope. What’s the proper mapping? Is there documentation that I’m just missing out on? Quote Link to comment
MothyTim Posted December 31, 2020 Share Posted December 31, 2020 1 minute ago, Flyinace2000 said: Nope. What’s the proper mapping? Is there documentation that I’m just missing out on? map /var/run/dbus/ to /var/run/dbus/ Quote Link to comment
Flyinace2000 Posted December 31, 2020 Share Posted December 31, 2020 Know what helps a lot? Making sure that your wireless access points are not blocking AirPrint..... Quote Link to comment
MothyTim Posted December 31, 2020 Share Posted December 31, 2020 4 minutes ago, Flyinace2000 said: Know what helps a lot? Making sure that your wireless access points are not blocking AirPrint..... Yep I guess that helps! 🤣 Quote Link to comment
flips Posted January 17, 2021 Share Posted January 17, 2021 (edited) 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 January 18, 2021 by flips Quote Link to comment
Recommended Posts
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.