How to configure and use printers and scanners on Kirin operating system?

WBOY
Release: 2023-08-06 09:25:08
Original
13326 people have browsed it

How to configure and use printers and scanners on Kirin operating system?

As an operating system based on Linux distribution, Kirin operating system is widely used in China. In order to meet the needs of different users, Kirin operating system provides easy-to-use printer and scanner configuration and use methods. This article will tell you how to configure and use printers and scanners on Kirin OS, and provide corresponding code examples.

Printer configuration and usage

Kirin operating system uses CUPS (Universal UNIX Printing System) as the printer management system. Before configuring and using the printer, we need to install CUPS. Open the terminal and execute the following command to install:

sudo apt-get install cups
Copy after login

After the installation is completed, we can access the CUPS management interface through http://localhost:631/. Next, let's configure the printer.

  1. Connect the printer: Connect the printer to the computer and make sure the printer is on.
  2. Open the CUPS management interface: Enter http://localhost:631/ in the browser to enter the CUPS management interface.
  3. Add a printer: Click the "Add Printer" button on the interface. In the pop-up dialog box, select the printer to be added and click "Continue".
  4. Configure the printer: According to the brand and model of the printer, select the corresponding driver. If a printer driver is already installed on the system, CUPS will automatically detect and provide the available driver.
  5. Complete configuration: Complete the printer configuration according to the guidance of the wizard. Once configured, you can select the printer in the application to print to.

Scanner configuration and use

Kirin operating system uses SANE (Scanner Access Now Easy) as the scanner management system. Before configuring and using the scanner, we need to install SANE. Open the terminal and execute the following command to install:

sudo apt-get install sane
Copy after login

After the installation is completed, we can configure and use the scanner through the terminal command line or scanning software.

  1. Connect the scanner: Connect the scanner to the computer and make sure the scanner is on.
  2. Configure scanner: Open the terminal and execute the following command:
scanimage -L
Copy after login

This command will scan the scanners available in the system. If the scanner is successfully detected, the scanner's device name will be printed.

  1. Start scanning: Execute the following command to scan:
scanimage > output.pnm
Copy after login

This command will save the scanned image as a PNM format file. You can modify the scanned output format and file name as needed.

Code sample:

Printer configuration code sample:

// 添加打印机
lpadmin -p printer_name -E -v printer_uri -m printer_model
Copy after login

Scanner configuration code sample:

// 扫描仪检测
scanimage -L
Copy after login
// 扫描
scanimage > output.pnm
Copy after login

Through the above steps and code samples, you can Easily configure and use printers and scanners on Kirin OS. Whether printing or scanning documents, Kirin OS provides simple and easy-to-use solutions. Hope this article helps you!

The above is the detailed content of How to configure and use printers and scanners on Kirin operating system?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!