How to Set Up a Printer on Parrot Linux With CUPS

Setting up a Parrot Linux printer is one of those tasks that should take two minutes but can quietly eat an afternoon if a driver or a service is missing. Parrot OS, like every Debian-based distribution, prints through CUPS (the Common Unix Printing System). Once CUPS is installed and running, most modern USB and network printers show up on their own. This guide walks through installing CUPS on Parrot Linux, adding a printer from the desktop or the web interface, choosing the right driver, and fixing the handful of problems that trip people up, such as a printer that is detected but never prints.

The commands below apply to Parrot 7.x (Debian 13 base) and work on the Home, Security and Architect editions. If you are on an older release, run cat /etc/os-release first; the package names are the same, but the desktop screenshots in your head may differ.

Check Whether CUPS Is Already Installed

The Home and Security editions ship with a desktop but do not always include the full printing stack, and a minimal Architect install certainly does not. Check before you install anything:

dpkg -l cups cups-browsed printer-driver-gutenprint 2>/dev/null | grep ^ii
systemctl status cups --no-pager

If dpkg prints nothing and systemctl reports that the unit could not be found, CUPS is not there yet. If the service exists but is inactive, you only need to start it (see the service section below).

Install CUPS on Parrot Linux

Refresh the package index and pull in CUPS plus the generic driver bundles that cover the majority of consumer printers:

sudo apt update
sudo apt install cups cups-browsed cups-filters printer-driver-gutenprint printer-driver-all system-config-printer

What each package does:

  • cups — the print server itself, the scheduler and the web interface on port 631.
  • cups-browsed — discovers network printers advertised over mDNS/DNS-SD (Bonjour) and IPP, so Wi-Fi printers appear without manual setup.
  • cups-filters — converts documents (PDF, PostScript, images) into whatever the printer understands.
  • printer-driver-gutenprint and printer-driver-all — a large set of open-source drivers for Canon, Epson, HP, Brother, Samsung and others.
  • system-config-printer — the graphical “Printers” tool. On KDE Plasma you can use the built-in Printers module in System Settings instead; on the MATE spin, system-config-printer is the one you want.

If you have been holding packages back or your mirror is slow, sort that out first; the guide on changing the Parrot Linux mirror explains how to pick a faster one.

Enable and Start the CUPS Service

On most installs the package postinst enables the service, but it costs nothing to be explicit:

sudo systemctl enable --now cups cups-browsed
systemctl is-active cups

Then add your user to the lpadmin group so you can manage printers without becoming root in the web interface:

sudo usermod -aG lpadmin $USER

Log out and back in for the new group to take effect. You can confirm with groups.

Add a USB Printer

Plug the printer in and turn it on. Then check that the kernel saw it:

lsusb
sudo lpinfo -v | grep -i usb

lpinfo -v lists every device URI CUPS can reach. A line such as direct usb://Brother/HL-L2350DW?serial=... means the hardware is detected and only needs a queue. The easiest way to create one is the graphical tool:

  1. Open Printers (KDE: System Settings → Printers; MATE: Menu → Administration → Printers).
  2. Click Add. The USB device should be listed under “Devices”. Select it.
  3. Pick the driver. CUPS searches its database by the model name it read from the printer; if the exact model is listed, use it. If not, choose the closest model from the same family, or the generic PCL/PostScript driver described later.
  4. Give the queue a short name without spaces (for example brother-hl) and finish. Print a test page.

Add the Same Printer From the Terminal

If you prefer a reproducible command, or you are on a headless Architect install, lpadmin does the same thing:

sudo lpadmin -p brother-hl -E -v "usb://Brother/HL-L2350DW?serial=XXXX" -m everywhere
sudo lpadmin -d brother-hl
lpstat -p -d

The -m everywhere option tells CUPS to use the driverless IPP Everywhere model, which works for most printers made in the last several years. If your printer is older and refuses it, list available PPDs with lpinfo -m | grep -i brother and pass the matching file to -m instead.

Add a Network or Wi-Fi Printer

With cups-browsed running and the printer on the same subnet, it usually appears in the Printers dialog within a few seconds. If it does not:

avahi-browse -rt _ipp._tcp
sudo lpinfo -v | grep -E 'ipp|socket|dnssd'

avahi-browse is part of avahi-utils; install it with sudo apt install avahi-utils if the command is missing. If the printer is advertised you will see its hostname and IP. Add it with the ipp:// URI that lpinfo printed, again using the driverless model:

sudo lpadmin -p office-printer -E -v ipp://192.168.1.50/ipp/print -m everywhere

Two things stop network discovery on Parrot OS more than anything else:

  • The firewall. If you followed a hardening guide and enabled nftables or ufw with a default-deny inbound policy, mDNS replies (UDP 5353) and IPP (TCP 631) may be blocked. Allow them from your LAN only; the Parrot Linux firewall guide shows the syntax for both tools.
  • AnonSurf or a VPN. When all traffic is routed through Tor or a VPN tunnel, local multicast discovery often breaks. Stop AnonSurf (sudo anonsurf stop) or disconnect the VPN while you set the printer up, then reconnect; a queue that was added by IP address will keep working.

Use the CUPS Web Interface

Every CUPS install also exposes a web admin page. Open http://localhost:631 in Firefox. The Administration tab lets you add printers, view jobs, and change server settings. When it asks for credentials, use your own username and password (that is why you joined lpadmin). The web interface is particularly useful for reading the error log at Administration → View Error Log, which is the same as:

sudo tail -f /var/log/cups/error_log

For noisy debugging, raise the log level temporarily:

sudo cupsctl --debug-logging
# ... reproduce the problem ...
sudo cupsctl --no-debug-logging

Choosing a Driver: Vendor, Gutenprint or Driverless

OptionBest forHow to get it
IPP Everywhere (driverless)Most printers from roughly 2015 onward, especially network modelsBuilt into CUPS; use -m everywhere
GutenprintOlder Epson and Canon inkjets, many lasersprinter-driver-gutenprint
HPLIPHP printers and all-in-ones, including scanningsudo apt install hplip; for some models also hplip-gui
Vendor .debBrother, some Canon and Samsung models with no open driverDownload from the manufacturer; install with sudo apt install ./file.deb
Generic PCL / PostScriptBusiness lasers when nothing else matchesSelect “Generic” in the driver list

Vendor packages built for Ubuntu usually install fine on Parrot OS because the base is Debian, but check the dependencies apt reports before you accept. If a vendor driver pulls in a conflicting version of libcups2, it is better to try Gutenprint or driverless first. The Debian wiki keeps a useful printing overview that lists which families need which package.

Printer Detected but Nothing Prints

This is the most common complaint. Work through these in order:

  1. Check the queue state. lpstat -p will say disabled or paused if CUPS stopped the queue after an error. Resume it with sudo cupsenable brother-hl and clear stuck jobs with sudo cancel -a.
  2. Read the error log while you resend a test page. Lines containing filter failed point to a missing driver or a document type CUPS cannot convert; reinstall cups-filters and the driver package.
  3. AppArmor. Parrot OS ships AppArmor enabled. A vendor driver that writes outside the paths the CUPS profile allows will be silently denied. Look for DENIED lines with sudo dmesg | grep -i apparmor | grep cups. Putting the profile into complain mode (sudo aa-complain /usr/sbin/cupsd) confirms the diagnosis; the site’s AppArmor page explains the modes.
  4. USB permissions. If lpinfo -v sees the printer only as root, your user is missing the lp group. Add it the same way you added lpadmin.
  5. Wrong URI after an IP change. Network printers that get a new DHCP lease stop responding. Either give the printer a static IP on your router or re-add it with the mDNS dnssd:// URI, which follows the name rather than the address.

Scanning on an All-in-One

CUPS handles only the printing half. For scanning you need SANE:

sudo apt install sane-airscan simple-scan
scanimage -L

sane-airscan adds driverless scanning for most modern network all-in-ones, in the same way IPP Everywhere does for printing. For HP devices, hplip already includes the scanner backend. If scanimage -L lists nothing, check the same firewall and VPN points covered above; scanner discovery uses the same multicast traffic.

Keeping Printing Working After Upgrades

A full system update occasionally replaces CUPS configuration files. If printing stops after you run parrot-upgrade, look for a cupsd.conf.dpkg-old in /etc/cups/ and compare it with the new file. The safe upgrade guide covers how to review such prompts rather than blindly accepting the maintainer’s version. Queues themselves live in /etc/cups/printers.conf and survive upgrades; back that file up along with your PPDs in /etc/cups/ppd/ if you ever reinstall.

If a printer that worked on another distribution refuses to behave on Parrot OS, it is worth checking the supported hardware notes and confirming that the kernel module for a USB-to-parallel adapter or similar oddity is loaded with lsmod | grep usblp.

FAQ

Do I need to open port 631 on the Parrot Linux firewall?

Only for inbound connections if you want other machines to print through this computer, or for network discovery replies. For printing from Parrot OS to a network printer, you need outbound access to the printer’s IPP port plus UDP 5353 for mDNS discovery, which most default-allow-outbound rulesets already permit.

Why does my printer show up twice?

One entry is the queue you created, the other is the temporary queue cups-browsed generated from the network advertisement. Either delete your manual queue or disable automatic creation by setting CreateIPPPrinterQueues No in /etc/cups/cups-browsed.conf and restarting the service.

Can I print from Parrot Linux inside a virtual machine?

Yes. For a USB printer, pass the device through to the guest in VirtualBox or VMware. For a network printer, use bridged networking so the VM is on the same subnet as the printer; NAT mode blocks the multicast discovery but still allows adding the printer by IP address.