IT/Software/Applications/CUPS: Difference between revisions
Walttheboss (talk | contribs) |
Walttheboss (talk | contribs) No edit summary |
||
Line 47: | Line 47: | ||
Not nice. | Not nice. | ||
=== Change a printer name or queue name === | |||
* ''Stop CUPS Service''. For openSUSE using <code>systemd</code> there are three services to stop (<code>cups.path</code>, <code>cups.service</code>, and <code>cups.socket</code>). | |||
* ''Edit'' <code>/etc/cups/printers.conf</code> and replace the old-name text with the new one. (appears only once). | |||
* ''Rename drivers'': In <code>etc/cups/ppd</code> there are "drivers" named like the printer, so if you change the printer name, also rename the driver files. | |||
* ''Start the services''. | |||
===Next Level=== | ===Next Level=== | ||
Usually best to just start over by running three commands. | Usually best to just start over by running three commands. |
Revision as of 10:59, 16 October 2023
Common Unix Printing System
(Common Uncomfortable Pain Somewhere*)
*Yes we mean "there".
Over the years I have logged/wasted/learned for countless hours.
Access:
Most of Cups are integrated in the printer settings panel in your distro.
More features and reliability can be found from a browser:
localhost:631
Basics
To restart local printer services you need.
sudo service cups restart
To restart the network broadcast(sharing) and browsing(using others) you need.
sudo service cups-browsed restart && sudo service cups restart
Quirks
On KDE you can install the printer but the config will not stick.
System settings runs as the normal user and the config files are owned by root.
You can start system settings as root, make changes, and then come back.
OR do it via the cups web interface which has access permissions to those files.
Config Files
The file for cups-browsed is located in /etc/cups/
We want to normally make the following changes.
How we look for other printers:
BrowseRemoteProtocols dnssd
How others can look for our printers:
BrowseLocalProtocols dnssd
BrowseInterval 10
Normally you have cups as also a browsing option. BUT that will show all ZeroTier Printers as IP addresses.
Not nice.
Change a printer name or queue name
- Stop CUPS Service. For openSUSE using
systemd
there are three services to stop (cups.path
,cups.service
, andcups.socket
). - Edit
/etc/cups/printers.conf
and replace the old-name text with the new one. (appears only once). - Rename drivers: In
etc/cups/ppd
there are "drivers" named like the printer, so if you change the printer name, also rename the driver files. - Start the services.
Next Level
Usually best to just start over by running three commands.
sudo apt-get install --reinstall cups cups-browsed cups-client cups-common cups-daemon cups-server-common
then:
sudo systemctl daemon-reload
You can check the statuses with
service cups status
service cups-browsed status