{"id":280514,"date":"2016-11-06T17:45:04","date_gmt":"2016-11-06T14:45:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=280514"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=280514","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 node.js \u043d\u0430 Raspberry Pi"},"content":{"rendered":"<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/ab4\/112\/c1f\/ab4112c1fb63489e8080b4587d49eb15.png\" alt=\"Logo Raspberry and Node.js\"\/><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0441\u0432\u044f\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u043f\u0430\u043b\u0430 \u0432 \u0440\u0443\u043a\u0438 Raspberry Pi \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c. \u041a\u043e\u0433\u0434\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u043f\u043e\u043a\u0443\u043f\u0430\u043b raspeberry \u044d\u0442\u043e \u0431\u044b\u043b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0437\u0430 35 \u0434\u043e\u043b\u043b, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u043e \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0430 \u0438 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 IoT \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<a name=\"habracut\"><\/a> \u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e linux \u0441\u0438\u0441\u0442\u0435\u043c, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043e\u043d\u0438 \u0432\u0441\u0435 \u0443\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0434\u043e raspberry 2+. \u042f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u043d\u0430 2\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445: OSMC \u0438 Pidora(\u0443\u0440\u0435\u0437\u0430\u043d\u043d\u0430\u044f fedora), \u0432\u0435\u0441\u044c \u043c\u0438\u0440 \u043d\u0435\u0433\u043e\u0434\u0443\u0435\u0442 \u043f\u043e \u043f\u043e\u0432\u043e\u0434\u0443 \u043d\u0435\u0443\u0434\u0430\u0447\u043d\u043e\u0433\u043e \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f Pidora <a href=\"https:\/\/wiki.cdot.senecacollege.ca\/wiki\/Pidora_Russian\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0446\u0438\u0442\u0430\u0442\u0443 \u041a\u0440\u0438\u0441\u0430 \u0422\u0430\u0439\u043b\u0435\u0440\u0430<\/a>, \u043d\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u043e\u0434\u0435\u043b\u0430\u0435\u0448\u044c, \u0443\u0436\u0435 \u043f\u0440\u0438\u0436\u0438\u043b\u043e\u0441\u044c. \u0423 \u043c\u0435\u043d\u044f \u0431\u044b\u043b\u0430 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b- SD \u043a\u0430\u0440\u0442\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 FAT32 primary partition. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 OSMC \u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b\u0441\u044f \u0447\u0435\u0440\u0435\u0437 ethernet \u043a root \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, pidora \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u044b\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043a\u0430\u043a \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/e81\/091\/881\/e810918812754fba9d8f34251f786ae3.png\"\/><\/div>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 <a href=\"https:\/\/nodejs.org\/dist\/\">https:\/\/nodejs.org\/dist\/<\/a> \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e LTS, \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438 \u044d\u0442\u043e \u0431\u044b\u043b\u0430 v6.9.1, \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0447\u0442\u043e \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u0430 armv6l \u0434\u043b\u044f Raspberry Pi 1, \u0438\u043b\u0438 armv7l \u0434\u043b\u044f Raspberry Pi 2+ \u044d\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0432\u0435\u0440\u0441\u0438\u0438 <a href=\"https:\/\/en.wikipedia.org\/wiki\/ARM_architecture\">ARM architecture for computer processor<\/a>.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0448\u0430 \u043d\u043e\u0434\u0430.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/3a6\/84b\/11d\/3a684b11d14c43fe85b5d8b35a4cf47d.png\"\/><\/div>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre><code class=\"bash\">wget https:\/\/nodejs.org\/dist\/latest-v6.x\/node-v6.9.1-linux-armv6l.tar.gz <\/code><\/pre>\n<p>\u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c node.js \u0432 \u043d\u0430\u0448\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/0b6\/9ed\/b7f\/0b69edb7fbc44b889f516584003e0872.png\"\/><\/div>\n<p>  \u0412\u0441\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u043b\u043e\u0441\u044c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/bf9\/654\/2ce\/bf96542ce3f34e8195ea6bef772c32b4.png\"\/><\/div>\n<p>  \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0430\u0440\u0445\u0438\u0432 <\/p>\n<pre><code class=\"bash\">tar -xvf node-v6.9.1-linux-armv6l.tar.gz <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/113\/0e6\/d74\/1130e6d74911415587f40f7a04ed54f6.png\"\/><\/div>\n<p>  \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u043f\u0430\u043f\u043a\u0443 \u0441 \u043d\u0430\u0448\u0435\u0439 \u043d\u043e\u0434\u043e\u0439:<\/p>\n<pre><code class=\"bash\">mv node-v6.9.1-linux-armv6l node-v6 <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/3db\/b30\/bee\/3dbb30bee50e43d0aee1873a4d6bc730.png\"\/><\/div>\n<p>  \u041f\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438:<\/p>\n<pre><code class=\"bash\">cd node-v6 ls <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/729\/4d5\/e67\/7294d5e67c864e2abfa306f919bdc3a7.png\"\/><\/div>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u043e\u043b\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043d\u0430\u0448\u0443 \u043f\u0430\u043f\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c node.js \u0432 PATH:<\/p>\n<pre><code class=\"bash\">readlink -m CHANGELOG.md <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/2e4\/bee\/263\/2e4bee263fc446ad9a170d4eba4e3343.png\"\/><\/div>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Node.js \u0432 PATH, <b>\u0431\u0443\u0434\u044c\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u043d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435<\/b>, \u0442.\u043a. \u0435\u0441\u043b\u0438 \u043d\u0430\u043a\u043e\u0441\u044f\u0447\u0438\u0442\u044c, \u0442\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \ud83d\ude09<\/p>\n<pre><code class=\"bash\">export PATH=$PATH:\/home\/osmc\/node\/node-v6\/bin <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/469\/df2\/b4e\/469df2b4ec4f47bdae8cfc67e1fdbf0c.png\"\/><\/div>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0448 \u043f\u0443\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d:<\/p>\n<pre><code class=\"bash\">$PATH <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/7b3\/88a\/3b6\/7b388a3b603849b5a99a61d2bb3c034d.png\"\/><\/div>\n<p>  \u0418 \u0432\u0443\u0430\u043b\u044f, javascript \u043d\u0430 \u0432\u0430\u0448\u0435\u0439 \u043c\u0430\u043b\u0438\u043d\u043a\u0435 \ud83d\ude42<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/76e\/2f2\/b11\/76e2f2b1172d4cc1a2c9a3f84e60a093.png\"\/><\/div>\n<p>  \u0412\u044b \u0443\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e node.js \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u044e \u043f\u0430\u043f\u043a\u0443 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0437\u043d\u0430\u0442\u044c \u043e \u043d\u0435\u0439, \u0438 \u043c\u044b \u0443\u0431\u0435\u0434\u0438\u043b\u0438\u0441\u044c \u0447\u0442\u043e \u043d\u0430 \u0441\u0442\u0430\u0440\u0443\u044e Raspberry Pi \u043d\u0443\u0436\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043d\u043e\u0434\u0443.<br \/> \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\/314540\/\"> https:\/\/habrahabr.ru\/post\/314540\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div style=\"text-align:center;\"><img decoding=\"async\"  src=\"https:\/\/habrastorage.org\/files\/ab4\/112\/c1f\/ab4112c1fb63489e8080b4587d49eb15.png\" alt=\"Logo Raspberry and Node.js\"\/><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u0421\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0441\u0432\u044f\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0431-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u043f\u0430\u043b\u0430 \u0432 \u0440\u0443\u043a\u0438 Raspberry Pi \u043f\u0435\u0440\u0432\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c. \u041a\u043e\u0433\u0434\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 \u043d\u0430\u0437\u0430\u0434 \u044f \u043f\u043e\u043a\u0443\u043f\u0430\u043b raspeberry \u044d\u0442\u043e \u0431\u044b\u043b \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0437\u0430 35 \u0434\u043e\u043b\u043b, \u0441\u0435\u0433\u043e\u0434\u043d\u044f \u044d\u0442\u043e \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0430 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0430 \u0438 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 IoT \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432.<\/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-280514","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/280514","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=280514"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/280514\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}