{"id":868,"date":"2015-01-06T12:53:47","date_gmt":"2015-01-06T03:53:47","guid":{"rendered":"http:\/\/research.itplants.com\/?p=868"},"modified":"2015-01-06T12:55:55","modified_gmt":"2015-01-06T03:55:55","slug":"coder%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/research.itplants.com\/?p=868","title":{"rendered":"Coder\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>Raspberry Pi\u3067\u52d5\u4f5c\u3057\u3066\u3044\u305f Google\u88fd\u306eCoder\u3092edison\u3067\u3082\u52d5\u304b\u3057\u305f\u3044\u3001\u3068\u601d\u3063\u3066\u8a66\u884c\u932f\u8aa4\u3057\u307e\u3057\u305f\u3002\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u624b\u9806\u3092\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>Coder\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n\u4e88\u3081\u3001opkg install git bash sudo \u3067\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u306epi\u3068coder\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\">adduser pi adduser coder<\/div><\/div><br \/>\npi\u3068coder\u306f\u3001su\u3067super user\u306b\u306a\u308c\u308b\u3088\u3046\u306b\u3001\/etc\/surores\u306b\u767b\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>coder\u30a2\u30ab\u30a6\u30c8\u3067\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001coder\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\/home\/coder\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># git clone https:\/\/github.com\/googlecreativelab\/coder.git<\/div><\/div><\/p>\n<p>coder\u3068\u3044\u3046\u30db\u30eb\u30c0\u30fc\u3067\u5c55\u958b\u3055\u308c\u308b\u306e\u3067\u3001coder-dist\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># mv coder coder-dist<\/div><\/div><\/p>\n<p>\u5f8c\u306f\u3001INSTALL\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3068\u304a\u308a\u306b\u3001<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># cd coder-apps<\/div><\/div><\/p>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># .\/install_common.sh ..\/coder-base<\/div><\/div>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4ee5\u4e0b\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3068WiFi\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># .\/install_pi.sh ..\/coder-base<\/div><\/div><\/p>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># cd ..\/coder-app<\/div><\/div>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># npm install<\/div><\/div>\n<p>\u6b21\u306b\u3001Nod\u304c\u4f7f\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u610f\u3057\u307e\u3059\u3002coder-base\u76f4\u4e0b\u306esudo_scripts\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u3067\u3059\u3002sudo_scripts\u306f\u3001coder-dist\/raspbian-addons\/home\/coder\/coder-dist\/coder-base\/sudo_scripts\u306b\u3042\u308a\u307e\u3059\u3002\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u8cbc\u3063\u3066\u304a\u3051\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># cd ..\/coder-base<\/div><\/div><br \/>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># ln -s ..\/raspbian-addons\/home\/coder\/coder-dist\/coder-base\/sudo_scripts .<\/div><\/div><\/p>\n<p>sudo_scripts\u306e\u4e2d\u306bwpa_cli* \u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308a\u307e\u3059\u3002Raspberry Pi\u3068\u306f\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5834\u6240\u304c\u9055\u3063\u3066\u3044\u308b\u306e\u3067\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><\/p>\n<p>wpa_cli_apscan<br \/>\n#!\/bin\/sh<br \/>\n#\/sbin\/wpa_cli ap_scan 2<br \/>\n\/usr\/sbin\/wpa_cli ap_scan 2<\/p>\n<p><\/div><\/div>\n<p>edison\u3067\u306f\u3001\/sbin \u3067\u306f\u306a\u304f\u3001\/usr\/sbin \u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p># cd coder-base<\/p>\n<p>config.js\u306e\u4e2d\u306b\u3042\u308b\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002Edison\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306780\u756a\u30dd\u30fc\u30c8\u304c\u3075\u3055\u304c\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u4ed6\u306e\u30dd\u30fc\u30c8\u306b\u3059\u308c\u3070\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><\/p>\n<p>exports.listenPort = &#8216;8091&#8217;; \/\/the SSL port things run on<br \/>\nexports.httpListenPort = &#8216;8090&#8217;; \/\/this will all be redirected to SSL<br \/>\nexports.httpVisiblePort = &#8217;84&#8217;; \/\/forwarded http port the user sees<br \/>\nexports.httpsVisiblePort = &#8216;444&#8217;; \/\/forwarded https port the user sees<\/p>\n<p><\/div><\/div>\n<div class=\"su-note\"  style=\"border-color:#e5e54c;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"><div class=\"su-note-inner su-u-clearfix su-u-trim\" style=\"background-color:#FFFF66;border-color:#ffffff;color:#333333;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;\"># node server.js<\/div><\/div>\n<p>\u3053\u308c\u3067\u3001\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067\u3001\u3000\u3000https:\/\/edison.local:8091\u3000\u3067\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder2.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-870\" src=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder2.jpg\" alt=\"coder2\" width=\"640\" height=\"520\" srcset=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder2.jpg 640w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder2-300x244.jpg 300w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder2-320x260.jpg 320w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>Passwd\u3092\u5165\u529b\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002\u521d\u56de\u3060\u3051\u3001\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u307e\u3059\u3002\u65b0\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u306f\u3001\u5927\u6587\u5b57\u3068\u6570\u5b57\u304c\u6df7\u3058\u3063\u3066\u3044\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><a href=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder3.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-872\" src=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder3.jpg\" alt=\"coder3\" width=\"640\" height=\"520\" srcset=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder3.jpg 640w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder3-300x244.jpg 300w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder3-320x260.jpg 320w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u30ae\u30a2\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001WiFi Setup\u304c\u3067\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder4.jpg\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-873\" src=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder4.jpg\" alt=\"coder4\" width=\"640\" height=\"520\" srcset=\"https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder4.jpg 640w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder4-300x244.jpg 300w, https:\/\/research.itplants.com\/wp\/wp-content\/uploads\/2015\/01\/coder4-320x260.jpg 320w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>\u3053\u3053\u3067\u3001WiFi\u30eb\u30fc\u30bf\u3092\u9078\u3093\u3067\u3001SSID\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u8a2d\u5b9a\u3057\u305f\u5f8c\u306f\u3001\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi\u3067\u52d5\u4f5c\u3057\u3066\u3044\u305f Google\u88fd\u306eCoder\u3092edison\u3067\u3082\u52d5\u304b\u3057\u305f\u3044\u3001\u3068\u601d\u3063\u3066\u8a66\u884c\u932f\u8aa4\u3057\u307e\u3057\u305f\u3002\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u624b\u9806\u3092\u7d39\u4ecb\u3044\u305f\u3057\u307e\u3059\u3002 Coder\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u4e88\u3081\u3001opkg inst&#8230;<\/p>\n<p><a class=\"more\" href=\"https:\/\/research.itplants.com\/?p=868\"> Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":872,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/868"}],"collection":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=868"}],"version-history":[{"count":4,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/868\/revisions"}],"predecessor-version":[{"id":876,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/posts\/868\/revisions\/876"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=\/wp\/v2\/media\/872"}],"wp:attachment":[{"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/research.itplants.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}