How to Install Printer on CentOS
In this article, we will go through the step-by-step process of installing a printer on CentOS Linux. Installing a printer on CentOS can be a straightforward process, but sometimes it may require some manual configuration and troubleshooting. If you are new to CentOS, don't worry; we will go through each step in detail to ensure that you can configure your printer successfully.
Step 1: Check for Printer Drivers
Before you start, you need to check if your printer vendor provides PPD (PostScript Printer Description) files for your model. If they do, you can proceed with the installation process. Let's take the example of a Kyocera FS-1920 printer. You can check if the PPD file for your printer model is available on the vendor's website.
Launch the Terminal and type the following command to check for driver availability:
Step 2: Install CUPS Package
Next, you need to install the CUPS (Common Unix Printing System) package on your CentOS system. CUPS is a print server software that manages printing tasks on Linux systems. To install CUPS, run the following command:
- sudo yum install cups
This command will install CUPS on your CentOS system. If you encounter any errors during the installation process, you can try installing CUPS using the RPM package manager:
- sudo yum localinstall cups
Step 3: Set Up Printer

Now that CUPS is installed, you need to set up your printer. You can do this using the LPADMIN tool, which is a graphical interface for managing printers on Linux systems. To start LPADMIN, run the following command:
- sudo lpadmin
LPADMIN will open, and you can start adding a new printer by clicking on the "New Printer" button. Select the printer connection type and provide its details in the "New Printer" dialog box. Click "Add" to add the printer to your system.
After adding the printer to your system, you need to configure its settings. Click on the "Printer Settings" button to open the printer settings dialog box. You can configure various settings, such as paper size, paper source, and printer mechanism, from this dialog box.
Most printers use network protocols to communicate with the printer server. You need to configure your system's firewall to allow incoming connections on the printer port. To do this, run the following command:
- sudo firewall-cmd --permanent --zone=public --add-service=ipp
Restart the firewall service by running the following command:
Conclusion
Common Issues and Troubleshooting
There are some common issues you may encounter during the installation process. These include:

- PPD file not available: Try to check if the PPD file for your printer model is available on the vendor's website.
- CUPS not installed: Run the command "sudo yum install cups" to install CUPS.
- Printer not recognized: Try restarting your printer and test if it's working correctly.
Remember to always check the vendor's documentation and online resources for more information on installing printers on Linux systems.
Here are some additional tips and resources that may help you with installing printers on CentOS:
- Check the CUPS documentation for more information on installing and configuring CUPS.
- Visit the Linux Printer HOWTO website for a comprehensive guide to printing on Linux systems.
- Consult the official documentation for your printer vendor for more information on installing the printer on CentOS.
Update: Installing PrintDriver on CentOS
Since CentOS 7, you can use the "hp-check" command to detect your printer and install the correct driver. To do this, run the following command:
- sudo hp-check -d
This command will detect your printer and install the correct driver. You can also use the "hp-config" command to view and manage your printer settings:
- sudo hp-config
For further assistance, you can consult the following resources:
- CentOS Documentation
- CUPS Documentation