{"id":286298,"date":"2017-05-14T15:20:03","date_gmt":"2017-05-14T11:20:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=286298"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2017-05-14T11:20:03","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=286298","title":{"rendered":"\u041f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 RaspberryPI B1"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/web\/779\/6f9\/111\/7796f91115b44bfda5f51142a6bd4226.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043b\u0433\u043e \u043c\u0435\u043d\u044f \u043c\u0443\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u044f \u0438\u0437 \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u043e\u0433\u043e RPI \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 (\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0435\u0447\u0430\u0442\u044c \u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435) \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u044f \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0440\u0430\u043b\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 RPI, \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 Raspbian, Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430, \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430 HP LaserJet Pro 1022, \u041c\u0424\u0423 HP Deskjet F2180 \u0438 usb-\u0445\u0430\u0431\u0430. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 (\u0411\u0411), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0438\u0432\u0435\u0442 \u043d\u0430 Linux (\u0432\u043f\u0440\u043e\u0447\u0435\u043c, \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043b\u044f Windows \u0431\u0443\u0434\u0443\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b).<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h3 id=\"podgotovka\">\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h3>\n<p>  <\/p>\n<p>\u0414\u0430\u0431\u044b \u043d\u0435 \u043a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u0442\u044c\u0441\u044f \u043a RPI \u043f\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0443, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0430\u0432\u0442\u043e\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e wi-fi. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u043c \u0444\u043b\u0435\u0448\u043a\u0443 \u0441 Raspbian \u0432 \u0411\u0411 \u0438 \u0437\u0430\u0439\u0434\u0435\u043c \u043d\u0430 \/boot, \u0433\u0434\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c 2 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li>ssh (\u043f\u0443\u0441\u0442\u043e\u0439) \u2014 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 ssh;<\/li>\n<li>wpa_supplicant.conf, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043d\u0430\u0448\u0435\u043c\u0443 wi-fi:<br \/> \n<pre><code>network={    ssid=&quot;YOUR_SSID&quot;    psk=&quot;YOUR_PASSWORD&quot;    key_mgmt=WPA-PSK }<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0412 RPI \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0444\u043b\u0435\u0448\u043a\u0443, wi-fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440 (\u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0430 \u043d\u0435 \u0432 \u0445\u0430\u0431 \u2014 \u043e\u043d \u0434\u043b\u044f \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u043e\u0432), \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u0435. \u0427\u0435\u0440\u0435\u0437 \u043c\u0438\u043d\u0443\u0442\u0443 \u0437\u0430\u043b\u0430\u0437\u0438\u043c \u043d\u0430 wi-fi \u0440\u043e\u0443\u0442\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441, \u0447\u0442\u043e \u043e\u043d \u0432\u044b\u0434\u0430\u043b RPI, \u0438 \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043d\u0435\u0433\u043e \u043f\u043e SSH.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e RPI \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 <strong>raspi-config<\/strong>.<br \/>  \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u044f \u043f\u043e IP, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430, \u0447\u0442\u043e\u0431 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 mDNS. \u041f\u0438\u0448\u0435\u043c \u0438\u043c\u044f \u0432 <strong>\/etc\/hostname<\/strong> \u0438 \u0432 <strong>\/etc\/hosts<\/strong> \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, printserver.local, \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f <strong>sudo \/etc\/init.d\/hostname.sh<\/strong> \u0438 \u0443\u0445\u043e\u0434\u0438\u043c \u0432 reboot. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 RPI \u0447\u0435\u0440\u0435\u0437 mDNS \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 printserver.local. \u0414\u043b\u044f Linux mDNS \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0430 \u0434\u043b\u044f Windows \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <a href=\"http:\/\/support.apple.com\/downloads\/DL999\/ru_RU\/BonjourPSSetup.exe\">\u0441\u043b\u0443\u0436\u0431\u0443 \u043f\u0435\u0447\u0430\u0442\u0438 Bonjour<\/a><\/p>\n<p>  <\/p>\n<h3 id=\"stavim-cups\">\u0421\u0442\u0430\u0432\u0438\u043c CUPS<\/h3>\n<p>  <\/p>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get update &amp;&amp; sudo apt-get upgrade<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c CUPS<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install cups<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430\u043c\u0438 \u0432 CUPS \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u044e\u0437\u0435\u0440\u0430 \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 lpadmin. \u0418\u0441\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u043e\u0434 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u043c \u044e\u0437\u0435\u0440\u0430 \u2014 pi. \u0412\u043e\u0442 \u0435\u0433\u043e \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo usermod -a -G lpadmin pi<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u0441\u0435\u0442\u0438, \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0435\u043c\u0443 \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0434\u043b\u044f \u0432\u0441\u0435\u0445, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo cupsctl --remote-any  sudo \/etc\/init.d\/cups restart<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 CUPS, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"https:\/\/printserver.local:631\/\">https:\/\/printserver.local:631\/<\/a> \u0438, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u043e\u0432 \u043e\u043d \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u0438 \u0442\u0430\u043a\u0438\u043c (\u043d\u043e \u043f\u0435\u0447\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0439). \u041f\u0440\u0430\u0432\u0434\u0430, \u043d\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"printer-hp-laserjet-pro-1022\">\u041f\u0440\u0438\u043d\u0442\u0435\u0440 HP LaserJet Pro 1022<\/h3>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0432\u0435\u0440\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432 \u043d\u0435 \u043d\u0430\u0448\u043b\u043e\u0441\u044c. \u041f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043e\u0442 foomatic:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install printer-driver-foo2zjs-common printer-driver-foo2zjs<\/code><\/pre>\n<p>  <\/p>\n<p>\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430 \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435: <strong>HP LaserJet 1022 Foomatic\/foo2zjs-z1<\/strong><\/p>\n<p>  <\/p>\n<p>\u041e\u043d \u0441\u0442\u0430\u043b \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c, \u043d\u043e <strong>\u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e<\/strong> \u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0442\u0443\u043f\u043e \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044f \u043c\u043e\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>  <\/p>\n<p>\u042f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0441 \u044d\u0442\u0438\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0447\u0430\u0442\u0430\u0442\u044c \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u0432, \u0445\u043e\u0442\u044c \u0438 \u0434\u043e\u043b\u0433\u043e \u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u0434\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e.<br \/>  \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0436\u0435 \u043e\u0431\u044a\u0435\u043c\u043e\u0432 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0440\u0443\u0433\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0442\u043e\u0433\u043e \u0436\u0435 \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430 \u0432 CUPS. <\/p>\n<p>  <\/p>\n<p>\u041c\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f xinetd, \u0447\u0442\u043e\u0431 \u0441\u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c HP-jetdirect-\u043f\u0440\u0438\u043d\u0442\u0435\u0440. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c xinetd:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install xinetd<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f xinetd:<\/p>\n<p>  <\/p>\n<pre><code>service hp-jetdirect {        socket_type = stream        protocol = tcp        wait = no        user = pi #\u043d\u0430\u0448 \u044e\u0437\u0435\u0440 \u0437\u0434\u0435\u0441\u044c        server = \/usr\/bin\/lp        server_args = -d HP_LaserJet_Professional_P1102_direct -o raw         groups = yes        disable = no }<\/code><\/pre>\n<p>  <\/p>\n<p>HP_LaserJet_Professional_P1102_direct \u2014 \u0442\u043e, \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u044c jet-direct-\u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430 \u0432 CUPS.<br \/>  \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">\/etc\/rc.d\/xinetd start<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0443 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u0438\u043d\u0442\u0435\u0440 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c HP_LaserJet_Professional_P1102_direct. \u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u0434\u0440\u0430\u0439\u0432\u0435\u0440: Local Raw Printer. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043d\u0430\u0448 \u043f\u0440\u0438\u043d\u0442\u0435\u0440 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 <a href=\"https:\/\/printserver.local:631\/printers\/HP_LaserJet_Professional_P1102_direct\">https:\/\/printserver.local:631\/printers\/HP_LaserJet_Professional_P1102_direct<\/a>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0435\u0447\u0430\u0442\u0438 \u043d\u0430 \u0411\u0411.<\/p>\n<p>  <\/p>\n<p>\u0412\u0441\u0451, \u0442\u0435\u043f\u0435\u0440\u044c \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043d\u0430 \u0442\u0443 \u043c\u0430\u0448\u0438\u043d\u0443, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0438 \u0432\u0443\u0430\u043b\u044f \u2014 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043e\u0431\u044a\u0435\u043c\u044b \u043f\u0435\u0447\u0430\u0442\u0430\u044e\u0442\u0441\u044f \u0441 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e.<\/p>\n<p>  <\/p>\n<h3 id=\"skaner-hp-deskjet-f2180\">\u0421\u043a\u0430\u043d\u0435\u0440 HP Deskjet F2180<\/h3>\n<p>  <\/p>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435-\u0442\u043e, \u044d\u0442\u043e \u043d\u0435 \u0441\u043a\u0430\u043d\u0435\u0440, \u0430 \u041c\u0424\u0423, \u043d\u043e \u044f \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0441\u043a\u0430\u043d\u0435\u0440.<br \/>  \u0414\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d sane<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install sane<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0437\u0430 \u0441\u043a\u0430\u043d\u0435\u0440\u044b<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo sane-find-scanner<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043a\u0430\u043d\u0435\u0440\u043e\u0432 \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c. \u041e\u043a.<br \/>  \u0421\u0442\u0430\u0432\u0438\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u043e\u0442 hp:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install hplip<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c \u043f\u043e\u0438\u0441\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u0442\u043b\u0438\u0447\u043d\u043e, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043c\u043e\u0436\u0435\u0442 \u043b\u0438 \u043d\u0430\u0448 \u0441\u043a\u0430\u043d\u0435\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">pi@PrintServer:~ $ sudo scanimage -L  device `hpaio:\/usb\/Deskjet_F2100_series?serial=CN78R4R3PB04TK' is a Hewlett-Packard Deskjet_F2100_series all-in-one<\/code><\/pre>\n<p>  <\/p>\n<p>\u0442\u043e \u0435\u0441\u0442\u044c, \u043d\u0430 RPI \u0441\u043a\u0430\u043d\u0435\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. <\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u043b\u0438\u043d\u0443\u0445\u0435 <strong>\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0438\u0432\u0430\u0435\u043c sane \u0438 sane-utils<\/strong>, \u0430 \u043b\u0435\u0437\u0435\u043c \u0432 <strong>\/etc\/sane.d\/net.conf<\/strong>, \u0447\u0442\u043e\u0431\u044b \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0438\u0437\u0443 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0434\u0440\u0435\u0441 RPI<\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 <strong>sudo scanimage -L<\/strong> \u0432\u044b\u0434\u0430\u043b. <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">No scanners were identified. If you were expecting something different, check that the scanner is plugged in, turned on and detected by the sane-find-scanner tool (if appropriate). Please read the documentation which came with this software (README, FAQ, manpages).<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0432 \u043f\u043e\u0440\u0442\u044b RPI \u0443\u0432\u0438\u0434\u0435\u043b, \u0447\u0442\u043e \u043f\u043e\u0440\u0442 6566 \u0437\u0430\u043a\u0440\u044b\u0442. \u0427\u0442\u043e \u0436, \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c xinetd<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo nano \/etc\/xinetd.d\/sane-port<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c<\/p>\n<p>  <\/p>\n<pre><code>service sane-port {        socket_type = stream        port       = 6566        wait       = no        user       = root        group      = root        server     = \/usr\/sbin\/saned        disable    = no }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u044b\u0445\u043e\u0434\u0438\u043c, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0438 \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441: <\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo service xinetd restart<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 <strong>sudo scanimage -L<\/strong> \u0438 \u0432\u0438\u0434\u0438\u043c<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">device `net:printserver.local:hpaio:\/usb\/Deskjet_F2100_series?serial=CN78R4R3PB04TK' is a Hewlett-Packard Deskjet_F2100_series all-in-one<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u0447\u0442\u043e \u043d\u0430\u0434\u043e. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 xsane.<\/p>\n<p>  <\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"ispolzovano\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e<\/h3>\n<p>  <\/p>\n<p><a href=\"http:\/\/www.raspberry-pi-geek.com\/Archive\/2013\/01\/Converting-the-Raspberry-Pi-to-a-wireless-print-server\">http:\/\/www.raspberry-pi-geek.com\/Archive\/2013\/01\/Converting-the-Raspberry-Pi-to-a-wireless-print-server<\/a><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/samhobbs.co.uk\/2014\/07\/raspberry-pi-print-scanner-server\">https:\/\/samhobbs.co.uk\/2014\/07\/raspberry-pi-print-scanner-server<\/a><\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/blog.johanv.org\/posts\/old\/node-195.html\">https:\/\/blog.johanv.org\/posts\/old\/node-195.html<\/a> <\/p>\n<p>  <\/p>\n<p><a href=\"http:\/\/lib.ru\/unixhelp\/linuxset.txt\">http:\/\/lib.ru\/unixhelp\/linuxset.txt<\/a><\/p>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/328576\/\"> https:\/\/habrahabr.ru\/post\/328576\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/web\/779\/6f9\/111\/7796f91115b44bfda5f51142a6bd4226.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u043b\u0433\u043e \u043c\u0435\u043d\u044f \u043c\u0443\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u044f \u0438\u0437 \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u043e\u0433\u043e RPI \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 (\u0443\u0434\u0430\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0435\u0447\u0430\u0442\u044c \u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435) \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u044f \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0440\u0430\u043b\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 RPI, \u0444\u043b\u0435\u0448\u043a\u0438 \u0441 Raspbian, Wi-Fi \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0430, \u043f\u0440\u0438\u043d\u0442\u0435\u0440\u0430 HP LaserJet Pro 1022, \u041c\u0424\u0423 HP Deskjet F2180 \u0438 usb-\u0445\u0430\u0431\u0430. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430 (\u0411\u0411), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438\u043d\u0442-\u0441\u0435\u0440\u0432\u0435\u0440 \u0436\u0438\u0432\u0435\u0442 \u043d\u0430 Linux (\u0432\u043f\u0440\u043e\u0447\u0435\u043c, \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u043b\u044f Windows \u0431\u0443\u0434\u0443\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-286298","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/286298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286298"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/286298\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}