实现电脑、IOS手机、IPAD和安卓手机完美打印。
七、安装cups服务
apt-get install cups
复制代码然后编辑cups的配置文件:可以用上面的命令nano /etc/cups/cupsd.conf,为方便操作可以用winscp打开的 /etc/cups/cupsd.conf
将Listen localhost:631 复制代码修改为 Listen 0.0.0.0:631
将以下三段增加 Allow all
# Restrict access to the server...
<Location />
Order allow,deny
Allow all
</Location>
# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow all
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
</Location>
保存
重启CUPS: service cups restart
八、安装打印机
我的兄弟HL2140 要用这个:sudo apt-get install printer-driver-hpijs
因为我的驱动不好找,只能从网上找到PPD文件复制到 /usr/share/ppd/custom/下。
其他打印驱动
惠普:sudo apt-get install hplip
兄弟:apt-get install printer-driver-brlaser(只有几款7开头在列表中)
重启cups: service cups restart
安装打印机:将打印连接,用浏览器打开:http://玩客云IP:631 发现在页面配置有死机的概率,但后期使用没发现死机。如连不上,请断电重启。
具体如何添加打印机请论坛搜索,我刚才把PPD文件复制了,可以在驱动列表中直接调用了。安装完后在WEB页中一定要打印一下测试页。
可以参考:https://post.smzdm.com/p/alpz07r0/
又从网上找到远程打印域名访问打印机的方法,在cupsd.conf的 WebInterface Yes 后添加 ServerAlias *
由于字数限制,文档上传
|