树莓派3b配置CUPS

很多文章经过试验都是不行的,

这篇文帐是可以的

主要是配置文件这块。

#Only listen for connections from the local machine.
Listen localhost:631
Listen IP:631
Listen /var/run/cups/cups.sock
#也可以直接改为Port 631监听所有端口
# Show shared printers on the local network.
Browsing On
BrowseOrder deny,allow
............
BrowseAllow @LOCAL
#Show printers shared by other systems
BrowseAddress @LOCAL
#Share printers connected to this system
#Allow @LOCAL表示允许本地子网
# Default authentication type, when authentication is required...
DefaultAuthType Basic
DefaultEncryption IfRequested
#上面加密还可以改成Never.因为不知道什么原因使用https://ip:631总是打不开
# Restrict access to the server...
<Location />
  Order deny,allow
  Deny From All
  Allow From 127.0.0.1
  Allow From 192.168.1.*
  Allow @LOCAL
..........
</Location>
# Restrict access to the admin pages...
<Location /admin>
  #Encryption Required
 Encryption Never
 Order deny,allow
  Deny From All
  Allow From 127.0.0.1
  Allow From 192.168.1
  Allow @LOCAL
</Location>
# Restrict access to configuration files...
<Location /admin/conf>
  Encryption Never
  AuthType Default
  Require user @SYSTEM
  #Order allow,deny
  Order deny,allow
  Deny From All
  Allow From 127.0.0.1
  Allow From 192.168.1
  Allow @LOCAL
</Location>
# Set the default printer/job policies...
.......................

https://www.cnblogs.com/tswcypy/p/4152468.html

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值