Printing
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:
|
|
If the service is not running, enable and start it:
|
|
To restart the service after changing its configuration:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
Display the default printer:
|
|
Show the complete printing status:
|
|
List available printer devices:
|
|
List pending print jobs:
|
|
Cancel a print job using its job identifier:
|
|
For additional information, consult the corresponding manual pages:
|
|
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:
|
|
If necessary, start the service:
|
|
To enable it automatically at boot:
|
|
The Printer Is Not Detected
For a USB printer, check whether the device is detected:
|
|
For a network printer, verify that it is reachable:
|
|
You can also inspect the devices known to CUPS:
|
|
Check the printer’s connection, network configuration and power status.
Print Jobs Are Stuck
Inspect the current print queue:
|
|
Cancel a specific job:
|
|
If necessary, 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:
|
|
For additional diagnostic information, you can temporarily enable CUPS debug logging:
|
|
After reproducing the problem, inspect the CUPS error log:
|
|
Disable debug logging when finished:
|
|
Further Reading
- CUPS Documentation
- CUPS Administration Guide
- CUPS Command-Line Printing
- IPP Everywhere
- Gentoo Wiki: CUPS