How to Set Up a Printer on Linux Using CUPS on Ubuntu and Fedora
Joe B.
Reviewed for technical accuracy
Specialities: Linux (Ubuntu/Fedora/Debian), CUPS, Printers, Networking, Office Equipment
Set up a printer on Linux — Ubuntu 22.04/24.04, Fedora 39/40, Debian — CUPS, IPP Everywhere, HPLIP, Gutenprint
Quick answer: the accepted fix
Accepted fix for Linux printer setup (Ubuntu/Fedora): ensure CUPS is enabled, allow mDNS/IPP in the firewall, then add the printer via IPP Everywhere (driverless) in GNOME Settings or http://localhost:631. If features require it, install HPLIP (HP) or Gutenprint (Epson/Canon), recreate the queue, and print a test page.
Printer discovered but not printing on Linux (Ubuntu/Fedora)
If printer shows in Linux but won’t print, restart CUPS, open mDNS/IPP ports, and re-add using IPP Everywhere. For HP/Epson/Canon photo models, try HPLIP or Gutenprint and ensure the correct PPD is selected.
How to verify Linux printing works
Run lpstat -p -d to confirm the default queue, then print from CUPS web UI or lp /usr/share/cups/data/testprint. If output is faint/garbled, switch to a vendor driver (HPLIP/Gutenprint) or recreate the queue with driverless protocol.
Linux printing — troubleshooting tips
Most Linux printing issues come from disabled CUPS, blocked discovery, or a mismatched driver.
Quick path: verify CUPS service → allow mDNS/IPP → try IPP Everywhere → install HPLIP/Gutenprint if needed → test with lpstat and lpoptions. For USB devices, use ipp-usb and a good cable/port.
Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your environment, please consult a verified expert on Whizz-Tech before making decisions.
Getting Started Is Easy
Ask for help, 24/7
Members enjoy round-the-clock access to 12,000+ verified Experts, including tech support, mechanics, vets, and more.
Expert will respond in minutes
We match you with an Expert who specializes in your situation. Talk, text, or chat — whichever you prefer.
Save time & money
No scheduling hassles or expensive consults. Membership can save you significant time and money each month.
FAQ
What is the best way to add a printer on Linux?
Use IPP Everywhere (driverless) through Settings → Printers → Add or http://localhost:631. It’s reliable for modern HP/Epson/Canon/Brother devices and avoids manual PPD selection.
When should I install HPLIP or Gutenprint?
Install HPLIP for HP features like ink levels and scanning; install Gutenprint for improved output on many Epson/Canon photo printers or when driverless output is poor.
Why does my printer not show up on Fedora/Ubuntu?
Usually CUPS isn’t running or the firewall blocks discovery. Enable CUPS and allow mDNS/IPP services. Then re-add the printer using driverless mode.
How do I enable the CUPS web interface?
Run sudo cupsctl WebInterface=Yes and restart CUPS with sudo systemctl restart cups, then open http://localhost:631.
Can I share printers from a Linux server?
Yes. Configure a CUPS print server, enable Avahi for service discovery, and point clients to the server via IPP.
| Symptom | Likely cause | Quick fix |
|---|---|---|
| Printer discovered, not printing | CUPS not running; firewall blocks IPP | Enable CUPS; allow mdns/ipp; re-add as driverless |
| Garbled output | Wrong PPD/driver | Switch to IPP Everywhere or install HPLIP/Gutenprint |
| USB printer disconnects | No ipp-usb; bad cable/hub |
Install ipp-usb; use direct port; recreate ipp:// queue |
| Can’t open CUPS UI | WebInterface disabled | sudo cupsctl WebInterface=Yes; restart CUPS |
Step‑by‑step (Ubuntu)
- Install packages:
sudo apt install cups system-config-printer avahi-daemon printer-driver-gutenprint hplip ipp-usb. - Enable:
sudo systemctl enable --now cups; add user tolpadmin. - Add via Settings → Printers using IPP Everywhere or
http://localhost:631. - Test with
lpstat -p -dand print a test page.
Step‑by‑step (Fedora)
- Install:
sudo dnf install cups cups-filters system-config-printer gutenprint hplip. - Enable:
sudo systemctl enable --now cups; allowmdns,ipp,ipp-clientin firewalld. - Add the printer using IPP Everywhere or vendor PPD if needed.
- Verify with
lpinfo -v,lpoptions -p PRN -l, and a test print.
Sources
- OpenPrinting — IPP Everywhere
- Debian Wiki — CUPS quick queues
- HP — HPLIP
- Linux Foundation — OpenPrinting
Filed under: macOS printing & CUPS
Related articles
- Mac Printer Idle Jobs Paused — CUPS Error Log Fix Guide
- Canon printer queue “Hold for Authentication” macOS fix
- Move a printer to a new PC/Mac — migration checklist
- Linux Snap apps can’t print — CUPS socket link fix
- Fedora PDF background missing — poppler flag
- Ubuntu sandboxed PDF viewer wrong color — Ghostscript route (print/render)
- CUPS Bad Request or TLS Error on Linux — What's Breaking It and How to Fix It
- Linux cups-browsed gives wrong PPD — force assign (without breaking auto-discovery)