使用 CUPS Web 浏览器界面设置和管理打印机 - Oracle Solaris 管理:常见任务
N1刷armbian变身打印服务器,支持全平台无线打印@PC扫描_存储设备_什么值得买 (smzdm.com)
第 6 章 使用 Web 界面向 CUPS 添加打印机 | Red Hat Product Documentation
apt install -y cups
cat /etc/cups/cupsd.conf
LogLevel warn
PageLogFormat
MaxLogSize 0
ErrorPolicy retry-job
Listen 0.0.0.0:631
Listen /run/cups/cups.sock
Browsing On
BrowseLocalProtocols dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />Order allow,denyAllow all
</Location>
<Location /admin>Order allow,denyAllow all
</Location>
<Location /admin/conf>AuthType DefaultRequire user @SYSTEMOrder allow,denyAllow all
</Location>
<Location /admin/log>AuthType DefaultRequire user @SYSTEMOrder allow,denyAllow all
</Location>
<Policy default>JobPrivateAccess defaultJobPrivateValues defaultSubscriptionPrivateAccess defaultSubscriptionPrivateValues default<Limit Create-Job Print-Job Print-URI Validate-Job>Order deny,allow</Limit><Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job>Require user @OWNER @SYSTEMOrder deny,allow</Limit><Limit CUPS-Get-Document>AuthType DefaultRequire user @OWNER @SYSTEMOrder deny,allow</Limit><Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>AuthType DefaultRequire user @SYSTEMOrder deny,allow</Limit><Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>AuthType DefaultRequire user @SYSTEMOrder deny,allow</Limit><Limit CUPS-Authenticate-Job>Require user @OWNER @SYSTEMOrder deny,allow</Limit><Limit All>Order deny,allow</Limit>
</Policy>
<Policy authenticated>JobPrivateAccess defaultJobPrivateValues defaultSubscriptionPrivateAccess defaultSubscriptionPrivateValues default<Limit Create-Job Print-Job Print-URI Validate-Job>AuthType DefaultOrder deny,allow</Limit><Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>AuthType DefaultRequire user @OWNER @SYSTEMOrder deny,allow</Limit><Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>AuthType DefaultRequire user @SYSTEMOrder deny,allow</Limit><Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>AuthType DefaultRequire user @SYSTEMOrder deny,allow</Limit><Limit Cancel-Job CUPS-Authenticate-Job>AuthType DefaultRequire user @OWNER @SYSTEMOrder deny,allow</Limit><Limit All>Order deny,allow</Limit>
</Policy>
<Policy kerberos>JobPrivateAccess defaultJobPrivateValues defaultSubscriptionPrivateAccess defaultSubscriptionPrivateValues default<Limit Create-Job Print-Job Print-URI Validate-Job>AuthType NegotiateOrder deny,allow</Limit><Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>AuthType NegotiateRequire user @OWNER @SYSTEMOrder deny,allow</Limit><Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>AuthType DefaultRequire user @SYSTEMOrder deny,allow</Limit><Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>AuthType DefaultRequire user @SYSTEMOrder deny,allow</Limit><Limit Cancel-Job CUPS-Authenticate-Job>AuthType NegotiateRequire user @OWNER @SYSTEMOrder deny,allow</Limit><Limit All>Order deny,allow</Limit>
</Policy>
service cups restart
https://ip:631/admin
add printer
添加好打印机,测试打印
windows添加打印机
控制面板-设备和打印机