armbian安装cups
2023-02-02 本文已影响0人
Armlinux
apt-get update
apt-get upgrade
apt-get install ghostscript
apt-get install dc
apt-get install foomatic-db-engine
apt-get install cups
nano /etc/cups/cupsd.conf
需要将
Listen localhost:631
改成
Listen 0.0.0.0:631
然后,将以下4段加入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>
# Restrict access to log files...
<Location /admin/log>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow all
</Location>
service cups restart
参考
https://blog.csdn.net/inthesun29/article/details/105799656