How to Disable built-in CUPSd and use Docker's CUPS server?

Currently reading
How to Disable built-in CUPSd and use Docker's CUPS server?

2
0
NAS
DS718+ and DS1522+
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. Android
  2. iOS
Last edited:
Hi,.. How do i disable built-in CUPS server that occupies port 631? I'm trying to use Docker's CUPS server but couldn't succeed :(

I tried following commands on Putty but didn't succeed
synoservicecfg --hard-stop cupsd
synoservicecfg --hard-stop cups-lpd
synoservicectl --stop cupsd
synoservicectl --stop cups-lpd

This following command shows success but port 631 is Still NOT released :(
synopkg stop cupsd
synopkg stop cups-lpd
 
Any luck yet I am trying to setup cups in docker as well. I am trying to use this docker file and instructions.
Docker
It mentions also stopping the the service handler as well.
  • sudo synosystemctl stop cups-service-handler
 
Last edited:
I could stop built-in CUPSD and start docker based CUPS successfully but the when I try to print from something it asked for user and password (and the admin user pass doesn't work here for odd reason),..

Here is how i stopped built-in CUPSd (it should work on all DSM versions (even though some commands may fail :-p)

Code:
sudo -i
synoservice --hard-disable cupsd
synoservice --hard-disable cups-lpd
synoservicecfg --hard-disable cupsd
synoservicecfg --hard-disable cups-lpd
synoservicectl --hard-disable cupsd
synoservicectl --hard-disable cups-lpd
synopkg stop cupsd
synopkg stop cups-lpd
systemctl stop cupsd
systemctl stop cups-lpd
systemctl disable cupsd
systemctl disable cups-lpd
systemctl stop [email protected]
systemctl stop cups-service-handler.service
systemctl stop cupsd.service
systemctl disable [email protected]
systemctl disable cups-service-handler.service
systemctl disable cupsd.service

I then followed this guide,.. (other guides were too complicated :sick:)

In some cases (or models), you may require USB serial drivers?? So I found it here,.. (click inside "modules" folder). You have to download modules according to your model's cpu architecture o_O and install it. I also followed some commands and instructions on THIS guide,..

Because i I was sick of using terminal, I installed "File Browser" community app and gave it root privileges with this following command and did copy paste of modules

Code:
sudo sed -i 's/package/root/g' /var/packages/filebrowser/conf/privilege

If something doesn't work out as expected and you want to revert back (turn on built-in CUPSd etc) then disable docker based CUPS container and then perform these steps ,..

Code:
sudo -i
synoservice --hard-enable cupsd
synoservice --hard-enable cups-lpd
synoservicecfg --hard-enable cupsd
synoservicecfg --hard-enable cups-lpd
synoservicectl --hard-enable cupsd
synoservicectl --hard-enable cups-lpd
systemctl enable cupsd
systemctl enable cups-lpd
systemctl start cupsd
systemctl start cups-lpd
systemctl enable [email protected]
systemctl enable cups-service-handler.service
systemctl enable cupsd.service
systemctl start [email protected]
systemctl start cups-service-handler.service
systemctl start cupsd.service
synopkg start cupsd
synopkg start cups-lpd

Let me know if you succeed in this or any other docker cups guide,... then even i may restart this experiment,..
Cheers :)
 
Thanks for your help. I was able to get mine working, now I just need the driver for my 12 year old canon.

I am running DSM 7.1.1-42962 Update 4 on a DS220+ (Intel Celeron 64bit cpu).

I stopped the services for my it was just cupsd and cups-service-handler.

Then I downloaded : znetwork/synology-airprint from registry tab inside Docker on Synology, (fyi it was updated 12 days ago)

Then I used these instructions, Homebridge on Synology DSM 6 with Docker (screens are slightly different on DSM 7) which i used previously for installing homebridge, but they are some of the only docker on Synolgoy instuctions that use the gui instead of command line. My summary page looked like this,
new docker1.png

new docker2.png



The admin login and password are both admin as default for this image.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Solved
I thought notification settings is at the top right corner. Turns out it is in control panel ->...
Replies
2
Views
4,594
O.K. I will suggest, in File Station (for starters), to not have a box popup that displays text verbatim...
Replies
3
Views
1,456
Hello everyone, I recently upgraded my home Sound system to Bose home Speaker built-in Amazon Alexa...
Replies
0
Views
1,088

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top