我想让我的RasPi充当一个由三个Linux客户端组成的小型家庭网络中的小型打印和文件服务器 . 不幸的是,Brother只提供x86的二进制驱动程序,因此无法在RasPi上运行Brother打印机 . 但是,我发现了一个博客条目,建议在RasPi的CUPS安装上创建一个原始队列,并使用安装在其上的二进制驱动程序从客户端访问此队列 . 这是博客条目:http://chemdroid.net/en/raspberry-pi/36-raspberry-pi-as-print-server
遗憾的是,作者没有详细描述如何在RasPi上创建原始队列以及如何从客户端访问它,而是专注于描述在RasPi上安装非标准CUPS版本 .
我在这里找到了一个类似的问题:CUPS bypassing interface然而,我并不完全理解答案 . 答案中的"How to setup CUPS 'raw' queues"部分是否涉及主机(RasPi)?如果是这样,我必须指定什么是套接字/端口?打印机是Brother HL-2030,通过USB连接 .
当从客户端访问打印机时,答案说明了如何编辑'lp'命令,但是我想通过CUPS使用共享打印机,那么我该如何处理呢?
谢谢你的任何输入!
光子
2 回答
sudo adduser $USER lpadmin
sudo cupsctl --remote-admin
sudo service cups restart
- 或 -sudo /etc/init.d/cups restart
导航到http://localhost:631(如果您没有键盘访问权限:来自其他计算机的
http://<ip_address_of_pi>:631
)导航到“管理”,“添加打印机”
一个 . 提示登录时,请使用标准用户名和密码 .
湾 Note: 如果密码不起作用,请重试
sudo reboot
.一个 . Network Attached:
socket://<ip_of_printer>:9100
湾 USB Attached:
socket://<usb_handle>
使用lpinfo -v |grep usb:
查找,您没有为ARM体系结构提供't need the 981866 information. Assumes proper driver is installed first. Note, if your device driver isn',请参阅this article .Make: Raw(非通用)
命名,分享,继续
返回CUPS管理页面http://localhost:631 a . 启用打印机共享:
.[X] Share printers connected to this system
. [X] Allow printing from the internet
这在平台之间差异很大 .
http://<ip_of_pi>:631/printers/<name_used_in_step_8_above>
一个 . Windows: 设备和打印机,添加打印机(不添加设备,它在工具栏中),手动选择/未列出,本地或网络打印机使用手动设置,创建新端口,标准TCP / IP端口
湾 MacOS: 启用,然后使用CUPS Web界面 . GUI可以't do it. You'll需要在管理员组中并知道您的用户ID(例如
echo $USER
)C . Linux: 使用GUI或CUPS,网络打印机,AppSocket / HP JetDirect
找到了我在一个小教程中描述的问题的解决方案:https://forum.manjaro.org/t/how-to-set-up-a-remote-printer-which-is-attached-to-a-raspberry-pi-or-any-other-arm-computer/57056