N1 armbian cups安装hp m126a打印机

编程知识 更新时间:2023-04-27 08:12:12
以目前中国家庭深度参与中小学教育的带娃模式,在家打作业是少不了的。正好有个feixun N1闲置,顺手刷了个armbian,开搞CUPS。没用docker,直接armbian-config安装cups。以下假设n1的IP为192.168.1.100/24

1、装好cups后,先按照网上的说明,修改配置文件/etc/cups/cupsd.conf。主要就是添加几个allow all,以便通过web访问管理界面。
Listen 0.0.0.0:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocolsdnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Restrict access to the server...
Orderallow,deny
Allow all

# Restrict access to the admin pages...
Orderallow,deny
Allow all

# Restrict access to configuration files...
AuthType Default
Require user@SYSTEM
Orderallow,deny
Allow all

2、保存配置文件后,service cups restart。现在浏览器能够访问管理界面了,输入https://192.168.1.100:631。
在administration中添加打印机,可以看到能够识别出“HP LaserJet Pro MFP M126a”,continue后,model中没有m126a这个型号。需要额外添加驱动。

3、好在现在的linux都有方便的在线软件库,apt安装hplip(hp linux image printer) :

apt install hplip* 

探索性折腾,安装了一大堆,貌似只安装hpijs就可以了。

4、重启cups后,print test page提示:Filter failed…。shit,继续baidu大法,有文章解释说hplip安装后,部分型号的打印机插件没有安装,可以通过hp-plugin安装。

root@aml:~# hp-plugin

HP Linux Imaging and Printing System (ver. 3.17.10)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: It is not recommended to run 'hp-plugin' in a root mode.

HP Linux Imaging and Printing System (ver. 3.17.10)
Plugin Download and Install Utility ver. 2.1

Copyright (c) 2001-15 HP Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


------------------------------------------
| PLUG-IN INSTALLATION FOR HPLIP 3.17.10 |
------------------------------------------

  Option      Description
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recommended)
  p           Specify a path to the plug-in (advanced)
  q           Quit hp-plugin (skip installation)

Enter option (d=download*, p=specify path, q=quit) ? d

-------------------
| DOWNLOAD PLUGIN |
-------------------

print test page成功打印。

5、实现ios air print

apt-get -y install avahi-daemon avahi-discover libnss-mdns 
service avahi-daemon restart

重启Avahi Daemon后,随便打开一个文档或网页,找到打印,选择Air Print打印,选择打印机,开始打印。

6、android手机
系统新一点的手机应该都已支持无线打印,至少我的mate30默认就能打。
如wps,选择 文件->打印->系统打印服务,这时可以看到cpus的网络打印机。
7、windows
添加打印机,同网段下直接能找到。找不到的话,试试https://192.168.1.100:631/printers/HP_LaserJet_Pro_MFP_M126a。

end

更多推荐

N1 armbian cups安装hp m126a打印机

本文发布于:2023-04-20 14:43:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/6b23fe97b98d5a371543461f195fa74a.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:打印机   armbian   cups   m126a   hp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 90449文章数
  • 23318阅读数
  • 0评论数