-
Notifications
You must be signed in to change notification settings - Fork 47
brother printer drives #9
Comments
@pordyna I will begin the process of researching/testing the driver and if there are no issues I will update the Dockerfile to incorporate this driver into the Docker image build. In the mean time, can you share what printer(s) you will be using this driver for? This will help all of the users (including myself) know more about what printers are able to successfully work with this Docker image (once the changes are incorporated). |
If you run the current tigerj/cups-airprint image as follows:
You will see that it is actually installed by the package printer-driver-all seen here in the Dockerfile. Were you unable to get your Brother printer to work? Let me know and we'll trouble shoot from there. |
Hi, first thanks for getting on this so quickly! It looks like there is an old version of |
So the issue with updating to Ubuntu 20.04 is that Python 2 is deprecated and this repo depends on the python-cups library that (you guessed it) is for Python 2. Now, I have started a dev branch specifically for this Python 3 migration. I have also successfully built the Docker image locally. Running the below Docker command we can see the printer drivers that will be installed in Ubuntu 20.04:
The next step would involve migrating the Python 2 script located here to Python 3. While this may be trivial, I am still unclear about what would be the effects of this, and will this cause any other problems. |
The creator of the airprint-generate.py seems to already have done a Python 3 rewrite, it's available here if you want to take a look. |
@marchanlon Awesome. Ok this simplifies things greatly I will look into that. Thank you! |
The dev branch has been updated to use Python 3 and the airprint-generate repo as a submodule (which means it is using the Python 3 version of the airprint-generate.py script). Unfortunately there are issues with building this image on Raspberry Pi OS using an Ubuntu image greater than 18.04. For the time being I am going to take a break, and if you would like to build the Docker image or try to address this Raspberry Pi OS issue, please see: https://askubuntu.com/questions/1263284/apt-update-throws-signature-error-in-ubuntu-20-04-container-on-arm |
Thank you for putting in the work. I will have a look on thr rasberry pi issue. I want to use it on a Pi anyway. |
Glad to do it. It's a win/win for everyone. I tested on both an RPi 3 and RPi 4 running
Here is the RPi and Docker version info:
Above you can see the error that mentioned above is addressed in the SO post. See if you can build it using your RPi (maybe there's something here specific to my RPi but I doubt it). We'll get it sorted out, will just take a little longer than first inspection suggested 👍 |
Original issue: moby/moby#40734 |
This is how I was able to build the image on RPi (see this linuxserver.io FAQ):
Using the above commands I was able to successfully build the Docker image on Raspberry Pi 4 Model B Rev 1.1 and Raspberry Pi 3 Model B Rev 1.2 both running Docker version 20.10.5, build 55c4c88. Keep in mind this is only the building of the image not the running. I will have to look into testing that next. See MichaIng/DietPi#4260 for more information on the above Docker build solution. |
wow, waitinh for this change , i have a Brother DCP-1510, using Unraid. |
Just install dev branch on my unraid. Work perfectly on my Brother DCP-1510 via an IPAD. |
tl;drFor future users any OS with Full ExplanationThe issue with updating to Currently, the The dev branch is the attempt to update to As an alternative to updating the host OS
That should update any future users who come across this issue/use case on what is the current state of the |
I think this can be closed |
Could you please add the
printer-driver-brlaser
from this repo to the docker file? This would add support for more brother laser printers. 😄The text was updated successfully, but these errors were encountered: