homeassistant-addons icon indicating copy to clipboard operation
homeassistant-addons copied to clipboard

CUPS as a add-on

Open yousaf465 opened this issue 2 years ago • 3 comments

Thanks for the excellent add-ons. CUPS as an add-on has been requested by many home assistant users. I think @MaxWinterstein can solve this issue. here is some relevant discussion https://github.com/hassio-addons/repository/discussions/248#discussioncomment-2454543 https://github.com/ncarr/addon-repository

yousaf465 avatar Mar 29 '22 08:03 yousaf465

Having some old labelprinter laying around, this is on my wishlist :)

Whats the matter with the one from @ncarr? Does it miss something?

MaxWinterstein avatar Mar 29 '22 09:03 MaxWinterstein

Having some old labelprinter laying around, this is on my wishlist :)

Whats the matter with the one from @ncarr? Does it miss something?

it is not working for me and a few other users. Here is a screenshot of it image

yousaf465 avatar Mar 29 '22 10:03 yousaf465

yeah, seems kinda buggy. Might have a look at this one day, but no promises ✌️

MaxWinterstein avatar Apr 02 '22 17:04 MaxWinterstein

Did you check https://github.com/hassio-addons/repository/discussions/248#discussioncomment-4326731 - seems like someone fixed the existing one?

MaxWinterstein avatar Dec 16 '22 12:12 MaxWinterstein

Did you check hassio-addons/repository#248 (comment) - seems like someone fixed the existing one?

I am running HA on RPi4.

yousaf465 avatar Dec 16 '22 20:12 yousaf465

Did you check hassio-addons/repository#248 (comment) - seems like someone fixed the existing one?

I am running HA on RPi4.

I see. Tried to install, failed.

MaxWinterstein avatar Dec 16 '22 22:12 MaxWinterstein

Had a quick play with another repo: https://github.com/Luk164/addon-repository

image

Works with minimal adjustments, but not sure about the Avahi / Multicast DNS stuff. Need to have a second look later on.

MaxWinterstein avatar Dec 16 '22 23:12 MaxWinterstein

Had a quick play with another repo: https://github.com/Luk164/addon-repository

image

Works with minimal adjustments, but not sure about the Avahi / Multicast DNS stuff. Need to have a second look later on.

This is on RPi4?

yousaf465 avatar Dec 17 '22 16:12 yousaf465

Yes.

MaxWinterstein avatar Dec 17 '22 16:12 MaxWinterstein

Yes.

image this one?

yousaf465 avatar Dec 17 '22 17:12 yousaf465

got this

Failed to install add-on
The command '/bin/bash -o pipefail -c apt-get update && apt-get install -y --no-install-recommends cups avahi-daemon libnss-mdns dbus colord printer-driver-all printer-driver-gutenprint openprinting-ppds hpijs-ppds hp-ppd hplip printer-driver-foo2zjs gnupg2 lsb-release && echo "deb http://nginx.org/packages/debian `lsb_release -cs` nginx" | tee /etc/apt/sources.list.d/nginx.list && curl -fsSL https://nginx.org/keys/nginx_signing.key | apt-key add - && apt-get update && apt-get install nginx nginx-module-njs && apt-get clean -y && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

yousaf465 avatar Dec 17 '22 17:12 yousaf465

finally worked image correct repository, and restart fixed it. image

I spoke too soon

s6-overlay-suexec: fatal: can only run as pid 1

yousaf465 avatar Dec 17 '22 17:12 yousaf465

I just added my running version to this repository.

Far away from perfect, but should work.

MaxWinterstein avatar Dec 18 '22 21:12 MaxWinterstein

image Atleast Url is working

you need to type "https://192.168.x.x:631" in the address bar to access the page

yousaf465 avatar Dec 22 '22 05:12 yousaf465

x86 here, CUPS not accessible by direct IP image

image

image

EDIT: I turned OFF SSL in the add-on config, and now it works, over HTTPS...?

image image

CountParadox avatar Jan 24 '23 07:01 CountParadox

I tried it but unfortunately I'm in the loop of errors :(

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/dbus-setup
cont-init: info: /etc/cont-init.d/dbus-setup exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun avahi (no readiness notification)
services-up: info: copying legacy longrun dbus (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
s6-rc: info: service legacy-services successfully started
Found user 'avahi' (UID 104) and group 'avahi' (GID 109).
Successfully dropped root privileges.
avahi-daemon 0.8 starting up.
Successfully called chroot().
Successfully dropped remaining capabilities.
No service file found in /etc/avahi/services.
Failed to create server: Invalid host name
avahi-daemon 0.8 exiting.

dimmuboy avatar Mar 31 '23 23:03 dimmuboy

Will close this as the add-on was added - and improved over the time.

MaxWinterstein avatar Nov 25 '23 21:11 MaxWinterstein