Adding a Printer to the CUPS Server
This guide explains how to add a printer to your CUPS (Common UNIX Printing System) server. Follow these steps to ensure your printer is configured correctly and accessible through the network.
Prerequisites
Before adding a printer, ensure the following:
-
CUPS Server is Installed and Running:
- If CUPS is not installed, follow the CUPS Setup Guide to set up the server.
- Confirm that the CUPS web interface is enabled.
- the cups server must have static ip address.
-
Administrator Access:
- You must have administrator credentials for the CUPS server to configure printers.
-
Network Connectivity:
- Ensure the printer is connected to the network and reachable via IP address or hostname.
Steps to Add a Printer
1. Access the CUPS Web Interface:
Open a web browser and go to the CUPS web interface by navigating to: http://<cups-server-ip>:631. replace <cups-server-ip> with the cup server IP address
2. Log In as Administrator:
Click on any administrative task (e.g., "Administration") and log in with your CUPS admin username and password.
3. Start Adding a Printer:
In the
Administration tab, click on
Add Printer.
a. Adding A network Printer
CUPS will display a list of detected printers (both local and networked). If your printer does not appear, you can manually enter its connection information (e.g., socket://<printer-ip> or socket://<printer-ip>:9100)
b. Adding A USB Printer
Adding a USB PrinterCups will automatically detect the supported USB printers. you should see your printer the list, incase it did not show make sure the printer is connected properly and it is turned on.
c. Adding a printer behind windows printer server.
Adding a printer shared by windows printer server is little tricky. You will need a valid user from the active directory inorder to authenticate to the print server. Add a network printer and construct the URL using below format.
http://<username>:<password>@print_server_url/printer_path
e.g. http://john:wallace@192.168.1.200/printers/zebra_gt410_printer
4. Name Your Printer:
Provide a unique name, description, and location for the printer.
Check the option
Share This Printer. If this option is not checked the printer will only be accessible to the local host.
5. Select the Printer Driver:
Choose the appropriate printer driver from the list provided by CUPS.
If your printer driver is not listed, upload a PPD (PostScript Printer Description) file provided by the printer manufacturer.
6. Set Default Options:
Configure default options for the printer, such as paper size, resolution, and duplex printing.
7. Test the Printer:
Once the printer is added, go to the
Printers tab and locate the newly added printer.
Click
Print Test Page to verify the configuration.
Troubleshooting Tips
- Printer Not Detected: Ensure the printer is powered on, connected, and reachable on the network. Check the connection protocol.
- Driver Issues: If the driver is unavailable, download the correct PPD file from the printer manufacturer’s website.
- Permission Errors: Verify that the CUPS admin account has the necessary permissions to add printers.