侧边栏壁纸
  • 累计撰写 43 篇文章
  • 累计创建 7 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

矿渣再利用!玩客云改造打印服务器教程

Administrator
2025-07-04 / 0 评论 / 0 点赞 / 5 阅读 / 0 字 / 正在检测是否收录...

原文地址:https://shimo.im/docs/vVqRVML5a0to6Xqy/read

一、玩客云刷机

刷机教程网上一大堆就不再赘述了,本站玩客云导航下也有,请自行翻阅。

参考本站教程:https://www.xunidd.com/2025/01/22/wky-sj 此教程较老,可自行搜索新的教程

二、安装cups服务

刷完机,准备好以后,输入命令安装cups打印服务。输入:

apt-get install cups

安装完毕后,还需要修改一些cups的参数。输入以下命令进入cups的参数配置:

nano /etc/cups/cupsd.conf
  • 修改“localhost”改成“0.0.0.0”

  • Browsing off改成Browsing on

  • 并在三个地方分别添加Allow all

具体如下

Listen 0.0.0.0:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...

WebInterface Yes

# 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

ctrl+X退出,Y保存,回车返回命令行。

然后运行命令 重启一下cups的服务。

service cups restart

稍等两分钟以后,我们可以试着在网页里用玩客云ip地址+631的端口号登陆cups的服务页面。

我们看到已经成功登陆进去了。说明打印服务器已经搭建好了。

接下来我们先退出web页面,在ssh中添加一下打印机驱动。这里需要打印机有支持的linux驱动。我找到了爱普生、惠普和兄弟驱动包。直接一条命令安装就可以了。

爱普生:

apt install printer-driver-gutenprint

惠普:

sudo apt-get install hplip 

或者

apt install hplip

兄弟

apt-get install printer-driver-brlaser

安装好打印机驱动后我们可以在web页面里添加打印机。

三、添加网络打印机

打印机添加完毕我们就可以用

http://192.168.50.106:631(服务器IP+端口号)/printers/EPSON_L360_Series(打印机共享名称

来在windows里添加网络打印机。添加之前最好预先安装好打印机驱动。

其实只要再添加一条命令就可以让局域网里的其他设备自动发现打印机。我们再回到ssh命令行去运行一下。

apt install avahi-daemon

有的机器安装这一个插件就可以了。不过我的机器需要安装完整的三个插件才可以。

运行:

apt -y install avahi-daemon avahi-discover libnss-mdns

最后设置下开机默认启动

systemctl enable cups
systemctl enable avahi-daemon

运行完毕之后,再回到添加打印机的选项就可以直接发现网络打印机了。

同样在安卓和iOS手机上也可以直接添加这个网络打印机,用来打印文稿和图片都非常方便。

其实玩客云只是打印服务器的备选设备之一。理论上只要是可以安装linux系统的设备都可以用作打印服务器。

0

评论区