玩客云安装打印机服务器Cups

1、将玩客云刷机armbian系统,(传送门)

2、把下载源改为国内

2.1、sftp登录玩客云,进入/etc/apt/ 目录,将sources.list文件下载回本地编辑

玩客云-打印1

2.2、把国外源都注释掉,添加以下地址:

deb http://mirrors.ustc.edu.cn/debian stretch main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.ustc.edu.cn/debian stretch-backports main contrib non-free
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

2.3、保存后上传覆盖,执行apt-get update:

apt-get update

3.armbian系统安装cups服务

3.1、输入apt-get install cups安装cups服务

apt-get install cups

3.2、执行systemctl start cups开启cups服务

systemctl start cups

3.3、输入http://ip:631查看cups服务页面

3.4、输入systemctl enable cups打开服务自启动。

systemctl enable cups

3.5、sftp进入/etc/cups/目录修改cupsd.conf文件配置,修改完成后保存。

将Listen localhost:631改成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>

图片[2]-玩客云安装打印机服务器Cups-追风阁

 

3.6执行systemctl restart cups重启服务

systemctl restart cups

4.打印机检测与配置

我的是惠普HP1020,其他型号打印机未在列表里的自行查找.ppd驱动

4.1、登录cups管理页面

点击Administration->Add Printer->http://ip:631/admin->输入armbian的账号密码

4.2、点击Local Printers-continue按厂家和型号搜索添加驱动,填写打印机名字和描述,Share This Printer打上钩,记下打印机名称。按Continue继续。

 

 

 

 

 

 

 

 

THE END
喜欢就支持一下吧
点赞5赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片