{"id":859,"date":"2014-09-15T15:00:22","date_gmt":"2014-09-15T15:00:22","guid":{"rendered":"http:\/\/denfisher.ru\/?p=859"},"modified":"2014-12-08T07:17:03","modified_gmt":"2014-12-08T07:17:03","slug":"%d0%b2%d0%b8%d0%b4%d0%b5%d0%be%d1%81%d1%82%d0%b5%d0%bd%d0%b0-%d0%bd%d0%b0-raspberry-pi","status":"publish","type":"post","link":"https:\/\/denfisher.ru\/?p=859","title":{"rendered":"\u0412\u0438\u0434\u0435\u043e\u0441\u0442\u0435\u043d\u0430 \u043d\u0430 Raspberry Pi"},"content":{"rendered":"<p>\u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u043e\u0441\u0442, \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 \u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0431\u043b\u043e\u0433\u0430\u0445 \u043e\u043d \u0441\u043b\u0430\u0431\u043e\u0432\u0430\u0442, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/p>\n<p><a href=\"https:\/\/denfisher.ru\/wp-content\/uploads\/2014\/09\/raspberry.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-860\" src=\"https:\/\/denfisher.ru\/wp-content\/uploads\/2014\/09\/raspberry-300x229.png\" alt=\"raspberry\" width=\"300\" height=\"229\" srcset=\"https:\/\/denfisher.ru\/wp-content\/uploads\/2014\/09\/raspberry-300x229.png 300w, https:\/\/denfisher.ru\/wp-content\/uploads\/2014\/09\/raspberry-150x114.png 150w, https:\/\/denfisher.ru\/wp-content\/uploads\/2014\/09\/raspberry.png 368w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/>\u00a0<\/a>\u041c\u044b \u0438\u043c\u0435\u0435\u043c Raspberry Pi, model B \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c raspbian:<\/p>\n<p>root@raspberrypi:\/etc# uname -a<br \/>\nLinux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU\/Linux<\/p>\n<p>\u0415\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u0438\u0434\u0435\u043e\u0441\u0442\u0435\u043d\u044b. \u041c\u044b \u0432 \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u0438\u043c\u0435\u0435\u043c 10 \u043f\u0430\u043d\u0435\u043b\u0435\u0439 \u043f\u043e 42 \u0434\u044e\u0439\u043c\u0430 \u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e 10 raspberry pi.<\/p>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f HDMI-\u043a\u0430\u0431\u0435\u043b\u0435\u043c \u043a \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043d\u0435\u043b\u0438 (\u043f\u043e \u0441\u0443\u0442\u0438, \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043d\u0435\u043b\u044c &#8212; \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440, \u043d\u043e \u043d\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u043a\u0440\u0430\u043d\u044b, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0435\u043e\u0441\u0442\u0435\u043d, \u043e\u043d\u0438 \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 BNC-\u0440\u0430\u0437\u044a\u0435\u043c\u043e\u0432 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0430\u043d\u0442\u0435\u043d\u043d\u044b).<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 1 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f &#8212; \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432\u0438\u0434\u0435\u043e\u0432\u044b\u0432\u043e\u0434\u0430.<\/strong> \u0417\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438\u00a0\/boot\/config.txt<\/p>\n<p>\u0422\u0430\u043c \u0435\u0441\u0442\u044c \u043f\u0443\u043d\u043a\u0442:<\/p>\n<blockquote><p># uncomment to force a specific HDMI mode (this will force VGA)<br \/>\nhdmi_group=1<br \/>\nhdmi_mode=16<\/p><\/blockquote>\n<p>\u041d\u0443\u0436\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0432\u0437\u044f\u0442\u044c \u0437\u0434\u0435\u0441\u044c &#8212;\u00a0http:\/\/ubuntu-russian.ru\/opisanie-parametrov-fajla-config-txt-v-raspberry-pi\/<\/p>\n<p><strong>\u0417\u0430\u0434\u0430\u0447\u0430 2 &#8212; \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443<\/strong>.<\/p>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u0438\u043a\u0441\u044b \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0431\u0440\u0430\u0443\u0437\u0435\u0440:<\/p>\n<blockquote><p>root@raspberrypi:~# cat run.sh<br \/>\n#!\/bin\/sh<br \/>\nstartx&amp;<br \/>\nexport DISPLAY=&#187;:0&#8243;<br \/>\na=`cat \/root\/url`<br \/>\nmidori $a &amp;<br \/>\nsleep 5<br \/>\nmidori -e Fullscreen<br \/>\nsleep 5<br \/>\nmidori -e TabCloseOther<\/p><\/blockquote>\n<p>\u042d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0438\u043a\u0441\u044b, \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u044b\u0432\u043e\u0434 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0432 \u043f\u043e\u0440\u0442 0, \u0431\u0435\u0440\u0451\u0442 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b url, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0435\u0433\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0443. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u044d\u043a\u0440\u0430\u043d \u0432 FullScreen \u0438 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u043a\u043b\u0430\u0434\u043a\u0438, \u043a\u0440\u043e\u043c\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0439.<\/p>\n<p><strong>\u0414\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c &#8212; \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/strong> \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u0434\u043e\u0439\u0434\u0451\u0442\u00a0\/etc\/rc.local<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0443\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u0443\u0441\u043e\u0447\u0435\u043a:<\/p>\n<blockquote><p>nohup \/root\/run.sh&amp;<br \/>\nexit 0<\/p><\/blockquote>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0437\u0430\u043f\u0443\u0449\u0435\u043d.<\/p>\n<p><strong>\u0418\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0442\u0435\u0447\u0451\u0442, \u0435\u0433\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c.<\/strong><\/p>\n<p>\u041f\u0438\u0448\u0435\u043c\u00a0\u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<blockquote><p>root@raspberrypi:~# cat rerun_midori.sh<br \/>\nkillall midori<br \/>\nexport DISPLAY=&#187;:0&#8243;<br \/>\na=`cat \/root\/url`<br \/>\nmidori $a &amp;<br \/>\nsleep 5<br \/>\nmidori -e Fullscreen<br \/>\nsleep 5<br \/>\nmidori -e TabCloseOther<\/p><\/blockquote>\n<p><strong>\u0418 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0432 \u043a\u0440\u043e\u043d:<\/strong><\/p>\n<blockquote><p># m h dom mon dow command<br \/>\n0 *\/1 * * * \/bin\/sh \/root\/rerun_midori.sh<\/p><\/blockquote>\n<p>\u041f\u0440\u043e\u0444\u0438\u0442. \u0412 \u0441\u043b\u0435\u0434\u044e\u0449\u0435\u043c \u043f\u043e\u0441\u0442\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043a\u0430\u043a \u044f \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e\u0441\u0442\u0435\u043d\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 web-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u043e\u0441\u0442, \u0434\u043b\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 \u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0431\u043b\u043e\u0433\u0430\u0445 \u043e\u043d \u0441\u043b\u0430\u0431\u043e\u0432\u0430\u0442, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u00a0\u041c\u044b \u0438\u043c\u0435\u0435\u043c Raspberry Pi, model B \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u043c raspbian: root@raspberrypi:\/etc# uname -a Linux raspberrypi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU\/Linux \u0415\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0432\u0438\u0434\u0435\u043e\u0441\u0442\u0435\u043d\u044b. \u041c\u044b \u0432 \u043d\u0430\u0448\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[21],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-72","tag-21"],"_links":{"self":[{"href":"https:\/\/denfisher.ru\/index.php?rest_route=\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denfisher.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denfisher.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denfisher.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denfisher.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=859"}],"version-history":[{"count":5,"href":"https:\/\/denfisher.ru\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":865,"href":"https:\/\/denfisher.ru\/index.php?rest_route=\/wp\/v2\/posts\/859\/revisions\/865"}],"wp:attachment":[{"href":"https:\/\/denfisher.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denfisher.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denfisher.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}