Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

How to set up a CUPS print server running Fedora Server for an HP printer, and connect to it from your Fedora Workstation:

Run these commands on the server:

dnf install cups hplip
systemctl start cups
firewall-cmd --zone=FedoraServer --add-service=ipp
firewall-cmd --zone=FedoraServer --add-service=ipp --permanent

Then go to the CUPS Web admin at http://[server]:631 and go to the "Administration" page. Check the "Share printers connected to this system" box and save. Click the "Add Printer" button, and fill out all your printer's information.

Then, on your workstation, go to add the printer and type in the server's domain name/IP. After you add the printer, click on the printer model and choose "Select from database..." Pick the manufacturer "Raw" and the device type "Raw queue." Otherwise you will get weird untraceable errors.

@agriffis

This comment has been minimized.

Copy link

commented May 17, 2018

CUPS on Fedora only listens on localhost by default. So in addition to opening the firewall, you also need to fix that:

sed -i -e 's/^Listen localhost:631$/Port 631/' /etc/cups/cupsd.conf
systemctl restart cups

and you need to enable remote administration as well. This command does the trick:

cupsctl --remote-admin --remote-any --share-printers --user-cancel-any
systemctl restart cups
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.