So I am trying to set up CUPS on my server and I have done so successfully. I can print to it and everything is fine except for 2 things:
My config doesn’t seem to save every time I restart CUPS and I’m not sure how /where to mount the config file?
If I turn off the printer whilst cups is running and then back on again, it won’t reconnect to the printer. Cups has to be restarted.
Let me know if you have any ideas on how to solve these issues? Ideally, I can just have cups running in the background and then turn on the printer when I need to, print to it and then turn it off etc.
I’ve had similar issues with CUPS on my server. For the config not saving, try editing the config file directly in /etc/cups/cupsd.conf as root. That’s what worked for me.
As for the printer reconnecting, it’s a bit of a pain, right? I found that setting up a small script to restart CUPS whenever the printer is turned on worked for me. It’s not the most elegant solution, but it gets the job done. If you’re comfortable with that, give it a try.
Could you tell me exactly what I should be editing? Currently, every time I restart CUPS, it is like a fresh install. No data at all has saved so i have to re-add the printer
That script sounds interesting. What about when you turn the printer off?
Maybe a noob question here but im not over familiar with running lunix commands.
But where do I run that command? I tried running it in the shell of the app and then of the server and both didn’t work and said “zsh: command not found: -v”
The command I’m running:
-v /mnt/mainpool/cups//cupsd.conf:/etc/cups/cupsd.conf
You somehow created a custom app from the command line on top of that article, didn’t you? I never used custom apps, so that’s why I said you need to find out.
The idea is to tell your custom app instead of
docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus --name cupsd olbat/cupsd
This means mount path /var/run/dbus which you have, and, host path also /var/run/dbus, which you cannot select, I don’t think it’s allowed.
That being said, I think for some path not normally allowed, I did a ln -s on it to make a symbolic link so that the symbolic link was within /mnt somewhere and I believe it worked
I am new in TrueNAS Scale but I successfully installed it on my old PC and now I have a briliant storage server with Nextcloud, qBittorrent, Portainer and so on.
Also I want to transform my old Laser Jet 1018 USB printer into a network one. For this particular reason, I want to install CUPS but I have exactly the same issue as the author of this topic.
Can someone share his experience if already run this custom app or try to help me with some advices.
Thanks in advance and good day to all of you.