debian10 (armbian) 配置CUPS 服务

  1. 更新apt
apt-update
  1. 安装相关软件
apt-get install ghostscript
apt-get install dc
apt-get install foomatic-db-engine
apt-get install cups

3.修改配置文件
nano /etc/cups/cupsd.conf
Listen localhost:631改为 Listen 0.0.0.0:631
以下四段配置加入Allow All

# Only listen for connections from the local machine.
Listen 0.0.0.0:631  #原来是localhost:631
Listen /run/cups/cups.sock

# 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>

4.安装打印驱动

#一般打印机
 apt-get Install printer-driver-gutenprint
#惠普打印机 
apt-get install printer-driver-foo2zjs
  1. 局域网共享
apt-get -y install avahi-daemon avahi-discover libnss-mdns

6.开机启动

systemctl enable cups
systemctl enable avahi-daemon
  1. 重启打印服务
#重启cpus服务:
systemctl restart cups 
#或者
service cups restart
#我这里使用这个命令
service cups restart

登录用户名是Linux 用户名和密码
在这里插入图片描述
文章资料来源:https://www.bilibili.com/video/BV1hi42127fe/

相关推荐

  1. debian 12 配置VNC

    2024-05-05 01:20:06       28 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-05 01:20:06       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-05 01:20:06       100 阅读
  3. 在Django里面运行非项目文件

    2024-05-05 01:20:06       82 阅读
  4. Python语言-面向对象

    2024-05-05 01:20:06       91 阅读

热门阅读

  1. Summary of Common Interview Questions of SpringMVC

    2024-05-05 01:20:06       23 阅读
  2. Redis:访问权限控制,密码设置

    2024-05-05 01:20:06       30 阅读
  3. 谈谈TCP Socket中读取数据的函数---read、recv、readv

    2024-05-05 01:20:06       27 阅读
  4. C++中的构造函数以及默认拷贝构造函数

    2024-05-05 01:20:06       35 阅读
  5. QT, 系统托盘 及 菜单

    2024-05-05 01:20:06       32 阅读
  6. 我用过的最好用的 AI 工具

    2024-05-05 01:20:06       33 阅读
  7. 【博弈游戏】

    2024-05-05 01:20:06       27 阅读
  8. 第二十六章 版本管理 - GIT

    2024-05-05 01:20:06       43 阅读
  9. 代码随想录算法训练营day56

    2024-05-05 01:20:06       31 阅读