利用玩客云做打印服务器

Linux · 2024-11-09
利用玩客云做打印服务器

关于S805的刷机和armbian系统的基本调试就略过不提了,网上大把的教程。
我因之前装了网心云挂过硬盘,USB设备拆除以后就一直报错,手工修改 /etc/fstab 把硬盘注释掉就可以

开始正文:

  1. 源更新

    apt update

2.安装cups服务

apt install cups


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

nano /etc/cups/cupsd.conf

修改“localhost”改成“0.0.0.0”,Browsing no改成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服务

systemctl restart cups

记得把cups加到系统服务里,省去系统重启输入bash

systemctl enable cups

输入S805地址可以看到如下界面,说明打印服务器已经搭建成功。
2024-11-09T07:28:07.png

3.添加打印机linux驱动。手头的是一台HP的1108

apt install hplip

4.在管理页面添加打印机,跳出窗口输入验证密码,root / root密码
2024-11-09T07:35:24.png
然后让你选择打印机型号,此时需要把打印机的电源打开,USB连接线连接到S805上,一步一步来:
2024-11-09T07:40:13.png
5.最后完成的页面是这样的。
2024-11-09T07:44:27.png

6.windows端添加打印机,我的是win11的系统,手动添加
2024-11-09T07:48:05.png
名称选择共享打印机
2024-11-09T07:50:34.png

  1. 最关键的一步,这时候一定要先安装HP惠普的官方驱动,有个预安装,等你选择设备的时候,不要关闭窗口。一旦关闭窗口,安装程序会把HP的驱动删除,你就噶了。只需要窗口切换切换到图下添加打印机向导,就可以成功安装了。
    2024-11-09T07:54:18.png

8.添加设备以后把这个打印机可以设置为默认
2024-11-09T07:56:10.png

9.至于手机打印,噱头八脑就不值得研究了。

armbian 玩客云 cups