27
October
2021
Install a network printer on Linux using CUPS
15:33

Install a network printer on Linux using CUPS

27 October 2021 15:33

Installing a network printer in the Linux operating system.

Preparation

  1. Let's check that the CUPS service is allowed to start, start the CUPS service

sudo systemctl enable cups

or

sudo service cups enable

let's start the service:

sudo systemctl start cups

Checking the status of the CUPS service:

/etc/init.d/cups status

It should be written in green that the service is running:
"Active: active (running)"

  1. You need to add the user (yourself) to the lpadmin group:

sudo usermod -a -G lpadmin username

or for short

sudo usermod -aG lpadmin username

where username- Your username.

Login to the CUPS web interface

http://localhost:631/

Add a printer in the CUPS web interface

Open the item

Administration - Find new printers or

Administration - Add Printer

This item starts detection of network printers on the local network.
All found printers will be presented in a list. Next to the desired printer, click the button "Add This Printer" or put a dot (depending on the menu).

For example, in my case, the required printer that I am installing is a multifunctional device (MFP)"Kyocera Kyocera ECOSYS M2540dn (KPDL) (Kyocera ECOSYS M2540dn)"

printers

I press the button "Add This Printer".

Downloading and specifying the PPD printer driver

The next window provides a brief description of the printer. You cannot change the parameters, except for a comment in which you can enter the room where the printer is installed, for example, “hall”.
continue

Clicked the "Continue" button.

The fun begins 😀 - searching and selecting a printer driver.

  • In the "Make" list, you should not select the printer manufacturer, in this case "Kyocera",
    since we will use PPD file specifically designed for this printer model.

A) You need to download the PPD driver itself. You can do this by searching on the Internet:
search
results:
result

The search leads to the official Kyocera website.
https://dlc.kyoceradocumentsolutions.eu/index/service/

On which we check that the desired printer model and operating system - Linux are selected
advanced

Download the archive with PPD files: link "Linux Driver"
download2
We accept the license agreement and the download begins.
dl

Expand the downloaded archive.
It contains a folder EU - English, where I selected the model of this printer.
I extract the PPD driver we need for the printer model into the “Downloads” folder.
extract

The PPD file must exactly match your printer model.

After extracting the PPD file from the archive.
specify the file name in the "Or Provide a PPD file" field. Select the newly extracted PPD file in Explorer.
ppd2

Press the button "Add printer". A window immediately appears with default settings - we configure it in accordance with the hardware.
Since in my case there are no additional options installed, I select “Not Installed” everywhere
default
I press the button "Set default options", this completes the wizard.

The printer is installed. Now you can do a test print to the printer from any text editor program, for example, gedit, xed, geany, mousepad or leafpad.



Related publications