Files
2025-01-17 11:39:10 +08:00

42 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# CUPS AirPrint
## 使用方法
- CUPS管理员登录print密码print可以在Dockerfile中更改
**驱动安装方法**
以惠普1020打印机为例按以下步骤安装hplip驱动的插件。
1. 浏览器打开下载地址https://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
2. 找到和版本号对应的两个.run和.run.asc文件以及不区分版本的.plugin文件例如
```json
hp_laserjet_1020.plugin不区分版本
hplip-3.22.10-plugin.run3.22.10版本)、
hplip-3.22.10-plugin.run.asc3.22.10版本)
```
3. 通过Filebrowser打开addon_configs/xxxxxx_opencups/upload目录将上面三个文件拷贝进去。
4. 成功放进去后使用命令进入插件的安装浏览器打开http://homeassistant.local:7681 进入终端:
输入命令行
```shell
login
```
第二步进入docker容器内部
```shell
wgha d cups -S /bin/bash
```
第三步,执行命令
```shell
sudo hp-plugin -p /config/upload/
```
5. 完成插件的安装期间会询问是否同意许可协议按“y”同意。
6. 到此驱动添加完毕addons webui打开 CUPS-AirPrint即可使用。
参考地址https://blog.csdn.net/inthesun29/article/details/127143638