(TODO)
CUPS
参考:https://linux.cn/article-9538-1.html
lpstat检查队列 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 lpstat -a 显示打印机状态 $ lpstat -a XP-610 XP-610 accepting requests since Thu 27 Apr 2017 05:53:59 PM EDT lpstat -c 显示打印分类 lpstat -p 显示打印状态:enabled 或者 disabled lpstat -s 显示默认打印机、打印机和类。相当于 -d -c -v。注意:要指定多个选项,这些选项必须像值一样分隔开。 $ lpstat -s system default destination: HL-2280 DW members of class anyprint: HL-2280 DW XP-610 device for anyprint: ///dev/null device for HL-2280 DW: dnssd://Brother%20HL-2280 DW._pdl-datastream._tcp.local/ device for XP-610 : dnssd://EPSON%20XP-610 %20Series._ipp._tcp.local/?uuid=cfe92100-67 c4-11 d4-a45f-ac18266c48aa lpstat -v 显示打印机和它们的设备。 $ lpstat -v HL-2280 DW device for HL-2280 DW: dnssd://Brother%20HL-2280 DW._pdl-datastream._tcp.local/ $ lpstat -d system default destination: HL-2280 DW
cupsaccept & cupsreject 、cupsenable & cupsdisable (sudo) 启用还是禁用队列,可以使用 cupsaccept
和 cupsreject
命令来管理。
启用还是禁用打印,你可以使用 cupsenable
和 cupsdisable
命令来管理。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 $ lpstat -a -p HL-2280 DW anyprint accepting requests since Mon 29 Jan 2018 01 :17 :09 PM EST HL-2280 DW not accepting requests since Thu 27 Apr 2017 05 :52 :27 PM EDT - Maintenance scheduled XP-610 accepting requests since Thu 27 Apr 2017 05 :53 :59 PM EDT printer HL-2280 DW is idle. enabled since Thu 27 Apr 2017 05 :52 :27 PM EDT Maintenance scheduled $ sudo cupsaccept HL-2280 DW $ sudo cupsdisable -r "waiting for toner delivery" HL-2280 DW $ lpstat -p -a printer anyprint is idle. enabled since Mon 29 Jan 2018 01 :17 :09 PM EST printer HL-2280 DW disabled since Mon 29 Jan 2018 04 :03 :50 PM EST - waiting for toner delivery printer XP-610 is idle. enabled since Thu 27 Apr 2017 05 :53 :59 PM EDT anyprint accepting requests since Mon 29 Jan 2018 01 :17 :09 PM EST HL-2280 DW accepting requests since Mon 29 Jan 2018 04 :03 :50 PM EST XP-610 accepting requests since Thu 27 Apr 2017 05 :53 :59 PM EDT
安装lpr管理打印队列 sudo apt-get install lpr
注意:如果是sudo apt-get install lprng
,将会卸载CUPS!
If you like this blog or find it useful for you, you are welcome to comment on it. You are also welcome to share this blog, so that more people can participate in it. If the images used in the blog infringe your copyright, please contact the author to delete them. Thank you !