Score:0

Cups Server change printers.conf location

mh flag

Some background:

I have ubuntu 20.04 LTS installed on a Raspberry Pi 4 Model B, on this I am running CUPS (v2.2.10) in a docker container as a print server.

CUPS itself is running fine, I have installed printer drivers and configured a local printer using the web interface.

Now I'm wanting to persist the configuration of the server (or even just the printer configuration) to the host Pi by using volumes, so I mounted an empty directory to the /etc/cups directory of the container.

This is where the problem starts, it seems that the mounted host directory "hides" the directory in the container, preventing cups from starting and without the volume the server configuration is tied to the lifetime of the container.

I noticed that you can change the location of various files by specifying their paths in cups-files.conf but I couldn't see anything that would allow me to move the printers.conf file to another location, it feels like I'm missing something.

Any suggestions?

cn flag
See the man pages ;-) and you will end up here https://man7.org/linux/man-pages/man8/cupsd.8.html ". cupsd is responsible for settings. If no options are specified on the command-line then the default configuration file /etc/cups/cupsd.conf will be used." So check where cups is started (systemd so likely `cups.service` will start cups where you can change settings.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.