{"id":101165,"date":"2024-08-08T10:33:10","date_gmt":"2024-08-08T02:33:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=101165"},"modified":"2024-08-08T10:33:10","modified_gmt":"2024-08-08T02:33:10","slug":"linux-print-manager","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-print-manager.html","title":{"rendered":"\u53f2\u4e0a\u6700\u5b8c\u5168\u7684\uff01\u6559\u4f60\u5982\u4f55\u5728 Linux \u4e2d\u5982\u4f55\u6253\u5370\u548c\u7ba1\u7406\u6253\u5370\u673a"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u867d\u7136\u73b0\u5728\u5927\u91cf\u7684\u6c9f\u901a\u90fd\u662f\u7535\u5b50\u5316\u548c\u65e0\u7eb8\u5316\u7684\uff0c\u4f46\u662f\u5728\u6211\u4eec\u7684\u516c\u53f8\u4e2d\u8fd8\u6709\u5927\u91cf\u7684\u6750\u6599\u9700\u8981\u6253\u5370\u3002\u94f6\u884c\u7ed3\u7b97\u5355\u3001\u516c\u7528\u4e8b\u4e1a\u5e10\u5355\u3001\u8d22\u52a1\u548c\u5176\u5b83\u62a5\u544a\u3001\u4ee5\u53ca\u6536\u76ca\u7ed3\u7b97\u5355\u7b49\u4e00\u4e9b\u4e1c\u897f\u8fd8\u662f\u9700\u8981\u6253\u5370\u7684\u3002\u672c\u6559\u7a0b\u5c06\u4ecb\u7ecd\u5728 Linux \u4e2d\u5982\u4f55\u4f7f\u7528 CUPS \u53bb\u6253\u5370\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u524d\u63d0\u6761\u4ef6<\/strong><\/div>\n

\u4e3a\u4e86\u66f4\u597d\u5730\u5b66\u4e60\u672c\u7cfb\u5217\u6559\u7a0b\uff0c\u4f60\u9700\u8981\u5177\u5907\u57fa\u672c\u7684 Linux \u77e5\u8bc6\uff0c\u548c\u4f7f\u7528 Linux \u7cfb\u7edf\u5b9e\u8df5\u672c\u6559\u7a0b\u4e2d\u7684\u547d\u4ee4\u7684\u80fd\u529b\uff0c\u4f60\u5e94\u8be5\u719f\u6089 GNU \u548c UNIX\u00ae \u547d\u4ee4\u7684\u4f7f\u7528\u3002\u6709\u65f6\u4e0d\u540c\u7248\u672c\u7684\u7a0b\u5e8f\u8f93\u51fa\u53ef\u80fd\u4f1a\u4e0d\u540c\uff0c\u56e0\u6b64\uff0c\u4f60\u7684\u7ed3\u679c\u53ef\u80fd\u4e0e\u672c\u6559\u7a0b\u4e2d\u7684\u793a\u4f8b\u6709\u6240\u4e0d\u540c\u3002
\n\u672c\u6559\u7a0b\u4e2d\u7684\u793a\u4f8b\u4f7f\u7528\u7684\u662f Fedora 27 \u7684\u7cfb\u7edf\u3002<\/p>\n

\u6709\u5173\u6253\u5370\u7684\u4e00\u4e9b\u5386\u53f2<\/strong><\/div>\n

\u8fd9\u4e00\u5c0f\u90e8\u5206\u5386\u53f2\u5e76\u4e0d\u662f LPI \u76ee\u6807\u7684\uff0c\u4f46\u5b83\u6709\u52a9\u4e8e\u4f60\u7406\u89e3\u8fd9\u4e2a\u76ee\u6807\u7684\u76f8\u5173\u73af\u5883\u3002<\/p>\n

\u65e9\u671f\u7684\u8ba1\u7b97\u673a\u5927\u90fd\u4f7f\u7528\u884c\u5f0f\u6253\u5370\u673a\u3002\u8fd9\u4e9b\u90fd\u662f\u51fb\u6253\u5f0f\u6253\u5370\u673a\uff0c\u90a3\u65f6\uff0c\u5b83\u4eec\u4f7f\u7528\u56fa\u5b9a\u95f4\u8ddd\u7684\u5b57\u7b26\u548c\u5355\u4e00\u7684\u5b57\u4f53\u6765\u6253\u5370\u6587\u672c\u884c\u3002\u4e3a\u63d0\u5347\u6574\u4e2a\u7cfb\u7edf\u6027\u80fd\uff0c\u65e9\u671f\u7684\u4e3b\u673a\u8981\u4e0e\u6162\u901f\u7684\u5916\u56f4\u8bbe\u5907\uff08\u5982\u8bfb\u5361\u5668\u3001\u5361\u7247\u7a7f\u5b54\u673a\u3001\u548c\u8fd0\u884c\u5176\u5b83\u5de5\u4f5c\u7684\u884c\u5f0f\u6253\u5370\u673a\uff09\u4ea4\u53c9\u8fdb\u884c\u5de5\u4f5c\u3002\u56e0\u6b64\u5c31\u4ea7\u751f\u4e86\u5728\u7ebf\u7684\u6216\u8005\u5047\u8131\u673a\u7684\u540c\u6b65\u5916\u56f4\u64cd\u4f5c\uff0c\u8fd9\u4e00\u672f\u8bed\u76ee\u524d\u5728\u8c08\u5230\u8ba1\u7b97\u673a\u6253\u5370\u65f6\u4ecd\u7136\u5728\u4f7f\u7528\u3002<\/p>\n

\u5728 UNIX \u548c Linux \u7cfb\u7edf\u4e0a\uff0c\u6253\u5370\u521d\u59cb\u5316\u4f7f\u7528\u7684\u662f BSD\uff08\u4f2f\u514b\u5229\u8f6f\u4ef6\u5206\u53d1\u7248Berkeley Software Distribution\uff09\u6253\u5370\u5b50\u7cfb\u7edf\uff0c\u5b83\u662f\u7531\u4e00\u4e2a\u4f5c\u4e3a\u670d\u52a1\u5668\u8fd0\u884c\u7684\u884c\u5f0f\u6253\u5370\u5b88\u62a4\u7a0b\u5e8f\uff08LPD\uff09\u7ec4\u6210\uff0c\u800c\u5ba2\u6237\u7aef\u547d\u4ee4\u5982 lpr \u662f\u7528\u4e8e\u63d0\u4ea4\u6253\u5370\u4f5c\u4e1a\u3002\u8fd9\u4e2a\u534f\u8bae\u540e\u6765\u88ab IETF \u6807\u51c6\u5316\u4e3a RFC 1179 \u2014\u2014 \u884c\u5f0f\u6253\u5370\u673a\u5b88\u62a4\u8fdb\u7a0b\u534f\u8bae\u3002<\/p>\n

System V \u4e5f\u6709\u4e00\u4e2a\u6253\u5370\u5b88\u62a4\u7a0b\u5e8f\u3002\u5b83\u7684\u529f\u80fd\u4e0eBSD \u7684 LPD \u5b88\u62a4\u7a0b\u5e8f\u7c7b\u4f3c\uff0c\u4f46\u662f\u5b83\u4eec\u7684\u547d\u4ee4\u96c6\u4e0d\u4e00\u6837\u3002\u4f60\u5728\u540e\u9762\u4f1a\u7ecf\u5e38\u770b\u5230\u5b8c\u6210\u76f8\u540c\u7684\u4efb\u52a1\u4f7f\u7528\u4e0d\u540c\u9009\u9879\u7684\u4e24\u4e2a\u547d\u4ee4\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u6253\u5370\u6587\u4ef6\u7684\u547d\u4ee4\uff0c\u4f2f\u514b\u5229\u5b9e\u73b0\u7248\u672c\u662f lpr\uff0c\u800c System V \u5b9e\u73b0\u7248\u672c\u662f lp\u3002<\/p>\n

\u968f\u7740\u6253\u5370\u673a\u6280\u672f\u7684\u8fdb\u6b65\uff0c\u5728\u4e00\u4e2a\u9875\u9762\u4e0a\u6df7\u5408\u51fa\u73b0\u4e0d\u540c\u5b57\u4f53\u6210\u4e3a\u53ef\u80fd\uff0c\u5e76\u4e14\u53ef\u4ee5\u5c06\u56fe\u7247\u50cf\u6587\u5b57\u4e00\u6837\u6253\u5370\u3002\u53ef\u53d8\u95f4\u8ddd\u5b57\u4f53\uff0c\u4ee5\u53ca\u66f4\u591a\u5148\u8fdb\u7684\u6253\u5370\u6280\u672f\uff0c\u6bd4\u5982\u95f4\u8ddd\u548c\u8fde\u5b57\u7b26\uff0c\u73b0\u5728\u90fd\u5df2\u7ecf\u6807\u51c6\u5316\u3002\u51fa\u73b0\u4e86\u51e0\u79cd\u5bf9\u57fa\u672c\u7684 lpd\/lpr \u65b9\u6cd5\u7b49\u6539\u8fdb\u8bbe\u8ba1\uff0c\u6bd4\u5982 LPRng\uff0c\u4e0b\u4e00\u4ee3\u7684 LPR\uff0c\u4ee5\u53ca CUPS\u3002<\/p>\n

\u8bb8\u591a\u53ef\u4ee5\u6253\u5370\u56fe\u5f62\u7684\u6253\u5370\u673a\uff0c\u4f7f\u7528 Adobe PostScript \u8bed\u8a00\u8fdb\u884c\u521d\u59cb\u5316\u3002\u4e00\u4e2a PostScript \u6253\u5370\u673a\u6709\u4e00\u4e2a\u89e3\u91ca\u5668\u5f15\u64ce\uff0c\u5b83\u53ef\u4ee5\u89e3\u91ca\u6253\u5370\u4efb\u52a1\u4e2d\u7684\u547d\u4ee4\u5e76\u4ece\u8fd9\u4e9b\u547d\u4ee4\u4e2d\u751f\u6210\u6700\u7ec8\u7684\u9875\u9762\u3002PostScript \u7ecf\u5e38\u88ab\u7528\u505a\u539f\u59cb\u6587\u4ef6\uff08\u6bd4\u5982\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u6216\u8005\u4e00\u4e2a\u56fe\u50cf\u6587\u4ef6\uff09\u548c\u6700\u7ec8\u683c\u5f0f\u6ca1\u6709\u9002\u5408\u7684 PostScript \u529f\u80fd\u7684\u7279\u5b9a\u6253\u5370\u673a\u4e4b\u95f4\u7684\u4e2d\u95f4\u5c42\u3002\u8f6c\u6362\u8fd9\u4e9b\u7279\u5b9a\u7684\u6253\u5370\u4efb\u52a1\uff0c\u6bd4\u5982\u5c06\u4e00\u4e2a ASCII \u6587\u672c\u6587\u4ef6\u6216\u8005\u4e00\u4e2a JPEG \u56fe\u50cf\u8f6c\u6362\u4e3a PostScript\uff0c\u7136\u540e\u518d\u4f7f\u7528\u8fc7\u6ee4\u5668\u8f6c\u6362 PostScript \u5230\u975e PostScript \u6253\u5370\u673a\u6240\u9700\u8981\u7684\u6700\u7ec8\u5149\u6805\u683c\u5f0f\u3002<\/p>\n

\u73b0\u5728\u7684\u4fbf\u643a\u5f0f\u6587\u6863\u683c\u5f0fPortable Document Format\uff08PDF\uff09\uff0c\u5b83\u5c31\u662f\u57fa\u4e8e PostScript \u7684\uff0c\u5df2\u7ecf\u66ff\u6362\u4e86\u4f20\u7edf\u7684\u539f\u59cb PostScript\u3002PDF \u8bbe\u8ba1\u4e3a\u4e0e\u786c\u4ef6\u548c\u8f6f\u4ef6\u65e0\u5173\uff0c\u5b83\u5c01\u88c5\u4e86\u8981\u6253\u5370\u7684\u9875\u9762\u7684\u5b8c\u6574\u63cf\u8ff0\u3002\u4f60\u53ef\u4ee5\u67e5\u770b \u4ee5\u53ca\u6253\u5370 PDF \u6587\u4ef6\u3002<\/p>\n

\u7ba1\u7406\u6253\u5370\u961f\u5217<\/strong><\/div>\n

\u7528\u6237\u76f4\u63a5\u6253\u5370\u4f5c\u4e1a\u5230\u4e00\u4e2a\u540d\u4e3a\u6253\u5370\u961f\u5217print queue\u7684\u903b\u8f91\u5b9e\u4f53\u3002\u5728\u5355\u7528\u6237\u7cfb\u7edf\u4e2d\uff0c\u6253\u5370\u961f\u5217\u548c\u6253\u5370\u673a\u901a\u5e38\u662f\u51e0\u4e4e\u76f8\u540c\u7684\u610f\u601d\u3002\u4f46\u662f\uff0cCUPS \u5141\u8bb8\u7cfb\u7edf\u4e0d\u7528\u8fde\u63a5\u5230\u4e00\u4e2a\u6253\u5370\u673a\u4e0a\uff0c\u800c\u6700\u7ec8\u5728\u4e00\u4e2a\u8fdc\u7a0b\u7cfb\u7edf\u4e0a\u7684\u6392\u961f\u6253\u5370\u4f5c\u4e1a\uff0c\u5e76\u4e14\u901a\u8fc7\u4f7f\u7528\u5206\u7c7b\uff0c\u5141\u8bb8\u5c06\u5b9a\u5411\u5230\u4e00\u4e2a\u5206\u7c7b\u7684\u6253\u5370\u4f5c\u4e1a\u5728\u8be5\u5206\u7c7b\u7b2c\u4e00\u4e2a\u53ef\u7528\u7684\u6253\u5370\u673a\u4e0a\u6253\u5370\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u68c0\u67e5\u548c\u7ba1\u7406\u6253\u5370\u961f\u5217\u3002\u5bf9\u4e8e CUPS \u6765\u8bf4\uff0c\u5176\u4e2d\u4e00\u4e9b\u547d\u4ee4\u5b9e\u73b0\u4e86\u4e00\u4e9b\u65b0\u64cd\u4f5c\u3002\u53e6\u5916\u7684\u4e00\u4e9b\u662f\u6e90\u4e8e LPD \u7684\u517c\u5bb9\u547d\u4ee4\uff0c\u4e0d\u8fc7\u73b0\u5728\u7684\u4e00\u4e9b\u9009\u9879\u901a\u5e38\u662f\u6700\u521d\u7684 LPD \u6253\u5370\u7cfb\u7edf\u9009\u9879\u7684\u6709\u9650\u5b50\u96c6\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528 CUPS \u7684 lpstat \u547d\u4ee4\u53bb\u68c0\u67e5\u961f\u5217\uff0c\u4ee5\u4e86\u89e3\u6253\u5370\u7cfb\u7edf\u3002\u4e00\u4e9b\u5e38\u89c1\u9009\u9879\u5982\u4e0b\u8868 1\u3002<\/p>\n

< \u5982\u663e\u793a\u4e0d\u5168\uff0c\u8bf7\u5de6\u53f3\u6ed1\u52a8 ><\/p>\n

\u9009\u9879\u4f5c\u7528<\/strong><\/div>\n

-a \u663e\u793a\u6253\u5370\u673a\u72b6\u6001
\n-c \u663e\u793a\u6253\u5370\u5206\u7c7b
\n-p \u663e\u793a\u6253\u5370\u72b6\u6001\uff1aenabled \u6216\u8005 disabled
\n-s \u663e\u793a\u9ed8\u8ba4\u6253\u5370\u673a\u3001\u6253\u5370\u673a\u548c\u7c7b\u3002\u76f8\u5f53\u4e8e -d -c -v\u3002\u6ce8\u610f\uff1a\u8981\u6307\u5b9a\u591a\u4e2a\u9009\u9879\uff0c\u8fd9\u4e9b\u9009\u9879\u5fc5\u987b\u50cf\u503c\u4e00\u6837\u5206\u9694\u5f00\u3002
\n-v \u663e\u793a\u6253\u5370\u673a\u548c\u5b83\u4eec\u7684\u8bbe\u5907\u3002
\n\u8868 1. lpstat \u547d\u4ee4\u7684\u9009\u9879<\/p>\n

\u5217\u8868 1. \u663e\u793a\u53ef\u7528\u6253\u5370\u961f\u5217<\/p>\n

\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 LPD \u7684 lpc \u547d\u4ee4\uff08\u5b83\u53ef\u4ee5\u5728 \/usr\/sbin \u4e2d\u627e\u5230\uff09\u4f7f\u7528\u5b83\u7684 status \u9009\u9879\u3002\u5982\u679c\u4f60\u4e0d\u60f3\u6307\u5b9a\u6253\u5370\u673a\u540d\u5b57\uff0c\u5c06\u5217\u51fa\u6240\u6709\u7684\u961f\u5217\u3002<\/p>\n

[ian@atticf27 ~]$ lpstat-d\r\nsystem default destination: HL-2280DW\r\n[ian@atticf27 ~]$ lpstat-v HL-2280DW\r\ndevice for HL-2280DW: dnssd:\/\/Brother%20HL-2280DW._pdl-datastream._tcp.local\/\r\n[ian@atticf27 ~]$ lpstat-s\r\nsystem default destination: HL-2280DW\r\nmembers of class anyprint:\r\nHL-2280DW\r\nXP-610\r\ndevice for anyprint:\/\/\/dev\/null\r\ndevice for HL-2280DW: dnssd:\/\/Brother%20HL-2280DW._pdl-datastream._tcp.local\/\r\ndevice for XP-610: dnssd:\/\/EPSON%20XP-610%20Series._ipp._tcp.local\/?uuid=cfe92100-67c4-11d4-a45f-ac18266c48aa\r\n[ian@atticf27 ~]$ lpstat-a XP-610\r\nXP-610 accepting requests since Thu27Apr201705:53:59 PM EDT\r\n[ian@atticf27 ~]$ \/usr\/sbin\/lpc status HL-2280DW\r\nHL-2280DW:\r\nprinter is on device 'dnssd' speed -1\r\nqueuing is disabled\r\nprinting is enabled\r\nno entries\r\ndaemon present\r\n<\/pre>\n

\u5217\u8868 2. \u542f\u7528\u961f\u5217\u548c\u7981\u7528\u6253\u5370<\/p>\n

\u8fd9\u4e2a\u793a\u4f8b\u5c55\u793a\u4e86\u4e24\u53f0\u6253\u5370\u673a \u2014\u2014 HL-2280DW \u548c XP-610\uff0c\u548c\u4e00\u4e2a\u5206\u7c7b anyprint\uff0c\u5b83\u5141\u8bb8\u6253\u5370\u4f5c\u4e1a\u5b9a\u5411\u5230\u8fd9\u4e24\u53f0\u6253\u5370\u673a\u4e2d\u7684\u7b2c\u4e00\u4e2a\u53ef\u7528\u6253\u5370\u673a\u3002<\/p>\n

[ian@atticf27 ~]$ lpstat-a -p HL-2280DW\r\nanyprint accepting requests since Mon29Jan201801:17:09 PM EST\r\nHL-2280DWnot accepting requests since Thu27Apr201705:52:27 PM EDT -\r\nMaintenance scheduled\r\nXP-610 accepting requests since Thu27Apr201705:53:59 PM EDT\r\nprinter HL-2280DWis idle. enabled since Thu27Apr201705:52:27 PM EDT\r\nMaintenance scheduled\r\n[ian@atticf27 ~]$ accept HL-2280DW\r\n[ian@atticf27 ~]$ cupsdisable -r \"waiting for toner delivery\" HL-2280DW\r\n[ian@atticf27 ~]$ lpstat-p -a\r\nprinter anyprint is idle. enabled since Mon29Jan201801:17:09 PM EST\r\nprinter HL-2280DW disabled since Mon29Jan201804:03:50 PM EST -\r\nwaiting for toner delivery\r\nprinter XP-610is idle. enabled since Thu27Apr201705:53:59 PM EDT\r\nanyprint accepting requests since Mon29Jan201801:17:09 PM EST\r\nHL-2280DW accepting requests since Mon29Jan201804:03:50 PM EST\r\nXP-610 accepting requests since Thu27Apr201705:53:59 PM EDT\r\n<\/pre>\n

\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5df2\u7ecf\u7981\u7528\u4e86\u6253\u5370\u5230 HL-2280DW \u961f\u5217\uff0c\u4f46\u662f\u6253\u5370\u529f\u80fd\u662f\u542f\u7528\u7684\uff0c\u8fd9\u6837\u4fbf\u4e8e\u5c06\u6253\u5370\u673a\u8131\u673a\u7ef4\ufffd\ufffd\u4e4b\u524d\u53ef\u4ee5\u5b8c\u6210\u6253\u5370\u961f\u5217\u4e2d\u7684\u4efb\u52a1\u3002\u542f\u7528\u8fd8\u662f\u7981\u7528\u961f\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528 cupsaccept \u548c cupsreject \u547d\u4ee4\u6765\u7ba1\u7406\u3002\u4ee5\u524d\u5b83\u4eec\u53eb\u505a accept \u548c reject\uff0c\u4f60\u6216\u8bb8\u53ef\u80fd\u5728 \/usr\/sbin \u4e2d\u627e\u5230\u8fd9\u4e9b\u547d\u4ee4\uff0c\u4f46\u5b83\u4eec\u73b0\u5728\u90fd\u662f\u7b26\u53f7\u94fe\u63a5\u5230\u65b0\u7684\u547d\u4ee4\u4e0a\u4e86\u3002\u540c\u6837\uff0c\u542f\u7528\u8fd8\u662f\u7981\u7528\u6253\u5370\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 cupsenable \u548c cupsdisable \u547d\u4ee4\u6765\u7ba1\u7406\u3002\u5728\u65e9\u671f\u7248\u672c\u7684 CUPS \u4e2d\uff0c\u8fd9\u4e9b\u88ab\u79f0\u4e3a enable \u548c disable\uff0c\u5b83\u4e5f\u8bb8\u4f1a\u4e0e bash shell \u5185\u7f6e\u7684 enable \u6df7\u6dc6\u3002\u5217\u8868 2 \u5c55\u793a\u4e86\u5982\u4f55\u53bb\u542f\u7528\u6253\u5370\u673a HL-2280DW \u4e0a\u7684\u961f\u5217\uff0c\u800c\u7981\u6b62\u5b83\u7684\u6253\u5370\u3002CUPS \u7684\u51e0\u4e2a\u547d\u4ee4\u652f\u6301\u4f7f\u7528 -r \u9009\u9879\u53bb\u63d0\u4f9b\u4e00\u4e2a\u8be5\u64cd\u4f5c\u7684\u7406\u7531\u3002\u8fd9\u4e2a\u7406\u7531\u4f1a\u5728\u4f60\u4f7f\u7528 lpstat \u65f6\u663e\u793a\uff0c\u4f46\u662f\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f lpc \u547d\u4ee4\u5219\u4e0d\u4f1a\u663e\u793a\u5b83\u3002<\/p>\n

\u6ce8\u610f\uff1a\u7528\u6237\u6267\u884c\u8fd9\u4e9b\u4efb\u52a1\u5fc5\u987b\u7ecf\u8fc7\u6388\u6743\u3002\u5b83\u53ef\u80fd\u8981\u6c42\u662f root \u7528\u6237\u6216\u8005\u5176\u5b83\u7684\u6388\u6743\u7528\u6237\u3002\u5728 \/etc\/cups\/cups-files.conf \u4e2d\u53ef\u4ee5\u770b\u5230 SystemGroup \u7684\u6761\u76ee\uff0ccups-files.conf \u7684 man \u9875\u9762\u6709\u66f4\u591a\u6388\u6743\u7528\u6237\u7ec4\u7684\u4fe1\u606f\u3002<\/p>\n

\u7ba1\u7406\u7528\u6237\u6253\u5370\u4f5c\u4e1a<\/strong><\/div>\n

\u73b0\u5728\uff0c\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86\u4e00\u4e9b\u5982\u4f55\u53bb\u68c0\u67e5\u6253\u5370\u961f\u5217\u548c\u7c7b\u7684\u65b9\u6cd5\uff0c\u6211\u5c06\u7ed9\u4f60\u5c55\u793a\u5982\u4f55\u7ba1\u7406\u6253\u5370\u961f\u5217\u4e0a\u7684\u4f5c\u4e1a\u3002\u4f60\u8981\u505a\u7684\u7b2c\u4e00\u4ef6\u4e8b\u662f\uff0c\u5982\u4f55\u627e\u5230\u4e00\u4e2a\u7279\u5b9a\u6253\u5370\u673a\u6216\u8005\u5168\u90e8\u6253\u5370\u673a\u4e0a\u6392\u961f\u7684\u4efb\u610f\u4f5c\u4e1a\u3002\u5b8c\u6210\u4e0a\u8ff0\u5de5\u4f5c\u8981\u4f7f\u7528 lpq \u547d\u4ee4\u3002\u5982\u679c\u6ca1\u6709\u6307\u5b9a\u4efb\u4f55\u9009\u9879\uff0clpq \u5c06\u663e\u793a\u9ed8\u8ba4\u6253\u5370\u673a\u4e0a\u7684\u961f\u5217\u3002\u4f7f\u7528 -P \u9009\u9879\u548c\u4e00\u4e2a\u6253\u5370\u673a\u540d\u5b57\u5c06\u6307\u5b9a\u6253\u5370\u673a\uff0c\u6216\u8005\u4f7f\u7528 -a \u9009\u9879\u53bb\u6307\u5b9a\u6240\u6709\u7684\u6253\u5370\u673a\u3002\u5217\u8868\u4e09<\/p>\n

[pat@atticf27 ~]$ #As user pat (non-administrator)\r\n[pat@atticf27 ~]$ lpq\r\nHL-2280DWisnot ready\r\nRankOwnerJobFile(s)TotalSize\r\n1st unknown 4 unknown 6144 bytes\r\n2nd pat 6 bitlib.h 6144 bytes\r\n3rd pat 7 bitlib.C 6144 bytes\r\n4th unknown 8 unknown 1024 bytes\r\n5th unknown 9 unknown 1024 bytes\r\n[ian@atticf27 ~]$ #As user ian (administrator)\r\n[ian@atticf27 ~]$ lpq -P xp-610\r\nxp-610is ready\r\nno entries\r\n[ian@atticf27 ~]$ lpq -a\r\nRankOwnerJobFile(s)TotalSize\r\n1st ian 4 permutation.C 6144 bytes\r\n2nd pat 6 bitlib.h 6144 bytes\r\n3rd pat 7 bitlib.C 6144 bytes\r\n4th ian 8.bashrc 1024 bytes\r\n5th ian 9.bashrc 1024 bytes\r\n<\/pre>\n

\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5171\u6709\u4e94\u4e2a\u4f5c\u4e1a\uff0c\u5b83\u4eec\u662f 4\u30016\u30017\u30018\u3001\u548c 9\uff0c\u5e76\u4e14\u5b83\u662f\u540d\u4e3a HL-2280DW \u7684\u6253\u5370\u673a\u7684\u961f\u5217\uff0c\u800c\u4e0d\u662f XP-610 \u7684\u3002\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\u4f7f\u7528 -P \u9009\u9879\uff0c\u53ef\u7b80\u5355\u5730\u663e\u793a\u54ea\u4e2a\u6253\u5370\u673a\u5df2\u7ecf\u51c6\u5907\u597d\uff0c\u4f46\u662f\u6ca1\u6709\u961f\u5217\u4efb\u52a1\u3002\u6ce8\u610f\uff0cCUPS \u7684\u6253\u5370\u673a\u547d\u540d\uff0c\u662f\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u7684\u3002\u8fd8\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7528\u6237 ian \u63d0\u4ea4\u4e86\u540c\u6837\u7684\u4f5c\u4e1a\u4e24\u6b21\uff0c\u5f53\u4e00\u4e2a\u4f5c\u4e1a\u6ca1\u6709\u7b2c\u4e00\u65f6\u95f4\u6253\u5370\u65f6\uff0c\u7ecf\u5e38\u80fd\u770b\u5230\u7528\u6237\u7684\u8fd9\u79cd\u52a8\u4f5c\u3002<\/p>\n

\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u4f1a\u67e5\u770b\u6216\u8005\u7ef4\u62a4\u4f60\u81ea\u5df1\u7684\u6253\u5370\u4f5c\u4e1a\uff0c\u4f46\u662f\uff0croot \u7528\u6237\u6216\u8005\u5176\u5b83\u6388\u6743\u7684\u7528\u6237\u901a\u5e38\u4f1a\u53bb\u7ba1\u7406\u5176\u5b83\u6253\u5370\u4f5c\u4e1a\u3002\u5927\u591a\u6570 CUPS \u547d\u4ee4\u90fd\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a -E \u9009\u9879\uff0c\u5bf9 CUPS \u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u901a\u8baf\u8fdb\u884c\u52a0\u5bc6\u3002<\/p>\n

\u4f7f\u7528 lprm \u547d\u4ee4\u4ece\u961f\u5217\u4e2d\u53bb\u5220\u9664\u4e00\u4e2a .bashrc \u4f5c\u4e1a\u3002\u5982\u679c\u4e0d\u4f7f\u7528\u9009\u9879\uff0c\u5c06\u5220\u9664\u5f53\u524d\u7684\u4f5c\u4e1a\u3002\u4f7f\u7528 - \u9009\u9879\uff0c\u5c06\u5220\u9664\u5168\u90e8\u7684\u4f5c\u4e1a\u3002\u8981\u4e48\u5c31\u5982\u5217\u8868 4 \u90a3\u6837\uff0c\u6307\u5b9a\u4e00\u4e2a\u8981\u5220\u9664\u7684\u4f5c\u4e1a\u5217\u8868\u3002<\/p>\n

[[pat@atticf27 ~]$ #As user pat (non-administrator)\r\n[pat@atticf27 ~]$ lprm\r\nlprm:Forbidden\r\n[ian@atticf27 ~]$ #As user ian (administrator)\r\n[ian@atticf27 ~]$ lprm 8\r\n[ian@atticf27 ~]$ lpq\r\nHL-2280DWisnot ready\r\nRankOwnerJobFile(s)TotalSize\r\n1st ian 4 permutation.C 6144 bytes\r\n2nd pat 6 bitlib.h 6144 bytes\r\n3rd pat 7 bitlib.C 6144 bytes\r\n4th ian 9.bashrc 1024 bytes\r\n<\/pre>\n

\u6ce8\u610f\uff0c\u7528\u6237 pat \u4e0d\u80fd\u5220\u9664\u961f\u5217\u4e2d\u7684\u7b2c\u4e00\u4e2a\u4f5c\u4e1a\uff0c\u56e0\u4e3a\u5b83\u662f\u7528\u6237 ian \u7684\u3002\u4f46\u662f\uff0cian \u53ef\u4ee5\u5220\u9664\u4ed6\u81ea\u5df1\u7684 8 \u53f7\u4f5c\u4e1a\u3002<\/p>\n

\u53e6\u5916\u7684\u53ef\u4ee5\u5e2e\u4f60\u64cd\u4f5c\u6253\u5370\u961f\u5217\u4e2d\u7684\u4f5c\u4e1a\u7684\u547d\u4ee4\u662f lp\u3002\u4f7f\u7528\u5b83\u53ef\u4ee5\u53bb\u4fee\u6539\u4f5c\u4e1a\u5c5e\u6027\uff0c\u6bd4\u5982\u6253\u5370\u6570\u91cf\u6216\u8005\u4f18\u5148\u7ea7\u3002\u6211\u4eec\u5047\u8bbe\u7528\u6237 ian \u5e0c\u671b\u4ed6\u7684\u4f5c\u4e1a 9 \u5728\u7528\u6237 pat \u7684\u4f5c\u4e1a\u4e4b\u524d\u6253\u5370\uff0c\u5e76\u4e14\u5e0c\u671b\u6253\u5370\u4e24\u4efd\u3002\u4f5c\u4e1a\u4f18\u5148\u7ea7\u7684\u9ed8\u8ba4\u503c\u662f 50\uff0c\u5b83\u7684\u4f18\u5148\u7ea7\u8303\u56f4\u4ece\u6700\u4f4e\u7684 1 \u5230\u6700\u9ad8\u7684 100 \u4e4b\u95f4\u3002\u7528\u6237 ian \u53ef\u4ee5\u4f7f\u7528 -i\u3001-n\u3001\u4ee5\u53ca -q \u9009\u9879\u53bb\u6307\u5b9a\u4e00\u4e2a\u8981\u4fee\u6539\u7684\u4f5c\u4e1a\uff0c\u800c\u65b0\u7684\u6253\u5370\u6570\u91cf\u548c\u4f18\u5148\u7ea7\u53ef\u4ee5\u5982\u4e0b\u9762\u7684\u5217\u8868 5 \u6240\u793a\u7684\u90a3\u6837\u53bb\u4fee\u6539\u3002\u6ce8\u610f\uff0c\u4f7f\u7528 -l \u9009\u9879\u7684 lpq \u547d\u4ee4\u53ef\u4ee5\u63d0\u4f9b\u66f4\u8be6\u7ec6\u7684\u8f93\u51fa\u3002<\/p>\n

[ian@atticf27 ~]$ lpq\r\nHL-2280DWisnot ready\r\nRankOwnerJobFile(s)TotalSize\r\n1st ian 4 permutation.C 6144 bytes\r\n2nd pat 6 bitlib.h 6144 bytes\r\n3rd pat 7 bitlib.C 6144 bytes\r\n4th ian 9.bashrc 1024 bytes\r\n[ian@atticf27 ~]$ lp-i 9-q 60-n 2\r\n[ian@atticf27 ~]$ lpq\r\nHL-2280DWisnot ready\r\nRankOwnerJobFile(s)TotalSize\r\n1st ian 9.bashrc 1024 bytes\r\n2nd ian 4 permutation.C 6144 bytes\r\n3rd pat 6 bitlib.h 6144 bytes\r\n4th pat 7 bitlib.C 6144 bytes\r\n<\/pre>\n

\u6700\u540e\uff0clpmove \u547d\u4ee4\u53ef\u4ee5\u5141\u8bb8\u4e00\u4e2a\u4f5c\u4e1a\u4ece\u4e00\u4e2a\u961f\u5217\u79fb\u52a8\u5230\u53e6\u4e00\u4e2a\u961f\u5217\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u80fd\u56e0\u4e3a\u6253\u5370\u673a HL-2280DW \u73b0\u5728\u4e0d\u80fd\u4f7f\u7528\uff0c\u800c\u60f3\u53bb\u79fb\u52a8\u4e00\u4e2a\u4f5c\u4e1a\u5230\u53e6\u5916\u7684\u961f\u5217\u4e0a\u3002\u4f60\u53ef\u4ee5\u6307\u5b9a\u4e00\u4e2a\u4f5c\u4e1a\u7f16\u53f7\uff0c\u6bd4\u5982 9\uff0c\u6216\u8005\u4f60\u53ef\u4ee5\u7528\u4e00\u4e2a\u961f\u5217\u540d\u52a0\u4e00\u4e2a\u8fde\u5b57\u7b26\u53bb\u9650\u5b9a\u5b83\uff0c\u6bd4\u5982\uff0cHL-2280DW-0\u3002lpmove \u547d\u4ee4\u7684\u64cd\u4f5c\u8981\u6c42\u662f\u6388\u6743\u7528\u6237\u3002\u5217\u8868 6 \u5c55\u793a\u4e86\u5982\u4f55\u53bb\u4ece\u4e00\u4e2a\u961f\u5217\u79fb\u52a8\u4f5c\u4e1a\u5230\u53e6\u5916\u7684\u961f\u5217\uff0c\u5148\u662f\u6307\u5b9a\u6253\u5370\u673a\u548c\u4f5c\u4e1a ID \u79fb\u52a8\uff0c\u7136\u540e\u662f\u79fb\u52a8\u6307\u5b9a\u6253\u5370\u673a\u7684\u6240\u6709\u4f5c\u4e1a\u3002\u7a0d\u540e\u6211\u4eec\u53ef\u4ee5\u53bb\u518d\u6b21\u68c0\u67e5\u961f\u5217\uff0c\u5176\u4e2d\u4e00\u4e2a\u4f5c\u4e1a\u5df2\u7ecf\u5728\u6253\u5370\u4e2d\u4e86\u3002<\/p>\n

[ian@atticf27 ~]$ lpmove HL-2280DW-9 anyprint\r\n[ian@atticf27 ~]$ lpmove HL-2280DW xp-610\r\n[ian@atticf27 ~]$ lpq -a\r\nRankOwnerJobFile(s)TotalSize\r\nactive ian 9.bashrc 1024 bytes\r\n1st ian 4 permutation.C 6144 bytes\r\n2nd pat 6 bitlib.h 6144 bytes\r\n3rd pat 7 bitlib.C 6144 bytes\r\n[ian@atticf27 ~]$ # A few minutes later\r\n[ian@atticf27 ~]$ lpq -a\r\nRankOwnerJobFile(s)TotalSize\r\nactive pat 6 bitlib.h 6144 bytes\r\n1st pat 7 bitlib.C 6144 bytes\r\n<\/pre>\n

\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f CUPS \u4e4b\u5916\u7684\u6253\u5370\u670d\u52a1\u5668\uff0c\u6bd4\u5982 LPD \u6216\u8005 LPRng\uff0c\u5927\u591a\u6570\u7684\u961f\u5217\u7ba1\u7406\u529f\u80fd\u662f\u7531 lpc \u547d\u4ee4\u7684\u5b50\u547d\u4ee4\u6765\u5904\u7406\u7684\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 lpc topq \u53bb\u79fb\u52a8\u4e00\u4e2a\u4f5c\u4e1a\u5230\u961f\u5217\u7684\u9876\u7aef\u3002\u5176\u5b83\u7684 lpc \u5b50\u547d\u4ee4\u5305\u62ec disable\u3001down\u3001enable\u3001hold\u3001move\u3001redirect\u3001release\u3001\u548c start\u3002\u8fd9\u4e9b\u5b50\u547d\u4ee4\u5728 CUPS \u7684\u517c\u5bb9\u547d\u4ee4\u4e2d\u6ca1\u6709\u5b9e\u73b0\u3002<\/p>\n

\u6253\u5370\u6587\u4ef6<\/strong><\/div>\n

\u5982\u4f55\u53bb\u6253\u5370\u521b\u5efa\u7684\u4f5c\u4e1a\uff1f\u5927\u591a\u6570\u56fe\u5f62\u754c\u9762\u7a0b\u5e8f\u90fd\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6253\u5370\u65b9\u6cd5\uff0c\u901a\u5e38\u662f \u6587\u4ef6 \u83dc\u5355\u4e0b\u9762\u7684\u9009\u9879\u3002\u8fd9\u4e9b\u7a0b\u5e8f\u4e3a\u9009\u62e9\u6253\u5370\u673a\u3001\u8bbe\u7f6e\u9875\u8fb9\u8ddd\u3001\u5f69\u8272\u6216\u8005\u9ed1\u767d\u6253\u5370\u3001\u6253\u5370\u6570\u91cf\u3001\u9009\u62e9\u6bcf\u5f20\u7eb8\u6253\u5370\u7684\u9875\u9762\u6570\uff08\u6bcf\u5f20\u7eb8\u6253\u5370\u4e24\u4e2a\u9875\u9762\uff0c\u901a\u5e38\u7528\u4e8e\u8bb2\u4e49\uff09\u7b49\u7b49\uff0c\u90fd\u63d0\u4f9b\u4e86\u56fe\u5f62\u5316\u7684\u5de5\u5177\u3002\u73b0\u5728\uff0c\u6211\u5c06\u4e3a\u4f60\u5c55\u793a\u5982\u4f55\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u53bb\u7ba1\u7406\u8fd9\u4e9b\u529f\u80fd\uff0c\u7136\u540e\u548c\u56fe\u5f62\u5316\u5b9e\u73b0\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n

\u6253\u5370\u6587\u4ef6\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 lpr \u547d\u4ee4\uff0c\u7136\u540e\u63d0\u4f9b\u4e00\u4e2a\u6587\u4ef6\u540d\u5b57\u3002\u8fd9\u5c06\u5728\u9ed8\u8ba4\u6253\u5370\u673a\u4e0a\u6253\u5370\u8fd9\u4e2a\u6587\u4ef6\u3002\u800c lp \u547d\u4ee4\u4e0d\u4ec5\u53ef\u4ee5\u6253\u5370\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u4fee\u6539\u6253\u5370\u4f5c\u4e1a\u3002\u5217\u8868 7 \u5c55\u793a\u4e86\u4f7f\u7528\u8fd9\u4e2a\u547d\u4ee4\u7684\u4e00\u4e2a\u7b80\u5355\u793a\u4f8b\u3002\u6ce8\u610f\uff0clpr \u4f1a\u9759\u9ed8\u5904\u7406\u8fd9\u4e2a\u4f5c\u4e1a\uff0c\u4f46\u662f lp \u4f1a\u663e\u793a\u5904\u7406\u540e\u7684\u4f5c\u4e1a\u7684 ID\u3002<\/p>\n

[ian@atticf27 ~]$ echo\"Print this text\"> printexample.txt\r\n[ian@atticf27 ~]$ lpr printexample.txt\r\n[ian@atticf27 ~]$ lp printexample.txt\r\nrequest idis HL-2280DW-12(1file(s))\r\n<\/pre>\n

\u8868 2 \u5c55\u793a\u4e86 lpr \u4e0a\u4f60\u53ef\u4ee5\u4f7f\u7528\u7684\u4e00\u4e9b\u9009\u9879\u3002\u6ce8\u610f\uff0c lp \u7684\u9009\u9879\u548c lpr \u7684\u5f88\u7c7b\u4f3c\uff0c\u4f46\u662f\u540d\u5b57\u53ef\u80fd\u4e0d\u4e00\u6837\uff1b\u4f8b\u5982\uff0c-# \u5728 lpr \u4e0a\u662f\u76f8\u5f53\u4e8e lp \u7684 -n \u9009\u9879\u3002\u67e5\u770b man \u9875\u9762\u4e86\u89e3\u66f4\u591a\u7684\u4fe1\u606f\u3002<\/p>\n

< \u5982\u663e\u793a\u4e0d\u5168\uff0c\u8bf7\u5de6\u53f3\u6ed1\u52a8 ><\/p>\n

\u9009\u9879 \u4f5c\u7528
\n-C\uff0c -J \u6216 -T \u8bbe\u7f6e\u4e00\u4e2a\u4f5c\u4e1a\u540d\u5b57\u3002
\n-P \u9009\u62e9\u4e00\u4e2a\u6307\u5b9a\u7684\u6253\u5370\u673a\u3002
\n-# \u6307\u5b9a\u6253\u5370\u6570\u91cf\u3002\u6ce8\u610f\u8fd9\u4e0d\u540c\u4e8e lp \u547d\u4ee4\u7684 -n \u9009\u9879\u3002
\n-m \u5728\u4f5c\u4e1a\u5b8c\u6210\u65f6\u53d1\u9001\u7535\u5b50\u90ae\u4ef6\u3002
\n-l \u8868\u793a\u6253\u5370\u6587\u4ef6\u5df2\u7ecf\u4e3a\u6253\u5370\u505a\u597d\u683c\u5f0f\u51c6\u5907\u3002\u76f8\u5f53\u4e8e -o raw\u3002
\n-o \u8bbe\u7f6e\u4e00\u4e2a\u4f5c\u4e1a\u9009\u9879\u3002
\n-p \u683c\u5f0f\u5316\u4e00\u4e2a\u5e26\u6709\u9634\u5f71\u6807\u9898\u7684\u6587\u672c\u6587\u4ef6\u3002\u76f8\u5173\u4e8e -o prettyprint\u3002
\n-q \u6682\u7f13\uff08\u6216\u6392\u961f\uff09\u540e\u9762\u7684\u6253\u5370\u4f5c\u4e1a\u3002
\n-r \u5728\u6587\u4ef6\u8fdb\u5165\u6253\u5370\u6c60\u4e4b\u540e\uff0c\u5220\u9664\u6587\u4ef6\u3002
\n\u8868 2. lpr \u7684\u9009\u9879<\/p>\n

\u5217\u8868 8 \u5c55\u793a\u4e86\u4e00\u4e9b\u9009\u9879\u3002\u6211\u8981\u6c42\u6253\u5370\u4e4b\u540e\u7ed9\u6211\u53d1\u786e\u8ba4\u7535\u5b50\u90ae\u4ef6\uff0c\u90a3\u4e2a\u4f5c\u4e1a\u88ab\u6682\u7f13\u6267\u884c\uff0c\u5e76\u4e14\u5728\u6253\u5370\u4e4b\u540e\u5220\u9664\u6587\u4ef6\u3002<\/p>\n

[ian@atticf27 ~]$ lpr-P HL-2280DW-J \"Ian's text file\"-#2-m -p -q -r printexample.txt\r\n[[ian@atticf27 ~]$ lpq -l\r\nHL-2280DWis ready\r\nian:1st[job 13 localhost]\r\n2 copies of Ian's text file 1024 bytes\r\n[ian@atticf27 ~]$ ls printexample.txt\r\nls: cannot access 'printexample.txt': No such file or directory\r\n<\/pre>\n

\u6211\u73b0\u5728\u6709\u4e00\u4e2a\u5728 HL-2280DW \u6253\u5370\u961f\u5217\u4e0a\u6682\u7f13\u6267\u884c\u7684\u4f5c\u4e1a\u3002\u7136\u540e\u600e\u4e48\u505a\uff1flp \u547d\u4ee4\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 -H \u7684\u5404\u79cd\u9009\u9879\u6765\u6682\u7f13\u6216\u8005\u6295\u653e\u4f5c\u4e1a\u3002\u5217\u8868 9 \u5c55\u793a\u4e86\u5982\u4f55\u6295\u653e\u88ab\u6682\u7f13\u7684\u4f5c\u4e1a\u3002\u67e5\u770b lp \u547d\u4ee4\u7684 man \u9875\u9762\u4e86\u89e3\u5176\u5b83\u9009\u9879\u7684\u4fe1\u606f\u3002<\/p>\n

ian@atticf27 ~]$ lp-i 13-H resume\r\n<\/pre>\n

\u5e76\u4e0d\u662f\u6240\u6709\u7684\u53ef\u7528\u6253\u5370\u673a\u90fd\u652f\u6301\u76f8\u540c\u7684\u9009\u9879\u96c6\u3002\u4f7f\u7528 lpoptions \u547d\u4ee4\u53bb\u67e5\u770b\u4e00\u4e2a\u6253\u5370\u673a\u7684\u5e38\u7528\u9009\u9879\u3002\u6dfb\u52a0 -l \u9009\u9879\u53bb\u663e\u793a\u6253\u5370\u673a\u4e13\u7528\u7684\u9009\u9879\u3002\u5217\u8868 10 \u5c55\u793a\u4e86\u4e24\u4e2a\u793a\u4f8b\u3002\u8bb8\u591a\u5e38\u89c1\u7684\u9009\u9879\u6d89\u53ca\u5230\u4eba\u50cf\/\u98ce\u666f\u6253\u5370\u3001\u9875\u9762\u5927\u5c0f\u548c\u8f93\u51fa\u5728\u7eb8\u5f20\u4e0a\u7684\u5e03\u5c40\u3002\u8be6\u7ec6\u4fe1\u606f\u67e5\u770b man \u9875\u9762\u3002<\/p>\n

[ian@atticf27 ~]$ lpoptions -p HL-2280DW\r\ncopies=1 device-uri=dnssd:\/\/Brother%20HL-2280DW._pdl-datastream._tcp.local\/\r\nfinishings=3 job-cancel-after=10800 job-hold-until=no-hold job-priority=50\r\njob-sheets=none,none marker-change-time=1517325288 marker-colors=#000000,#000000\r\nmarker-levels=-1,92 marker-names='Black\\ Toner\\ Cartridge,Drum\\ Unit'\r\nmarker-types=toner,opc number-up=1 printer-commands=none\r\nprinter-info='Brother HL-2280DW' printer-is-accepting-jobs=true\r\nprinter-is-shared=true printer-is-temporary=false printer-location\r\nprinter-make-and-model='Brother HL-2250DN - CUPS+Gutenprint v5.2.13 Simplified'\r\nprinter-state=3 printer-state-change-time=1517325288 printer-state-reasons=none\r\nprinter-type=135188 printer-uri-supported=ipp:\/\/localhost\/printers\/HL-2280DW\r\nsides=one-sided\r\n[ian@atticf27 ~]$ lpoptions -l -p xp-610\r\nPageSize\/MediaSize:*LetterLegalExecutiveStatement A4\r\nColorModel\/ColorModel:*GrayBlack\r\nInputSlot\/MediaSource:*StandardManualAdjManualMultiPurposeAdjMultiPurpose\r\nUpperAdjUpperLowerAdjLowerLargeCapacityAdjLargeCapacity\r\nStpQuality\/PrintQuality:NoneDraft*StandardHigh\r\nResolution\/Resolution:*301x300dpi150dpi300dpi600dpi\r\nDuplex\/2-SidedPrinting:*NoneDuplexNoTumbleDuplexTumble\r\nStpiShrinkOutput\/ShrinkPageIfNecessary to FitBorders:*ShrinkCropExpand\r\nStpColorCorrection\/ColorCorrection:*NoneAccurateBrightHueUncorrected\r\nDesaturatedThresholdDensityRawPredithered\r\nStpBrightness\/Brightness:0100200300400500600700800900*None1100\r\n120013001400150016001700180019002000Custom.REAL\r\nStpContrast\/Contrast:0100200300400500600700800900*None11001200\r\n130014001500160017001800190020002100220023002400250026002700\r\n2800290030003100320033003400350036003700380039004000Custom.REAL\r\nStpImageType\/ImageType:NoneTextGraphics*TextGraphicsPhotoLineArt\r\n<\/pre>\n

\u5927\u591a\u6570\u7684 GUI \u5e94\u7528\u7a0b\u5e8f\u6709\u4e00\u4e2a\u6253\u5370\u5bf9\u8bdd\u6846\uff0c\u901a\u5e38\u4f60\u53ef\u4ee5\u4f7f\u7528 \u6587\u4ef6 >\u6253\u5370 \u83dc\u5355\u53bb\u9009\u62e9\u5b83\u3002\u56fe 1 \u5c55\u793a\u4e86\u5728 GIMP \u4e2d\u7684\u4e00\u4e2a\u793a\u4f8b\uff0cGIMP \u662f\u4e00\u4e2a\u56fe\u50cf\u5904\u7406\u7a0b\u5e8f\u3002
\n\"\"<\/p>\n

\u56fe 1. \u5728 GIMP \u4e2d\u6253\u5370<\/em><\/p>\n

\u5230\u76ee\u524d\u4e3a\u6b62\uff0c\u6211\u4eec\u6240\u6709\u7684\u547d\u4ee4\u90fd\u662f\u9690\u5f0f\u6307\u5411\u5230\u672c\u5730\u7684 CUPS \u6253\u5370\u670d\u52a1\u5668\u4e0a\u3002\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u00a0\u00a0-h<\/span>\u9009\u9879\u548c\u4e00\u4e2a\u7aef\u53e3\u53f7\uff08\u5982\u679c\u4e0d\u662f CUPS \u7684\u9ed8\u8ba4\u7aef\u53e3\u53f7 631 \u7684\u8bdd\uff09\u5c06\u6253\u5370\u8f6c\u5411\u5230\u53e6\u5916\u4e00\u4e2a\u7cfb\u7edf\u4e0a\u7684\u670d\u52a1\u5668\u3002<\/p>\n

CUPS \u548c CUPS \u670d\u52a1\u5668<\/strong><\/div>\n

CUPS \u6253\u5370\u7cfb\u7edf\u7684\u6838\u5fc3\u662f cupsd \u6253\u5370\u670d\u52a1\u5668\uff0c\u5b83\u662f\u4e00\u4e2a\u8fd0\u884c\u7684\u5b88\u62a4\u8fdb\u7a0b\u3002CUPS \u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u4f4d\u4e8e \/etc\/cups\/cupsd.conf\u3002\/etc\/cups \u76ee\u5f55\u4e5f\u6709\u4e0e CUPS \u76f8\u5173\u7684\u5176\u5b83\u7684\u914d\u7f6e\u6587\u4ef6\u3002CUPS \u4e00\u822c\u5728\u7cfb\u7edf\u521d\u59cb\u5316\u671f\u95f4\u542f\u52a8\uff0c\u6839\u636e\u4f60\u7684\u53d1\u884c\u7248\u4e0d\u540c\uff0c\u5b83\u4e5f\u53ef\u80fd\u901a\u8fc7\u4f4d\u4e8e \/etc\/rc.d\/init.d \u6216\u8005 \/etc\/init.d \u76ee\u5f55\u4e2d\u7684 CUPS \u811a\u672c\u6765\u63a7\u5236\u3002\u5bf9\u4e8e \u6700\u65b0\u4f7f\u7528 systemd \u6765\u521d\u59cb\u5316\u7684\u7cfb\u7edf\uff0cCUPS \u670d\u52a1\u811a\u672c\u53ef\u80fd\u5728 \/usr\/lib\/systemd\/system\/cups.service \u4e2d\u3002\u548c\u5927\u591a\u6570\u4f7f\u7528\u811a\u672c\u7684\u670d\u52a1\u4e00\u6837\uff0c\u4f60\u53ef\u4ee5\u505c\u6b62\u3001\u542f\u52a8\u3001\u6216\u8005\u91cd\u542f\u5b88\u62a4\u7a0b\u5e8f\u3002\u67e5\u770b\u6211\u4eec\u7684\u6559\u7a0b\uff1a\u5b66\u4e60 Linux\uff0c101\uff1a\u8fd0\u884c\u7ea7\u522b\u3001\u5f15\u5bfc\u76ee\u6807\u3001\u5173\u95ed\u3001\u548c\u91cd\u542f\u52a8\uff0c\u4e86\u89e3\u4f7f\u7528\u521d\u59cb\u5316\u811a\u672c\u7684\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n

\u914d\u7f6e\u6587\u4ef6 \/etc\/cups\/cupsd.conf \u5305\u542b\u4e00\u4e9b\u7ba1\u7406\u53c2\u6570\uff0c\u6bd4\u5982\u8bbf\u95ee\u6253\u5370\u7cfb\u7edf\u3001\u662f\u5426\u5141\u8bb8\u8fdc\u7a0b\u6253\u5370\u3001\u672c\u5730\u6253\u5370\u6c60\u6587\u4ef6\u7b49\u7b49\u3002\u5728\u4e00\u4e9b\u7cfb\u7edf\u4e0a\uff0c\u7b2c\u4e8c\u90e8\u5206\u5355\u72ec\u63cf\u8ff0\u4e86\u6253\u5370\u961f\u5217\uff0c\u5b83\u4e00\u822c\u662f\u7531\u914d\u7f6e\u5de5\u5177\u81ea\u52a8\u751f\u6210\u7684\u3002\u5217\u8868 11 \u5c55\u793a\u4e86\u4e00\u4e2a\u9ed8\u8ba4\u7684 cupsd.conf \u6587\u4ef6\u4e2d\u7684\u4e00\u4e9b\u6761\u76ee\u3002\u6ce8\u610f\uff0c\u6ce8\u91ca\u662f\u4ee5 # \u5b57\u7b26\u5f00\u5934\u7684\u3002\u9ed8\u8ba4\u503c\u901a\u5e38\u4ee5\u6ce8\u91ca\u7684\u65b9\u5f0f\u663e\u793a\uff0c\u5e76\u4e14\u53ef\u4ee5\u901a\u8fc7\u5220\u9664\u524d\u9762\u7684 # \u5b57\u7b26\u53bb\u6539\u53d8\u9ed8\u8ba4\u503c\u3002<\/p>\n

#Only listen for connections from the local machine.\r\nListen localhost:631\r\nListen\/var\/run\/cups\/cups.sock\r\n#Show shared printers on the local network.\r\nBrowsingOn\r\nBrowseLocalProtocols dnssd\r\n#Default authentication type,when authentication is required...\r\nDefaultAuthTypeBasic\r\n#Webinterface setting...\r\nWebInterfaceYes\r\n#Set the default printer\/job policies...\r\n\r\n#Job\/subscription privacy...\r\nJobPrivateAccessdefault\r\nJobPrivateValuesdefault\r\nSubscriptionPrivateAccessdefault\r\nSubscriptionPrivateValuesdefault\r\n#Job-related operations must be done by the owner or an administrator...\r\n\r\nOrder deny,allow\r\n\r\n<\/pre>\n

\u53ef\u4ee5\u7528\u5728 cupsd.conf \u4e2d\u4f7f\u7528\u7684\u6587\u4ef6\u3001\u76ee\u5f55\u3001\u548c\u7528\u6237\u914d\u7f6e\u547d\u4ee4\uff0c\u73b0\u5728\u90fd\u5b58\u50a8\u5728\u4f5c\u4e3a\u66ff\u4ee3\u7684 cups-files.conf \u4e2d\u3002\u8fd9\u662f\u4e3a\u4e86\u9632\u8303\u67d0\u4e9b\u7c7b\u578b\u7684\u63d0\u6743\u653b\u51fb\u3002\u5217\u8868 12 \u5c55\u793a\u4e86 cups-files.conf \u6587\u4ef6\u4e2d\u7684\u4e00\u4e9b\u6761\u76ee\u3002\u6ce8\u610f\uff0c\u6b63\u5982\u5728\u6587\u4ef6\u5c42\u6b21\u7ed3\u6784\u6807\u51c6\uff08FHS\uff09\u4e2d\u6240\u671f\u671b\u7684\u90a3\u6837\uff0c\u6253\u5370\u6c60\u6587\u4ef6\u9ed8\u8ba4\u4fdd\u5b58\u5728\u6587\u4ef6\u7cfb\u7edf\u7684 \/var\/spool \u76ee\u5f55\u4e2d\u3002\u67e5\u770b man \u9875\u9762\u4e86\u89e3 cupsd.conf \u548c cups-files.conf \u914d\u7f6e\u6587\u4ef6\u7684\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n

#Location of the file listing all of the local printers...\r\n#Printcap\/etc\/printcap\r\n#Format of the Printcapfile...\r\n#PrintcapFormat bsd\r\n#PrintcapFormat plist\r\n#PrintcapFormat solaris\r\n#Location of all spool files...\r\n#RequestRoot\/var\/spool\/cups\r\n#Location of helper programs...\r\n#ServerBin\/usr\/lib\/cups\r\n# SSL\/TLS keychain for the scheduler...\r\n#ServerKeychain ssl\r\n#Location of other configuration files...\r\n#ServerRoot\/etc\/cups\r\n<\/pre>\n

\u5217\u8868 12. \u9ed8\u8ba4\u7684 \/etc\/cups\/cups-files.conf \u914d\u7f6e\u6587\u4ef6\u7684\u90e8\u5206\u5185\u5bb9<\/p>\n

\u5217\u8868 12 \u63d0\u53ca\u4e86 \/etc\/printcap \u6587\u4ef6\u3002\u8fd9\u662f LPD \u6253\u5370\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u7684\u540d\u5b57\uff0c\u5e76\u4e14\u4e00\u4e9b\u5e94\u7528\u7a0b\u5e8f\u4ecd\u7136\u4f7f\u7528\u5b83\u53bb\u786e\u5b9a\u53ef\u7528\u7684\u6253\u5370\u673a\u548c\u5b83\u4eec\u7684\u5c5e\u6027\u3002\u5b83\u901a\u5e38\u662f\u5728 CUPS \u7cfb\u7edf\u4e0a\u81ea\u52a8\u751f\u6210\u7684\uff0c\u56e0\u6b64\uff0c\u4f60\u53ef\u80fd\u6ca1\u6709\u5fc5\u8981\u53bb\u4fee\u6539\u5b83\u3002\u4f46\u662f\uff0c\u5982\u679c\u4f60\u5728\u8bca\u65ad\u7528\u6237\u6253\u5370\u95ee\u9898\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u53bb\u68c0\u67e5\u5b83\u3002\u5217\u8868 13 \u5c55\u793a\u4e86\u4e00\u4e2a\u793a\u4f8b\u3002<\/p>\n

#Thisfile was automatically generated by cupsd(8)from the\r\n# \/etc\/cups\/printers.conf file.All changes to thisfile\r\n# will be lost.\r\nHL-2280DW|Brother HL-2280DW:rm=atticf27:rp=HL-2280DW:\r\nanyprint|Any available printer:rm=atticf27:rp=anyprint:\r\nXP-610|EPSON XP-610Series:rm=atticf27:rp=XP-610:\r\n<\/pre>\n

\u5217\u8868 13. \u81ea\u52a8\u751f\u6210\u7684 \/etc\/printcap<\/p>\n

\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u7684\u6bcf\u4e00\u884c\u90fd\u6709\u4e00\u4e2a\u6253\u5370\u673a\u540d\u5b57\u3001\u6253\u5370\u673a\u63cf\u8ff0\uff0c\u8fdc\u7a0b\u673a\u5668\uff08rm\uff09\u7684\u540d\u5b57\u3001\u4ee5\u53ca\u90a3\u4e2a\u8fdc\u7a0b\u673a\u5668\u4e0a\u7684\u8fdc\u7a0b\u6253\u5370\u673a\uff08rp\uff09\u3002\u8001\u7684 \/etc\/printcap \u6587\u4ef6\u4e5f\u63cf\u8ff0\u4e86\u6253\u5370\u673a\u7684\u80fd\u529b\u3002<\/p>\n

\u6587\u4ef6\u8f6c\u6362\u8fc7\u6ee4\u5668<\/strong><\/div>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528 CUPS \u6253\u5370\u8bb8\u591a\u7c7b\u578b\u7684\u6587\u4ef6\uff0c\u5305\u62ec\u660e\u6587\u7684\u6587\u672c\u6587\u4ef6\u3001PDF\u3001PostScript\u3001\u548c\u5404\u79cd\u683c\u5f0f\u7684\u56fe\u50cf\u6587\u4ef6\uff0c\u4f60\u53ea\u9700\u8981\u63d0\u4f9b\u8981\u6253\u5370\u7684\u6587\u4ef6\u540d\uff0c\u9664\u6b64\u4e4b\u5916\u4f60\u518d\u65e0\u9700\u5411 lpr \u6216 lp \u547d\u4ee4\u63d0\u4f9b\u66f4\u591a\u7684\u4fe1\u606f\u3002\u8fd9\u4e2a\u795e\u5947\u7684\u58ee\u4e3e\u662f\u901a\u8fc7\u4f7f\u7528\u8fc7\u6ee4\u5668\u6765\u5b9e\u73b0\u7684\u3002\u5b9e\u9645\u4e0a\uff0c\u8fd9\u4e9b\u5e74\u6765\u6700\u6d41\u884c\u7684\u8fc7\u6ee4\u5668\u5c31\u5c31\u53eb\u505a magicfilter\uff08\u795e\u5947\u7684\u8fc7\u6ee4\u5668\uff09\u3002<\/p>\n

\u5f53\u6253\u5370\u4e00\u4e2a\u6587\u4ef6\u65f6\uff0cCUPS \u4f7f\u7528\u591a\u7528\u9014\u56e0\u7279\u7f51\u90ae\u4ef6\u6269\u5c55\uff08MIME\uff09\u7c7b\u578b\u53bb\u51b3\u5b9a\u5408\u9002\u7684\u8f6c\u6362\u8fc7\u6ee4\u5668\u3002\u5176\u5b83\u7684\u6253\u5370\u6570\u636e\u5305\u53ef\u80fd\u4f7f\u7528\u7531 file \u547d\u4ee4\u4f7f\u7528\u7684\u795e\u5947\u6570\u5b57\u673a\u5236\u3002\u5173\u4e8e file \u6216\u8005\u795e\u5947\u6570\u7684\u66f4\u591a\u4fe1\u606f\u53ef\u4ee5\u67e5\u770b\u5b83\u4eec\u7684 man \u9875\u9762\u3002<\/p>\n

\u8f93\u5165\u6587\u4ef6\u88ab\u8fc7\u6ee4\u5668\u8f6c\u6362\u6210\u4e2d\u95f4\u5c42\u7684\u5149\u6805\u683c\u5f0f\u6216\u8005 PostScript \u683c\u5f0f\u3002\u4e00\u4e9b\u4f5c\u4e1a\u4fe1\u606f\uff0c\u6bd4\u5982\u6253\u5370\u6570\u91cf\u4e5f\u4f1a\u88ab\u6dfb\u52a0\u8fdb\u53bb\u3002\u6570\u636e\u6700\u7ec8\u901a\u8fc7\u4e00\u4e2a\u540e\u7aef\u53d1\u9001\u5230\u76ee\u6807\u6253\u5370\u673a\u3002\u8fd8\u6709\u4e00\u4e9b\u53ef\u4ee5\u7528\u624b\u52a8\u8fc7\u6ee4\u7684\u8f93\u5165\u6587\u4ef6\u7684\u8fc7\u6ee4\u5668\uff08\u5982 a2ps \u6216 dvips\uff09\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u8fc7\u6ee4\u5668\u83b7\u5f97\u7279\u6b8a\u683c\u5f0f\u7684\u7ed3\u679c\uff0c\u6216\u8005\u53bb\u5904\u7406\u4e00\u4e9b CUPS \u539f\u751f\u5e76\u4e0d\u652f\u6301\u7684\u6587\u4ef6\u683c\u5f0f\u3002<\/p>\n

\u6dfb\u52a0\u6253\u5370\u673a<\/strong><\/div>\n

CUPS \u652f\u6301\u591a\u79cd\u6253\u5370\u673a\uff0c\u5305\u62ec\uff1a<\/p>\n

\u672c\u5730\u8fde\u63a5\u7684\u5e76\u884c\u53e3\u548c USB \u53e3\u6253\u5370\u673a
\n\u56e0\u7279\u7f51\u6253\u5370\u534f\u8bae\uff08IPP\uff09\u6253\u5370\u673a
\n\u8fdc\u7a0b LPD \u6253\u5370\u673a
\n\u4f7f\u7528 SAMBA \u7684 Microsoft\u00ae Windows\u00ae \u6253\u5370\u673a
\n\u4f7f\u7528 NCP \u7684 Novell \u6253\u5370\u673a
\nHP Jetdirect \u6253\u5370\u673a
\n\u5f53\u7cfb\u7edf\u542f\u52a8\u6216\u8005\u8bbe\u5907\u8fde\u63a5\u65f6\uff0c\u73b0\u5728\u7684\u5927\u591a\u6570\u7cfb\u7edf\u90fd\u4f1a\u5c1d\u8bd5\u81ea\u52a8\u68c0\u6d4b\u548c\u81ea\u52a8\u914d\u7f6e\u672c\u5730\u786c\u4ef6\u3002\u540c\u6837\uff0c\u8bb8\u591a\u7f51\u7edc\u6253\u5370\u673a\u4e5f\u53ef\u4ee5\u88ab\u81ea\u52a8\u68c0\u6d4b\u5230\u3002\u4f7f\u7528 CUPS \u7684 web \u7ba1\u7406\u5de5\u5177\uff08http:\/\/localhost:631 \u6216\u8005 http:\/\/127.0.0.1:631\uff09\u53bb\u641c\u7d22\u6216\u6dfb\u52a0\u6253\u5370\u673a\u3002\u8bb8\u591a\u53d1\u884c\u7248\u90fd\u5305\u542b\u5b83\u4eec\u81ea\u5df1\u7684\u914d\u7f6e\u5de5\u5177\uff0c\u6bd4\u5982\uff0c\u5728 SUSE \u7cfb\u7edf\u4e0a\u7684 YaST\u3002\u56fe 2 \u5c55\u793a\u4e86\u4f7f\u7528 localhost:631 \u7684 CUPS \u754c\u9762\uff0c\u56fe 3 \u5c55\u793a\u4e86 Fedora 27 \u4e0a\u7684 GNOME \u6253\u5370\u673a\u8bbe\u7f6e\u5bf9\u8bdd\u6846\u3002<\/p>\n

\"\"
\n\u56fe 2. \u4f7f\u7528 CUPS \u7684 web \u754c\u9762
\n\"\"
\n\u56fe 3. Fedora 27 \u4e0a\u7684\u6253\u5370\u673a\u8bbe\u7f6e<\/p>\n

\u4f60\u4e5f\u53ef\u4ee5\u4ece\u547d\u4ee4\u884c\u914d\u7f6e\u6253\u5370\u673a\u3002\u5728\u914d\u7f6e\u6253\u5370\u673a\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u4e00\u4e9b\u5173\u4e8e\u6253\u5370\u673a\u548c\u5b83\u7684\u8fde\u63a5\u65b9\u5f0f\u7684\u57fa\u672c\u4fe1\u606f\u3002\u5982\u679c\u662f\u4e00\u4e2a\u8fdc\u7a0b\u7cfb\u7edf\uff0c\u4f60\u8fd8\u9700\u8981\u4e00\u4e2a\u7528\u6237 ID \u548c\u5bc6\u7801\u3002<\/p>\n

\u4f60\u9700\u8981\u53bb\u77e5\u9053\u4f60\u7684\u6253\u5370\u673a\u4f7f\u7528\u4ec0\u4e48\u6837\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u4e0d\u662f\u6240\u6709\u7684\u6253\u5370\u673a\u90fd\u652f\u6301 Linux\uff0c\u6709\u4e9b\u6253\u5370\u673a\u5728 Linux \u4e0a\u538b\u6839\u5c31\u4e0d\u80fd\u4f7f\u7528\uff0c\u6216\u8005\u529f\u80fd\u53d7\u9650\u3002\u4f60\u53ef\u4ee5\u53bb OpenPrinting.org \u53bb\u67e5\u770b\u662f\u5426\u6709\u4f60\u7684\u7279\u5b9a\u7684\u6253\u5370\u673a\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002lpinfo \u547d\u4ee4\u4e5f\u53ef\u4ee5\u5e2e\u4f60\u8bc6\u522b\u6709\u6548\u7684\u8bbe\u5907\u7c7b\u578b\u548c\u9a71\u52a8\u7a0b\u5e8f\u3002\u4f7f\u7528 -v \u9009\u9879\u53bb\u5217\u51fa\u652f\u6301\u7684\u8bbe\u5907\uff0c\u4f7f\u7528 -m \u9009\u9879\u53bb\u5217\u51fa\u9a71\u52a8\u7a0b\u5e8f\uff0c\u5982\u5217\u8868 14 \u6240\u793a\u3002<\/p>\n

[ian@atticf27 ~]$ lpinfo -m |grep-i xp-610\r\nlsb\/usr\/Epson\/epson-inkjet-printer-escpr\/Epson-XP-610_Series-epson-escpr-en.ppd.gz\r\nEPSON XP-610Series,EpsonInkjetPrinterDriver(ESC\/P-R)forLinux\r\n[ian@atticf27 ~]$ locate\"Epson-XP-610_Series-epson-escpr-en.ppd.gz\"\r\n\/usr\/share\/ppd\/Epson\/epson-inkjet-printer-escpr\/Epson-XP-610_Series-epson-escpr-en.ppd.gz\r\n[ian@atticf27 ~]$ lpinfo -v\r\nnetwork socket\r\nnetwork ipps\r\nnetwork lpd\r\nnetwork beh\r\nnetwork ipp\r\nnetwork http\r\nnetwork https\r\ndirect hp\r\nserial serial:\/dev\/ttyS0?baud=115200\r\ndirect parallel:\/dev\/lp0\r\nnetwork smb\r\ndirect hpfax\r\nnetwork dnssd:\/\/Brother%20HL-2280DW._pdl-datastream._tcp.local\/\r\nnetwork dnssd:\/\/EPSON%20XP-610%20Series._ipp._tcp.local\/?uuid=cfe92100-67c4-11d4-a45f-ac18266c48aa\r\nnetwork lpd:\/\/BRN001BA98A1891\/BINARY_P1\r\nnetwork lpd:\/\/192.168.1.38:515\/PASSTHRU\r\n<\/pre>\n

\u5217\u8868 14. \u53ef\u7528\u7684\u6253\u5370\u673a\u9a71\u52a8\u7a0b\u5e8f<\/p>\n

\u8fd9\u4e2a Epson-XP-610_Series-epson-escpr-en.ppd.gz \u9a71\u52a8\u7a0b\u5e8f\u5728\u6211\u7684\u7cfb\u7edf\u4e0a\u4f4d\u4e8e \/usr\/share\/ppd\/Epson\/epson-inkjet-printer-escpr\/ \u76ee\u5f55\u4e2d\u3002<\/p>\n

\u5982\u679c\u4f60\u627e\u4e0d\u5230\u9a71\u52a8\u7a0b\u5e8f\uff0c\u4f60\u53ef\u4ee5\u5230\u6253\u5370\u673a\u751f\u4ea7\u5546\u7684\u7f51\u7ad9\u770b\u770b\uff0c\u8bf4\u4e0d\u5b9a\u4f1a\u6709\u4e13\u7528\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u4f8b\u5982\uff0c\u5728\u5199\u8fd9\u7bc7\u6587\u7ae0\u7684\u65f6\u5019\uff0cBrother \u5c31\u6709\u4e00\u4e2a\u6211\u7684 HL-2280DW \u6253\u5370\u673a\u7684\u9a71\u52a8\u7a0b\u5e8f\uff0c\u4f46\u662f\uff0c\u8fd9\u4e2a\u9a71\u52a8\u7a0b\u5e8f\u5728 OpenPrinting.org \u4e0a\u8fd8\u6ca1\u6709\u5217\u51fa\u6765\u3002<\/p>\n

\u5982\u679c\u4f60\u6536\u96c6\u9f50\u4e86\u57fa\u672c\u4fe1\u606f\uff0c\u4f60\u53ef\u4ee5\u5982\u5217\u8868 15 \u6240\u793a\u7684\u90a3\u6837\uff0c\u4f7f\u7528 lpadmin \u547d\u4ee4\u53bb\u914d\u7f6e\u6253\u5370\u673a\u3002\u4e3a\u6b64\uff0c\u6211\u5c06\u4e3a\u6211\u7684 HL-2280DW \u6253\u5370\u673a\u521b\u5efa\u53e6\u5916\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u4ee5\u4fbf\u4e8e\u53cc\u9762\u6253\u5370\u3002<\/p>\n

[ian@atticf27 ~]$ lpinfo -m |grep-i \"hl.*2280\"\r\nHL2280DW.ppd Brother HL2280DW for CUPS\r\nlsb\/usr\/HL2280DW.ppd Brother HL2280DW for CUPS\r\n[ian@atticf27 ~]$ lpadmin -p HL-2280DW-duplex -E -m HL2280DW.ppd \\\r\n>-v dnssd:\/\/Brother%20HL-2280DW._pdl-datastream._tcp.local\/ \\\r\n>-D \"Brother 1\"-o sides=two-sided-long-edge\r\n[ian@atticf27 ~]$ lpstat-a\r\nanyprint accepting requests since Mon29Jan201801:17:09 PM EST\r\nHL-2280DW accepting requests since Tue30Jan201810:56:10 AM EST\r\nHL-2280DW-duplex accepting requests since Wed31Jan201811:41:16 AM EST\r\nHXP-610 accepting requests since Mon29Jan201810:34:49 PM EST\r\n<\/pre>\n

\u5217\u8868 15. \u914d\u7f6e\u4e00\u53f0\u6253\u5370\u673a<\/p>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528\u5e26 -c \u9009\u9879\u7684 lpadmin \u547d\u4ee4\u53bb\u521b\u5efa\u4e00\u4e2a\u4ec5\u7528\u4e8e\u53cc\u9762\u6253\u5370\u7684\u65b0\u5206\u7c7b\uff0c\u800c\u4e0d\u7528\u4e3a\u4e86\u53cc\u9762\u6253\u5370\u53bb\u521b\u5efa\u4e00\u4e2a\u6253\u5370\u673a\u7684\u526f\u672c\u3002<\/p>\n

\u5982\u679c\u4f60\u9700\u8981\u5220\u9664\u4e00\u53f0\u6253\u5370\u673a\uff0c\u4f7f\u7528\u5e26 -x \u9009\u9879\u7684 lpadmin \u547d\u4ee4\u3002<\/p>\n

\u5217\u8868 16 \u5c55\u793a\u4e86\u5982\u4f55\u53bb\u5220\u9664\u6253\u5370\u673a\u548c\u521b\u5efa\u4e00\u4e2a\u66ff\u4ee3\u7c7b\u3002<\/p>\n

[ian@atticf27 ~]$ lpadmin -x HL-2280DW-duplex\r\n[ian@atticf27 ~]$ lpadmin -p HL-2280DW-c duplex -E -D \"Duplex printing\"-o sides=two-sided-long-edge\r\n[ian@atticf27 ~]$ cupsenable duplex\r\n[ian@atticf27 ~]$ cupsaccept duplex\r\n[ian@atticf27 ~]$ lpstat-a\r\nanyprint accepting requests since Mon29Jan201801:17:09 PM EST\r\nduplex accepting requests since Wed31Jan201812:12:05 PM EST\r\nHL-2280DW accepting requests since Wed31Jan201811:51:16 AM EST\r\nXP-610 accepting requests since Mon29Jan201810:34:49 PM EST\r\n<\/pre>\n

\u5217\u8868 16. \u5220\u9664\u4e00\u4e2a\u6253\u5370\u673a\u548c\u521b\u5efa\u4e00\u4e2a\u7c7b<\/p>\n

\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 lpadmin \u6216\u8005 lpoptions \u547d\u4ee4\u53bb\u8bbe\u7f6e\u5404\u79cd\u6253\u5370\u673a\u9009\u9879\u3002\u8be6\u7ec6\u4fe1\u606f\u8bf7\u67e5\u770b man \u9875\u9762\u3002<\/p>\n

\u6392\u9519<\/strong><\/div>\n

\u5982\u679c\u4f60\u6709\u6253\u5370\u95ee\u9898\uff0c\u5c1d\u8bd5\u4e0b\u5217\u7684\u63d0\u793a\uff1a<\/p>\n

\u786e\u4fdd CUPS \u670d\u52a1\u5668\u6b63\u5728\u8fd0\u884c\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 lpstat \u547d\u4ee4\uff0c\u5982\u679c\u5b83\u4e0d\u80fd\u8fde\u63a5\u5230 cupsd \u5b88\u62a4\u7a0b\u5e8f\uff0c\u5b83\u5c06\u4f1a\u62a5\u544a\u4e00\u4e2a\u9519\u8bef\u3002\u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 ps -ef \u547d\u4ee4\u5728\u8f93\u51fa\u4e2d\u53bb\u68c0\u67e5\u662f\u5426\u6709 cupsd\u3002
\n\u5982\u679c\u4f60\u8bd5\u7740\u6392\u961f\u4e00\u4e2a\u6253\u5370\u4f5c\u4e1a\u800c\u5f97\u5230\u4e00\u4e2a\u9519\u8bef\u4fe1\u606f\uff0c\u6307\u793a\u6253\u5370\u673a\u4e0d\u63a5\u53d7\u8fd9\u4e2a\u4f5c\u4e1a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 lpstat -a \u6216\u8005 lpc status \u53bb\u68c0\u67e5\u90a3\u4e2a\u6253\u5370\u673a\u662f\u5426\u63a5\u53d7\u4f5c\u4e1a\u3002
\n\u5982\u679c\u4e00\u4e2a\u961f\u5217\u4e2d\u7684\u4f5c\u4e1a\u6ca1\u6709\u6253\u5370\uff0c\u4f7f\u7528 lpstat -p \u6216 lpc status \u53bb\u68c0\u67e5\u90a3\u4e2a\u6253\u5370\u673a\u662f\u5426\u63a5\u53d7\u4f5c\u4e1a\u3002\u5982\u524d\u9762\u6240\u8ba8\u8bba\u7684\u90a3\u6837\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5c06\u8fd9\u4e2a\u4f5c\u4e1a\u79fb\u52a8\u5230\u5176\u5b83\u7684\u6253\u5370\u673a\u3002
\n\u5982\u679c\u8fd9\u4e2a\u6253\u5370\u673a\u662f\u8fdc\u7a0b\u7684\uff0c\u68c0\u67e5\u5b83\u5728\u8fdc\u7a0b\u7cfb\u7edf\u4e0a\u662f\u5426\u5b58\u5728\uff0c\u5e76\u4e14\u662f\u53ef\u64cd\u4f5c\u7684\u3002
\n\u68c0\u67e5\u914d\u7f6e\u6587\u4ef6\uff0c\u786e\u4fdd\u7279\u5b9a\u7684\u7528\u6237\u6216\u8005\u8fdc\u7a0b\u7cfb\u7edf\u5141\u8bb8\u5728\u8fd9\u4e2a\u6253\u5370\u673a\u4e0a\u6253\u5370\u3002
\n\u786e\u4fdd\u9632\u706b\u5899\u5141\u8bb8\u8fdc\u7a0b\u6253\u5370\u8bf7\u6c42\uff0c\u662f\u5426\u5141\u8bb8\u4ece\u5176\u5b83\u7cfb\u7edf\u5230\u4f60\u7684\u7cfb\u7edf\uff0c\u6216\u8005\u4ece\u4f60\u7684\u7cfb\u7edf\u5230\u5176\u5b83\u7cfb\u7edf\u7684\u6570\u636e\u5305\u901a\u8baf\u3002
\n\u9a8c\u8bc1\u662f\u5426\u6709\u6b63\u786e\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002
\n\u6b63\u5982\u4f60\u6240\u89c1\uff0c\u6253\u5370\u6d89\u53ca\u5230\u4f60\u7684\u7cfb\u7edf\u4e2d\u7684\u51e0\u4e2a\u7ec4\u4ef6\uff0c\u751a\u81f3\u8fd8\u6709\u7f51\u7edc\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u57fa\u4e8e\u7bc7\u5e45\u7684\u8003\u8651\uff0c\u6211\u4eec\u4ec5\u80fd\u7ed9\u4f60\u7684\u8bca\u65ad\u63d0\u4f9b\u4e86\u51e0\u4e2a\u7740\u624b\u70b9\u3002\u5927\u591a\u6570\u7684 CUPS \u7cfb\u7edf\u4e5f\u6709\u5b9e\u73b0\u6211\u4eec\u6240\u8ba8\u8bba\u7684\u547d\u4ee4\u884c\u529f\u80fd\u7684\u56fe\u5f62\u754c\u9762\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u8fd9\u4e2a\u754c\u9762\u662f\u4ece\u672c\u5730\u4e3b\u673a\u4f7f\u7528\u6d4f\u89c8\u5668\u6307\u5411 631 \u7aef\u53e3\uff08http:\/\/localhost:631 \u6216 http:\/\/127.0.0.1:631\uff09\u6765\u8bbf\u95ee\u7684\uff0c\u5982\u524d\u9762\u7684\u56fe 2 \u6240\u793a\u3002<\/p>\n

\u4f60\u53ef\u4ee5\u901a\u8fc7\u5c06 CUPS \u8fd0\u884c\u5728\u524d\u53f0\u800c\u4e0d\u662f\u505a\u4e3a\u4e00\u4e2a\u5b88\u62a4\u8fdb\u7a0b\u6765\u8bca\u65ad\u5b83\u7684\u95ee\u9898\u3002\u5982\u679c\u6709\u9700\u8981\uff0c\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u53bb\u6d4b\u8bd5\u66ff\u4ee3\u7684\u914d\u7f6e\u6587\u4ef6\u3002\u8fd0\u884c cupsd -h \u83b7\u5f97\u66f4\u591a\u4fe1\u606f\uff0c\u6216\u8005\u67e5\u770b man \u9875\u9762\u3002<\/p>\n

CUPS \u4e5f\u5e26\u6709\u4e00\u4e2a\u8bbf\u95ee\u65e5\u5fd7\u548c\u9519\u8bef\u65e5\u5fd7\u3002\u4f60\u53ef\u4ee5\u5728 cupsd.conf \u4e2d\u4f7f\u7528 LogLevel \u8bed\u53e5\u6765\u6539\u53d8\u65e5\u5fd7\u7ea7\u522b\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u65e5\u5fd7\u662f\u4fdd\u5b58\u5728 \/var\/log\/cups \u76ee\u5f55\u3002\u5b83\u4eec\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u754c\u9762\uff08http:\/\/localhost:631\uff09\u4e0b\uff0c\u4ece Administration \u9009\u9879\u5361\u4e2d\u67e5\u770b\u3002\u4f7f\u7528\u4e0d\u5e26\u4efb\u4f55\u9009\u9879\u7684 cupsctl \u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u65e5\u5fd7\u9009\u9879\u3002\u4e5f\u53ef\u4ee5\u7f16\u8f91 cupsd.conf \u6216\u8005\u4f7f\u7528 cupsctl \u53bb\u8c03\u6574\u5404\u79cd\u65e5\u5fd7\u53c2\u6570\u3002\u67e5\u770b cupsctl \u547d\u4ee4\u7684 man \u9875\u9762\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n

\u5728 Ubuntu \u7684 Wiki \u9875\u9762\u4e0a\u7684 \u8c03\u8bd5\u6253\u5370\u95ee\u9898 \u9875\u9762\u4e5f\u662f\u4e00\u4e2a\u975e\u5e38\u597d\u7684\u5b66\u4e60\u7684\u5730\u65b9\u3002<\/p>\n

\u8fd9\u5c31\u662f\u5173\u4e8e\u6253\u5370\u548c CUPS \u7684\u4ecb\u7ecd\u3002<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttp:\/\/blog.chinaunix.net\/uid-7573623-id-2048961.html<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1ahttps:\/\/lrxjmw.cn\/linux-print-manager.html<\/a>\u7f16\u8f91\uff1a\u5f20\u6587\u7965\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u867d\u7136\u73b0\u5728\u5927\u91cf\u7684\u6c9f\u901a\u90fd\u662f\u7535\u5b50\u5316\u548c\u65e0\u7eb8\u5316\u7684\uff0c\u4f46\u662f\u5728\u6211\u4eec\u7684\u516c\u53f8\u4e2d\u8fd8\u6709\u5927\u91cf\u7684\u6750\u6599\u9700\u8981\u6253\u5370\u3002\u94f6\u884c\u7ed3\u7b97\u5355\u3001\u516c\u7528\u4e8b\u4e1a\u5e10 […]<\/p>\n","protected":false},"author":1466,"featured_media":101192,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-101165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/101165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1466"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=101165"}],"version-history":[{"count":11,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/101165\/revisions"}],"predecessor-version":[{"id":101519,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/101165\/revisions\/101519"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/101192"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=101165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=101165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=101165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}