Printing

Configure and manage local and network printers in MocaccinoOS using CUPS and desktop environment tools.

Printing

MocaccinoOS uses CUPS (Common Unix Printing System) to manage local and network printers.

CUPS provides a common printing infrastructure for Linux applications and desktop environments. It supports USB printers, network printers, and printers shared by other computers.

CUPS is pre-installed in MocaccinoOS, so no additional package installation is required.

CUPS Service

CUPS runs as a system service and handles printer discovery, print jobs and communication with printers.

Check whether the CUPS service is running:

1
$ systemctl status cups

If the service is not running, enable and start it:

1
$ sudo systemctl enable --now cups

To restart the service after changing its configuration:

1
$ sudo systemctl restart cups

Adding a Printer

There are several ways to configure a printer in MocaccinoOS. You can use the CUPS web interface or the printer-management tools provided by your desktop environment.

CUPS Web Interface

CUPS includes a web interface for managing printers and print jobs.

Open a browser and navigate to:

http://localhost:631

Select Administration and then Add Printer.

You may be prompted to authenticate. Use an account with the necessary administrative privileges.

CUPS will search for available printers. Select your printer from the list, or choose the appropriate connection type if it is not detected automatically.

Configure the Printer

When adding a printer, configure the following details:

  • Name: A short identifier without spaces, such as HP_OfficeJet.
  • Description: A human-readable description of the printer.
  • Location: An optional description of where the printer is located.

Select Continue to proceed with printer configuration.

Select a Driver

CUPS may automatically identify a suitable driver for your printer.

Whenever possible, prefer driverless printing. Many modern network printers support IPP Everywhere or AirPrint and can be configured without installing a separate printer driver.

If driverless printing is not supported, select an appropriate driver for your printer model. Some printers require manufacturer-specific drivers or PPD files.

After selecting the driver, configure the default printing options, such as:

  • Paper size.
  • Print quality.
  • Colour or monochrome printing.
  • Duplex (double-sided) printing.

Confirm the configuration to finish adding the printer.

Network Printers

MocaccinoOS supports printers connected directly to your local network as well as printers shared by another computer.

IPP and AirPrint

Most modern network printers support IPP (Internet Printing Protocol). Some also support driverless printing through IPP Everywhere or AirPrint.

To add a network printer, open the CUPS web interface and select Administration → Add Printer.

Choose the IPP connection type and enter the printer URI.

A common example is:

1
ipp://192.168.1.50/ipp/print

The exact URI depends on the printer model. Consult the printer manufacturer’s documentation if the example does not work.

Complete the printer configuration as described above.

Printers Shared by Another Linux Machine

A printer shared by another computer running CUPS can be accessed through the network.

If printer discovery is enabled and working on both systems, the shared printer may appear automatically.

Otherwise, add it manually using the following URI format:

1
ipp://192.168.1.10:631/printers/HP_OfficeJet

Replace the address and printer name with those configured on the computer sharing the printer.

The remote CUPS server must allow printer sharing and accept connections from your client.

Printers Shared by a Windows Machine

CUPS can also connect to printers shared through Windows printer sharing (SMB).

When adding a printer, select Windows Printer via SAMBA if this connection type is available.

A typical SMB printer URI looks like this:

1
smb://192.168.1.20/PrinterName

If the printer requires authentication, provide the appropriate Windows username and password.

SMB printer support depends on the required Samba client components being available on the system.

Managing Printers

You can manage installed printers through the CUPS web interface at http://localhost:631.

Under the Printers section, you can:

  • View installed printers.
  • Pause or resume a printer.
  • Set a default printer.
  • View and cancel print jobs.
  • Change printer options.
  • Remove a printer.

Command-Line Management

CUPS also provides command-line tools for inspecting printers and managing print jobs.

List configured printers:

1
$ lpstat -p

Display the default printer:

1
$ lpstat -d

Show the complete printing status:

1
$ lpstat -t

List available printer devices:

1
$ lpinfo -v

List pending print jobs:

1
$ lpstat -o

Cancel a print job using its job identifier:

1
$ cancel <job-id>

For additional information, consult the corresponding manual pages:

1
2
3
$ man lpstat
$ man lpinfo
$ man cancel

Printing on Different Desktop Environments

CUPS provides the underlying printing infrastructure, while desktop environments offer their own interfaces for adding and managing printers.

KDE Plasma

KDE Plasma integrates printer management into System Settings.

Open System Settings → Printers.

Select Add Printer to search for available printers. Choose the printer you want to configure and follow the instructions.

You may be asked to authenticate with your administrator password.

Existing printers, print jobs and default printer settings can also be managed from this section.

GNOME

GNOME provides printer management through its Settings application.

Open Settings → Printers.

Unlock the settings if required, then select Add Printer. GNOME will search for available local and network printers.

Select your printer and follow the configuration instructions.

Existing printers can be managed from the same section.

XFCE

Depending on the installed applications, XFCE provides printer management through its settings tools or a dedicated printer configuration application.

If no printer-management application is available, use the CUPS web interface at http://localhost:631.

MATE

MATE installations may provide printer management through the Control Center or a dedicated printer configuration application.

If the printer configuration tool is not available, use the CUPS web interface at http://localhost:631.

COSMIC

COSMIC installations may not provide the same printer-management interface as KDE Plasma or GNOME.

Use the CUPS web interface at http://localhost:631 to add and manage printers.

Troubleshooting

CUPS Is Not Running

Check the service status:

1
$ systemctl status cups

If necessary, start the service:

1
$ sudo systemctl start cups

To enable it automatically at boot:

1
$ sudo systemctl enable cups

The Printer Is Not Detected

For a USB printer, check whether the device is detected:

1
$ lsusb

For a network printer, verify that it is reachable:

1
$ ping 192.168.1.50

You can also inspect the devices known to CUPS:

1
$ lpinfo -v

Check the printer’s connection, network configuration and power status.

Inspect the current print queue:

1
$ lpstat -o

Cancel a specific job:

1
$ cancel <job-id>

If necessary, restart CUPS:

1
$ sudo systemctl restart cups

The Printer Is Detected but Does Not Print

Check whether the correct driver or driverless printing method is selected.

Also verify that:

  • The printer is online and ready.
  • The selected paper size and printing options are supported.
  • The printer has no paper or hardware errors.
  • The print queue does not contain failed jobs.

Inspect CUPS Logs

Use the system journal to inspect CUPS-related messages:

1
$ sudo journalctl -u cups -b

For additional diagnostic information, you can temporarily enable CUPS debug logging:

1
$ sudo cupsctl --debug-logging

After reproducing the problem, inspect the CUPS error log:

1
$ sudo less /var/log/cups/error_log

Disable debug logging when finished:

1
$ sudo cupsctl --no-debug-logging

Further Reading

Last modified November 29, 2026: Update SFTP (f553589)