CUPS on TrueNAS Scale

george.hovh

Cadet
Joined
Jul 5, 2022
Messages
3
Hi I am new to TrueNAS and trying to run CUPS print server.
I am launching Docker imagine and running app successfully but getting 3 problems:
1. CUPS doesn't save configurations, I add the printer but when turning cups off/on configurations are gone.
2. Can't get printer to work, after adding it and installing driver, it's not workinf.
3. Can't connect to printer from other computer on network, maybe this is interconnected with previous two points.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
1. Have you set up Storage and Persistence to catch where the config is saved to a location outside the container in your pool?
2. Don't know the app, so can't be much help there
3. maybe check Apps | Settings | Advanced Settings and make sure you have the right settings there.
 

george.hovh

Cadet
Joined
Jul 5, 2022
Messages
3
Thank you for your reply. This is the settings that I'm going. And the link of the docker
 

Attachments

  • Screenshot_20220707-082615.png
    Screenshot_20220707-082615.png
    241.4 KB · Views: 783

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Based on what the container repo says, you need to match the config file to /etc/cups/cupsd.conf inside the container and you need to map /var/run/dbus on the host to the same inside the container.

So your first problem is that the default "Launch Docker Image" option doesn't allow you to do either of those things. (specifying a single file instead of a directory for the config and specifying a path outside of /mnt for anything else).

You'll therefore need to use the TrueCharts option for that:

which would be to launch a custom-app for it if you really need that specific variant of cups...

however, TrueCharts has already created a Cups app... so why on earth not use it...
It looks like going with the defaults and setting a password is all that's needed (and making it privileged and allowing privilege escalation in the security /advanced section... After that, I'm not an expert in cups, but it looks like there's some kind of issue with the listening/binding and/or permissions in cups which blocks access to the admin functions, so I'll have to leave you to it at that point.
 
Top