CUPS: Difference between revisions
From DikapediaV2
(Created page with "<b>CUPS</b> (Common UNIX Printing System) is a modular printing system for Unix-like operating systems which allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer ====Install CUPS==== ---- This was tested on <b>RHEL8.10</b> Install CUPS as root: yum install -y cups yum install -y samba-client systemctl start cups systemctl enable cups...") |
No edit summary |
||
Line 50: | Line 50: | ||
=====Check CUPS logs:===== | =====Check CUPS logs:===== | ||
dzdo journalctl -u cups -e | dzdo journalctl -u cups -e | ||
dzdo journalctl -u cups - | dzdo journalctl -u cups -f |
Latest revision as of 21:27, 3 April 2025
CUPS (Common UNIX Printing System) is a modular printing system for Unix-like operating systems which allows a computer to act as a print server. A computer running CUPS is a host that can accept print jobs from client computers, process them, and send them to the appropriate printer
Install CUPS
This was tested on RHEL8.10
Install CUPS as root:
yum install -y cups yum install -y samba-client systemctl start cups systemctl enable cups
Then configure the CUPS configuration file:
chmod 666 /etc/cups/cupsd.conf vim /etc/cups/cupsd.conf
(The configuration of this file may vary depending on your organization or home setup)
Configure Require valid-user like so:
# All administration operations require an administrator to authenticate... <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices> AuthType Default Require valid-user Order deny,allow </Limit>
Restart the server:
systemctl restart cups
Then open a browser and go to: http://localhost:631/admin.
Add a Printer
You can add a printer through the CUPS Web UI or via command line
<under construction!>
Useful Commands
Check if Printer is enabled:
lpstat -p lpstat -p <printer name>
Check CUPS logs:
dzdo journalctl -u cups -e dzdo journalctl -u cups -f