SDB:Installing a Printer
Overview
openSUSE uses a modern printing stack based on:
- CUPS (2.4+)
- Driverless IPP printing (IPP Everywhere / AirPrint)
- libusb for USB printer access
Most modern printers work automatically without installing additional drivers.
Driverless Printing
Most modern printers support IPP Everywhere. Driverless printer discovery relies on mDNS (Multicast DNS) via Avahi. When discovery is working, usually no explicit configuration is required, however the openSUSE firewall may need adjusting to permit discovery.
openSUSE Leap, Tumbleweed, and Slowroll use firewalld by default.
You can verify or adjust firewall settings using:
- Cockpit (Web UI)
- firewall-cmd (CLI)
- firewall-config (GUI)
Allow mDNS via CLI
sudo firewall-cmd --add-service=mdns --permanent sudo firewall-cmd --reload
Verify that mDNS is enabled with
firewall-cmd --list-services
The output should include 'mdns'.
For most home or trusted LAN environments, allowing the mdns service is sufficient for automatic printer discovery.
Manual IPP Addition
If automatic discovery does not work (for example because mDNS is blocked), you can manually add the printer using the CUPS web interface:
http://localhost:631/admin
- Click Add Printer
- Authenticate as root or a user in the lpadmin group
- Choose Internet Printing Protocol (IPP)
- Enter the printer URI
ipp://printer-ip/ipp/print ipps://printer-ip/ipp/print
If the printer supports driverless IPP, CUPS will configure it automatically without requiring a PPD file.
Traditional PPD-Based Drivers
Some printers require traditional PPD-based drivers, either open-source or vendor-provided.
These are typically needed when the printer:
- Does not support IPP Everywhere / AirPrint
- Is USB-only and legacy
- Is an older model (<2013)
- Requires a manufacturer-specific driver
In Leap 16, the basic CUPS environment is provided for by the OSS repo. Additional driver support may require the Printing repository, which provides packages such as:
- printer-driver-brlaser (supporting some Brother laser printers)
- splix (supporting some Samsung and Xerox SPL printers)
- epson-inkjet-printer-escpr
- Updated hplip versions
To configure such a printer, first install the appropriate driver package. Some vendors provide their own installation scripts or utilities to facilitate this process. Otherwise, create a new print queue using the CUPS web interface (http://localhost:631), a desktop utility such as KDE Print Manager or GNOME Settings, or the lpadmin command-line tool. During setup, select the correct connection (USB, socket, IPP, etc.), then choose the appropriate Make and Model, which associates the installed PPD provided by the driver package with the printer queue.
Enable the Printing repository only if your printer does not work with driverless IPP (check firewall first), or requires a specific driver not available in the OSS repo.
Printing Repo
Some printers require PPD-based drivers or newer open-source drivers not included in the default OSS repo. These may be available in the Printing repository.
Adding the Printing Repository
Leap 16.0:
sudo zypper ar -f https://download.opensuse.org/repositories/Printing/16.0/ Printing sudo zypper refresh
Tumbleweed:
sudo zypper ar -f https://download.opensuse.org/repositories/Printing/openSUSE_Tumbleweed/ Printing sudo zypper refresh
Install the required packages eg
sudo zypper install printer-driver-brlaser splix epson-inkjet-printer-escpr gutenprint hplip