N1 armbian cups安装hp m126a打印机

以目前中国家庭深度参与中小学教育的带娃模式,在家打作业是少不了的。正好有个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

  • 1
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
资源分为10份,此为第6份文件,包含以下打印机PPD文件: hp-laserjet_m1005 hp-laserjet_m101-m106 hp-laserjet_m1120_mfp hp-laserjet_m1120n_mfp hp-laserjet_m1319f_mfp hp-laserjet_m1522nf_mfp-pcl3 hp-laserjet_m1537dnf_mfp-pcl3 hp-laserjet_m1538dnf_mfp-pcl3 hp-laserjet_m1539dnf_mfp-pcl3 hp-laserjet_m2727_mfp-pcl3 hp-laserjet_m3027_mfp-pcl3 hp-laserjet_m3035_mfp-pcl3 hp-laserjet_m4345_mfp-pcl3 hp-laserjet_m4349_mfp-pcl3 hp-laserjet_m5025_mfp-pcl3 hp-laserjet_m5035_mfp-pcl3 hp-laserjet_m5039_mfp-pcl3 hp-laserjet_m9040_mfp-pcl3 hp-laserjet_m9050_mfp-pcl3 hp-laserjet_m9059_mfp-pcl3 hp-laserjet_mfp_m129-m134 hp-laserjet_mfp_m28-m31 hp-laserjet_p1005 hp-laserjet_p1006 hp-laserjet_p1007 hp-laserjet_p1008 hp-laserjet_p1009 hp-laserjet_p1505 hp-laserjet_p1505n-zxs hp-laserjet_p2014-zxs hp-laserjet_p2014n-zxs hp-laserjet_p2015_series-pcl3 hp-laserjet_p2015d_series hp-laserjet_p2015dn_series hp-laserjet_p2015n_series hp-laserjet_p2015x_series hp-laserjet_p2035-pcl3 hp-laserjet_p2035n-pcl3 hp-laserjet_p2055-pcl3 hp-laserjet_p2055d-pcl3 hp-laserjet_p2055dn-pcl3 hp-laserjet_p2055x-pcl3 hp-laserjet_p3004-pcl3 hp-laserjet_p3005-pcl3 hp-laserjet_p3010_series-pcl3 hp-laserjet_p4014 hp-laserjet_p4014dn hp-laserjet_p4014n hp-laserjet_p4015 hp-laserjet_p4015dn hp-laserjet_p4015n hp-laserjet_p4015tn hp-laserjet_p4015x hp-laserjet_p4515 hp-laserjet_p4515n hp-laserjet_p4515tn hp-laserjet_p4515x hp-laserjet_p4515xm hp-laserjet_pro_mfp_m125a hp-laserjet_pro_mfp_m125nr hp-laserjet_pro_mfp_m125nw hp-laserjet_pro_mfp_m125r hp-laserjet_pro_mfp_m125rnw hp-laserjet_pro_mfp_m125s hp-laserjet_pro_mfp_m126a hp-laserjet_pro_mfp_m126nw hp-laserjet_pro_mfp_m127fn hp-laserjet_pro_mfp_m127fp hp-laserjet_pro_mfp_m127fs hp-laserjet_pro_mfp_m127fw hp-laserjet_pro_mfp_m128fn hp-laserjet_pro_mfp_m128fp hp-laserjet_pro_mfp_m128fw hp-laserjet_pro_mfp_m25a hp-laserjet_pro_mfp_m25nw hp-laserjet_pro_mfp_m26a hp-laserjet_pro_mfp_m26nw hp-laserjet_pro_mfp_m27c hp-laserjet_pro_mfp_m27cnw hp-laserjet_professional_m1132_mfp

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值