{"id":216615,"date":"2014-03-24T06:01:03","date_gmt":"2014-03-24T02:01:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=216615"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=216615","title":{"rendered":"<span class=\"post_title\">Cubieboard A10. \u0423\u0447\u0438\u043c\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441 \u043f\u0443\u043b\u044c\u0442\u0430 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0425\u0430\u0431\u0440!<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/550\/9c1\/902\/5509c190236ea67b4fa42cd7a5cf9c42.png\"\/><br \/>  \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043e \u0441\u0432\u043e\u0435\u043c \u043e\u043f\u044b\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IR \u043d\u0430 Cubieboard.<\/p>\n<p>  \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0441\u0435\u0431\u0435 \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e (\u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u041eC\u044c) \u0412\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 Cubian (http:\/\/cubian.org\/) \u0432 \u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0430 \u043a\u0443\u0431\u0438\u043a\u0435 nginx, php5, samba, mocd \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043a\u043e\u043c \u0440\u0435\u043b\u0435. <br \/>  \u0412 \u0445\u043e\u0434\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0443\u0431\u0438\u043a\u0430 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c IR \u043d\u0430 \u043f\u0440\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0443\u043b\u044c\u0442\u0430 \u043e\u0442 \u0441\u0442\u0430\u0440\u043e\u0433\u043e TV \u0442\u044e\u043d\u0435\u0440\u0430, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 lirc \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0441\u0442\u0430\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. <\/p>\n<p>  \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e bash, \u043d\u043e \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0440\u0430\u0437 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0438\u043b\u0438 \u0447\u0430\u0449\u0435\/\u0440\u0435\u0436\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u0440\u0438\u0432\u043b\u0435\u043a\u0430\u043b\u043e, \u0437\u0430\u0447\u0435\u043c \u0432 \u043f\u0443\u0441\u0442\u0443\u044e \u0433\u043e\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0437 \u043d\u0430\u0433\u0440\u0435\u0432\u0430\u044f \u044d\u0442\u0443 \u043c\u0430\u043b\u044b\u0448\u043a\u0443. \u0422\u043e\u0433\u0434\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0448\u043b\u043e \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 php, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d. <\/p>\n<p>  \u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 <a href=\"http:\/\/habrahabr.ru\/post\/216211\/\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>, \u043c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0431\u043b\u0438\u0437\u043a\u043e \u043a \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u043c\u0443 <a href=\"http:\/\/habrahabr.ru\/users\/ntfs1984\/\" class=\"user_link\">ntfs1984<\/a>, \u043d\u043e \u043d\u0435 \u0442\u0430\u043a\u043e\u0435 \u0436\u0435. <br \/>  \u0422\u0430\u043a\u00a0\u043a\u0430\u043a \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043d\u0435 \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442\u0441\u044f, \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0435.<\/p>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<br \/>  \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a\u00a0\u043a\u0430\u043a \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 cubieboard a10 \u0438 cubian \u2014 \u044d\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c <b><i>sunxi_ir<\/i><\/b><br \/>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <i>lsmod<\/i><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/4a9\/24e\/bd9\/4a924ebd90120aaec6f4d12af39dd98d.png\"\/><br \/>  \u041e\u0431\u0440\u0430\u0449\u0430\u044e \u0432\u0430\u0448\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0432\u0441\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e \u043e\u0442 <b>root<\/b>&#8216;\u0430.<br \/>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442, \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:   <\/p>\n<pre><code class=\"bash\">modprobe sunxi_ir<\/code><\/pre>\n<p>  \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f, <i>modprobe<\/i> \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u043a\u0430\u0436\u0435\u0442, \u0430 \u0432\u043e\u0442 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 <i>lsmod<\/i> \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0437\u0430\u0432\u0435\u0442\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u0447\u043a\u0430. \u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u043d\u044b\u043c \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u0443\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432\u0432\u043e\u0434\u0430:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/b2b\/bbf\/baa\/b2bbbfbaac0d7d951f0b92f724ce3d59.png\"\/><br \/>  \u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e <i>event1<\/i><br \/>  \u0441\u0430\u043c\u044b\u0439 \u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0442\u043e \u043b\u0438 \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u044d\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c   <\/p>\n<pre><code class=\"bash\">cat \/dev\/input\/event1 | hexdump<\/code><\/pre>\n<p> (\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e [Ctrl]+[C])<br \/>  hexdump \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0432 \u00ab\u043a\u0440\u0430\u0441\u0438\u0432\u043e\u043c\u00bb \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043b\u044e\u0441 \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043e\u0434 \u043d\u0430\u0436\u0430\u0442\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043c\u043e\u0436\u0435\u043c \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0438 \u0431\u0435\u0437 \u043d\u0435\u0433\u043e.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/675\/d8d\/437\/675d8d437368429a9181caa8a0097797.png\"\/><br \/>  \u041d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u0430\u0436\u0430\u0442\u0443\u044e \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0435\u0442\u044b\u0440\u0435 \u0441\u0442\u0440\u043e\u043a\u0438, \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0430\u0440\u0430 \u0441\u0442\u0440\u043e\u043a \u2014 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430 \u043f\u0443\u043b\u044c\u0442\u0435 \u0431\u044b\u043b\u0430 \u043d\u0430\u0436\u0430\u0442\u0430(<b>0090 0001<\/b>), \u0432\u0442\u043e\u0440\u0430\u044f \u2014 \u043a\u043d\u043e\u043f\u043a\u0443 \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438(<b>0090 0000<\/b>). \u0418\u0437 \u044d\u0442\u0438\u0445 \u0441\u0442\u0440\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0433\u043e, \u044f \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435 \u0443\u0433\u043b\u0443\u0431\u043b\u044f\u043b\u0441\u044f, \u0430 \u043b\u0438\u0448\u044c \u043e\u0431\u0440\u0430\u0449\u0430\u043b \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u0434 \u043a\u043d\u043e\u043f\u043a\u0438 (\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e <i>0090<\/i>). \u041d\u043e \u043c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e <i>532a<\/i> -\u044d\u0442\u043e \u043a\u043e\u0434 \u043f\u0443\u043b\u044c\u0442\u0430, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e \u0440\u0435\u0448\u0438\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u043a \u043f\u0443\u043b\u044c\u0442\u0443.<br \/>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0442\u0430\u043a \u0438 \u0435\u0441\u0442\u044c, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u044d\u0442\u0430\u043f\u0443 \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438  <\/p>\n<pre><code class=\"bash\">nano \/etc\/modules<\/code><\/pre>\n<p>  \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u0438\u0448\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 <br \/>  <i>sunxi_ir<\/i><br \/>  \u044d\u0442\u043e \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u043b\u0438 \u0432\u044b\u0448\u0435. \u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0435\u0433\u043e <i>modules<\/i>:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/c11\/c0e\/7db\/c11c0e7dbd5331b08be7ea900f4cccdb.png\"\/><br \/>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0438 \u0432\u044b\u0448\u043b\u0438.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IR \u043e\u043a\u043e\u043d\u0447\u0435\u043d\u044b, \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0441\u0430\u043c\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438, \u044d\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043c\u043e\u0436\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f. <br \/>  \u041d\u0443\u0436\u0435\u043d \u0434\u0435\u043c\u043e\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u044f\u043c\u0438, \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u0437\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c, \u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0436\u0430\u0442\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u2014 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u0421\u0440\u0430\u0437\u0443 \u0436\u0435 \u0441\u043a\u0430\u0436\u0443, \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u0446\u0438\u043a\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u043a\u0443\u043d\u0434\u0443, \u043d\u0430\u0436\u0430\u0442\u0430 \u043b\u0438 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430 \u043f\u0443\u043b\u044c\u0442\u0435 \u0438\u043b\u0438 \u043d\u0435\u0442. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u044b \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0430 <i>\u0442\u043e\u043b\u044c\u043a\u043e<\/i> \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e, \u0432 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0440\u0435\u043c\u0430\u043b\u0430. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0440\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u0438\u0434\u0435\u044f \u0440\u0430\u0431\u043e\u0442\u044b php \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438, \u043a\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0431\u0438\u0442\u043d\u043e \u0444\u0430\u0439\u043b:  <\/p>\n<pre><code class=\"php\">#!\/usr\/bin\/php5 &lt;?php $dev=&quot;\/dev\/input\/event1&quot;; $f=fopen($dev, 'rb'); if($f){ \twhile (!feof($f)){ \t\t$b=fread($f,32);  \/\/\u043a\u0430\u0436\u0434\u0430\u044f \u043a\u043d\u043e\u043f\u043a\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e 64 \u0431\u0438\u0442\u0430, 32-\u043d\u0430\u0436\u0430\u0442\u0430 \u043a\u043d\u043e\u043f\u043a\u0430, \u0435\u0449\u0435 32 - \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \t\t$d=bin2hex($b);\t\/\/\u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 hex \u0441\u0442\u0440\u043e\u043a\u0443 \t\t$d=substr($d,18,8);\t\/\/\u043a\u043e\u0434 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0443\u043b\u044c\u0442\u0430 \u0438 \u0435\u0451 \u0441\u0442\u0430\u0442\u0443\u0441 \t\t$button=substr($d,0,4); \/\/\u043a\u043d\u043e\u043f\u043a\u0430 \t\t$key=substr($d,4);\t \/\/0001 \u0438\u043b\u0438 0000 \t\t \t\tswitch($button){ \t\t\tcase &quot;0090&quot;: echo &quot;POWER &quot;.($key==&quot;0001&quot;?&quot;down&quot;:&quot;up&quot;).&quot;\\n&quot;; \t\t} \t\t\/\/\u041c\u043e\u0436\u043d\u043e \u0438 \u0442\u0430\u043a: \t\t\/*if($key==&quot;0001&quot;){ \t\t\tif($button==&quot;0090&quot;){  \t\t\t\t\/\/\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0434 \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043a\u043d\u043e\u043f\u043a\u0438 \u043d\u0430 \u043f\u0443\u043b\u044c\u0442\u0435 \t\t\t} \t\t}else{ \t\t\tif($button==&quot;0090&quot;){  \t\t\t\t\/\/\u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u0434 \u043a\u043e\u0433\u0434\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430 \u043f\u0443\u043b\u044c\u0442\u0435 \u043e\u0442\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \t\t\t} \t\t} \t\t*\/ \t} } ?&gt; <\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0444\u0430\u0439\u043b \u043a\u0430\u043a <i>\/tmp\/tst<\/i><br \/>  \u041f\u043e\u0437\u0432\u043e\u043b\u0438\u043c \u0444\u0430\u0439\u043b\u0443 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u043c  <\/p>\n<pre><code class=\"bash\">chmod +x \/tmp\/ts<\/code><\/pre>\n<p> \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/a07\/9dc\/52a\/a079dc52a4c1be39de86535e39d29d03.png\"\/><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c, \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u044f switch \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438, \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043d\u043e\u043f\u043a\u0438 \u043f\u0443\u043b\u044c\u0442\u0430. \u041d\u0443 \u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0435 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u00ab\u043f\u0443\u0441\u0442\u044b\u0435\u00bb \u0441\u043b\u043e\u0432\u0430, \u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.<br \/>  \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u0438\u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043f\u043e\u043b\u0443\u0447\u0438\u043c (\/usr\/sbin\/mylirc):  <\/p>\n<pre><code class=\"php\">#!\/usr\/bin\/php5 &lt;?php \tfunction AccessFile($file,$access){ \t\tif(file_exists($file)){ \/\/\u0444\u0430\u0439\u043b \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442! \t\t\tif($f=@fopen($file,$access)){fclose($f);}else{exit(&quot;not have access to $file\\n&quot;);} \t\t}else{ \t\t\treturn &quot;$file not found (may not have access to the folder)\\n&quot;; \t\t} \t} \t$dev=&quot;&quot;; \t$log=0; \tif(count($argv)==1){ \t\texit(&quot;Use &quot;.dirname( __FILE__ ).&quot;\/&quot;.basename($_SERVER['SCRIPT_FILENAME']).&quot; --device=device [--log=logfile]\\n&quot;); \t}else{ \t\tfor($i=1;$i&lt;count($argv);$i++){ \t\t\t$cmd=explode(&quot;=&quot;,$argv[$i]); \t\t\tswitch($cmd[0]){ \t\t\t\tcase &quot;--device&quot;: $dev=$cmd[1]; echo AccessFile($cmd[1],&quot;rb&quot;); break; \t\t\t\tcase &quot;--log&quot;:    $log=$cmd[1]; echo AccessFile($cmd[1],&quot;w&quot;); break; \t\t\t} \t\t} \t} \tif($dev==&quot;&quot;){ \t\texit(&quot;Use &quot;.dirname( __FILE__ ).&quot;\/&quot;.basename($_SERVER['SCRIPT_FILENAME']).&quot; --device=device [--log=logfile]\\n&quot;); \t} \tinclude(&quot;\/etc\/mylirc\/buttom_avermedia.php&quot;); \tif($log){exec(&quot;echo `date` &gt; $log&quot;);} \t$f=fopen($dev, 'rb'); \tif($f){ \t\twhile (!feof($f)){ \t\t\t$b=fread($f,32);  \t\t\t$d=bin2hex($b); \t\t\t \t\t\t$d=substr($d,18,8); \t\t\t$button\t=substr($d,0,4); \t\t\t$key\t=substr($d,4); \t\t\t$l=0; \t\t\tfor($i=0;$i&lt;count($command);$i++){ \t\t\t\tif(trim($button)==trim($command[$i][1]) && trim($key)==trim($command[$i][2])){ \t\t\t\t\t$l=1; \t\t\t\t\tif(trim($command[$i][3])!=&quot;&quot;){ \/\/\u041d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0443 \t\t\t\t\t\texec($command[$i][3].&quot; &gt; \/dev\/null 2&gt;\/dev\/null &&quot;); \t\t\t\t\t}else{ \/\/\u0415\u0441\u043b\u0438 \u043d\u0435 \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u043b\u0438, \u0432 \u043b\u043e\u0433\u0430\u0445 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0437\u043d\u0430\u0442\u044c: \t\t\t\t\t\tif($log){exec(&quot;echo &quot;.$command[$i][0].&quot; &quot;.$command[$i][1].&quot; cmd=null &gt;&gt; $log&quot;);}\/\/\u043b\u043e\u0433\u0438 \t\t\t\t\t} \t\t\t\t} \t\t\t} \t\t\tif(!$l){ \/\/\u0415\u0441\u043b\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0430 \u043d\u0430\u0436\u0430\u0442\u0430, \u043d\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043d\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430: \t\t\t\tif($log){exec(&quot;echo not buttom $button $key &gt;&gt; $log&quot;);}\/\/\u043b\u043e\u0433\u0438 \t\t\t} \t\t} \t} ?&gt; <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0438\u0448\u0435\u0442 \u043b\u043e\u0433\u0438, \u0435\u0441\u043b\u0438 \u0431\u044b\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440(&#8212;log) \u0438 \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 &#8212;device<br \/>  \u0424\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a (\/etc\/mylirc\/buttom_avermedia.php):  <\/p>\n<pre><code class=\"php\">&lt;?php \t$command=array(); \t\/\/\u0444\u043e\u0440\u043c\u0430\u0442: \t\/\/\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435, \u043a\u043e\u0434, \u043a\u043b\u044e\u0447, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \t$command[]=array(&quot;POWER&quot;, &quot;00ff&quot;,&quot;0001&quot;,&quot;led green 1&quot;); \t$command[]=array(&quot;POWER&quot;, &quot;00ff&quot;,&quot;0000&quot;,&quot;&quot;); \t$command[]=array(&quot;NUMB 1&quot;, &quot;0005&quot;,&quot;0001&quot;,&quot;led green 0&quot;); \t$command[]=array(&quot;NUMB 1&quot;, &quot;0005&quot;,&quot;0000&quot;,&quot;&quot;); \t\/\/\u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 ?&gt; <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 <i>led green 1(0)<\/i> (\u044d\u0442\u043e \u043c\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 bash&#8217;\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b \u0432 \/usr\/sbin\/)<br \/>  \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0430 \u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u043b\u0430 \u043d\u0430 \u043a\u0443\u0431\u0438\u043a\u0435 \u043b\u0430\u043c\u043f\u043e\u0447\u043a\u0443 (\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0437\u0435\u043b\u0435\u043d\u0430\u044f), \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043a\u0430\u043a\u0443\u044e \u0432\u044b \u043f\u043e\u0436\u0435\u043b\u0430\u0435\u0442\u0435. \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u0442 \u043e\u0442 root&#8217;\u0430, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u043d\u0438\u0436\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 \u0434\u043e \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<br \/>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u0432\u0438\u0434\u0435 \u0434\u0435\u043c\u043e\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\/\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c\/\u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\/\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b(\/usr\/sbin\/mylirc), \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \/etc\/init.d\/ssh \u0441\u043a\u0440\u0438\u043f\u0442, \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043d \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u043a\u0430\u043a \/etc\/init.d\/01_lirc:  <\/p>\n<pre><code class=\"bash\"> #!\/bin\/sh ### BEGIN INIT INFO # Provides:             01_lirc # Required-Start:       $remote_fs $syslog # Required-Stop:        $remote_fs $syslog # Default-Start:        2 3 4 5 # Default-Stop:          # Short-Description:    LIRC on PHP server ### END INIT INFO set -e # \/etc\/init.d\/01_lirc: start and stop the &quot;LIRC on PHP&quot; daemon test -x \/usr\/sbin\/mylirc || exit 0 ( \/usr\/sbin\/mylirc -\\? 2&gt;&1 | grep -q mylirc ) 2&gt;\/dev\/null || exit 0 umask 022 . \/lib\/lsb\/init-functions run_by_init() {     ([ &quot;$previous&quot; ] && [ &quot;$runlevel&quot; ]) || [ &quot;$runlevel&quot; = S ] } export PATH=&quot;${PATH:+$PATH:}\/usr\/sbin:\/sbin&quot; case &quot;$1&quot; in   start)         log_daemon_msg &quot;Starting LIRC on PHP deamon&quot; &quot;mylirc&quot; || true         if start-stop-daemon --quiet --oknodo --exec \/usr\/sbin\/mylirc  --background --start -- --device=\/dev\/input\/event1  --log=\/var\/log\/log_lirc; then             log_end_msg 0 || true         else             log_end_msg 1 || true         fi         ;;   stop)         log_daemon_msg &quot;Stopping LIRC on PHP deamon&quot; &quot;mylirc&quot; || true         if start-stop-daemon --stop --oknodo --name mylirc --retry=KILL\/1; then             log_end_msg 0 || true         else             log_end_msg 1 || true         fi         ;;   restart)         log_daemon_msg &quot;Restarting LIRC on PHP deamon&quot; &quot;mylirc&quot; || true         start-stop-daemon --stop --oknodo --name mylirc --retry=KILL\/1;         if start-stop-daemon --quiet --oknodo --exec \/usr\/sbin\/mylirc  --background --start -- --device=\/dev\/input\/event1  --log=\/var\/log\/log_lirc; then             log_end_msg 0 || true         else             log_end_msg 1 || true         fi         ;;   status)         ID=`(lsof | grep mylirc | grep \/dev\/ 2&gt;&1) 1&gt;\/dev\/null || echo 0;`         if [ &quot;$ID&quot; = &quot;0&quot; ]; then                 echo &quot;LIRC on PHP deamon \\033[37;1;41m shutdown \\033[0m&quot;;         else                 echo &quot;LIRC on PHP deamon \\033[37;1;42m started \\033[0m&quot;;         fi         tput sgr0         ;;   *)         log_action_msg &quot;Usage: \/etc\/init.d\/mylirc {start|stop|restart|status}&quot; || true         exit 1 esac exit 0 <\/code><\/pre>\n<p>  P.S. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043e\u0442\u043a\u0430\u0442\u0430\u043b, \u0443\u0436\u0435 \u0434\u0432\u0435 \u043d\u0435\u0434\u0435\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e. \u041f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f \u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442\u0441\u044f. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\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=\"http:\/\/habrahabr.ru\/post\/216615\/\"> http:\/\/habrahabr.ru\/post\/216615\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439, \u0425\u0430\u0431\u0440!<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/550\/9c1\/902\/5509c190236ea67b4fa42cd7a5cf9c42.png\"\/><br \/>  \u0420\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u044e \u043e \u0441\u0432\u043e\u0435\u043c \u043e\u043f\u044b\u0442\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 IR \u043d\u0430 Cubieboard.<\/p>\n<p>  \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0437\u0430\u043a\u0430\u0437\u0430\u043b \u0441\u0435\u0431\u0435 \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e (\u0437\u0430\u043a\u0430\u0437\u044b\u0432\u0430\u043b \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0433\u043e \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0438, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u041eC\u044c) \u0412\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 Cubian (http:\/\/cubian.org\/) \u0432 \u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u043f\u043e\u043a\u0430 \u043d\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u043b\u043e\u0441\u044c \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0430 \u043a\u0443\u0431\u0438\u043a\u0435 nginx, php5, samba, mocd \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0438\u0445 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u043e\u043a\u043e\u043c \u0440\u0435\u043b\u0435. <br \/>  \u0412 \u0445\u043e\u0434\u0435 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u043a\u0443\u0431\u0438\u043a\u0430 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c IR \u043d\u0430 \u043f\u0440\u0438\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434 \u0441 \u043f\u0443\u043b\u044c\u0442\u0430 \u043e\u0442 \u0441\u0442\u0430\u0440\u043e\u0433\u043e TV \u0442\u044e\u043d\u0435\u0440\u0430, \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0432\u0438\u0434\u0435 lirc \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0441\u0442\u0430\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. <\/p>\n<p>  \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438.  <\/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-216615","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/216615","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=216615"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/216615\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=216615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=216615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=216615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}