Linux(CentOS/Armbian)安装cups

对于CentOS

yum install cups cups-devel cups-libs ghostscript  foomatic-db avahi  cupsys cupsys-client   cups-filters foomatic

对于Armbian

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

在浏览器登陆 ip:631 即可
参考
https://blog.csdn.net/inthesun29/article/details/105799656

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容