mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-23 21:20:42 +08:00
Update 20210821 How to set up your printer on Linux.md
translated
This commit is contained in:
parent
3b1ced8a61
commit
d259dd3687
@ -7,85 +7,80 @@
|
||||
[#]: publisher: " "
|
||||
[#]: url: " "
|
||||
|
||||
How to set up your printer on Linux
|
||||
如何在 Linux 系统设置打印机
|
||||
======
|
||||
In the event that your printer isn't auto-detected, this article teaches
|
||||
you how to add a printer on Linux manually.
|
||||
如果系统没有自动检测到你的打印机,这篇文章教你任何在 Linux 系统手动添加打印机。
|
||||
![printing on Linux][1]
|
||||
|
||||
Even though it's the future now and we're all supposed to be using e-ink and AR, there are still times when a printer is useful. Printer manufacturers have yet to standardize how their peripherals communicate with computers, so there's a necessary maze of printer drivers out there, regardless of what platform you're on. The IEEE-ISTO Printer Working Group (PWG) and the OpenPrinting.org site are working tirelessly to make printing as easy as possible, though. Today, many printers are autodetected with no interaction from the user.
|
||||
即使未来已来,电子墨水 (e-ink) 和 AR 技术可以现实应用,我们还是会用到打印机的。打印机制造商还不能做到让自己的专利打印机可以与各种计算机完全标准化传递信息,以至于我们需要各种打印机驱动程序,在任何操作系统上都是如此。电子电气工程师协会信息科学与技术处 (IEEE-ISTO) 下属的打印机工作组 (PWG) 和开放打印技术组织 (OpenPrinting.org) 长期合作致力于让人们可以(使用任何型号打印机)轻松打印。带来的便利就是,很多打印机可以不需要用户进行配置就可以自动被识别使用。
|
||||
|
||||
In the event that your printer isn't auto-detected, this article teaches you how to add a printer on Linux manually. This article assumes you're on the GNOME desktop, but the basic workflow is the same for KDE and most other desktops.
|
||||
如果系统没有自动检测到你的打印机,你可以在这篇文章中找到如何在 Linux 系统手动添加打印机。文中假定你使用的是 GNOME 图形桌面系统,其设置流程同样适用于 KDE 或其他多数桌面系统。
|
||||
|
||||
### Printer drivers
|
||||
### 打印机驱动程序
|
||||
|
||||
Before attempting to interface with a printer from Linux, you should first verify that you have updated printer drivers.
|
||||
在你尝试用打印机打印文件时,要先确认你的 Linux 系统上是不是已经安装了匹配的打印机驱动程序。
|
||||
|
||||
There are three varieties of printer drivers:
|
||||
可以尝试安装的打印机驱动程序有三大类:
|
||||
|
||||
* Open source [Gutenprint drivers][2] bundled with Linux and as an installable package
|
||||
* Drivers provided by the printer manufacturer
|
||||
* Drivers created by a third party
|
||||
* 在你的 Linux 系统作为安装包提供的开源打印机驱动程序 [Gutenprint drivers][2]
|
||||
* 打印机制造商提供的专用驱动程序
|
||||
* 第三方开发提供的打印机驱动程序
|
||||
|
||||
|
||||
|
||||
It's worth installing the open source drivers because there are over 700 of them, so having them available increases the chance of attaching a printer and having it automatically configured for you.
|
||||
开源打印机驱动程序库可以驱动 700 多种打印机,值得安装,这里面可能就有你的打印机的驱动,说不定可以自动设置好你的打印机(,你就可以使用它了)。
|
||||
|
||||
### Installing open source drivers
|
||||
### 安装开源驱动程序包(库)
|
||||
|
||||
Your Linux distribution probably already has these installed, but if not, you can install them with your package manager. For example, on Fedora, CentOS, Mageia, and similar:
|
||||
有些 Linux 发行版已经预装了开源打印机驱动程序包,如果没有,你可以用包管理器来安装。比如说,在 Fedora, CentOS, Magela 等类似发行版的 Linux 系统上,执行下面命令来安装:
|
||||
|
||||
|
||||
```
|
||||
`$ sudo dnf install gutenprint`
|
||||
```
|
||||
|
||||
For HP printers, also install Hewlett-Packard's Linux Imaging and Printing (HPLIP) project. For example, on Debian, Linux Mint, and similar:
|
||||
惠普 (HP) 系列的打印机,还需要安装惠普的 Linux 图形及打印系统软件包 (Hewlett-Packard's Linux Imaging and Printing (HPLIP) ). 类似 Debian, Linux Mint 等系列的系统,使用下面的命令:
|
||||
|
||||
|
||||
```
|
||||
`$ sudo apt install hplip`
|
||||
```
|
||||
|
||||
### Installing vendor drivers
|
||||
### 安装制造商提供的驱动程序
|
||||
|
||||
Sometimes a printer manufacturer uses non-standard protocols, so the open source drivers don't work. Other times, the open source drivers work but may lack special vendor-only features. When that happens, you must visit the manufacturer's website and search for a Linux driver for your printer model. The install process varies, so read the install instructions carefully.
|
||||
很多时候因为打印机制造商使用非标准的接口协议,这种情况开源打印机驱动程序就不能驱动打印机。另外的情况就是,开源驱动程序可以驱动打印机工作,但是会缺少品牌特有的有些性能。这些情况,你需要访问制造商的网站,找到适合你的打印机型号的 Linux 平台驱动。安装过程各异,仔细阅读安装指南逐步安装。
|
||||
|
||||
In the event that your printer isn't supported at all by the vendor, there are [third-party driver authors][3] that may support your printer. These drivers aren't open source, but neither are most vendor drivers. It's frustrating to have to spend an extra $45 to get support for a printer, but the alternative is to throw the printer into the rubbish, and now you know at least one brand to avoid when you purchase your next printer!
|
||||
即便是厂家的驱动也不能驱动你的打印机工作,你或许也只能尝试第三方提供的该型号打印机的驱动软件 ([third-party driver authors][3]) 了。这类第三方驱动程序不是开源的,和打印机专用驱动程序一样闭源。如果你需要额外花费 45 美元(约 400 员人民币)从供应商那里获取帮助服务才能安装好驱动并使用你的打印机,那是很心疼,或者你索性把这台打印机扔掉,至少你知道下次再也不会购买这个品牌的打印机了。(译者注:国内售后服务收费没有北美那么高,有需要还是先电话咨询售后,有没有 Linux 平台的专用驱动可真是碰运气。)
|
||||
|
||||
### Common Unix Printing System (CUPS)
|
||||
### 统一接口打印驱动系统(CUPS)
|
||||
|
||||
The Common Unix Printing System (CUPS) was developed in 1997 by Easy Software Products, and purchased by Apple in 2007. It's the open source basis for printing on Linux, but most modern distributions provide a customized interface for it. Thanks to CUPS, your computer can find printers attached to it by a USB cable and even a shared printer over a network.
|
||||
统一接口打印驱动系统 (CUPS) 是由 Easy Software Products 公司于 1997 年开发的,2007 年被苹果公司 (Apple) 收购。这是 Linux 平台打印的开源基础软件包,很多改进的发行版本提供定制化的界面。得益于 CUPS 技术,你可以发使用通过 USB 接口连接到电脑的打印机,甚至连接在同一网络的共享打印机。
|
||||
|
||||
Once you've gotten the necessary drivers installed, you can add your printer manually. First, attach your printer to your computer and power them both on. Then open the **Printers** application from the **Activities** screen or application menu.
|
||||
|
||||
![printer settings][4]
|
||||
一旦你安装了需要的驱动程序包,你就能手工添加你的打印机了。首先,把打印机连接到运行的电脑上,并打开打印机电源。然后从启动器 **(Activities**)或者应用列表中找到并打开打印机设置**(Printers)**。![printer settings][4]
|
||||
|
||||
CC BY-SA Opensource.com
|
||||
|
||||
There's a possibility that your printer is autodetected by Linux, by way of the drivers you've installed, and that no further configuration is required.
|
||||
基于你已经安装的驱动包,你的 Linux 系统有可能自动检测识别到你的打印机型号,不需要额外的设置就可以使用你的打印机了。
|
||||
|
||||
![printer settings][5]
|
||||
|
||||
CC BY-SA Opensource.com
|
||||
|
||||
Provided that you see your printer listed, you're all set, and you can already print from Linux!
|
||||
一旦你在列表中找到你的打印机型号,设置使用这个驱动,恭喜你就可以在 Linux 系统上用它打印了。
|
||||
|
||||
If you see that you need to add a printer, click the **Unlock** button in the top right corner of the **Printers** window. Enter your administrative password and the button transforms into an **Add** button.
|
||||
(如果你的打印机没有被自动识别,)你需要自行添加打印机。在打印机设置界面**(Printers)**,点击右上角的解锁按钮(**Unlock**),输入管理用户密码,按钮转换成**添加打印机**按钮 (**Add**) 。
|
||||
|
||||
Click the **Add** button.
|
||||
|
||||
Your computer searches for attached printers (also called a _local_ printer). To have your computer look for a shared network printer, enter the IP address of the printer or its host.
|
||||
然后点击这个**添加打印机**按钮 (**Add**) ,电脑会搜索已经连接的本地打印机型号并匹配相应驱动程序。如果要添加网络共享打印机,在搜索框输入打印机或者其服务器机的 IP 地址。
|
||||
|
||||
![searching for a printer][6]
|
||||
|
||||
CC BY-SA Opensource.com
|
||||
|
||||
Select the printer you want to add to your system and click the **Add** button.
|
||||
选中你想添加的打印机型号,点击**添加**按钮 (**Add**) 把打印机驱动加入系统,就可以使用它了。
|
||||
|
||||
### Print from Linux
|
||||
### 在 Linux 系统上打印
|
||||
|
||||
Printing from Linux is as easy as printing can be, whether you're using a local or networked printer. If you're looking for a printer to purchase, then check the [OpenPrinting.org database][7] to confirm that a printer has an open source driver before you spend your money. If you already have a printer, you now know how to use it on your Linux computer.
|
||||
在 Linux 系统上打印很容易,不管你是在使用本地打印机还是网络打印机。如果你计划购买打印机,建议查看开放打印技术组织的(可支持打印机)数据库 ( [OpenPrinting.org database][7] ) ,看看你想购买的打印机是不是有相应的开源驱动程序。如果你已经拥有一台打印机,你现在也知道怎样在你的 Linux 系统上使用你的打印机了。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
@ -100,10 +95,11 @@ via: https://opensource.com/article/21/8/add-printer-linux
|
||||
|
||||
[a]: https://opensource.com/users/seth
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/happy-printer.png?itok=9J44YaDs (printing on Linux)
|
||||
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/happy-printer.png?itok=9J44YaDs "printing on Linux"
|
||||
[2]: http://gimp-print.sourceforge.net/
|
||||
[3]: https://www.turboprint.info/
|
||||
[4]: https://opensource.com/sites/default/files/system-settings-printer_0.png (printer settings)
|
||||
[5]: https://opensource.com/sites/default/files/settings-printer.png (printer settings)
|
||||
[6]: https://opensource.com/sites/default/files/printer-search.png (searching for a printer)
|
||||
[4]: https://opensource.com/sites/default/files/system-settings-printer_0.png "printer settings"
|
||||
[5]: https://opensource.com/sites/default/files/settings-printer.png "printer settings"
|
||||
[6]: https://opensource.com/sites/default/files/printer-search.png "searching for a printer"
|
||||
[7]: http://www.openprinting.org/printers/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user