# Only listen for connections from the local machine.
#Listen localhost:631
#CHANGED TO LISTEN TO LOCAL LAN
Port 631
# Restrict access to the server…
<Location />
Order allow,deny
Allow @Local
</Location>
# Restrict access to the admin pages&hellip;
<Location /admin>
Order allow,deny
Allow @Local
</Location>
# Restrict access to configuration files&hellip;
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow @Local
</Location>
复制代码
重启CUPS服务
sudo service cups start
复制代码将USB打印机连接到开发板USB口,在电脑或者手机浏览器上输入开发板局域网IP:631进入打印机配置界面,点Administration-Find New Printers-Add This Printer,注意勾选Share This Printer,然后按提示选择打印机品牌和打印机型号直到添加完成,过程中会出现账号登陆窗口,输入开发板账号密码登陆后授权创建打印机,完成后可以在Printers选项卡里面看到刚刚添加好的打印机,如下图