zajac-grzegorz / homeassistant-addon-cups-airprint

CUPS addon with working Avahi in reflector mode
15 stars 22 forks source link

Add Samsung drivers? #3

Open andriej opened 8 months ago

andriej commented 8 months ago

My printer (and many other Samsung printers unfortunately) are dependent on package provided by Samsung with unversal driver. It's SCX-4200 which is missing from CUPS, after I add PPD for it from https://support.hp.com/us-en/drivers/selfservice/samsung-scx-4200-laser-multifunction-printer-series/19135263 I see that it's missing file: Idle - "File "/usr/lib/cups/filter/rastertospl" not available: No such file or directory"

I hope it's possible to easily add it to repo, so I could finally configure cups.. :) If there's more info needed, please let me know

zajac-grzegorz commented 8 months ago

I do not plan to do any other modifications to that add-on unfortunately. I have made it public so anyone can modify according to their needs.

LarsNorgaard commented 8 months ago

If you don't want to create your own image, then install portainer and access the terminal. You'll be able to install the Samsung driver from there.

andriej commented 8 months ago

This is quite problematic running OS and staying with healthy system tho ;-)

romeocontrol commented 8 months ago

Hello, thank you very much for this great work. It really works without problems ... if you do everything right. I too have a Samsung ML-1630 for which there are no drivers under macos anymore. However, they are usually not in there under cups either. There is a special driver for that: printer-driver-splix \ I cloned your add-on and then copied it as a local add-on via ftp to my homeassistant yellow. Then uninstalled your add-on and installed my local one instead. Still a little work and my old printer is also usable from mac again. Maybe you can add the printer driver to the standard.

Many greetings RT

... and I still haven't found data/cups ...

zajac-grzegorz commented 8 months ago

I do not plan to add other drivers to the image as it is already quite a large one > 600 mbytes...

If you like you can replace the /data/cups with /config/cups - update the run.sh script. /config folder is visible to any add-on in the system.

romeocontrol commented 8 months ago

I have a some days old yellow with 1TB SSD, so space is enough. Used cups and home assistant separately on a Proxmox server. This solution ist much more sophisticated. 2-4 Watt or 20 Watt 24/7. Thank you again for your work and the immediate answers.

andriej commented 8 months ago

It's exactly what I was missing. I've just tried your repo and my printer worked too. Grzegorz, would you consider adding that 1 line for driver for it to support such wide variety of printers? :)

romeocontrol commented 8 months ago

I am very happy about that. I now still have a Brother HL-2300 connected, for which you also had to find a driver first. But is now in and works. I have added the change to /config/cups in my forked repository.

garibarba commented 5 months ago

I have created a fork with the change in #8, but I think the change is small enough that it could be included here.

fjfricke commented 4 months ago

Maybe we could add a config entry inside home assistant specifying which extra deb packages to install on the next start of the add-on as there seem to be a few people wanting extra printer drivers to be installed. Then anyone who wants to install other drivers can specify their own ones without bloating the container with all of them.