{"id":3549,"date":"2024-11-10T08:50:19","date_gmt":"2024-11-10T00:50:19","guid":{"rendered":"https:\/\/blog.zengqq.com.cn\/?p=3549"},"modified":"2024-11-10T08:50:19","modified_gmt":"2024-11-10T00:50:19","slug":"%e5%9f%ba%e4%ba%8e%e6%a0%91%e8%8e%93%e6%b4%be%e7%9a%84%e6%89%93%e5%8d%b0%e6%9c%ba-%e6%89%ab%e6%8f%8f%e4%bb%aa%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/blog.zengqq.com.cn\/?p=3549","title":{"rendered":"\u57fa\u4e8e\u6811\u8393\u6d3e\u7684\u6253\u5370\u673a\/\u626b\u63cf\u4eea\u670d\u52a1\u5668"},"content":{"rendered":"\n<p><a href=\"https:\/\/blog.tangbao.me\/\"><\/a><\/p>\n\n\n\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p><a href=\"https:\/\/blog.tangbao.me\/\"><\/a><\/p>\n\n\n\n<p>Write to think.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u57fa\u4e8e\u6811\u8393\u6d3e\u7684\u6253\u5370\u673a\/\u626b\u63cf\u4eea\u670d\u52a1\u5668<\/h1>\n\n\n\n<p>\u00a02019-09-07\u00a0\u00a0\u00a02024-11-10\u8f6c<\/p>\n\n\n\n<p>\u524d\u51e0\u5929\u770b\u5230\u6c83\u5c14\u739b\u670920\u5200\u7684all-in-one\u6253\u5370\u673a\uff08Canon PIXMA MG2522\uff0c\u53ef\u4ee5\u641c\u641c\u9644\u8fd1\u80fd\u4e0d\u80fd\u81ea\u63d0\uff09\uff0c\u4e8e\u662f\u6211\u4e00\u811a\u6cb9\u95e8\u5c31\u53bb\u63d0\u4e86\u56de\u6765\u3002\u4e70\u56de\u6765\u4e4b\u540e\u53d1\u73b0\u8fd9\u7834\u6253\u5370\u673a\u53ea\u80fd\u63d2\u5230\u7535\u8111\u4e0a\u6253\u5370\uff0c\u60f3\u5230\u81ea\u5df1\u8fd8\u6709\u4e00\u4e2a\u95f2\u7f6e\u7684\u6811\u8393\u6d3eB+\uff0c\u9042\u51b3\u5b9a\u63d2\u5230\u6811\u8393\u6d3e\u4e0a\u5171\u4eab\u8fd9\u4e2a\u6253\u5370\u673a\u3002\u7ecf\u8fc7\u4e00\u756a\u641c\u7d22\u4e4b\u540e\u6211\u53d1\u73b0\u5e76\u4e14\u5b9e\u73b0\u4e86\u5982\u4e0b\u7684\u7f51\u7edc\u6253\u5370\u673a\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>update 2020\/2\/17\uff1a\u589e\u52a0\u4e86\u770b\u95e8\u72d7\u548c\u58a8\u6c34\u67e5\u770b\u00df<\/p>\n<\/blockquote>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u524d\u671f\u51c6\u5907\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E5%89%8D%E6%9C%9F%E5%87%86%E5%A4%87\"><\/a>\u524d\u671f\u51c6\u5907<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u9700\u6c42\u5206\u6790\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E9%9C%80%E6%B1%82%E5%88%86%E6%9E%90\"><\/a>\u9700\u6c42\u5206\u6790<\/h2>\n\n\n\n<p>\u5c06\u4e00\u53f0\u666e\u901a\u7684\u4e09\u5408\u4e00\u6253\u5370\u673a\u53d8\u6210\u7f51\u7edc\u6253\u5370\u673a\u3002<\/p>\n\n\n\n<p>\u601d\u8def\u975e\u5e38\u7b80\u5355\uff0clinux\u4e0a\u63d0\u4f9b\u4e86lp\u548cscanimage\u547d\u4ee4\u6765\u5206\u522b\u64cd\u4f5c\u6253\u5370\u673a\u548c\u626b\u63cf\u4eea\uff0c\u90a3\u4e48\u53ea\u8981\u5c06\u6253\u5370\u673a\u8fde\u63a5\u5230\u4e00\u53f0\u957f\u671f\u5728\u7ebf\u7684linux\u7535\u8111\u4e0a\uff0c\u89e3\u51b3\u4e00\u4e0b\u9a71\u52a8\u95ee\u9898\uff0c\u518d\u5c06\u8fd9\u53f0\u7535\u8111\u4f5c\u4e3a\u670d\u52a1\u5668\uff0c\u7136\u540e\u5199\u4e00\u4e2a\u5c0f\u7f51\u7ad9\u63d0\u4f9b\u8c03\u7528lp\/scanimage\u547d\u4ee4\u7684\u4ea4\u4e92\u9875\u9762\u5c31ok\u4e86\u3002<\/p>\n\n\n\n<p>\u89e3\u51b3\u65b9\u6848\u80af\u5b9a\u662f\u8981\u57fa\u4e8e\u624b\u5934\u5df2\u7ecf\u6709\u7684\u4e1c\u897f\u7684\u3002\u6211\u6709\u4e00\u4e2a\u6811\u8393\u6d3eB+\u8fd8\u6709\u4e00\u4e2a\u6811\u8393\u6d3ezero WH\u3002\u8fd9\u4e24\u4e2a\u4e1c\u897f\u7684\u6027\u80fd\u534a\u65a4\u516b\u4e24\uff0c\u4f46\u662f\u6811\u8393\u6d3ezero WH\u4f7f\u7528\u4e86micro usb\u63a5\u53e3\uff0c\u5982\u679c\u63d2usb\u8bbe\u5907\u5c31\u8981\u63d2otg\uff0c\u7136\u800c\u6211\u5e76\u4e0d\u60f3\u4ed8\u989d\u5916\u7684\u63a5\u53e3\u7a0e\uff08\u6211\u7684otg\u4e5f\u627e\u4e0d\u7740\u4e86\uff09\uff0c\u6240\u4ee5\u6700\u540e\u6211\u9009\u62e9\u4e86\u53e4\u8001\u7684\u6811\u8393\u6d3eB+\uff0c\u518d\u627e\u4e86\u4e2a\u53e4\u8001\u76848g\u7684sd\u5361\u63d2\u4e86\u8fdb\u53bb\u3002<\/p>\n\n\n\n<p>\u641c\u4e86\u4e00\u5708\u4e4b\u540e\u6211\u53d1\u73b0\u8fd9\u4e1c\u897f\u5c45\u7136\u6709\u975e\u5e38\u73b0\u6210\u7684\u89e3\u51b3\u65b9\u6848\u4e86\uff0c\u4e00\u4e2a\u662fCUPS\uff08\u6253\u5370\u673a\u7684\u89e3\u51b3\u65b9\u6848\uff09\uff0c\u53e6\u4e00\u4e2a\u662fSANE\uff08\u626b\u63cf\u4eea\u7684\u89e3\u51b3\u65b9\u6848\uff09\u3002\u4e8e\u662f\u6211\u5c31\u72af\u4e86\u61d2\uff0c\u76f4\u63a5\u7528\u5c31\u884c\u4e86\uff0c\u5e76\u6ca1\u6709\u5fc5\u8981\u81ea\u5df1\u518d\u5199\u4e2a\u5c0f\u7f51\u7ad9\uff0c\u518d\u8bf4B+\u8dd1nginx\u4e5f\u4e0d\u592a\u8dd1\u5f97\u52a8\u3002\u3002<\/p>\n\n\n\n<p>\u539f\u6765\u8fd8\u60f3\u518d\u505a\u4e2a\u5185\u5916\u7a7f\u900f\u8fdc\u7a0b\u4f7f\u7528\u6253\u5370\u673a\u548c\u626b\u63cf\u4eea\uff0c\u4e0d\u8fc7\u540e\u6765\u60f3\u4e86\u60f3\u5e76\u6ca1\u6709\u5fc5\u8981\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u786c\u8f6f\u4ef6\u8981\u6c42\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%A1%AC%E8%BD%AF%E4%BB%B6%E8%A6%81%E6%B1%82\"><\/a>\u786c\u8f6f\u4ef6\u8981\u6c42<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u786c\u4ef6\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%A1%AC%E4%BB%B6\"><\/a>\u786c\u4ef6<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e00\u53f0\u6253\u5370\u673a\/\u626b\u63cf\u4eea\u3002\u6211\u7684\u662fCanon PIXMA MG2522\uff0c\u662f\u4e00\u53f0all-in-one\u7684\u6253\u5370\u673a\uff0c\u96c6\u6210\u4e86\u626b\u63cf\u6253\u5370\u548c\u590d\u5370<\/li>\n\n\n\n<li>\u4e00\u53f0\u80fd\u8054\u7f51\u7684\u3001\u7528\u4e8e\u63a7\u5236\u6253\u5370\u673a\u7684\u8fd0\u884clinux\u7cfb\u7edf\u7684\u8bbe\u5907\u3002\u7406\u8bba\u4e0a\u662f\u4e2a\u80fd\u957f\u671f\u5728\u7ebf\u7684\u8bbe\u5907\u5c31\u884c\u3002\u6211\u4f7f\u7528\u4e86\u6811\u8393\u6d3eB+\u548c\u4e00\u5f208g sd\u5361\u4f5c\u4e3a\u4e86\u7cfb\u7edf\u76d8\u3002<\/li>\n\n\n\n<li>\uff08Optional\uff09\u968f\u8eabwifi\uff0c\u63d2\u5230\u6811\u8393\u6d3e\u4e0a\u7ed9\u6811\u8393\u6d3e\u8054\u7f51\u7528\u7684\u3002\u65b0\u7248\u672c\u7684\u6811\u8393\u6d3e\u5df2\u7ecf\u96c6\u6210\u4e86wifi\u548c\u84dd\u7259\uff0c\u4e0d\u9700\u8981\u8fd9\u73a9\u610f\u4e86<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u8f6f\u4ef6\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E8%BD%AF%E4%BB%B6\"><\/a>\u8f6f\u4ef6<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6811\u8393\u6d3e\u7684\u64cd\u4f5c\u7cfb\u7edf\u6211\u9009\u62e9\u4e86\u6700\u65b0\u7248\u7684Raspbian Lite\uff0c\u4e0d\u5e26\u684c\u9762\u73af\u5883\uff0c\u8fd9\u6837\u53ef\u4ee5\u8282\u7ea6\u5f88\u591a\u8d44\u6e90\u3002<\/li>\n\n\n\n<li>CUPS\u3002\u4e3a\u6253\u5370\u673a\u63d0\u4f9b\u4e86\u9a71\u52a8\u548c\u7f51\u7edc\u5171\u4eab\u529f\u80fd\u3002\u8fd9\u6837\u4f60\u53ef\u4ee5\u5728\u5c40\u57df\u7f51\u5185\u53d1\u73b0\u8fd9\u4e2a\u6253\u5370\u673a\u3002<\/li>\n\n\n\n<li>SANE\u3002\u4e3a\u626b\u63cf\u4eea\u63d0\u4f9b\u4e86\u9a71\u52a8\u548c\u5185\u7f51\u7684\u5171\u4eab\u529f\u80fd\u3002\u4f46\u662f\u5b83\u7684\u7f51\u7edc\u534f\u8bae\u4f3c\u4e4e\u6bd4\u8f83\u5c0f\u4f17\uff0c\u5e76\u4e0d\u662f\u57fa\u4e8eTCP\u6216\u8005UDP\u7684\uff0c\u6240\u4ee5\u7528ss\/frp\u5185\u7f51\u7a7f\u900f\u56de\u6765\u7684\u8bdd\u4e5f\u7528\u4e0d\u4e86\u3002\u4e0d\u8fc7\u4e3a\u5565\u8981\u8fdc\u7a0b\u4f7f\u7528\u626b\u63cf\u4eea\u5462\uff1f<\/li>\n<\/ul>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u7cfb\u7edf\u642d\u5efa\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%B3%BB%E7%BB%9F%E6%90%AD%E5%BB%BA\"><\/a>\u7cfb\u7edf\u642d\u5efa<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u521d\u6b65\u8bbe\u7f6e\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E5%88%9D%E6%AD%A5%E8%AE%BE%E7%BD%AE\"><\/a>\u521d\u6b65\u8bbe\u7f6e<\/h2>\n\n\n\n<p>\u9996\u5148\u786e\u4fdd\u6811\u8393\u6d3e\u53ef\u4ee5\u6210\u529f\u8fde\u4e0a\u7f51\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u4f7f\u7528ssh\u6765\u8fde\u63a5\u6811\u8393\u6d3e\u3002\u7136\u540e\u5c06\u6253\u5370\u673a\u63d2\u4e0a\u6811\u8393\u6d3e\u5e76\u6253\u5f00\u6253\u5370\u673a\u3002\u5177\u4f53\u8fc7\u7a0b\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7ed9\u6811\u8393\u6d3e\u5206\u914d\u56fa\u5b9aip\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%BB%99%E6%A0%91%E8%8E%93%E6%B4%BE%E5%88%86%E9%85%8D%E5%9B%BA%E5%AE%9Aip\"><\/a>\u7ed9\u6811\u8393\u6d3e\u5206\u914d\u56fa\u5b9aip<\/h2>\n\n\n\n<p>\u672c\u6587\u4e2d\u56fa\u5b9aip\u4ee5192.168.114.51\u4e3a\u4f8b\u3002\u5206\u914d\u56fa\u5b9aip\u9664\u4e86\u65b9\u4fbf\u64cd\u4f5c\u6811\u8393\u6d3e\u4e4b\u5916\uff0c\u4e5f\u540c\u6837\u7ed9\u6253\u5370\u673a\u5206\u914d\u4e86\u4e00\u4e2a\u56fa\u5b9aip\u3002<\/p>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u5728\u8def\u7531\u5668\u7684\u540e\u53f0\u6839\u636emac\u5730\u5740\u7ed9\u6811\u8393\u6d3e\u5206\u914d\u4e00\u4e2aip\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u6811\u8393\u6d3e\u7cfb\u7edfboot\u5206\u533a\u7684\u914d\u7f6e\u6587\u4ef6\u6765\u8ba9\u6811\u8393\u6d3e\u81ea\u5df1\u7533\u8bf7\u4e00\u4e2a\u56fa\u5b9aip\uff0c\u6b64\u5904\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7f51\u7edc\u6253\u5370\u673a\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%BD%91%E7%BB%9C%E6%89%93%E5%8D%B0%E6%9C%BA\"><\/a>\u7f51\u7edc\u6253\u5370\u673a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"CUPS\u5b89\u88c5\u548c\u914d\u7f6e\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#CUPS%E5%AE%89%E8%A3%85%E5%92%8C%E9%85%8D%E7%BD%AE\"><\/a>CUPS\u5b89\u88c5\u548c\u914d\u7f6e<\/h3>\n\n\n\n<p>\u9996\u5148\u5f53\u7136\u8981\u5b89\u88c5CUPS\u5566<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>sudo apt update<br>sudo apt install cups<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u7136\u540e\u4f60\u9700\u8981\u628a\u5f53\u524d\u7528\u6237\uff08raspbian\u9ed8\u8ba4\u662fpi\uff09\u6dfb\u52a0\u5230linux\u6253\u5370\u673a\u7684\u7ba1\u7406\u5458\u7528\u6237\u7ec4lpadmin<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo usermod -a -G lpadmin pi<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u63a5\u7740\u9700\u8981\u786e\u4fddcups\u5141\u8bb8\u6240\u6709\u7684\u6d41\u91cf\u8bf7\u6c42\uff0c\u7136\u540e\u91cd\u542fcups<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>sudo cupsctl &#8211;remote-any<br>sudo \/etc\/init.d\/cups restart<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u73b0\u5728\u8bbf\u95ee192.168.114.51:631\uff0c\u5e94\u8be5\u53ef\u4ee5\u770b\u5230CUPS\u7684\u540e\u53f0\u9875\u9762\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5728CUPS\u4e2d\u6dfb\u52a0\u6253\u5370\u673a\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E5%9C%A8CUPS%E4%B8%AD%E6%B7%BB%E5%8A%A0%E6%89%93%E5%8D%B0%E6%9C%BA\"><\/a>\u5728CUPS\u4e2d\u6dfb\u52a0\u6253\u5370\u673a<\/h3>\n\n\n\n<p>\u8fd9\u91cc\u7684\u64cd\u4f5c\u5c31\u6bd4\u8f83straightforward\u4e86\u3002\u70b9\u51fbCUPS\u540e\u53f0\u9875\u9762\u83dc\u5355\u680f\u7684Administration &#8211; Printers &#8211; Add Printer\uff0c\u4f60\u5e94\u8be5\u53ef\u4ee5\u5728Local Printers\u4e00\u9879\u540e\u9762\u770b\u5230\u4f60\u63d2\u4e0a\u7684\u6253\u5370\u673a\uff0c\u63a5\u7740\u70b9continue\u5230\u6dfb\u52a0\u9a71\u52a8\u9875\u9762\uff0c\u901a\u8fc7\u5382\u5bb6\u548c\u578b\u53f7\u6765\u641c\u7d22\u4f60\u7684\u6253\u5370\u673a\u9a71\u52a8\u3002CUPS\u5c45\u7136\u5185\u7f6e\u4e86\u6211\u8fd9\u4e2a\u8fa3\u9e21\u6253\u5370\u673a\u7684\u9a71\u52a8\uff0c\u8fd9\u8ba9\u6211\u975e\u5e38\u6fc0\u52a8\u3002\u5982\u679c\u6ca1\u6709\u4f60\u7684\u6253\u5370\u673a\u9a71\u52a8\u4e5f\u4e0d\u8981\u7d27\uff0c\u4e0a\u7f51\u641c\u641cPPD\u6587\u4ef6\u6765\u544a\u8bc9CUPS\u5982\u4f55\u914d\u7f6e\u4f60\u7684\u6253\u5370\u673a\u5373\u53ef\u3002\u9009\u62e9\u6b63\u786e\u9a71\u52a8\u4e4b\u540e\u70b9Add Printer\uff0c\u7136\u540e\u586b\u5199\u6253\u5370\u673a\u7684\u540d\u5b57\u548c\u63cf\u8ff0\uff08<strong>\u8bf7\u8bb0\u4f4f\u6253\u5370\u673a\u7684\u540d\u5b57\uff0c\u540e\u9762windows\u4e0a\u6709\u7528<\/strong>\uff09\uff0c\u5e76\u786e\u4fdd<strong>Share This Printer<\/strong>\u6253\u4e0a\u94a9\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u5728\u7f51\u7edc\u4e2d<strong>\u5171\u4eab<\/strong>\u4f60\u7684\u6253\u5370\u673a\u4e86\u3002\u6700\u540e\uff0c\u914d\u7f6e\u4f60\u7684\u6253\u5370\u8bbe\u7f6e\uff0c\u6bd4\u5982\u7eb8\u5f20\u5927\u5c0f\uff0c\u5206\u8fa8\u7387\u7b49\uff0c\u8fd9\u91cc\u6839\u636e\u4e2a\u4eba\u9700\u6c42\u6765\u5373\u53ef\u3002<\/p>\n\n\n\n<p>\u6b64\u6b65\u7ed3\u675f\u4e4b\u540e\uff0c\u6253\u5f00\u4f60\u7684mac\/linux\uff0c\u6309\u7167\u6b63\u5e38\u7684\u6b65\u9aa4\u7528ip\u5730\u5740\u6dfb\u52a0\u6253\u5370\u673a\u518d\u8fdb\u884c\u6253\u5370\u5373\u53ef\uff0c\u8fd9\u91cc\u4e5f\u4e0d\u518d\u8d58\u8ff0\u3002\u5982\u679c\u662fwindows\u7528\u6237\uff0c\u8fd8\u9700\u8981\u518d\u6811\u8393\u6d3e\u4e0a\u5f00\u542fsamba\u670d\u52a1\uff0c\u5e76\u5728windows\u4e0a\u901a\u8fc7samba\u641c\u7d22\u6dfb\u52a0\u6253\u5370\u673a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5728\u6811\u8393\u6d3e\u4e2d\u5f00\u542fsamba\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E5%9C%A8%E6%A0%91%E8%8E%93%E6%B4%BE%E4%B8%AD%E5%BC%80%E5%90%AFsamba\"><\/a>\u5728\u6811\u8393\u6d3e\u4e2d\u5f00\u542fsamba<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>sudo apt update<br>sudo apt install samba<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo nano \/etc\/samba\/smb.conf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u4fee\u6539\/\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<\/td><td># CUPS printing.<br>[printers]<br>comment = All Printers<br>browseable = no<br>path = \/var\/spool\/samba<br>printable = yes<br>guest ok = yes<br>read only = yes<br>create mask = 0700<br><br># Windows clients look for this share name as a source of downloadable<br># printer drivers<br>[print$]<br>comment = Printer Drivers<br>path = \/var\/lib\/samba\/printers<br>browseable = yes<br>read only = no<br>guest ok = no<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u91cd\u542fsamba\u670d\u52a1\u5e76\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>sudo systemctl start smbd<br>sudo systemctl enable smbd<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5728windows\u4e2d\u6dfb\u52a0\u6253\u5370\u673a\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E5%9C%A8windows%E4%B8%AD%E6%B7%BB%E5%8A%A0%E6%89%93%E5%8D%B0%E6%9C%BA\"><\/a>\u5728windows\u4e2d\u6dfb\u52a0\u6253\u5370\u673a<\/h3>\n\n\n\n<p>\u4ee5win10\u4e3a\u4f8b\u3002\u5148\u6253\u5f00\u8d44\u6e90\u7ba1\u7406\u5668\uff0c\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165\u6811\u8393\u6d3esamba\u670d\u52a1\u5668\u7684\u5730\u5740<code>\\\\192.168.114.54<\/code>\uff0c\u5982\u679c\u4e00\u5207\u987a\u5229\u7684\u8bdd\uff0c\u4f60\u4f1a\u770b\u5230\u4f60\u7684\u6253\u5370\u673a\u7684\u56fe\u6807\u548c\u4f60\u6253\u5370\u673a\u7684\u540d\u5b57\uff08\u5373\u4f60\u521a\u521a\u5728CUPS\u4e2d\u8bbe\u7f6e\u7684\u540d\u5b57\uff09\uff0c\u8fd9\u91cc\u4ee5<code>MG2522<\/code>\u4e3a\u4f8b\u3002\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u53cc\u51fb\u6253\u5370\u673a\u56fe\u6807 &#8211; \uff08\u63d0\u793a\u627e\u4e0d\u5230\u9a71\u52a8\u7a0b\u5e8f\uff09\u786e\u5b9a &#8211; \u9009\u62e9\u9a71\u52a8\u7a0b\u5e8f &#8211; \u5b8c\u6210\u6765\u6dfb\u52a0\u6253\u5370\u673a\u3002\u5982\u679c\u4e0d\u884c\uff0c\u8bf7\u5c1d\u8bd5\u4e0b\u9762\u7684\u65b9\u6cd5\uff1a<\/p>\n\n\n\n<p>\u6253\u5f00\u6240\u6709\u8bbe\u7f6e &#8211; \u8bbe\u5907 &#8211; \u6253\u5370\u673a\u548c\u626b\u63cf\u4eea &#8211; \u6dfb\u52a0\u6253\u5370\u673a\u6216\u626b\u63cf\u4eea &#8211; \uff08\u7b49\u4e24\u79d2\uff09\u6211\u9700\u8981\u7684\u6253\u5370\u673a\u4e0d\u5728\u5217\u8868\u4e2d &#8211; \u6309\u540d\u79f0\u9009\u62e9\u5171\u4eab\u6253\u5370\u673a\u3002<\/p>\n\n\n\n<p>\u5728\u4e0b\u9762\u7684\u6587\u672c\u6846\u4e2d\u8f93\u5165\u6253\u5370\u673a\u7684\u5730\u5740<code>\\\\192.168.114.54\\MG2522<\/code>\uff0c\u70b9\u51fb\u4e0b\u4e00\u6b65 &#8211; \uff08\u627e\u4e0d\u5230\u9a71\u52a8\u7a0b\u5e8f\uff09\u786e\u5b9a &#8211; \u9009\u62e9\u9a71\u52a8\u7a0b\u5e8f &#8211; \uff08\u5df2\u6210\u529f\u6dfb\u52a0192.168.114.54\u4e0a\u7684MG2522\uff09\u4e0b\u4e00\u6b65 &#8211; \u5b8c\u6210\u6216\u8005\u6253\u5370\u6d4b\u8bd5\u9875\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\uff0c\u4f60\u7684\u6253\u5370\u673a\u5c31\u6210\u529f\u6dfb\u52a0\u5230win\u7cfb\u7edf\u4e2d\u4e86\uff0c\u4f60\u53ef\u4ee5\u5728\u4efb\u4f55\u5e94\u7528\u4e2d\u70b9\u51fb\u6253\u5370\uff0c\u5e76\u4e14\u4f7f\u7528\u8fd9\u4e2a\u6253\u5370\u673a\u4e86\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7f51\u7edc\u626b\u63cf\u4eea\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%BD%91%E7%BB%9C%E6%89%AB%E6%8F%8F%E4%BB%AA\"><\/a>\u7f51\u7edc\u626b\u63cf\u4eea<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"SANE\u5b89\u88c5\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#SANE%E5%AE%89%E8%A3%85\"><\/a>SANE\u5b89\u88c5<\/h3>\n\n\n\n<p>\u7b2c\u4e00\u6b65\u5f53\u7136\u4e5f\u662f\u5b89\u88c5SANE\u5566<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>sudo apt update<br>sudo apt install sane<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u6d4b\u8bd5\u626b\u63cf\u4eea\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E6%B5%8B%E8%AF%95%E6%89%AB%E6%8F%8F%E4%BB%AA\"><\/a>\u6d4b\u8bd5\u626b\u63cf\u4eea<\/h3>\n\n\n\n<p>\u7136\u540e\u68c0\u67e5SANE\u80fd\u4e0d\u80fd\u627e\u5230\u4f60\u7684\u6253\u5370\u673a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo sane-find-scanner<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6211\u7684\u8f93\u51fa\u5982\u4e0b\u6240\u793a\uff0c\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u8bc6\u522b\u51fa\u4e86\u626b\u63cf\u4eea<code>found USB scanner (vendor=0x04a9 [Canon], product=0x176d [MG2500 series]) at libusb:001:008<\/code><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<\/td><td># sane-find-scanner will now attempt to detect your scanner. If the<br># result is different from what you expected, first make sure your<br># scanner is powered up and properly connected to your computer.<br><br># No SCSI scanners found. If you expected something different, make sure that<br># you have loaded a kernel SCSI driver for your SCSI adapter.<br># Also you need support for SCSI Generic (sg) in your operating system.<br># If using Linux, try &#8220;modprobe sg&#8221;.<br><br>found USB scanner (vendor=0x04a9 [Canon], product=0x176d [MG2500 series]) at libusb:001:008<br>found USB scanner (vendor=0x2717 [MediaTek], product=0x4106 [MI WLAN Adapter]) at libusb:001:004<br>found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003<br># Your USB scanner was (probably) detected. It may or may not be supported by<br># SANE. Try scanimage -L and read the backend&#8217;s manpage.<br><br># Not checking for parallel port scanners.<br><br># Most Scanners connected to the parallel port or other proprietary ports<br># can&#8217;t be detected by this program.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u7136\u540e\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u8fdb\u4e00\u6b65\u5c1d\u8bd5<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo scanimage -L<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5e94\u8be5\u4f1a\u770b\u5230\u5982\u4e0b\u8f93\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>device \\`pixma:04A9176D_8E3A57\\&#8217; is a CANON Canon PIXMA MG2500 Series multi-function peripheral<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u626b\u63cf\u4e00\u4e9b\u4e1c\u897f\u4e86<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>scanimage &gt; ~\/test.pnm<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u63a5\u7740\u901a\u8fc7scp\u6216\u8005FTP\u628a\u6587\u4ef6\u53d6\u51fa\u6765\u7785\u7785\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u4e00\u4e2a\u67e5\u770b\u56fe\u7247\u7684\u8f6f\u4ef6\uff08\u6bd4\u5982GIMP\uff09\u6253\u5f00\u8bd5\u8bd5\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7scp\u4f20\u56de\u6587\u4ef6\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>scp pi@192.168.114.51:~\/test-scan-file.pnm ~\/test-scan-file.pnm<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u5982\u679c\u6ca1\u5f97\u95ee\u9898\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u6765\u914d\u7f6eSANE\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u914d\u7f6eSANE\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E9%85%8D%E7%BD%AESANE\"><\/a>\u914d\u7f6eSANE<\/h3>\n\n\n\n<p>\u6253\u5f00<code>\/etc\/default\/saned<\/code>\uff0c\u4fee\u6539\/\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\u6765\u914d\u7f6e\u6253\u5f00SANE\u7684\u5b88\u62a4\u8fdb\u7a0b<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>RUN=yes<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6253\u5f00<code>\/etc\/sane.d\/saned.conf<\/code>\u5e76\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff0c\u8ba9SANE\u63a5\u6536192.168.114.1~192.168.114.255\u8fd9\u4e2a\u5730\u5740\u6bb5\u7684ip\u3002\u8bf7\u6839\u636e\u4f60\u7684\u5b9e\u9645\u60c5\u51b5\u66f4\u6539\u3002\u5982\u679c\u4f60\u7684\u5c40\u57df\u7f51ip\u5730\u5740\u662f<code>192.168.1.x<\/code>\uff0c\u90a3\u4e48\u6dfb\u52a0<code>192.168.1.0\/24<\/code>\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>192.168.114.0\/24<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u540c\u65f6\u53d6\u6d88\u8fd9\u884c\u7684\u6ce8\u91ca<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>data_portrange = 10000 &#8211; 10100<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u89e3\u51b3SANE\u7684\u6743\u9650\u95ee\u9898\u3002\u6211\u8fd9\u91cc\u8bc6\u522b\u51fa\u7684\u626b\u63cf\u4eea\u662f<code>found USB scanner (vendor=0x04a9 [Canon], product=0x176d [MG2500 series]) at libusb:001:008<\/code>\uff0c<code>libusb:001:008<\/code>\u5373<code>\/dev\/bus\/usb\/001\/008<\/code>\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u6743\u9650<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>ls -l \/dev\/bus\/usb\/001<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4f1a\u83b7\u5f97\u5982\u4e0b\u8f93\u51fa<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<\/td><td>pi@rpi-printer:~ $ ls -l \/dev\/bus\/usb\/001<br>total 0<br>crw-rw-r&#8211; 1 root root 189, 0 Sep 7 03:40 001<br>crw-rw-r&#8211; 1 root root 189, 1 Sep 4 05:10 002<br>crw-rw-r&#8211; 1 root root 189, 2 Sep 4 05:10 003<br>crw-rw-r&#8211; 1 root root 189, 3 Sep 7 03:40 004<br>crw-rw-r&#8211; 1 root lp 189, 9 Sep 7 21:45 008<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u6253\u5370\u673a\u5f52lp group\u7684root\u6240\u6709\uff0c\u6240\u4ee5\u6211\u4eec\u8981\u628a\u8fd0\u884cSANE\u5b88\u62a4\u8fdb\u7a0b\u7684\u7528\u6237saned\u52a0\u5230lp group<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<\/td><td>sudo add user saned lp<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u91cd\u542fsane\uff0c\u5c06sane\u6dfb\u52a0\u5230\u542f\u52a8\u9879\u5e76\u68c0\u67e5\u5b83\u7684status<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<\/td><td>sudo systemctl start saned.socket<br>sudo systemctl enable saned.socket<br>sudo systemctl status saned.socket<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4f60\u4f1a\u770b\u5230\u5982\u4e0b\u8f93\u51fa\uff0c\u53ef\u4ee5\u770b\u52306566\u7aef\u53e3\u662f\u7ed9SANE\u7528\u7684<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<\/td><td>\u25cf saned.socket &#8211; saned incoming socket<br>Loaded: loaded (\/lib\/systemd\/system\/saned.socket; enabled; vendor preset: enabled)<br>Active: active (listening) since Sat 2019-09-07 03:49:14 BST; 3 days ago<br>Listen: [::]:6566 (Stream)<br>Accepted: 5; Connected: 0;<br>Memory: 0B<br>CGroup: \/system.slice\/saned.socket<br><br>Sep 07 03:49:14 rpi-printer systemd[1]: Listening on saned incoming socket.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u4f7f\u7528SANE\u5ba2\u6237\u7aef\u8fdb\u884c\u626b\u63cf\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E4%BD%BF%E7%94%A8SANE%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%BF%9B%E8%A1%8C%E6%89%AB%E6%8F%8F\"><\/a>\u4f7f\u7528SANE\u5ba2\u6237\u7aef\u8fdb\u884c\u626b\u63cf<\/h3>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4ece\u5b98\u65b9\u7684<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"http:\/\/www.sane-project.org\/sane-frontends.html\">SANE frontends<\/a>\u4e2d\u9009\u62e9\u4e00\u4e2a\u4f60\u559c\u6b22\u7684\u7a0b\u5e8f\u4f5c\u4e3a\u5ba2\u6237\u7aef\u3002\u6211\u968f\u4fbf\u7528<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"http:\/\/sourceforge.net\/projects\/sanewinds\/\">SANEWinDS<\/a>\u5728windows\u4e0a\u6d4b\u8bd5\u4e86\u4e00\u4e0b\uff0c\u53ea\u8981\u6253\u5f00\u4e4b\u540e\u586b\u5199\u4e0a\u6811\u8393\u6d3e\u7684ip\u5730\u5740\uff0c\u5373\u53ef\u5f00\u59cb\u626b\u63cf\u3002\u8bb0\u5f97\u4fee\u6539resolution\uff0c\u6700\u5927\u53ef\u4ee5\u5230600ppi\uff0c\u9ed8\u8ba4\u7684\u5206\u8fa8\u7387\u5b9e\u5728\u662f\u592a\u4f4e\u4e86\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u4f18\u5316\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E4%BC%98%E5%8C%96\"><\/a>\u4f18\u5316<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u9632\u6b62\u6811\u8393\u6d3e\u5361\u6b7b\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E9%98%B2%E6%AD%A2%E6%A0%91%E8%8E%93%E6%B4%BE%E5%8D%A1%E6%AD%BB\"><\/a>\u9632\u6b62\u6811\u8393\u6d3e\u5361\u6b7b<\/h2>\n\n\n\n<p>\u592a\u957f\u4e0d\u770b\uff1a\u4fdd\u8bc1\u5145\u8db3\u4f9b\u7535\uff1b\u4e0a\u770b\u95e8\u72d7\u3002<\/p>\n\n\n\n<p>\u4e00\u5f00\u59cb\u6211\u4f7f\u7528\u4e865V1A\u7684adapter\u7ed9\u6811\u8393\u6d3e\u4f9b\u7535\uff0c\u6bcf\u8fc7\u51e0\u5929\u6811\u8393\u6d3e\u5c31\u4f1a\u5361\u6b7b\u4e00\u6b21\u3002\u7ecf\u67e5\u53d1\u73b0\u662f\u4f9b\u7535\u4e0d\u8db3\u5bfc\u81f4\u7684\uff0c\u6362\u4e86\u4e00\u4e2a5V2.1A\u7684adapter\u4e4b\u540e\u89e3\u51b3\u95ee\u9898\uff0c\u80fd\u8dd1\u51e0\u5341\u5929\u4e0d\u5361\u6b7b\uff0c\u5e76\u4e14\u5185\u5b58\u5360\u7528\u4e00\u76f4\u5f88\u4f4e\uff08Raspbian Lite\uff0c\u4f7f\u7528\u7684RAM &lt; 60M\uff09\u30022020\u5e74\u5bd2\u5047\u56de\u6765\u4e4b\u540e\u6211\u53d1\u73b0\u6811\u8393\u6d3e\u8fd8\u662f\u5361\u6b7b\u4e86\uff0c\u6211\u731c\u6d4b\u53ef\u80fd\u548c\u5bb6\u7535\u538b\u4e0d\u7a33\u5b9a\u6709\u5173\uff08\u4f8b\u5982\u7a7a\u8c03\u542f\u52a8\u7684\u65f6\u5019\u5bb6\u91cc\u7684\u7535\u706f\u4f1a\u660e\u663e\u7684\u6697\u4e00\u4e0b\uff09\u3002\u9042\u51b3\u5b9a\u4e0a\u770b\u95e8\u72d7\u89e3\u51b3\u3002<\/p>\n\n\n\n<p>\u770b\u95e8\u72d7\u7684\u5f00\u542f\u6bd4\u8f83\u7b80\u5355\uff0c\u7f51\u4e0a\u7684\u6559\u7a0b\u4e5f\u6bd4\u8f83\u591a\uff0c\u6211\u76f4\u63a5\u53c2\u8003\u4e86<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/lantian.pub\/article\/modify-computer\/raspberry-pi-3b-hardware-watchdog.lantian\">\u8fd9\u7bc7\u6559\u7a0b<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u67e5\u8be2\u58a8\u6c34\u4f7f\u7528\u60c5\u51b5\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E6%9F%A5%E8%AF%A2%E5%A2%A8%E6%B0%B4%E4%BD%BF%E7%94%A8%E6%83%85%E5%86%B5\"><\/a>\u67e5\u8be2\u58a8\u6c34\u4f7f\u7528\u60c5\u51b5<\/h2>\n\n\n\n<p>\u5982\u679c\u4f60\u7684\u6253\u5370\u673a\u662fHP\uff0cEPSON\u6216\u8005CANON\uff0c\u76f4\u63a5\u5b89\u88c5ink\u5e76\u4f7f\u7528\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<\/td><td>sudo apt install ink<br>sudo ink -p usb<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u4f1a\u5f97\u5230\u7c7b\u4f3c\u7684\u5982\u4e0b\u8f93\u51fa\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td>1<br>2<br>3<br>4<br>5<br>6<br>7<\/td><td>pi@printer:~ $ sudo ink -p usb<br>ink 0.5.3 (c) 2018 Markus Heinz<br><br>Canon MG2500 series<br><br>Black: 0%<br>Color: 0%<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u6211\u7684\u58a8\u6c34\u91cf\u663e\u793a\u4e3a0\u662f\u56e0\u4e3a\u524d\u51e0\u5929\u6731\u5927\u4f6c\u53bbrefill\u4e86\u58a8\u76d2\uff0c\u6211\u4eec\u88c5\u56de\u53bb\u4e4b\u540e\u6253\u5370\u673a\u7684\u58a8\u6c34\u6307\u793a\u706f\u8fd8\u662f\u9ec4\u8272\u7684\uff0c\u6682\u65f6\u8fd8\u6ca1\u6709\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u4f46\u662f\u6253\u5370\u673a\u662f\u53ef\u4ee5\u6b63\u5e38\u6253\u5370\u7684\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"\u603b\u7ed3\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E6%80%BB%E7%BB%93\"><\/a>\u603b\u7ed3<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"techinically\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#techinically\"><\/a>techinically<\/h2>\n\n\n\n<p>\u4f7f\u7528CUPS\u914d\u7f6e\u4e86\u7f51\u7edc\u6253\u5370\u673a\uff0c\u5b83\u7684\u7aef\u53e3\u662f631\uff0c\u4f60\u9700\u8981\u901a\u8fc7http\u6765\u8bbf\u95eeCUPS\u7684\u7ba1\u7406\u754c\u9762\uff08\u5373\u901a\u8fc7<code>http:\/\/192.168.114.51:631<\/code>\u8bbf\u95ee\uff09\u3002\u5728MAC\/Linux\u4e2d\u6dfb\u52a0\u6253\u5370\u673a\u7684\u8bdd\uff0c\u53ea\u9700\u8981192.168.114.51\u8fd9\u4e2aip\u5c31\u591f\u4e86\u3002\u5982\u679c\u8981\u7ed9windows\u7528\uff0c\u9700\u8981\u989d\u5916\u7684\u914d\u7f6e\uff0c\u8bf7\u53c2\u8003<a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E5%9C%A8windows%E4%B8%AD%E6%B7%BB%E5%8A%A0%E6%89%93%E5%8D%B0%E6%9C%BA\">\u8fd9\u4e00\u7ae0\u8282<\/a>\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528SANE\u914d\u7f6e\u4e86\u7f51\u7edc\u626b\u63cf\u4eea\uff0c\u5b83\u7684\u7aef\u53e3\u662f6566\uff0c\u4f60\u9700\u8981\u4e00\u4e2aSANE\u5ba2\u6237\u7aef\u6765\u8bbf\u95ee\u626b\u63cf\u4eea\uff0c\u53c2\u8003<a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E4%BD%BF%E7%94%A8SANE%E5%AE%A2%E6%88%B7%E7%AB%AF%E8%BF%9B%E8%A1%8C%E6%89%AB%E6%8F%8F\">\u8fd9\u4e00\u7ae0\u8282<\/a>\u6216\u76f4\u63a5\u8bbf\u95ee<a target=\"_blank\" rel=\"noreferrer noopener\" href=\"http:\/\/www.sane-project.org\/sane-frontends.html\">\u8fd9\u91cc<\/a>\u9009\u62e9\u4f60\u9700\u8981\u7684SANE\u5ba2\u6237\u7aef\u6765\u8fdb\u884c\u626b\u63cf\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u4f18\u70b9\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E4%BC%98%E7%82%B9\"><\/a>\u4f18\u70b9<\/h2>\n\n\n\n<p>\u8d85\u7ea7\u4fbf\u5b9c\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5f53\u7136\uff0c\u4ec5\u4ec5\u9650\u4e8e\u80fd\u7528\u3002<\/p>\n\n\n\n<p>$20\u7684all-in-one\u6253\u5370\u673a\u548c\u7956\u4f20\u5403\u7070\u7684\u6811\u8393\u6d3eb+\u7ec4\u6210\u7684\u7f51\u7edc\u6253\u5370\u673a\uff0c\u8981\u4ec0\u4e48\u81ea\u884c\u8f66\uff1f\u53cd\u6b63\u5b66\u6821\u6709\u626b\u63cf\u4eea\u548c\u6253\u5370\u673a\uff0c\u5bb6\u91cc\u6709\u4e2a\u51d1\u5408\u7528\u6211\u89c9\u5f97ok\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u7f3a\u70b9\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#%E7%BC%BA%E7%82%B9\"><\/a>\u7f3a\u70b9<\/h2>\n\n\n\n<p>\u8fd9\u6253\u5370\u673a\u4e0d\u80fd\u53cc\u9762\u6253\u5370\uff0c\u5e76\u4e14\u7f51\u7edc\u6253\u5370\u975e\u5e38\u7684\u6162\uff0c\u4e0d\u8fc7\u597d\u5728\u6253\u5370\u4ece\u6765\u90fd\u4e0d\u662f\u4ec0\u4e48urgent\u7684\u6d3b\uff0ctake it easy\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"Reference\"><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/#Reference\"><\/a>Reference<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.cups.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">CUPS<\/a><\/li>\n\n\n\n<li><a href=\"http:\/\/www.sane-project.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">SANE &#8211; Scanner Access Now Easy<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/samhobbs.co.uk\/2014\/07\/raspberry-pi-print-scanner-server\" target=\"_blank\" rel=\"noreferrer noopener\">Raspberry Pi Print &amp; Scanner Server<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pimylifeup.com\/raspberry-pi-print-server\/\" target=\"_blank\" rel=\"noreferrer noopener\">Raspberry Pi Print Server: Setup a Network Printer<\/a><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Post author:\u00a0<\/strong>Zhongze Tang (tangbao)<\/li>\n\n\n\n<li><strong>Post link:\u00a0<\/strong><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/\">https:\/\/blog.tangbao.me\/2019\/09\/rpi-printer-scanner-server\/<\/a><\/li>\n\n\n\n<li><strong>Copyright Notice:\u00a0<\/strong>All articles in this blog are licensed under\u00a0<a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-sa\/4.0\/\" target=\"_blank\" rel=\"noreferrer noopener\">BY-NC-SA<\/a>\u00a0unless stating additionally.<\/li>\n<\/ul>\n\n\n\n<p><a href=\"https:\/\/blog.tangbao.me\/tags\/Raspberry-Pi\/\"># Raspberry Pi<\/a>&nbsp;<a href=\"https:\/\/blog.tangbao.me\/tags\/Hardware\/\"># Hardware<\/a>&nbsp;<a href=\"https:\/\/blog.tangbao.me\/tags\/Printer\/\"># Printer<\/a>&nbsp;<a href=\"https:\/\/blog.tangbao.me\/tags\/Scanner\/\"># Scanner<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.tangbao.me\/2019\/08\/update-hexo-next-and-add-comment-and-view-number\/\">&nbsp;\u5347\u7ea7Hexo\u53caNexT\u4e3b\u9898\u53ca\u6dfb\u52a0\u8bc4\u8bba\u548c\u9605\u8bfb\u6570<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/blog.tangbao.me\/2019\/09\/suiyuan\/\">\u968f\u7f18&nbsp;<\/a><\/p>\n\n\n\n<p>https:\/\/disqus.com\/recommendations\/?base=default&#038;f=tangbao&#038;t_u=https%3A%2F%2Fblog.tangbao.me%2F2019%2F09%2Frpi-printer-scanner-server%2F&#038;t_d=%E5%9F%BA%E4%BA%8E%E6%A0%91%E8%8E%93%E6%B4%BE%E7%9A%84%E6%89%93%E5%8D%B0%E6%9C%BA%2F%E6%89%AB%E6%8F%8F%E4%BB%AA%E6%9C%8D%E5%8A%A1%E5%99%A8%20%7C%20Zhongze%20Tang%27s%20Blog&#038;t_t=%E5%9F%BA%E4%BA%8E%E6%A0%91%E8%8E%93%E6%B4%BE%E7%9A%84%E6%89%93%E5%8D%B0%E6%9C%BA%2F%E6%89%AB%E6%8F%8F%E4%BB%AA%E6%9C%8D%E5%8A%A1%E5%99%A8%20%7C%20Zhongze%20Tang%27s%20Blog#version=693720644816c4206f82be3ca597d7c5<\/p>\n\n\n\n<p>https:\/\/disqus.com\/embed\/comments\/?base=default&#038;f=tangbao&#038;t_i=2019%2F09%2Frpi-printer-scanner-server%2F&#038;t_u=https%3A%2F%2Fblog.tangbao.me%2F2019%2F09%2Frpi-printer-scanner-server%2F&#038;t_e=%E5%9F%BA%E4%BA%8E%E6%A0%91%E8%8E%93%E6%B4%BE%E7%9A%84%E6%89%93%E5%8D%B0%E6%9C%BA%2F%E6%89%AB%E6%8F%8F%E4%BB%AA%E6%9C%8D%E5%8A%A1%E5%99%A8&#038;t_d=%E5%9F%BA%E4%BA%8E%E6%A0%91%E8%8E%93%E6%B4%BE%E7%9A%84%E6%89%93%E5%8D%B0%E6%9C%BA%2F%E6%89%AB%E6%8F%8F%E4%BB%AA%E6%9C%8D%E5%8A%A1%E5%99%A8%20%7C%20Zhongze%20Tang%27s%20Blog&#038;t_t=%E5%9F%BA%E4%BA%8E%E6%A0%91%E8%8E%93%E6%B4%BE%E7%9A%84%E6%89%93%E5%8D%B0%E6%9C%BA%2F%E6%89%AB%E6%8F%8F%E4%BB%AA%E6%9C%8D%E5%8A%A1%E5%99%A8&#038;s_o=default#version=62f03df4bfd132f86d4a790df69d283e<\/p>\n\n\n\n<p>\u00a9 2015 \u2013&nbsp;2022&nbsp;&nbsp;Zhongze Tang (tangbao)<\/p>\n\n\n\n<p>Powered by&nbsp;<a href=\"https:\/\/hexo.io\/\" rel=\"noreferrer noopener\" target=\"_blank\">Hexo<\/a>&nbsp;&amp;&nbsp;<a href=\"https:\/\/pisces.theme-next.org\/\" rel=\"noreferrer noopener\" target=\"_blank\">NexT.Pisces<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write to think. \u57fa\u4e8e\u6811\u8393\u6d3e\u7684\u6253\u5370\u673a [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2730],"tags":[2939,2940,31,60],"class_list":["post-3549","post","type-post","status-publish","format-standard","hentry","category-2730","tag-scanner","tag-2940","tag-31","tag-60"],"_links":{"self":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3549"}],"version-history":[{"count":1,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3549\/revisions"}],"predecessor-version":[{"id":3550,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/3549\/revisions\/3550"}],"wp:attachment":[{"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zengqq.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}