{"id":102,"date":"2021-03-07T15:16:44","date_gmt":"2021-03-07T06:16:44","guid":{"rendered":"https:\/\/sirius10.dip.jp\/blog\/wordpress\/?p=102"},"modified":"2021-03-17T09:38:58","modified_gmt":"2021-03-17T00:38:58","slug":"%e3%82%b5%e3%83%bc%e3%83%90%e7%94%a8raspberry-pi-%e3%81%ae%e8%a8%ad%e5%ae%9a2","status":"publish","type":"post","link":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/2021\/03\/07\/102\/","title":{"rendered":"\u30b5\u30fc\u30d0\u7528Raspberry Pi \u306e\u8a2d\u5b9a2"},"content":{"rendered":"\n<p>\u30b5\u30fc\u30d0\u7528 Raspberry Pi \u521d\u56de\u8d77\u52d5\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3000\u30a4\u30e1\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u3093\u3060 micro SD \u3092\u30bb\u30c3\u30c8\u3057\u305f Raspberry Pi \u3068\u30e2\u30cb\u30bf\u3092\u3064\u306a\u304e\u3001Raspberry Pi \u306e\u96fb\u6e90\u3092\u5165\u308c\u307e\u3059\u3002<br>\u3000\u6700\u521d\u306e\u8d77\u52d5\u3067\u306f\u3001wifi \u304c\u3064\u306a\u304c\u3089\u306a\u3044\u306e\u3067\u3001\u64cd\u4f5c\u7528\u306e\u30de\u30b7\u30f3\u3068\u6709\u7dda LAN \u3067\u76f4\u63a5\u3064\u306a\u3052\u307e\u3059\u3002<br>\u3000\u64cd\u4f5c\u5074\u306e\u30de\u30b7\u30f3\u3068\u3001Raspberry Pi \u540c\u58eb\u304c\u30ea\u30f3\u30af\u30ed\u30fc\u30ab\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u3064\u306a\u304c\u308b\u306e\u3067\u3001\u5c11\u3057\u5f85\u3063\u3066\u304b\u3089 ping \u3067 ip \u30a2\u30c9\u30ec\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ ping raspberrypi.local<\/p>\n\n\n\n<p>\u3000\u3057\u3070\u3089\u304f\u5f85\u3064\u3068\u5fdc\u7b54\u304c\u5e30\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">PING raspberrypi.local (169.254.84.214) 56(84) bytes of data.<br>64 bytes from raspberrypi.local (169.254.84.214): icmp_seq=1 ttl=64 time=0.382 ms<br>64 bytes from raspberrypi.local (169.254.84.214): icmp_seq=2 ttl=64 time=0.373 ms<br>64 bytes from raspberrypi.local (169.254.84.214): icmp_seq=3 ttl=64 time=0.385 ms<\/p>\n\n\n\n<p>\u3000\u3053\u306e IP \u30a2\u30c9\u30ec\u30b9\u3067 ssh \u63a5\u7d9a\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ ssh 169.254.84.214<br>pi@169.254.84.214&#8217;s password:<\/p>\n\n\n\n<p>\u3000\u30d1\u30b9\u30ef\u30fc\u30c9\u306f raspberry \u3067\u3059\u3002<br>\u3000\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u305f\u3089\u6700\u521d\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo raspi-config<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"489\" src=\"https:\/\/sirius10.dip.jp\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/rsspi-config.png\" alt=\"\" class=\"wp-image-103\" srcset=\"https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/rsspi-config.png 815w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/rsspi-config-300x180.png 300w, https:\/\/sirius10.net\/blog\/wordpress\/wp-content\/uploads\/2021\/03\/rsspi-config-768x461.png 768w\" sizes=\"auto, (max-width: 815px) 100vw, 815px\" \/><\/figure>\n\n\n\n<p>\u3000\u3053\u306e\u753b\u9762\u304b\u3089\u6b21\u306e\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<br>1 System Options<br>-> S3 Password<br>\u3000pi \u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5909\u66f4\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>-> S4 Hostname<br>\u3000Raspberry Pi \u306e\u30db\u30b9\u30c8\u540d\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<br><br>\u3000\u524d\u306e\u30e1\u30cb\u30e5\u30fc\u306b\u623b\u3063\u3066\u3001<br>5 Localisation Options<br>-> L1 Locale<br>\u3000\u65e5\u672c\u8a9e\u30ed\u30b1\u30fc\u30eb\u306e ja_JP.UTF-8 \u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<br>\u3082\u3068\u3082\u3068\u3042\u308b en_GB.UTF-8 \u3068\u304b\u306f\u6b8b\u3057\u3066\u304a\u3044\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30ed\u30b1\u30fc\u30eb\u3092 ja_JP.Utf8 \u306b\u3057\u307e\u3059\u3002<br>-> L2 Timezone<br>\u3000\u30a2\u30b8\u30a2 -> \u6771\u4eac \u3092\u9078\u3073\u307e\u3059\u3002<br>-> L4 WLAN Country<br>\u3000JP(japan) \u3092\u9078\u629e\u3002<\/p>\n\n\n\n<p>\u3000\u3053\u3053\u3067\u629c\u3051\u3066\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo poweroff<\/p>\n\n\n\n<p>\u3000\u30b7\u30e3\u30c3\u30c8\u30c0\u30a6\u30f3\u3057\u305f\u3089\u3001\u6709\u7dda LAN \u306f\u5916\u3057\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<br>\u3000Raspberry Pi \u306e\u96fb\u6e90\u3092\u5165\u308c\u76f4\u3057\u307e\u3059\u3002<br>\u3000\u64cd\u4f5c\u5074\u3067\u518d\u5ea6 ip \u30a2\u30c9\u30ec\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ ping \u30db\u30b9\u30c8\u540d.local<\/p>\n\n\n\n<p>\u3000\u5fdc\u7b54\u304c\u3042\u308c\u3070\u3001 ssh \u63a5\u7d9a\u53ef\u80fd\u306a\u306e\u3067\u63a5\u7d9a\u3057\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"console\">$ ssh \u30db\u30b9\u30c8\u540d.local<br>pi@\u30db\u30b9\u30c8\u540d&#8217;s password:<br>$ sudo apt-get update<br>$ sudo apt-get -y upgrade<\/p>\n\n\n\n<p>\u3000\u3088\u304f\u4f7f\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002\u79c1\u306f\u6b21\u3092\u5165\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"console\">$ sudo apt-get -y install lv phantomjs screen libssl-dev nkf w3m dnsutils mutt ruby perl<\/p>\n\n\n\n<p>\u3000\u3053\u308c\u3067\u521d\u671f\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u4ee5\u4e0b\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30fbweb \u30b5\u30fc\u30d0\uff08Apache)<br>\u30fb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30b5\u30fc\u30d0(MariaDB)<br>\u30fbPHP \u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b<br>\u30fb\u30cd\u30fc\u30e0\u30b5\u30fc\u30d0(bind9)<br>\u30fb\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0(postFix)<br>\u30fb\u30b5\u30fc\u30d0\u3092\u4e8c\u53f0\u3067\u5197\u9577\u69cb\u6210\u3059\u308b<\/p>\n\n\n\n<p>\u3000\u307e\u3042\u3001LAMP \u74b0\u5883\u306e\u69cb\u7bc9\uff0b\u03b1\u3068\u3044\u3063\u305f\u3068\u3053\u308d\u3067\u3059\u3002<br>\u3000Raspberry Pi \u3058\u3083\u9045\u3044\u3067\u3057\u3087\u3001\u3068\u3044\u3046\u610f\u898b\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u305d\u306e\u6642\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u5206\u96e2\u3059\u308b\u3068\u304b\u3001\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u3092\u5206\u96e2\u3059\u308b\u3068\u304b\u3001\u500b\u4eba\u306e\u30b5\u30a4\u30c8\u306a\u3089\u306a\u3093\u3068\u304b\u306a\u308b\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<br>\uff08\u500b\u4eba\u306e\u30b5\u30a4\u30c8\u306a\u3089\u5197\u9577\u69cb\u6210\u306f\u3044\u3089\u306a\u3044\u3063\u3066\u601d\u3063\u305f\u4eba\u3002\u6b63\u89e3\uff01\u81ea\u5206\u304c\u3084\u308a\u305f\u3044\u304b\u3089\u3084\u308b\u3060\u3051\u3067\u3059\u3002\u3082\u3063\u3068\u8a00\u3048\u3070\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3082\u52d5\u304b\u3057\u305f\u3044\u3063\u3066\u601d\u3063\u3066\u3044\u307e\u3059\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u7528 Raspberry Pi \u521d\u56de\u8d77\u52d5\u3067\u3059\u3002 \u3000\u30a4\u30e1\u30fc\u30b8\u3092\u66f8\u304d\u8fbc\u3093\u3060 micro SD \u3092\u30bb\u30c3\u30c8\u3057\u305f Raspberry Pi \u3068\u30e2\u30cb\u30bf\u3092\u3064\u306a\u304e\u3001Raspberry Pi \u306e\u96fb\u6e90\u3092\u5165\u308c\u307e\u3059\u3002\u3000\u6700\u521d\u306e\u8d77\u52d5\u3067\u306f\u3001wif [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-server-config"],"_links":{"self":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":4,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions\/308"}],"wp:attachment":[{"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sirius10.net\/blog\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}