Skip to main content

Installing CUPS server

To install the server the cupsd package and dependencies need to be downloaded.

dnf install cups -y

After installation only a couple of items need to be changed under

/etc/cups/cupsd.conf

Find Listen 127.0.0.1:631 and replace with

Listen *:631

Confirm the following is enabled

Browsing On
BrowseLocalProtocols dnssd

Edit these two sections as follows

# Restrict access to the server...
<Location />
 Order allow,deny
 Allow @LOCAl
</Location>
# Restrict access to the admin pages...
<Location /admin>
 AuthType Default
 Require valid-user
 Order allow,deny
 Allow @LOCAL
</Location>

This line can be added near the top if a 400 bad request is happening due to DNS problems or the gold image that is being used.

ServerAlias *

Save. Now add the firewall rules

firewall-cmd --add-port=631/tcp --permanent
firewall-cmd --reload

Restart cups

systemctl restart cups